/* Flowjar landing — shared styles. Plain CSS, no build step. */

:root {
  --bg: #FFFFFF;
  --surface: #F6F6F6;
  --surface-2: #EFEFEF;
  --line: #E7E7E7;
  --ink: #0A0A0A;
  --ink-2: #1D1D1F;
  --soft: #8C8C8C;        /* first headline line — 3.35:1 on white (large text) */
  --body: #6B6B6B;        /* body copy — 5.3:1 on white */
  --faint: #EDEDED;       /* decorative numerals */
  --green: #1E8E3E;       /* positive numbers (large) */
  --green-text: #1A7F37;  /* positive numbers (small text) */
  --orange: #F05A1A;      /* "Best value" dot only */
  --on-ink: #FFFFFF;
  --on-ink-muted: #A3A3A3;
  --on-ink-line: #262626;

  --maxw: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 28px;
  --section: clamp(88px, 11vw, 168px);

  --font: -apple-system, "SF Pro Display", "Inter", system-ui, sans-serif;
  --phone-shadow: 36px 56px 80px -34px rgba(0, 0, 0, .30), 0 24px 48px -24px rgba(0, 0, 0, .16);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

html.i18n-wait body { visibility: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.display, .h2, .h3 {
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-size: clamp(46px, 7.6vw, 108px);
  line-height: .98;
  letter-spacing: -0.058em;
}
.h2 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.052em;
}
.h2.sm { font-size: clamp(34px, 4.3vw, 60px); }
.h3 {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 650;
}
.display > span, .h2 > span { display: block; }
.soft { color: var(--soft); }
/* Non-English copy: diacritics, taller scripts and longer words need more room. */
html:not([lang="en"]) .display { line-height: 1.08; letter-spacing: -0.05em; }
html:not([lang="en"]) .h2 { line-height: 1.1; letter-spacing: -0.045em; }
/* Joined / stacked scripts (Arabic, Devanagari, Thai) must not be tracked. */
html:is([lang="ar"], [lang="hi"], [lang="th"]) * { letter-spacing: normal !important; }
html:is([lang="ar"], [lang="hi"], [lang="th"]) .display { line-height: 1.2; }
html:is([lang="ar"], [lang="hi"], [lang="th"]) .h2 { line-height: 1.22; }

.lead {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--body);
  text-wrap: pretty;
}
.body { color: var(--body); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--body);
}
.fine { font-size: 14px; color: var(--body); letter-spacing: -0.005em; }
.center { text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border-radius: 999px; border: 0;
  background: var(--ink); color: var(--on-ink);
  font-size: 16px; font-weight: 600; letter-spacing: -0.015em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #262626; }
.btn:active { transform: scale(.98); }
.btn .btn-icon { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-light { background: var(--on-ink); color: var(--ink); }
.btn-light:hover { background: #E9E9E9; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.015em;
  color: var(--ink); text-decoration: none;
  padding: 12px 6px;
}
.link-arrow span[aria-hidden] { display: inline-block; transition: transform .15s ease; }
.link-arrow:hover span[aria-hidden] { transform: translateX(3px); }
.arr { display: inline-block; }
[dir="rtl"] .link-arrow span[aria-hidden], [dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover span[aria-hidden] { transform: translateX(-3px) scaleX(-1); }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.03em;
  flex: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--body); text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }

/* Language picker: a pill showing the current language, with the native <select> laid over it. */
.lang {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding-inline: 12px 10px;
  border-radius: 999px; background: var(--surface);
  color: var(--body); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.lang:hover { background: var(--surface-2); color: var(--ink); }
.lang:focus-within { box-shadow: 0 0 0 2.5px var(--ink); }
.lang svg {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.lang .lang-chev { width: 14px; height: 14px; stroke-width: 2.4; opacity: .7; }
.lang-cur { color: var(--ink); }
.lang-name { display: none; }
@media (min-width: 560px) { .lang-name { display: inline; } .lang-short { display: none; } }
.lang select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; border: 0; margin: 0;
  -webkit-appearance: none; appearance: none;
  font-size: 16px; /* no zoom-on-focus in iOS Safari */
}

@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 400px) {
  .brand span { display: none; }
  .nav-right { gap: 8px; }
  .nav-right .btn-sm { padding: 0 14px; }
}

/* ---------- Phone frame ---------- */

.phone {
  --pw: 280px;
  position: relative;
  flex: none;
  width: var(--pw);
  padding: calc(var(--pw) * .03);
  border-radius: calc(var(--pw) * .165);
  background: #0B0B0B;
  box-shadow:
    inset 0 0 0 1.5px #3B3B3B,
    inset 0 0 0 4px #141414,
    var(--phone-shadow);
}
.phone img {
  width: 100%; height: auto;
  aspect-ratio: 1320 / 2868;
  object-fit: cover;
  border-radius: calc(var(--pw) * .137);
  background: #F2F2F2;
}
.phone::before { /* Dynamic Island */
  content: "";
  position: absolute; z-index: 1;
  top: calc(var(--pw) * .054);
  left: 50%; transform: translateX(-50%);
  width: calc(var(--pw) * .27);
  height: calc(var(--pw) * .078);
  border-radius: 999px;
  background: #000;
}
.phone::after { /* side button */
  content: "";
  position: absolute;
  right: -2px; top: 26%;
  width: 3px; height: 13%;
  border-radius: 0 3px 3px 0;
  background: #1E1E1E;
}

/* ---------- Hero ---------- */

.hero { padding-top: clamp(48px, 8vw, 110px); text-align: center; }
.hero-icon {
  width: clamp(72px, 7vw, 92px); height: auto; margin: 0 auto 28px;
  border-radius: 22.5%;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.35);
}
.hero .display { max-width: 12ch; margin-inline: auto; }
html:not([lang="en"]) .hero .display { max-width: 14ch; }
.hero .lead { max-width: 620px; margin: 28px auto 0; }
.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 18px; margin-top: 36px;
}
.hero .fine { margin-top: 18px; }

