/* Public site (landing, pricing, sign in / up, legal). Same house look as the app: black, thin rules, blue, Inter.
   Tokens come from /theme.css. No external fonts or images. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--h-bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* the public pages' dim text, lighter than the app's (theme.css is shared) for WCAG AA on black and the panels */
body.site { --h-dim: #85858d; }
body.site { margin: 0; background: var(--h-bg); color: var(--h-ink2); font: 16px/1.6 var(--h-font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.site [hidden] { display: none !important; }
.site a { color: inherit; }
.site img { max-width: 100%; height: auto; display: block; }
.site h1, .site h2, .site h3 { color: var(--h-ink); margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.site p { margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--h-muted); }
.blue { color: var(--h-blue); }
.num { font-variant-numeric: tabular-nums; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--h-line2); background: transparent; color: var(--h-ink);
  font: 600 14px/1 var(--h-font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .2s, border-color .2s, filter .2s, transform .15s; }
.btn:hover { background: var(--h-panel3); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--h-blue); border-color: var(--h-blue); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); background: var(--h-blue); }
.btn.ghost { border-color: transparent; color: var(--h-ink2); }
.btn.lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; filter: none; }
.btn:focus-visible, .site a:focus-visible, .site summary:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 2px; }

/* ---- top bar */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(0, 0, 0, .86); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--h-line); }
.nav .wrap { display: flex; align-items: center; gap: 8px; height: 60px; }
.brand { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--h-ink); text-decoration: none;
  white-space: nowrap; min-height: 1em; }
.brand b { color: var(--h-blue); font-weight: 700; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.site .brand .mark { display: block; width: 28px; height: 28px; flex: none; }
.foot .foot-brand { font-size: 15px; color: var(--h-ink); gap: 8px; }
.site .foot-brand .mark { width: 22px; height: 22px; }
.nav .links { display: flex; gap: 4px; margin-inline-start: 28px; }
.nav .links a { color: var(--h-muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav .links a:hover { color: var(--h-ink); }
.nav .grow { display: none; }
.nav .acts { display: flex; gap: 8px; margin-inline-start: auto; }

/* ---- hero */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 620px; pointer-events: none;
  background-image: linear-gradient(var(--h-line) 1px, transparent 1px), linear-gradient(90deg, var(--h-line) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: linear-gradient(#000 0, transparent 92%); mask-image: linear-gradient(#000 0, transparent 92%); opacity: .7; }
.hero .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--h-muted); font-size: 13px; font-weight: 500;
  letter-spacing: .02em; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--h-blue); flex: none; }
.hero h1 { font-size: clamp(38px, 6.4vw, 76px); max-width: 15ch; margin-top: 22px; letter-spacing: -.045em; line-height: 1.02; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--h-muted); max-width: 56ch; margin-top: 24px; }
.hero .lead b { color: var(--h-ink2); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--h-dim); }
.shot { margin: 0; border: 1px solid var(--h-line2); border-radius: var(--h-r); overflow: hidden; background: var(--h-panel2); }
.shot img { width: 100%; }
.hero .shot { margin-top: 64px; box-shadow: 0 0 0 1px #000, 0 40px 120px -40px rgba(61, 139, 255, .28); }
.cap { margin-top: 12px; font-size: 13px; color: var(--h-dim); }

/* ---- number strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line); }
.strip div { padding: 26px 24px; border-inline-start: 1px solid var(--h-line); }
.strip div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.strip b { display: block; color: var(--h-ink); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.strip div > span { display: block; color: var(--h-muted); font-size: 13px; margin-top: 4px; }

/* ---- sections */
.sec { padding: 104px 0 0; }
.sec-h { max-width: 720px; }
.kicker { color: var(--h-blue); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sec-h h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 14px; }
.sec-h p { color: var(--h-muted); font-size: 17px; margin-top: 16px; max-width: 60ch; }

.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--h-line); }
.feats { margin-top: 56px; }
.feat:nth-child(even) .feat-t { order: 2; }
.feat .n { color: var(--h-blue); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.feat h3 { font-size: 26px; margin-top: 12px; letter-spacing: -.025em; line-height: 1.2; }
.feat p { color: var(--h-muted); margin-top: 14px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 26px; color: var(--h-ink2); font-size: 15px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .42em; width: 11px; height: 6px;
  border-left: 2px solid var(--h-blue); border-bottom: 2px solid var(--h-blue); transform: rotate(-45deg); }
.duo { display: grid; grid-template-columns: minmax(0, 3.1fr) minmax(0, 1fr); gap: 14px; align-items: end; }

/* ---- markets */
.mkts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border: 1px solid var(--h-line);
  border-radius: var(--h-r); overflow: hidden; background: var(--h-line); gap: 1px; }
