/* Look of the whole site: cool white, cobalt and a sunny yellow. One file, phone layout first. */
:root {
  --paper: #f6f8ff;
  --card: #ffffff;
  --ink: #0f1b3d;
  --soft: #55608a;
  --rule: #dfe4f7;
  --cobalt: #2447f9;
  --cobaltDeep: #1a34c4;
  --sun: #ffd23f;
  --navy: #0b1437;
  --alarm: #c2261c;
  --round: 22px;
  --fontBody: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.locWait body { visibility: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--fontBody);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobaltDeep); }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); }
section[id] { scroll-margin-top: 120px; }

.skipLink {
  position: absolute; left: 12px; top: -80px; z-index: 60;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 12px;
}
.skipLink:focus { top: 12px; color: #fff; }

.pageWidth { width: min(1120px, 100% - 36px); margin-inline: auto; }

/* buttons */
.uiButton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background-color .12s ease;
}
.uiButton:active { transform: translateY(1px); }
.uiButton[disabled] { opacity: .6; cursor: progress; }
.uiButtonPrimary { background: var(--cobalt); color: #fff; }
.uiButtonPrimary:hover { background: var(--cobaltDeep); color: #fff; }
.uiButtonGhost { background: transparent; border-color: var(--ink); color: var(--ink); }
.uiButtonGhost:hover { background: var(--ink); color: #fff; }
.uiButtonSun { background: var(--sun); color: var(--navy); }
.uiButtonSun:hover { background: #ffe07a; color: var(--navy); }
.uiButtonLarge { min-height: 54px; padding-inline: 28px; font-size: 1.06rem; }
.uiButtonSmall { min-height: 40px; padding: 6px 16px; font-size: .94rem; }
.uiButtonWide { width: 100%; }
.linkButton {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px;
}
.linkButton:hover { color: var(--cobaltDeep); }

/* cookie strip at the very top and the settings drawer */
.cookieStrip { background: var(--navy); color: #e9edff; font-size: .93rem; }
.cookieStripInner { display: grid; gap: 12px; padding-block: 14px; }
.cookieStrip a { color: var(--sun); }
.cookieStripButtons { display: flex; flex-wrap: wrap; gap: 8px; }
.cookieStrip .uiButtonGhost { border-color: #8f9bd0; color: #fff; }
.cookieStrip .uiButtonGhost:hover { background: #fff; color: var(--navy); }
.cookieBackdrop { position: fixed; inset: 0; z-index: 70; background: rgba(11, 20, 55, .55); }
.cookieDrawer {
  position: fixed; z-index: 71; top: 0; right: 0; bottom: 0;
  width: min(400px, 100%); padding: 28px 22px; overflow-y: auto;
  background: var(--card); box-shadow: -18px 0 50px rgba(11, 20, 55, .25);
  display: flex; flex-direction: column; gap: 18px;
}
.drawerTitle { font-size: 1.35rem; line-height: 1.25; }
.drawerRow {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--rule); border-radius: 16px;
}
.drawerRow strong { grid-column: 1; }
.drawerRow span { grid-column: 1; color: var(--soft); font-size: .92rem; }
.drawerRow input { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; accent-color: var(--cobalt); }
.drawerButtons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* header */
.siteHeader {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 248, 255, .93); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.headerInner { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.brandLink {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto;
  color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -.01em;
}
.brandLink:hover { color: var(--ink); }
.brandMark { flex: none; width: 34px; height: 34px; }
.brandName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mainNav { border-top: 1px solid var(--rule); }
.navLinks { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.navLinks::-webkit-scrollbar { display: none; }
.navLinks a {
  display: block; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none;
}
.navLinks a:hover { background: #e6ebff; }
.headerActions { display: flex; align-items: center; gap: 8px; flex: none; }
.headerLogin { display: none; }

.langBox { position: relative; flex: none; }
.langButton {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 999px;
  font-weight: 700; font-size: .88rem; cursor: pointer;
}
.langButton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.langPanel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 250px; padding: 8px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 27, 61, .16);
}
.langPanel a { display: block; padding: 9px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.langPanel a:hover { background: #e6ebff; }
.langPanel a[aria-current] { background: var(--cobalt); color: #fff; font-weight: 700; }

/* hero */
.heroArea { padding-block: 44px 56px; }
.heroGrid { display: grid; gap: 36px; }
.eyebrowText {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
  background: #e6ebff; color: var(--cobaltDeep); font-size: .85rem; font-weight: 700;
}
.heroTitle { font-size: clamp(2.2rem, 8.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.leadText { margin-top: 18px; color: var(--soft); font-size: 1.1rem; max-width: 36em; }
.heroButtons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.smallPrint { margin-top: 14px; color: var(--soft); font-size: .9rem; }

.mixCard {
  position: relative; padding: 22px; border-radius: 28px;
  background: var(--card); border: 1px solid var(--rule);
  box-shadow: 10px 10px 0 var(--sun);
}
.mixHead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.mixAvatar { width: 60px; height: 60px; border-radius: 20px; }
.mixCaption { color: var(--soft); font-size: .85rem; }
.mixName { font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.mixGroup + .mixGroup { margin-top: 14px; }
.mixLegend { margin-bottom: 8px; color: var(--soft); font-size: .85rem; font-weight: 700; }
.mixOptions { display: flex; flex-wrap: wrap; gap: 8px; }
.mixOption { position: relative; }
.mixOption input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.mixOption span {
  display: block; padding: 7px 15px; border: 2px solid var(--rule); border-radius: 999px;
  font-weight: 600; font-size: .95rem;
}
.mixOption input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.mixOption input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.mixBubbles { display: grid; gap: 8px; margin-top: 20px; }
.talkBubble {
  justify-self: start; max-width: 94%; padding: 11px 15px;
  background: #e6ebff; border-radius: 18px 18px 18px 4px;
}
.sampleNote { margin-top: 14px; color: var(--soft); font-size: .82rem; }

/* sections */
.sectionBlock { padding-block: 60px; }
.sectionSoft { background: #eaeeff; }
.sectionNavy { background: var(--navy); color: #fff; }
.sectionHead { max-width: 44em; margin-bottom: 30px; }
.sectionTitle { font-size: clamp(1.7rem, 5.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
.sectionHead .leadText { margin-top: 12px; }
.sectionNavy .eyebrowText { background: rgba(255, 255, 255, .12); color: var(--sun); }
.cardTitle { font-size: 1.15rem; line-height: 1.3; font-weight: 800; }

.traitGrid { display: grid; gap: 14px; }
.traitCard { padding: 22px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--round); }
.traitCard p { margin-top: 6px; color: var(--soft); }
.traitIcon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 14px; background: var(--sun); color: var(--navy);
}
.traitIcon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.traitCardWide { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.traitCardWide p { color: #dfe5ff; }

.topicGrid { display: grid; gap: 14px; }
.topicCard { padding: 20px; background: var(--card); border-radius: var(--round); }
.topicLabel { margin-bottom: 12px; font-weight: 800; font-size: 1.05rem; }
.talkLine { padding: 10px 14px; border-radius: 16px; background: var(--paper); }
.talkLine + .talkLine { margin-top: 8px; }
.talkLineAi { background: var(--navy); color: #fff; }
.talkWho { display: block; font-size: .78rem; font-weight: 700; opacity: .7; }
.pillCloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.topicPill { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid #cdd5f5; font-weight: 600; font-size: .93rem; }

.stepTimeline { display: grid; gap: 0; max-width: 40em; }
.timelineItem { position: relative; padding: 0 0 30px 62px; }
.timelineItem::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--rule); }
.timelineItem:last-child { padding-bottom: 0; }
.timelineItem:last-child::before { display: none; }
.timelineDot {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--cobalt); color: #fff; font-weight: 800;
}
.timelineItem p { margin-top: 4px; color: var(--soft); }

.honestGrid { display: grid; gap: 16px; }
.honestColumn { padding: 24px; border-radius: var(--round); background: rgba(255, 255, 255, .08); }
.honestColumnSun { background: var(--sun); color: var(--navy); }
.honestList { display: grid; gap: 12px; margin-top: 14px; }
.honestList li { position: relative; padding-left: 26px; }
.honestList li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 4px; border-radius: 2px; background: currentColor; }

.faqGrid { display: grid; gap: 28px; }
.faqGroupTitle { margin-bottom: 12px; color: var(--cobaltDeep); font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.faqItem { padding: 18px 0; border-top: 1px solid var(--rule); }
.faqQuestion { font-weight: 800; }
.faqAnswer { margin-top: 6px; color: var(--soft); }

.ctaBox {
  display: grid; gap: 20px; align-items: center; padding: 34px 26px; border-radius: 30px;
  background: var(--cobalt); color: #fff;
}
.ctaBox p { margin-top: 8px; color: #dfe5ff; }

/* footer */
.siteFooter { margin-top: 60px; padding-block: 40px 28px; background: var(--card); border-top: 1px solid var(--rule); font-size: .95rem; }
.footerGrid { display: grid; gap: 28px; }
.footerAbout { margin-top: 12px; color: var(--soft); max-width: 24em; }
.footerTitle { margin-bottom: 10px; font-weight: 800; }
.footerLinks { display: grid; gap: 8px; }
.footerLinks a { color: var(--ink); }
.footerEnd { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--soft); font-size: .88rem; }
.footerSlim { margin-top: 0; padding-block: 20px; }
.footerSlim .footerEnd { margin-top: 0; padding-top: 0; border-top: 0; }

/* register and log-in pages */
.plainPage { min-height: 100vh; display: flex; flex-direction: column; }
.plainPage main { flex: 1; }
.accountMain { display: grid; place-items: start center; padding: 36px 18px 56px; }
.accountCard {
  width: min(460px, 100%); padding: 28px 22px; border-radius: 28px;
  background: var(--card); border: 1px solid var(--rule); box-shadow: 8px 8px 0 var(--cobalt);
}
.accountAvatar { width: 64px; height: 64px; margin-bottom: 16px; border-radius: 20px; }
.stepLabel { margin-bottom: 10px; color: var(--cobaltDeep); font-size: .85rem; font-weight: 800; }
.accountSub { margin-top: 8px; color: var(--soft); }
.accountForm { display: grid; gap: 18px; margin-top: 24px; }
.formNote { padding: 12px 14px; border-radius: 14px; background: #fde8e6; color: var(--alarm); font-weight: 600; }
.formNote[data-kind="info"] { background: #e6ebff; color: var(--cobaltDeep); }
.fieldLabel { display: block; margin-bottom: 6px; font-weight: 700; }
.textInput {
  width: 100%; min-height: 50px; padding: 10px 14px;
  background: var(--paper); border: 2px solid var(--rule); border-radius: 14px;
}
.textInput:focus { border-color: var(--cobalt); outline: 0; background: #fff; }
.textInput[aria-invalid="true"] { border-color: var(--alarm); }
.fieldHint { margin-top: 6px; color: var(--soft); font-size: .88rem; }
.fieldError { margin-top: 6px; color: var(--alarm); font-size: .9rem; font-weight: 600; }
.fieldError:empty { display: none; }
.showPass, .agreeLine { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.showPass { margin-top: 8px; color: var(--soft); }
.showPass input, .agreeLine input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--cobalt); }
.switchLine { margin-top: 20px; text-align: center; color: var(--soft); }
.inboxView { display: grid; gap: 12px; justify-items: start; }
.inboxIcon { width: 54px; height: 54px; padding: 12px; border-radius: 18px; background: var(--sun); fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.inboxAddress { font-weight: 800; word-break: break-all; }
.inboxStatus { min-height: 1.5em; color: var(--cobaltDeep); font-weight: 600; }
.inboxStatus[data-kind="error"] { color: var(--alarm); }

/* legal documents */
.docPage { max-width: 46em; padding-block: 44px 20px; }
.docDate { margin-top: 10px; color: var(--soft); font-size: .92rem; }
.docIntro { margin-top: 18px; font-size: 1.08rem; }
.docSection { margin-top: 34px; }
.docSection h2 { font-size: 1.35rem; line-height: 1.25; font-weight: 800; }
.docSection h3 { margin-top: 16px; font-size: 1.02rem; font-weight: 800; }
.docSection p { margin-top: 10px; }
.docSection ul { margin-top: 10px; padding-left: 22px; list-style: disc; display: grid; gap: 6px; }

@media (min-width: 620px) {
  .cookieStripInner { grid-template-columns: 1fr auto; align-items: center; }
  .traitGrid { grid-template-columns: 1fr 1fr; }
  .honestGrid { grid-template-columns: 1fr 1fr; }
  .accountCard { padding: 36px 34px; }
  .headerLogin { display: inline-flex; }
  .navLoginItem { display: none; }
  .footerGrid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .headerShell { display: flex; align-items: center; gap: 16px; min-height: 72px; }
  .headerInner { display: contents; }
  .brandLink { order: 1; }
  .mainNav { order: 2; border-top: 0; margin-right: auto; }
  .langBox { order: 3; }
  .headerActions { order: 4; }
  .heroArea { padding-block: 76px 90px; }
  .heroGrid { grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
  .sectionBlock { padding-block: 88px; }
  .traitGrid { grid-template-columns: repeat(3, 1fr); }
  .traitCardWide, .traitCard:nth-child(4), .traitCard:nth-child(5) { grid-column: span 2; }
  .topicGrid { grid-template-columns: repeat(3, 1fr); }
  .faqGrid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .ctaBox { grid-template-columns: 1fr auto; padding: 48px; }
  .footerGrid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .uiButton { transition: none; }
}