/* Store buttons: Google's Get it on Google Play badge (official artwork) next to the App Store button.
   The badge image carries its own clear space around the black badge, so it is drawn taller than a
   .btn and pulled in by that space to line up with it. */
.store-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 14px;
}
.play-badge {
  display: inline-flex; line-height: 0; border-radius: 12px;
  margin: calc(var(--badge-h) * -0.14) calc(var(--badge-h) * -0.1);
  --badge-h: 78px;
}
.play-badge img { height: var(--badge-h); width: auto; }
.play-badge:focus-visible { outline-offset: calc(var(--badge-h) * -0.12); }

.hero-stage {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 7vw, 96px);
  padding: 8px 0 clamp(72px, 9vw, 130px);
}
.hero-phones {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(14px, 2.1vw, 34px);
}
.hero-phones .phone { --pw: clamp(180px, 21vw, 310px); }
.hero-phones .p-side { --pw: clamp(160px, 18vw, 270px); margin-top: clamp(28px, 4vw, 56px); }
.hero-phones .p-outer { --pw: clamp(150px, 16.5vw, 250px); margin-top: clamp(56px, 8vw, 112px); }
@media (max-width: 700px) {
  .hero-phones .p-outer { display: none; }
  .hero-phones .phone { --pw: 212px; }
  .hero-phones .p-side { --pw: 176px; margin-top: 40px; }
}

/* ---------- Statement ---------- */

.statement { padding-block: var(--section) 0; text-align: center; }
.statement .h2 { max-width: 20ch; margin-inline: auto; }
html:not([lang="en"]) .statement .h2 { max-width: 23ch; }

/* ---------- How it works ---------- */

.how { padding-block: var(--section); }
.how-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 120px); align-items: center;
}
.how-media { display: flex; justify-content: center; }
.how-media .phone { --pw: clamp(230px, 24vw, 310px); }
.how-head .lead { margin-top: 22px; max-width: 480px; }
.steps { margin-top: 48px; display: grid; gap: 34px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start; }
.step-num {
  grid-row: span 2;
  font-size: clamp(64px, 6vw, 92px);
  line-height: .8;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  min-width: 1.35em;
}
.step .h3 { padding-top: 4px; }
.step p { color: var(--body); max-width: 440px; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-media { order: 2; }
}

/* ---------- Feature rows ---------- */

