/* The public site (#219), from the approved mockup in docs/site-mockup. The app's identity: system
   indigo, iOS grouped lists, the system font with Hanken Grotesk as fallback; light and dark follow
   the system. */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 360deg; }

:root {
  --bg: #F2F2F7; --surface: #FFFFFF; --surface2: #E5E5EA; --label: #000000; --label2: #5F5F65;
  --sep: rgba(60, 60, 67, .16); --accent: #5856D6; --accent-hover: #3634A3; --screen: #F2F2F7;
  --bezel: #1C1C1E;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #1C1C1E; --surface2: #3A3A3C; --label: #FFFFFF; --label2: #A1A1A8;
    --sep: rgba(84, 84, 88, .65); --accent: #7D7AFF; --accent-hover: #A5A3FF; --screen: #000000;
    --bezel: #3A3A3C;
  }
}
body {
  margin: 0; background: var(--bg); color: var(--label); min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hanken Grotesk", system-ui, sans-serif;
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
*:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 8px 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.display {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 700; letter-spacing: -.035em; line-height: 1.03; margin: 0;
}
.num { font-variant-numeric: tabular-nums; }

.top {
  position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--sep);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
a.brand, a.brand:hover { color: var(--label); }
.tile { width: 30px; height: 30px; border-radius: 8px; background: #5856D6; display: grid; place-items: center; flex: none; }
.tile i {
  display: block; width: 19px; height: 19px; border-radius: 50%;
  background: conic-gradient(#FFFFFF 0 58%, rgba(255, 255, 255, .55) 58% 76%, rgba(255, 255, 255, .8) 76% 92%, rgba(255, 255, 255, .35) 92%);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); mask: radial-gradient(circle, transparent 46%, #000 47%);
}
.navr { display: flex; align-items: center; gap: 12px; }
.seg { display: flex; background: var(--surface2); border-radius: 9px; padding: 2px; }
.seg a, .seg span {
  font-size: 14px; font-weight: 600; color: var(--label2); padding: 6px 12px; min-height: 20px;
  border-radius: 7px; text-decoration: none;
}
.seg span { background: var(--surface); color: var(--label); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600;
  text-decoration: none; border-radius: 999px; background: #5856D6; padding: 0 22px; min-height: 50px;
  font-size: 17px; border: 0; cursor: pointer;
}
a.btn, a.btn:hover, button.btn { color: #FFFFFF; }
a.btn:hover, button.btn:hover { background: #4644C4; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn.soon { background: var(--surface2); color: var(--label2); cursor: default; }

.hero { padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin: 0 0 16px; }
.lead { font-size: 21px; line-height: 1.45; color: var(--label2); max-width: 32em; margin: 28px 0 36px; }
.ctaRow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.note { font-size: 15px; color: var(--label2); margin: 0; }

.phone {
  justify-self: center; width: 300px; height: 620px; border-radius: 54px; background: var(--bezel);
  padding: 11px; box-sizing: border-box; box-shadow: 0 30px 60px -20px rgba(54, 52, 163, .35);
}
.screen {
  position: relative; height: 100%; border-radius: 44px; background: var(--screen); overflow: hidden;
  padding: 56px 18px 0; box-sizing: border-box;
}
.screen .title { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }
.card { background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.total { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.pill { display: inline-block; margin-top: 8px; background: #1E7B34; color: #FFFFFF; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.ringCard { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.ringBox { position: relative; width: 112px; height: 112px; flex: none; }
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: conic-gradient(#000 var(--sweep), transparent 0); mask: conic-gradient(#000 var(--sweep), transparent 0);
  animation: sweep 1.5s cubic-bezier(.2, .7, .2, 1) .3s both;
}
.ring::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--surface); }
.ringLabel { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 12px; line-height: 1.2; color: var(--label2); padding: 30px; }
@keyframes sweep { from { --sweep: 0deg; } to { --sweep: 360deg; } }
.legend { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; min-width: 0; }
.legend div { display: flex; align-items: center; gap: 6px; }
.legend span.n { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: 14px; height: 56px; border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 72%, transparent); border: 1px solid var(--sep);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: space-around; font-size: 11px; font-weight: 600; color: var(--label2);
}
.tabbar span.on { color: var(--accent); }

.sec { padding: 104px 0; }
.sec h2 { font-size: clamp(34px, 4.2vw, 52px); max-width: 16em; }
.sec .lead { margin-bottom: 48px; }
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.group h3 { font-size: 15px; font-weight: 600; color: var(--label2); margin: 0 0 8px 16px; }
.inset { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 14px; overflow: hidden; }
.inset li { display: flex; align-items: center; gap: 14px; padding: 13px 16px; position: relative; }
.inset li + li::before { content: ""; position: absolute; top: 0; left: 54px; right: 0; border-top: 1px solid var(--sep); }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.no { color: var(--label2); }
.yes { color: var(--accent); }
.fine { margin: 28px 0 0; font-size: 15px; color: var(--label2); max-width: 46em; }

.spot { background: #2F2D8F; color: #FFFFFF; }
.spot .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.spot h2 { color: #FFFFFF; }
.spot .lead { color: rgba(255, 255, 255, .82); margin-bottom: 32px; }
.spot a { color: #FFFFFF; }
.points { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; color: rgba(255, 255, 255, .9); }
.points li { display: flex; gap: 12px; align-items: flex-start; }
.points .ico { color: #B9B7FF; margin-top: 1px; }

.calc { background: var(--surface); color: var(--label); border-radius: 22px; padding: 28px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .45); }
.amountRow { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.amountRow label { font-weight: 600; }
.amount { font-size: 40px; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.range { width: 100%; margin: 14px 0 12px; accent-color: #5856D6; height: 28px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  font: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--sep); background: transparent;
  color: var(--label); border-radius: 999px; padding: 0 14px; min-height: 36px; cursor: pointer;
}
.preset[aria-pressed="true"] { background: #5856D6; border-color: #5856D6; color: #FFFFFF; }
.rows { margin-top: 24px; border-top: 1px solid var(--sep); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--sep); }
.rname { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.track { position: relative; height: 10px; border-radius: 5px; background: var(--surface2); margin: 10px 0 8px; }
.ghost, .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; transition: width .4s cubic-bezier(.2, .7, .2, 1); }
.ghost { opacity: .32; }
.tick { position: absolute; top: -4px; bottom: -4px; left: 66.667%; width: 2px; border-radius: 1px; background: var(--label); }
.figs { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--label2); }
.buy { text-align: right; }
.buy b { display: block; font-size: 16px; }
.buy span { font-size: 14px; color: var(--label2); }
.buy.muted b { color: var(--label2); font-weight: 500; }
.buy.sell b { color: #C93400; }
.sum { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; font-size: 16px; }
.sum b { display: block; font-size: 22px; letter-spacing: -.01em; }
.sum div + div { text-align: right; }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 13px; color: var(--label2); }
.key span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 18px; height: 8px; border-radius: 4px; background: #5856D6; }
.sw.g { opacity: .32; }
.sw.t { width: 2px; height: 14px; border-radius: 1px; background: var(--label); }
.sample { margin: 14px 0 0; font-size: 13px; color: var(--label2); }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; margin-top: 56px; }
.feat h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 16px 0 6px; }
.feat p { margin: 0; color: var(--label2); font-size: 16px; }
.ftile { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #FFFFFF; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 56px 0 0; padding: 0; list-style: none; }
.steps li { border-top: 2px solid var(--label); padding-top: 20px; }
.steps .k { display: block; font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--accent); margin-bottom: 18px; }
.steps h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--label2); }

.faq { margin-top: 48px; background: var(--surface); border-radius: 14px; overflow: hidden; max-width: 820px; }
.faq details { position: relative; }
.faq details + details::before { content: ""; position: absolute; top: 0; left: 20px; right: 0; border-top: 1px solid var(--sep); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; border-right: 2px solid var(--label2); border-bottom: 2px solid var(--label2);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--label2); max-width: 40em; }

.final { padding: 112px 0 120px; }
.final .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.final h2 { font-size: clamp(36px, 4.6vw, 60px); }
.final p { margin: 20px 0 0; color: var(--label2); font-size: 19px; max-width: 30em; }

/* Text pages: privacy, terms, support, and the words under the calculator. */
.page { padding: 72px 0 96px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); }
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; letter-spacing: -.01em; margin: 48px 0 12px; }
.prose h3 { font-size: 19px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--label); }
.prose .lead { margin: 20px 0 32px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.updated { color: var(--label2); font-size: 15px; }
.box { background: var(--surface); border-radius: 14px; padding: 20px 24px; margin: 24px 0; }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }

/* The calculator page's table. */
.tool { background: var(--surface); border-radius: 22px; padding: 28px; margin: 32px 0 16px; }
.tool table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tool th { text-align: left; font-weight: 600; color: var(--label2); font-size: 13px; padding: 0 8px 8px 0; }
.tool td { padding: 6px 8px 6px 0; vertical-align: middle; }
.tool input[type="text"], .tool input[type="number"] {
  font: inherit; width: 100%; box-sizing: border-box; border: 1px solid var(--sep); border-radius: 9px;
  padding: 8px 10px; background: var(--bg); color: var(--label); min-height: 40px;
}
.tool .plain { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 8px 0; min-height: 40px; }
.tool .remove { color: var(--label2); }
.controls { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; margin-top: 24px; }
.controls label, .controls .label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.controls input { max-width: 180px; }
.modes { display: flex; background: var(--surface2); border-radius: 9px; padding: 2px; }
.modes button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--label2); padding: 6px 12px; min-height: 36px; border-radius: 7px; cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--surface); color: var(--label); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.result { margin-top: 24px; }
.result table td:last-child, .result table th:last-child { text-align: right; }
.local { font-size: 15px; color: var(--label2); }
.error { color: #C93400; font-size: 15px; }

.foot { border-top: 1px solid var(--sep); padding: 32px 0 48px; font-size: 14px; color: var(--label2); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot p { margin: 0; }

@media (max-width: 920px) {
  .hero { padding: 56px 0 72px; }
  .hero .wrap, .spot .wrap { grid-template-columns: minmax(0, 1fr); }
  .lists { grid-template-columns: minmax(0, 1fr); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sec { padding: 80px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .brand b { display: none; }
  /* The hero and the closing section carry the same button; the bar keeps the language switch. */
  .top .btn { display: none; }
  .display { overflow-wrap: break-word; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .calc, .tool { padding: 20px; }
  .amount { font-size: 32px; }
  .lead { font-size: 19px; }
  .tool table, .tool thead, .tool tbody, .tool tr, .tool td { display: block; }
  .tool thead { display: none; }
  .tool tr { padding: 12px 0; border-bottom: 1px solid var(--sep); }
  .tool td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; color: var(--label2); }
}
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } .ghost, .fill { transition: none; } }