.mkt { background: var(--h-bg); padding: 20px 22px; min-width: 0; }
.mkt b { display: block; color: var(--h-ink); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.mkt span { display: block; color: var(--h-muted); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt.fill { background: var(--h-panel2); }

/* ---- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; counter-reset: step; }
.step { border: 1px solid var(--h-line); border-radius: var(--h-r); background: var(--h-panel2); padding: 26px 24px 28px; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--h-gbg); color: var(--h-blue); font-weight: 600; font-size: 14px; }
.step h3 { font-size: 18px; margin-top: 18px; letter-spacing: -.02em; }
.step p { color: var(--h-muted); font-size: 15px; margin-top: 8px; }

/* ---- pricing: three plan cards, then notes + what is included */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--h-line2); border-radius: var(--h-r); background: var(--h-panel2); padding: 28px; min-width: 0; }
.plan.best { border-color: var(--h-blue); box-shadow: 0 0 0 1px var(--h-blue) inset; }
.plan-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.plan-h h3 { font-size: 18px; letter-spacing: -.02em; }
.plan .tag { display: inline-block; background: var(--h-gbg); color: var(--h-blue); font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.plan .amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 22px; }
.plan .amt b { color: var(--h-ink); font-size: 52px; font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan .amt s { color: var(--h-dim); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; text-decoration-thickness: 1.5px; }
.plan .per { color: var(--h-ink2); font-size: 15px; margin-top: 14px; }
.plan .per2 { color: var(--h-muted); font-size: 14px; margin-top: 2px; flex: 1; }
.plan .btn { margin-top: 26px; }
.plans-note { margin-top: 18px; font-size: 14px; color: var(--h-muted); max-width: 88ch; }
.soon { margin-top: 28px; border: 1px dashed var(--h-line2); border-radius: var(--h-r); padding: 14px 16px; text-align: center;
  color: var(--h-amber); font-size: 14px; font-weight: 500; }
.soon + .plans { margin-top: 16px; }
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; margin-top: 64px;
  padding-top: 48px; border-top: 1px solid var(--h-line); }
.incl { border: 1px solid var(--h-line); border-radius: var(--h-r); background: var(--h-panel2); padding: 28px; }
.incl h3 { font-size: 18px; letter-spacing: -.02em; }
.side-notes { display: grid; gap: 28px; }
.side-notes h3 { font-size: 18px; letter-spacing: -.02em; }
.side-notes p { color: var(--h-muted); font-size: 15px; margin-top: 8px; }
.side-notes a { color: var(--h-blue); text-decoration: none; }
.side-notes a:hover { text-decoration: underline; }

