/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/NunitoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/NunitoSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/NunitoSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/NunitoSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/PlayfairDisplay-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens */

:root {
  --teal-900: #0B4A40;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #1EA596;
  --teal-400: #2DD4BF;
  --teal-100: #CCFBF1;

  /* Neutrals with a green bias, so they sit under the teal rather than
     fighting it. A pure grey next to this palette reads as unconsidered. */
  --ink: #14211E;
  --ink-2: #4A5B56;
  --ink-3: #78877F;
  --paper: #FBFCFB;
  --paper-2: #F1F5F3;
  --rule: #DFE7E3;

  /* Headline accents. --accent-1 is the brand teal Jerone named; --accent-2 is
     the ink from the app's own "Warm Sand" affirmation colourway, so the warm
     variant is a colour the product already owns rather than an invention. */
  --accent-1: #098386;
  --accent-2: #7A5A34;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 74, 64, .04), 0 8px 24px rgba(11, 74, 64, .06);
  --shadow-lg: 0 2px 4px rgba(11, 74, 64, .05), 0 18px 48px rgba(11, 74, 64, .10);

  --wrap: 1120px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ----------------------------------------------------------------- base */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--teal-700); text-underline-offset: 2px; }
a:hover { color: var(--teal-600); }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

h1, h2, h3, h4 { text-wrap: balance; margin: 0; }

.skip {
  position: absolute; left: -9999px;
  background: var(--teal-900); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; color: #fff; }

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 251, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink); flex: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand span {
  font-family: var(--serif); font-weight: 500;
  font-size: 21px; letter-spacing: .06em;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-2);
  font-weight: 600; font-size: 15.5px;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--teal-700); }

/* The nav's Get Started button.
   `.nav-links a` is specificity 0,1,1 and `.btn-primary` only 0,1,0, so the
   link colour above was winning and painting the label var(--ink-2) on a
   teal-700 pill — near-invisible. Matching the element as well puts the button
   back in charge of its own text. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #fff; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-size: 15.5px; padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid transparent; transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--teal-700); color: #fff; }
.btn-primary:hover { background: var(--teal-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.10); }
.btn-light { background: #fff; color: var(--teal-900); }
.btn-light:hover { color: var(--teal-900); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 15px 30px; font-size: 17px; }

/* Mobile nav: a details/summary disclosure, so it works with no JS at all. */
.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; padding: 8px;
  border: 1.5px solid var(--rule); border-radius: 10px; color: var(--ink-2);
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 24px; left: 24px; margin-top: 12px;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; display: grid; gap: 2px;
}
.menu-panel a {
  text-decoration: none; color: var(--ink); font-weight: 600;
  padding: 12px 14px; border-radius: 10px;
}
.menu-panel a:hover { background: var(--paper-2); }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(180,255,240,.22) 0%, rgba(180,255,240,0) 55%),
    linear-gradient(140deg, #128B7E 0%, #0C6270 55%, #0A3A54 100%);
}
.hero-inner { padding: 84px 0 92px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .17em;
  font-size: 12px; font-weight: 700; color: var(--teal-100); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6vw, 66px); line-height: 1.04;
  letter-spacing: -.015em; margin: 0 0 22px; white-space: pre-line;
}
.hero p.lede { font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.90); margin: 0 0 30px; max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note {
  font-size: 13.5px; color: rgba(255,255,255,.72);
  border-left: 2px solid rgba(255,255,255,.28); padding-left: 14px; max-width: 46ch;
}
.hero-mark { display: flex; justify-content: center; }
.hero-mark img {
  width: min(300px, 74%); border-radius: 26%;
  box-shadow: 0 30px 70px rgba(4, 40, 46, .42);
}

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.16); border-top: 1px solid rgba(255,255,255,.16);
}
.hero-stats div { background: transparent; padding: 22px 24px; }
.hero-stats dt { font-weight: 800; font-size: 15.5px; margin: 0 0 3px; }
.hero-stats dd { margin: 0; font-size: 14px; color: rgba(255,255,255,.74); }

/* -------------------------------------------------------------- section */

section { padding: 84px 0; }
section.tight { padding: 60px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.8vw, 40px); line-height: 1.14;
  letter-spacing: -.01em; margin: 0 0 14px;
}
.section-head p { font-size: 18px; color: var(--ink-2); margin: 0; }
.alt { background: var(--paper-2); }

