/* Offling website. Tokens from the app (app/src/theme/tokens.ts): cream, ink, lime (fills only), plum (links, focus).
   Light theme only. One self-hosted variable font (Plus Jakarta Sans, SIL OFL 1.1, see fonts/OFL.txt). No JS needed for layout. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-latin-wght.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
/* metric-matched fallback so the swap does not move the layout */
@font-face {
  font-family: "PJS Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 110.4%;
  ascent-override: 94%;
  descent-override: 20.1%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  --cream: #F7F5EE;
  --cream-deep: #ECE8DA;
  --ink: #15201B;
  --ink-soft: #3E4A44;
  --ink-muted: #5F6B65;
  --lime: #AFE66D;
  --lime-deep: #7DB83A;
  --lime-soft: #E4F4C8;
  --plum: #6F56B8;
  --plum-deep: #5B439F;
  --plum-soft: #ECE8F8;
  --white: #FFFFFF;
  --border: #D9D4C3;

  --font: "Plus Jakarta Sans", "PJS Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* fluid type scale; ratios follow app/src/theme/typography.ts (display 34/40, title 26/32, heading 20/26, body 17/24, caption 14/20) */
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);
  --fs-title: clamp(1.875rem, 1.45rem + 1.8vw, 2.75rem);
  --fs-heading: clamp(1.25rem, 1.18rem + 0.3vw, 1.4375rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --fs-caption: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --fs-number: clamp(1.375rem, 1rem + 1.1vw, 1.875rem);
  --lh-display: 1.12;
  --lh-title: 1.18;
  --lh-heading: 1.3;
  --lh-lead: 1.45;
  --lh-body: 1.5;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4.5vw, 32px);
  --maxw: 1160px;
  --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  word-spacing: 0.06em;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }

h1, h2, h3, h4 { text-wrap: balance; }
h1 { font-weight: 800; font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -0.03em; }
h2 { font-weight: 800; font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: -0.025em; }
h3 { font-weight: 700; font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: -0.015em; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -64px; z-index: 20; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
.soft { color: var(--ink-soft); }
.muted { color: var(--ink-muted); }
.caption { font-size: var(--fs-caption); line-height: 1.43; }
.nowrap { white-space: nowrap; }

/* ---------- header ---------- */
.site-header { padding-block: 12px; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; }
.nav-inline { display: none; align-items: center; gap: 4px; }
.nav-inline a, .menu nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  color: var(--ink); font-weight: 600; font-size: 0.96875rem; text-decoration: none; border-radius: var(--r-pill);
}
.nav-inline a:hover, .menu nav a:hover { background: rgba(21, 32, 27, 0.07); }
.nav-inline a[aria-current="page"], .menu nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lime-deep); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-inline .btn { min-height: 44px; padding: 8px 18px; font-size: 0.96875rem; margin-left: 8px; }

.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.96875rem; background: var(--cream);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-2px) rotate(45deg); }
.menu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 220px;
  display: grid; padding: 8px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -20px rgba(21, 32, 27, 0.35);
}
.menu nav a { border-radius: var(--r-md); justify-content: flex-start; }

@media (min-width: 880px) {
  .nav-inline { display: flex; }
  .menu { display: none; }
}

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px;
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  background: var(--lime); color: var(--ink);
  font: 700 1.0625rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease;
}
.btn:hover { background: #BFEF86; text-decoration: none; }
.btn:active { background: #A2DB5E; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--quiet { background: var(--cream); }
.btn--quiet:hover { background: var(--cream-deep); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill);
  background: var(--lime-soft); border: 1.5px solid var(--lime-deep);
  font-weight: 600; font-size: 0.9375rem; line-height: 1.3;
}
.chip::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2.5px solid var(--ink); }
.num-pill { display: inline-block; background: var(--lime); border-radius: var(--r-pill); padding: 0.04em 0.5em 0.1em; font-weight: 800; letter-spacing: -0.02em; }
.tag { display: inline-block; background: var(--plum-soft); color: var(--plum-deep); border-radius: var(--r-pill); padding: 2px 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(12px, 2.5vw, 32px) clamp(32px, 4vw, 56px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "text visual" "strip strip";
  gap: clamp(24px, 3vw, 40px) clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__text { grid-area: text; display: grid; justify-items: start; gap: 20px; }
.hero__lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-soft); max-width: 30em; }
.hero__cta { display: grid; gap: 12px; justify-items: start; margin-top: 4px; }
.hero__note { font-size: var(--fs-caption); line-height: 1.43; color: var(--ink-muted); max-width: 36em; }
.hero__visual { grid-area: visual; container-type: inline-size; }
.hero .steps { grid-area: strip; }