.features { padding-bottom: var(--section); }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px); align-items: center;
  padding-block: clamp(56px, 7vw, 96px);
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature-text .h2 { margin-top: 16px; }
.feature-text .lead { margin-top: 22px; max-width: 470px; }
.feature-media {
  position: relative; display: flex; justify-content: center;
  padding-block: 12px;
}
.feature-media .phone { --pw: clamp(230px, 24vw, 310px); }
.feature.flip .feature-media { order: -1; }

.ticks { margin-top: 28px; display: grid; gap: 12px; }
.ticks li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 16.5px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.015em;
}
.ticks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.tag-pro {
  display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px;
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .feature-media { order: 0; }
  .feature-media .phone { --pw: 250px; }
}

/* ---------- Extras ---------- */

.extras { padding-bottom: var(--section); }
.extras-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.tile {
  background: var(--surface); border-radius: 24px;
  padding: 28px 26px 30px;
}
.tile svg { width: 28px; height: 28px; color: var(--ink); }
.tile .h3 { margin-top: 22px; font-size: 19px; }
.tile p { margin-top: 8px; color: var(--body); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 900px) { .extras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .extras-grid { grid-template-columns: 1fr; } .tile { padding: 24px 22px; } }

/* ---------- Forecast explainer ---------- */

.forecast { padding-bottom: var(--section); }
.forecast-panel {
  background: var(--surface);
  border-radius: clamp(28px, 3vw, 40px);
  padding: clamp(28px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.forecast-text .h2 { margin-top: 16px; }
.forecast-text .lead { margin-top: 22px; }
.fc-points { margin-top: 30px; display: grid; gap: 16px; counter-reset: fc; }
.fc-points li {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start;
  color: var(--ink-2); font-weight: 500; letter-spacing: -0.015em;
}
.fc-points li::before {
  counter-increment: fc; content: counter(fc);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--bg); color: var(--ink);
  font-size: 13px; font-weight: 700;
}
.fc-note { margin-top: 26px; }

.chart-card {
  background: var(--bg);
  border-radius: 24px;
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -36px rgba(0,0,0,.25);
}
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.chart-title { font-weight: 650; font-size: 16px; letter-spacing: -0.02em; }
.chart-sub { font-size: 13.5px; color: var(--body); }
.chart-stat { text-align: end; }
.chart-stat .k { font-size: 13px; color: var(--body); }
.chart-stat .v {
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.chart-wrap { direction: ltr; position: relative; margin-top: 22px; touch-action: pan-y; border-radius: 12px; cursor: crosshair; }
.chart-wrap:focus-visible { outline-offset: 8px; }
.plot { position: relative; height: clamp(210px, 22vw, 290px); }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot .grid line { stroke: var(--surface-2); stroke-width: 1; }
.plot .base { stroke: #D4D4D4; stroke-width: 1; }
.plot .line { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.plot .payday { stroke: var(--soft); stroke-width: 1; stroke-dasharray: 3 4; }
.plot .cross { stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; opacity: 0; }
.chart-wrap.is-active .cross { opacity: 1; }
.c-dot, .cross-dot {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 999px; background: var(--ink);
  box-shadow: 0 0 0 2px var(--bg);
  pointer-events: none;
}
.c-dot.c-low { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 7px rgba(10,10,10,.08); }
.c-dot.c-pay { background: var(--green); }
.cross-dot { opacity: 0; z-index: 1; }
.chart-wrap.is-active .cross-dot { opacity: 1; }
.ann {
  position: absolute; display: grid; gap: 1px;
  pointer-events: none; white-space: nowrap;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.ann .k { font-size: 12px; font-weight: 600; color: var(--body); }
.ann .v { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ann .v.pos { color: var(--green-text); }
.ann-low { transform: translate(24px, -78%); }
.ann-pay { transform: translateX(calc(-100% - 12px)); text-align: right; }
.chart-wrap.is-active .ann { opacity: .25; transition: opacity .12s ease; }
.axis { position: relative; height: 18px; margin-top: 10px; font-size: 12px; font-weight: 500; color: var(--body); }
.axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.axis span:first-child { left: 0; transform: none; }
.axis span:last-child { right: 0; transform: none; }
.chart-tip {
  position: absolute; top: 0; left: 0; z-index: 2;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -110%);
  padding: 7px 11px; border-radius: 10px;
  background: var(--ink); color: var(--on-ink);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: opacity .12s ease;
}
.chart-tip .d { color: var(--on-ink-muted); font-weight: 500; margin-inline-end: 6px; }
.chart-wrap.is-active .chart-tip { opacity: 1; }
.chart-cap { margin-top: 14px; font-size: 13px; color: var(--body); }
@media (max-width: 900px) { .forecast-panel { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .chart-head { flex-direction: column; gap: 10px; }
  .chart-stat { text-align: start; }
}

/* ---------- Pricing ---------- */

.pricing { padding-bottom: var(--section); }
.pricing-head { text-align: center; }
.pricing-head .h2 { max-width: 16ch; margin: 16px auto 0; }
.pricing-head .lead { max-width: 560px; margin: 22px auto 0; }
.price-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) auto;
  gap: 18px; align-items: stretch;
}
.card {
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex; flex-direction: column;
}
.card-name { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--body); }
.card-price { margin-top: 10px; font-size: 54px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.card-price small { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--body); margin-inline-start: 6px; }
.card .ticks { margin-top: 26px; }
.card .ticks li { font-size: 15.5px; }
.card-foot { margin-top: auto; padding-top: 26px; font-size: 14px; color: var(--body); }

.card-pro { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.card-pro .card-name { color: var(--on-ink-muted); }
.card-pro .card-title { margin-top: 8px; font-size: 32px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.card-pro .ticks li { color: var(--on-ink); }
.card-pro .ticks svg { color: var(--on-ink); --check: var(--ink); }
.card-pro .card-foot { color: var(--on-ink-muted); }
.plus { margin-top: 8px; color: var(--on-ink-muted); font-size: 15px; }

.plans { margin-top: 26px; display: grid; gap: 10px; }
.plan {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border-radius: 18px;
  background: #161616; border: 1px solid var(--on-ink-line);
}
.plan.is-rec { border-color: #F2F2F2; background: #1B1B1B; }
.plan-name { font-weight: 650; font-size: 16px; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.plan-note { font-size: 13.5px; color: var(--on-ink-muted); margin-top: 2px; }
.plan-price { text-align: end; white-space: nowrap; }
.plan-price strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 13px; color: var(--on-ink-muted); }
.rec {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--on-ink);
  padding-block: 2px; padding-inline: 8px 9px; border-radius: 999px; background: #2A2A2A;
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--orange); display: inline-block; }

.price-media { display: flex; align-items: center; justify-content: center; padding-inline: 12px; }
.price-media .phone { --pw: 250px; }
.price-fine { max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 13.5px; color: var(--body); line-height: 1.6; }

@media (max-width: 1080px) {
  .price-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .price-media { display: none; }
}
@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
  .card-pro { order: -1; }
}

/* ---------- Privacy ---------- */

.privacy { padding-bottom: var(--section); }
.privacy-head { text-align: center; }
.privacy-head .h2 { max-width: 15ch; margin: 16px auto 0; }
html:not([lang="en"]) .privacy-head .h2 { max-width: 17ch; }
.privacy-head .lead { max-width: 580px; margin: 22px auto 0; }
.privacy-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.privacy-note {
  margin-top: 16px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  border: 1px solid var(--line); border-radius: 24px;
  padding: 24px 28px;
}
.privacy-note svg { width: 28px; height: 28px; }
.privacy-note .t { font-weight: 650; letter-spacing: -0.02em; }
.privacy-note p { color: var(--body); font-size: 15.5px; }
@media (max-width: 980px) { .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .privacy-note { grid-template-columns: 1fr; gap: 12px; padding: 24px 22px; }
}
@media (max-width: 420px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { padding-bottom: var(--section); }
.faq-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
.faq-head { position: sticky; top: 100px; }
.faq-head .lead { margin-top: 22px; }
.faq-head .lead a { color: var(--ink); font-weight: 600; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px;
  font-size: clamp(17px, 1.4vw, 19px); font-weight: 600; letter-spacing: -0.02em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none;
  width: 28px; height: 28px; border-radius: 999px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 1.75px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.75px 11px no-repeat,
    var(--surface);
  transition: transform .2s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa .ans { padding: 0 0 24px; padding-inline: 2px 44px; color: var(--body); }
.qa .ans p + p { margin-top: 10px; }
.qa .ans a { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .qa .ans { padding-inline-end: 8px; }
}

/* ---------- Final CTA ---------- */

.final { padding-bottom: var(--section); text-align: center; }
.final .hero-icon { margin-bottom: 30px; }
.final .h2 { max-width: 14ch; margin-inline: auto; }
.final .lead { max-width: 520px; margin: 22px auto 0; }
.final .fine { margin-top: 18px; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; }
.footer-brand p { margin-top: 14px; color: var(--body); font-size: 15px; max-width: 300px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 32px 56px; }
.fh { font-size: 13px; font-weight: 600; color: var(--body); margin-bottom: 12px; }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a { font-size: 14.5px; font-weight: 550; text-decoration: none; letter-spacing: -0.01em; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 13px; color: var(--body);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Legal / support pages ---------- */

.page-head { padding-top: clamp(48px, 8vw, 110px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head .h2 { margin-top: 16px; }
.page-head .lead { margin-top: 20px; max-width: 640px; }
.page-meta { margin-top: 18px; font-size: 14px; color: var(--body); }
.legal-note {
  margin-top: 14px; max-width: 640px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--surface); color: var(--body);
  font-size: 14px; line-height: 1.45;
}
.legal-note[hidden] { display: none; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(36px, 6vw, 96px); padding-bottom: var(--section); }
.doc-aside { position: sticky; top: 100px; align-self: start; }
.doc-aside .card { padding: 24px; border-radius: 22px; }
.doc-aside .t { font-weight: 650; letter-spacing: -0.02em; }
.doc-aside p { margin-top: 6px; color: var(--body); font-size: 14.5px; }
.doc-aside a { color: var(--ink); font-weight: 600; word-break: break-word; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .doc-aside { position: static; }
}

.summary {
  background: var(--surface); border-radius: 24px; padding: clamp(22px, 3vw, 32px);
  margin-bottom: 44px;
}
.summary .t { font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.summary ul { margin-top: 14px; display: grid; gap: 10px; }
.summary li { position: relative; padding-inline-start: 22px; color: var(--ink-2); }
.summary li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 999px; background: var(--ink);
}

.prose { max-width: 720px; color: var(--ink-2); }
.prose section + section { margin-top: 40px; }
.prose h2 { font-size: clamp(22px, 2vw, 26px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 12px; }
.prose h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; margin: 18px 0 6px; }
.prose p, .prose li { color: #3F3F3F; }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 10px; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-inline-start: 20px; }
.prose ul li::before {
  content: ""; position: absolute; inset-inline-start: 3px; top: .68em;
  width: 6px; height: 6px; border-radius: 999px; background: #9A9A9A;
}
.prose a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; word-break: break-word; }
.prose strong { color: var(--ink); font-weight: 650; }

.support-contact {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center;
  background: var(--ink); color: var(--on-ink);
  border-radius: var(--radius); padding: clamp(26px, 4vw, 48px);
}
.support-contact .k { color: var(--on-ink-muted); font-size: 15px; }
.support-contact .v { margin-top: 6px; font-size: clamp(24px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; word-break: break-word; }
.support-contact .v a { text-decoration: none; }
.support-contact .v a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.support-contact p.hint { margin-top: 12px; color: var(--on-ink-muted); font-size: 15px; max-width: 520px; }
.support-contact :focus-visible { outline-color: var(--on-ink); }
@media (max-width: 720px) { .support-contact { grid-template-columns: 1fr; } }

.faq-groups { padding-block: clamp(56px, 7vw, 96px) var(--section); display: grid; gap: clamp(48px, 6vw, 72px); }
.faq-group { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 24px clamp(32px, 5vw, 80px); }
.faq-group > h2 { font-size: clamp(22px, 2vw, 26px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; padding-top: 18px; }
@media (max-width: 860px) { .faq-group { grid-template-columns: 1fr; } .faq-group > h2 { padding-top: 0; } }

.nf { min-height: calc(100vh - 68px - 220px); display: grid; place-items: center; text-align: center; padding-block: 72px; }
.nf-num { font-size: clamp(120px, 22vw, 260px); font-weight: 800; letter-spacing: -0.07em; line-height: .8; color: var(--faint); }
.nf .h2 { margin-top: 12px; }
.nf .lead { margin: 20px auto 0; max-width: 460px; }
.nf .cta-row { margin-top: 32px; }

/* ---------- Roadmap ---------- */

.rm { padding-bottom: var(--section); }
.rm-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; margin-bottom: 24px;
}
.rm-bar .page-meta { margin-top: 0; }

/* Segmented view toggle (board / list); hidden until JS wires it up */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface); }
.seg[hidden] { display: none; }
.seg button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; cursor: pointer;
  height: 36px; padding: 0; padding-inline: 12px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--body);
}
.seg button svg { width: 16px; height: 16px; flex: none; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Board: three columns of cards */
.rm-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rm-col { background: var(--surface); border-radius: 24px; padding: 18px 12px 12px; }
.rm-head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center;
  padding: 2px 8px 16px;
}
.rm-st { width: 20px; height: 20px; color: var(--ink); }
.rm-h {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25;
}
.rm-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: var(--bg); color: var(--body);
  font-size: 12.5px; font-weight: 650; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.rm-sub { grid-column: 2; margin-top: 1px; font-size: 13.5px; color: var(--body); }

.rm-cards { display: grid; gap: 10px; }
.rm-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "ic . tag" "t t t" "d d d";
  align-items: center;
  padding: 16px 16px 18px; border-radius: 18px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 1px rgba(0,0,0,.035);
}
.rm-ic { grid-area: ic; width: 24px; height: 24px; color: var(--ink); }
.rm-t {
  grid-area: t; margin-top: 12px;
  font-size: 16px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; text-wrap: balance;
}
.rm-d { grid-area: d; margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.rm-tag {
  grid-area: tag; justify-self: end;
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--surface); color: #3F3F3F;
  font-size: 12px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.45; white-space: nowrap;
}
.rm-tag.is-pro { background: var(--ink); color: var(--on-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }

/* List: same data, grouped rows */
.rm-board[data-mode="list"] { grid-template-columns: 1fr; gap: clamp(40px, 5vw, 64px); }
.rm-board[data-mode="list"] .rm-col {
  display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 16px clamp(32px, 5vw, 80px);
  background: none; border-radius: 0; padding: 0;
}
.rm-board[data-mode="list"] .rm-head { align-self: start; padding: 14px 0 0; }
.rm-board[data-mode="list"] .rm-h { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.03em; }
.rm-board[data-mode="list"] .rm-st { width: 22px; height: 22px; }
.rm-board[data-mode="list"] .rm-count { background: var(--surface); }
.rm-board[data-mode="list"] .rm-cards { gap: 0; border-bottom: 1px solid var(--line); }
.rm-board[data-mode="list"] .rm-card {
  grid-template-areas: "ic t tag" "ic d tag"; column-gap: 14px; align-items: start;
  padding: 14px 0; border-radius: 0; background: none; box-shadow: none;
  border-top: 1px solid var(--line);
}
.rm-board[data-mode="list"] .rm-ic { width: 22px; height: 22px; margin-top: 1px; }
.rm-board[data-mode="list"] .rm-t { margin-top: 0; }
.rm-board[data-mode="list"] .rm-d { margin-top: 2px; }
.rm-board[data-mode="list"] .rm-tag { margin-top: 1px; }

@media (max-width: 960px) {
  .rm-board { grid-template-columns: 1fr; }
  .rm-board[data-mode="board"] .rm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rm-board[data-mode="list"] .rm-col { grid-template-columns: 1fr; }
  .rm-board[data-mode="list"] .rm-head { padding-top: 0; }
}
@media (max-width: 600px) {
  .rm-board[data-mode="board"] .rm-cards { grid-template-columns: 1fr; }
  .rm-col { padding: 16px 10px 10px; border-radius: 22px; }
  .rm-board[data-mode="list"] .rm-card { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic t" "ic d" "ic tag"; }
  .rm-board[data-mode="list"] .rm-tag { justify-self: start; margin-top: 8px; }
}

/* Footnote */
.rm-note {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px;
}
.rm-note svg { width: 28px; height: 28px; }
.rm-note p { color: var(--body); font-size: 15.5px; }
.rm-note .t { color: var(--ink); font-weight: 650; letter-spacing: -0.02em; margin-bottom: 2px; }
.rm-note p a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; word-break: break-word; }
@media (max-width: 720px) {
  .rm-note { grid-template-columns: 1fr; gap: 12px; padding: 24px 22px; }
}