/* ---------------------------------------------------------------- cards */

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; font-weight: 800; margin: 0 0 10px; letter-spacing: -.005em; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  background: var(--teal-100); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- steps */

.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-n {
  counter-increment: step;
  font-family: var(--serif); font-size: 30px; color: var(--teal-600);
  line-height: 1; padding-top: 4px;
}
.step-n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-2); }

/* --------------------------------------------------------------- tables */

.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
thead th {
  text-align: left; background: var(--paper-2); color: var(--ink-2);
  font-size: 12px; text-transform: uppercase; letter-spacing: .09em;
  font-weight: 700; padding: 14px 18px; border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.name { font-weight: 700; white-space: nowrap; }

/* --------------------------------------------------------------- prices */

.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow); position: relative;
}
.plan.featured { border-color: var(--teal-500); box-shadow: var(--shadow-lg); }
.plan .tag {
  position: absolute; top: -12px; left: 32px;
  background: var(--teal-700); color: #fff; font-size: 11.5px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.plan h3 { font-family: var(--serif); font-weight: 500; font-size: 27px; margin: 0 0 6px; }
.plan .summary { color: var(--ink-2); margin: 0 0 22px; font-size: 16px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price .amount { font-size: 42px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--ink-3); font-weight: 600; }
.price-alt { color: var(--ink-2); font-size: 15px; margin: 0 0 22px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 9px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: 16px; }
.plan li svg { width: 17px; height: 17px; color: var(--teal-600); margin-top: 5px; }

/* ------------------------------------------------------------- callouts */

.callout {
  border: 1px solid var(--rule); border-left: 3px solid var(--teal-600);
  background: #fff; border-radius: var(--radius); padding: 22px 26px;
}
.callout.warn { border-left-color: #A3402F; background: #FEF7F5; }
.callout p { margin: 0; }
.callout p + p { margin-top: 12px; }

.bullets { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.bullets li svg { width: 18px; height: 18px; color: var(--teal-600); margin-top: 5px; }

/* ------------------------------------------------------------------ faq */

.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0;
  font-weight: 700; font-size: 18px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 6px; top: 20px;
  font-size: 24px; font-weight: 400; color: var(--teal-600); line-height: 1;
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item .answer { padding: 0 40px 24px 0; color: var(--ink-2); margin: 0; }

/* ----------------------------------------------------------------- legal
   Long-form documents. Narrower measure than the marketing pages, because
   these are read rather than scanned. */

.doc { max-width: 74ch; }
.doc-head { border-bottom: 2px solid var(--ink); padding-bottom: 24px; margin-bottom: 12px; }
.doc-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5vw, 46px); line-height: 1.08; margin: 0 0 14px; }
.doc-head p { color: var(--ink-2); margin: 0 0 10px; font-size: 18px; }
.doc-head .effective { font-size: 14px; color: var(--ink-3); margin: 0; }
.doc h2 {
  font-family: var(--serif); font-weight: 500; font-size: 27px;
  margin: 46px 0 16px; padding-top: 8px;
}
.doc h3 { font-size: 17px; font-weight: 800; margin: 28px 0 10px; }
.doc p { margin: 0 0 15px; }
.doc ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 11px; }
.doc ul li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.doc ul li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); margin-top: 11px; margin-left: 6px; }
.doc ul li b { font-weight: 800; }
.doc .callout { margin: 0 0 20px; }
.toc {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 22px 26px; margin: 28px 0 40px;
}
.toc h2 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 12px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 15.5px; }

/* ------------------------------------------------------------------ cta */

.cta { background: var(--teal-900); color: #fff; }
.cta .wrap { padding-top: 76px; padding-bottom: 76px; text-align: center; }
.cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; }
.cta p { color: rgba(255,255,255,.80); font-size: 18px; margin: 0 auto 28px; max-width: 52ch; }

/* --------------------------------------------------------------- footer */

.footer { background: #08322C; color: rgba(255,255,255,.72); font-size: 15px; }
.footer .wrap { padding-top: 56px; padding-bottom: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand span { color: #fff; }
.footer p { margin: 14px 0 0; max-width: 40ch; }
.footer h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.55); }
.footer-disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 22px; font-size: 13.5px; color: rgba(255,255,255,.60); max-width: 78ch; }