/* ---- FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--h-line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--h-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 0;
  color: var(--h-ink); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-inline-start: auto; color: var(--h-muted); font-size: 22px; font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; color: var(--h-blue); }
.faq p { color: var(--h-muted); padding: 0 0 22px; padding-inline-end: 40px; font-size: 15.5px; }

/* ---- closing call + footer */
.closer { margin-top: 104px; border-top: 1px solid var(--h-line); border-bottom: 1px solid var(--h-line); padding: 80px 0; }
.closer h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 18ch; letter-spacing: -.04em; }
.closer p { color: var(--h-muted); font-size: 17px; margin-top: 16px; max-width: 52ch; }
.foot { padding: 40px 0 56px; color: var(--h-dim); font-size: 13px; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.foot .row a { color: var(--h-muted); text-decoration: none; }
.foot .row a:hover { color: var(--h-ink); }
.foot .grow { flex: 1; }
.foot .risk { margin-top: 20px; max-width: 86ch; line-height: 1.6; }

/* ---- sign in / sign up */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.auth-top { display: flex; align-items: center; height: 60px; padding: 0 32px; border-bottom: 1px solid var(--h-line); }
.auth-top .grow { flex: 1; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 56px 16px 64px; }
.card { width: 100%; max-width: 420px; border: 1px solid var(--h-line); border-radius: var(--h-r); background: var(--h-panel2); padding: 32px; }
.card h1 { font-size: 26px; letter-spacing: -.03em; }
.card .sub { color: var(--h-muted); font-size: 15px; margin-top: 8px; }
.form { display: grid; gap: 16px; margin-top: 26px; }
.field label, .field .lbl { display: flex; align-items: baseline; gap: 8px; color: var(--h-ink2); font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.field label small { color: var(--h-dim); font-weight: 400; margin-left: auto; }
.inp { width: 100%; height: 46px; padding: 0 14px; border-radius: var(--h-r); border: 1px solid var(--h-line2); background: #000;
  color: var(--h-ink); font: 16px var(--h-font); outline: none; transition: border-color .15s; }
.inp::placeholder { color: var(--h-dim); }
.inp:focus { border-color: var(--h-blue); }
.field.bad .inp { border-color: var(--h-red); }
.field .hint { color: var(--h-dim); font-size: 12.5px; margin-top: 6px; line-height: 1.45; }
.field .msg { color: var(--h-red); font-size: 13px; margin-top: 6px; min-height: 0; }
.pw { position: relative; }
.pw .inp { padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border: 0; background: transparent;
  color: var(--h-muted); font: 500 13px var(--h-font); border-radius: 8px; cursor: pointer; }
.pw button:hover { color: var(--h-ink); }
.alert { border-radius: var(--h-r); padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.alert.err { background: var(--h-rbg); color: #ff8a70; border: 1px solid rgba(255, 90, 54, .35); }
.alert.ok { background: var(--h-gbg); color: #8fbcff; border: 1px solid rgba(61, 139, 255, .35); }
.alert.warn { background: rgba(255, 179, 64, .1); color: var(--h-amber); border: 1px solid rgba(255, 179, 64, .3); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--h-blue); font: inherit; cursor: pointer; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.card .alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--h-line); color: var(--h-muted); font-size: 14px; text-align: center; }
.card .alt a, .card .small a { color: var(--h-blue); text-decoration: none; }
.card .alt a:hover, .card .small a:hover { text-decoration: underline; }
.card .small { color: var(--h-dim); font-size: 12.5px; line-height: 1.5; text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }

/* ---- legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 32px 40px; }
.legal h1 { font-size: 40px; }
.legal .upd { color: var(--h-dim); font-size: 13px; margin-top: 10px; }
.legal h2 { font-size: 20px; letter-spacing: -.02em; margin-top: 40px; }
.legal h2[id] { scroll-margin-top: 84px; }   /* /terms#risk below the sticky header */
.legal b { color: var(--h-ink2); font-weight: 600; }
.legal p, .legal li { color: var(--h-muted); margin-top: 12px; font-size: 15.5px; }
.legal ul { margin: 0; padding-inline-start: 20px; }
.legal a { color: var(--h-blue); text-decoration: none; }

/* ---- iPad and smaller */
@media (max-width: 1023px) {
  .feat { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feat:nth-child(even) .feat-t { order: 0; }
  .price-grid { grid-template-columns: 1fr; gap: 40px; }
  .plan { padding: 22px 20px; } .plan .amt b { font-size: 42px; } .plan .amt s { font-size: 17px; }
  .mkts { grid-template-columns: repeat(3, 1fr); }
  .sec { padding-top: 80px; } .closer { margin-top: 80px; padding: 64px 0; }
  .nav .links { margin-inline-start: 12px; }   /* iPad and phones: the section links go, Pricing stays */
  .nav .links a:not(.keep) { display: none; }
}
/* iPad portrait (701-960): three plan cards stay side by side, the button text may wrap instead of overflowing */
@media (min-width: 701px) and (max-width: 960px) {
  .plans { gap: 12px; } .plan { padding: 20px 16px; } .plan .amt b { font-size: 38px; }
  .plan .btn.lg { padding: 10px 14px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.25; height: auto; min-height: 52px; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { height: 54px; }
  .hero { padding-top: 48px; } .hero .shot { margin-top: 40px; } .hero::before { background-size: 48px 48px; height: 420px; }
  .hero h1 { letter-spacing: -.035em; }
  .cta .btn { flex: 1 1 100%; }
  .strip { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .strip div { padding: 20px 16px; } .strip div:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .strip div:nth-child(n+3) { border-top: 1px solid var(--h-line); }
  .strip b { font-size: 24px; }
  .sec { padding-top: 64px; } .feats { margin-top: 36px; } .feat { padding: 36px 0; } .feat h3 { font-size: 22px; }
  .mkts { grid-template-columns: 1fr 1fr; margin-top: 32px; } .mkt { padding: 16px; }
  .steps { grid-template-columns: 1fr; margin-top: 32px; }
  .plans { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; } .plan { padding: 22px 20px; } .plan .amt b { font-size: 48px; }
  .plan .per2 { flex: none; } .price-grid { margin-top: 48px; padding-top: 36px; } .incl { padding: 22px 20px; }
  .faq summary { font-size: 16px; padding: 18px 0; } .faq p { padding-inline-end: 0; }
  .closer { margin-top: 64px; padding: 48px 0; }
  .auth-top { padding: 0 16px; height: 54px; } .auth-main { padding: 28px 16px 48px; } .card { padding: 24px 20px; }
  .legal { padding: 40px 16px 24px; } .legal h1 { font-size: 32px; }
  .nav .acts .btn.ghost { padding: 0 10px; }
  .nav .links { margin-inline-start: 4px; } .nav .links a { padding: 8px; }
}
/* small phones (iPhone SE / mini, 320-420): brand + two buttons in one row */
@media (max-width: 420px) {
  .nav .wrap { gap: 4px; } .nav .acts { gap: 4px; } .nav .acts .btn { padding: 0 12px; } .nav .acts .btn.ghost { padding: 0 8px; }
  .nav .links { margin-inline-start: 0; } .nav .links a { padding: 8px 6px; font-size: 13.5px; }
  .brand { font-size: 16px; gap: 7px; } .site .nav .brand .mark { width: 24px; height: 24px; }
}
/* phones up to 460px: the logo and name, the buttons and (landing) the language take the row, Pricing goes */
@media (max-width: 460px) { .nav .links { display: none; } }
@media (pointer: coarse) { .btn { min-height: 44px; } .nav .links a { min-height: 44px; display: inline-flex; align-items: center; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---- small helpers used by the pages */
.gap { margin-top: 20px; }
.alert a { color: inherit; font-weight: 600; }
.pricing-page { padding-top: 72px; padding-bottom: 96px; }
.pricing-page h1 { font-size: clamp(34px, 5vw, 56px); margin-top: 14px; }
.pricing-page .mkts { margin-top: 72px; }
@media (max-width: 700px) { .pricing-page { padding-top: 44px; padding-bottom: 64px; } .pricing-page .mkts { margin-top: 48px; } }