/* phones: a plain ink bezel; the screens are swappable files (same aspect ratio) */
.phone {
  margin: 0; background: var(--ink); overflow: hidden;
  border: 6px solid var(--ink); border-radius: 30px;
  box-shadow: 0 20px 36px -22px rgba(21, 32, 27, 0.5);
}
.phone img { width: 100%; height: auto; background: var(--white); }
.phones { display: flex; align-items: flex-end; justify-content: center; gap: 3cqw; }
.phones .phone { flex: none; border-width: max(3px, 1.1cqw); border-radius: max(16px, 4.6cqw); }
.phones .phone--side { width: 28cqw; }
.phones .phone--main { width: 38cqw; }
.hero__caption { margin-top: 16px; text-align: center; font-size: var(--fs-caption); color: var(--ink-muted); }

/* the three steps, as in the app's Welcome screen */
.steps { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(0, 1.2fr); background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg); }
.step { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.step + .step { border-left: 1.5px solid var(--border); }
.step__n {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--plum-soft); color: var(--plum-deep); font-weight: 800; font-size: 1.125rem;
}
.step__label { font-size: var(--fs-caption); line-height: 1.3; color: var(--ink-soft); }
.step__value { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; font-size: var(--fs-number); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.step__tag { font-size: 0.8125rem; letter-spacing: 0; font-weight: 700; background: var(--lime); border-radius: var(--r-pill); padding: 4px 11px; line-height: 1.2; }

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "strip" "visual"; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step + .step { border-left: 0; border-top: 1.5px solid var(--border); }
  .step { padding: 14px 18px; }
  .phones .phone--side { display: none; }
  .phones .phone--main { width: min(100%, 250px); border-width: 6px; border-radius: 30px; }
}
@media (max-width: 479px) {
  .hero__cta .btn { width: 100%; }
  .chip { font-size: 0.8125rem; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--cream-deep); }
.section__head { display: grid; gap: 14px; max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.section__lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-soft); }

/* how it works */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 40px); }
.how__step { display: grid; gap: 18px; align-content: start; }
.how__step .phone { width: min(100%, 240px); border-width: 5px; border-radius: 26px; }
.how__kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-weight: 800; font-size: var(--fs-heading); line-height: 1.2; letter-spacing: -0.015em; }
.how__kicker .step__n { width: 36px; height: 36px; font-size: 1rem; }
.how__text { color: var(--ink-soft); }
.how__text strong { color: var(--ink); }

.video { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 16px; max-width: 880px; }
.video__slot { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); border: 1.5px solid var(--border); background: var(--ink); }
.video__slot video { display: block; width: 100%; height: 100%; border-radius: calc(var(--r-lg) - 1.5px); object-fit: contain; background: var(--ink); }
.video .caption { color: var(--ink-soft); }