/* -------------------------------------------------------------- carousel

   A paywall-style deck: one white card at a time, its neighbours peeking at
   both edges, headline on top and the phone running off the bottom of the card
   so the device reads as continuing past it.

   Still CSS scroll-snap, so the swipe is the browser's own, it has native
   momentum on a phone, and the page works with JavaScript off. The script only
   adds the arrows, the dots and the auto-advance. */

.demo-shell {
  /* Held to phone-ish width even on a desktop: the deck is a phone artefact,
     and letting it sprawl to 1120px would lose the peek entirely. */
  --shell: min(560px, 100vw);
  --peek: 40px;
  --gap: 16px;
  max-width: var(--shell);
  margin: 0 auto;
}

.demo-strip {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 10px var(--peek) 4px;
  scroll-padding-inline: var(--peek);
}
.demo-strip::-webkit-scrollbar { display: none; }

.demo-slide {
  /* Neighbour shows (peek - gap) = 24px on each side. */
  flex: 0 0 calc(var(--shell) - (var(--peek) * 2));
  scroll-snap-align: center;
}

/* The card. Fixed height on purpose — it is what crops the phone at a
   consistent point on every slide, so the deck does not jump as it advances. */
.demo-card {
  position: relative;
  height: 560px;
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(11, 74, 64, .05),
    0 10px 28px rgba(11, 74, 64, .09),
    0 30px 60px rgba(11, 74, 64, .07);
  overflow: hidden;
  padding: 34px 26px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-card h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(26px, 5.4vw, 31px);
  line-height: 1.16;
  letter-spacing: -.02em;
  color: #101A18;
  text-align: center;
  text-wrap: balance;
  margin: 0;
  max-width: 15ch;
  flex: none;
}
.demo-card h3 .accent { color: var(--accent-1); }
.demo-card h3 .accent-warm { color: var(--accent-2); }

/* The device. Sits below the headline and simply runs past the card's bottom
   edge, which `overflow: hidden` on the card then cuts. */
.demo-device {
  position: relative;
  width: 232px;
  flex: none;
  margin-top: 26px;
  padding: 9px 9px 0;
  border-radius: 36px 36px 0 0;
  background: linear-gradient(165deg, #223330 0%, #0C1615 100%);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, .09) inset,
    0 -1px 0 rgba(0, 0, 0, .3) inset,
    0 18px 34px rgba(8, 40, 36, .26);
}
.demo-device::after {
  /* The notch. */
  content: '';
  position: absolute;
  top: 19px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 20px; border-radius: 99px;
  background: #0C1615;
  z-index: 2;
}
.demo-device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px 28px 0 0;
  background: var(--paper-2);
}

/* Controls. Hidden until the script runs — without JS the deck is still
   swipeable, and a dead arrow would be worse than none. */
.demo-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}
.demo-controls[data-ready] { display: flex; }
.demo-btn {
  width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--rule);
  background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .12s ease, transform .12s ease;
}
.demo-btn:hover:not(:disabled) { border-color: var(--accent-1); transform: translateY(-1px); }
.demo-btn:disabled { opacity: .3; cursor: default; }
.demo-btn svg { width: 19px; height: 19px; }

.demo-dots { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; max-width: 220px; }
.demo-dot {
  width: 8px; height: 8px; padding: 0; border-radius: 50%;
  border: 0; background: #CFDBD6; cursor: pointer;
  transition: background .15s ease, width .15s ease;
}
.demo-dot[aria-current='true'] { background: var(--accent-1); width: 22px; border-radius: 99px; }

/* A "See it in action" strip on the landing page. */
.demo-teaser {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 34px;
}
.demo-teaser .phone {
  position: relative;
  padding: 7px; border-radius: 26px;
  background: linear-gradient(160deg, #1B2B28 0%, #0B1614 100%);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.10) inset, 0 18px 40px rgba(11,74,64,.22);
}
.demo-teaser .phone img { display: block; width: 100%; height: auto; border-radius: 20px; }

@media (max-width: 900px) {
  .demo-teaser { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 430px) {
  .demo-shell { --peek: 30px; --gap: 12px; }
  .demo-card { height: 500px; padding: 28px 20px 0; }
  .demo-device { width: 200px; margin-top: 20px; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 68px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: 168px; }
  .grid-3, .grid-2, .price-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .menu { display: block; }
  section { padding: 60px 0; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .card, .plan { padding: 22px; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .step-n { font-size: 23px; }
}

@media print {
  .nav, .cta, .footer-bottom, .menu { display: none; }
  body { font-size: 12pt; }
}