@media (max-width: 899px) {
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .how { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .how__step { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: 16px; align-items: start; }
  .how__step .phone { width: 100%; max-width: 190px; }
}

/* rules + limits: open lists with rules between, not cards */
.list2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.item { padding: 20px 0 22px; border-top: 1.5px solid var(--border); display: grid; gap: 6px; align-content: start; }
.section--tint .item { border-top-color: #CFC9B4; }
.item p { color: var(--ink-soft); }
.rules__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rules__mascot { flex: none; width: clamp(88px, 14vw, 160px); height: auto; margin-bottom: clamp(28px, 4vw, 48px); }
.limits-note { margin-top: clamp(24px, 3vw, 40px); max-width: 44em; color: var(--ink-soft); }
@media (max-width: 719px) { .list2 { grid-template-columns: minmax(0, 1fr); } }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(32px, 5vw, 72px); }
.plan { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 14px; align-content: start; }
.plan__name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 800; font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: -0.025em; }
.ticks li { position: relative; padding: 6px 0 6px 32px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(0.75em + 5px); width: 8px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.plan--soon .ticks li::before { background: var(--plum-soft); border-color: var(--plum-deep); }
.plan--soon .ticks li::after { border-color: var(--plum-deep); }
.plan__fine { font-size: var(--fs-caption); color: var(--ink-soft); }
@media (max-width: 719px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* privacy summary */
.bullets li { position: relative; padding: 8px 0 8px 26px; }
.bullets li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 9px; height: 9px; border-radius: 50%; background: var(--lime-deep); }
.privacy-sum { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.privacy-sum .section__head { margin-bottom: 0; }
@media (max-width: 899px) { .privacy-sum { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 800px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1.5px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 14px 0; font-weight: 700; font-size: var(--fs-heading); line-height: var(--lh-heading); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2.5px 12px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat, var(--lime); }
.faq summary:hover { color: var(--plum); }
.faq__a { padding: 0 0 22px; max-width: 42em; color: var(--ink-soft); display: grid; gap: 12px; }
.faq__a strong { color: var(--ink); }

/* closing CTA */
.closing { background: var(--cream-deep); border-radius: var(--r-lg); padding: clamp(28px, 5vw, 56px); display: grid; gap: 18px; justify-items: start; }
.closing p { color: var(--ink-soft); max-width: 36em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1.5px solid var(--border); padding-block: 40px 56px; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-soft); }
.site-footer .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; }
.site-footer .brand { margin-bottom: 8px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px 8px 0; font-weight: 600; color: var(--ink); }
.site-footer p + p { margin-top: 8px; }
@media (max-width: 719px) { .site-footer .cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- text pages (company, support, privacy, terms, 404) ---------- */
.page { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.page h1 { font-size: clamp(2.125rem, 1.7rem + 2vw, 3.25rem); margin-bottom: 16px; }
.page .lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-soft); }
.page .lead + .prose { margin-top: 24px; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); margin-top: 48px; line-height: var(--lh-title); }
.prose h2 + * { margin-top: 12px; }
.prose h3 { margin-top: 28px; }
.prose ul { display: grid; gap: 8px; }
.prose ul > li { position: relative; padding-left: 24px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); }
.prose ol { display: grid; gap: 14px; counter-reset: n; }
.prose ol > li { position: relative; padding-left: 48px; counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--plum-soft); color: var(--plum-deep); font-weight: 800; display: grid; place-items: center; font-size: 0.95rem; }
.notice { background: var(--lime-soft); border: 1.5px solid var(--lime-deep); border-radius: var(--r-md); padding: 12px 16px; font-weight: 600; }
.facts { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 0 24px; }
.facts dt { font-weight: 700; }
.facts dd { color: var(--ink-soft); }
.facts dt, .facts dd { padding-block: 12px; border-top: 1.5px solid var(--border); }
@media (max-width: 559px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { border-top: 0; padding-top: 2px; }
}

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-caption); line-height: 1.5; background: var(--white); border: 1.5px solid var(--border); }
.table th { text-align: left; background: var(--cream-deep); font-weight: 700; padding: 12px 14px; }
.table td { padding: 12px 14px; vertical-align: top; border-top: 1.5px solid var(--border); }
@media (max-width: 719px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tr { border-top: 1.5px solid var(--border); padding: 6px 0; }
  .table tr:first-child { border-top: 0; }
  .table td { border-top: 0; padding: 6px 14px; }
  .table td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 0.8125rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.04em; }
}

.notfound { text-align: center; display: grid; justify-items: center; gap: 16px; }
.notfound img { width: 160px; height: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation: none !important; }
}
@media print {
  .site-header, .menu, .skip, .closing .btn { display: none; }
  body { background: #fff; }
}
