/*
 * heylisto.app — one stylesheet for every page.
 *
 * Colors mirror src/theme/tokens.ts and docs/BRANDING.md so the site, the app
 * and the icon read as one product. The page follows the device's light/dark
 * setting, the same default the app ships with.
 *
 * No inline styles anywhere: the Content-Security-Policy in _headers allows
 * stylesheets from this origin only.
 */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('../fonts/nunito-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url('../fonts/nunito-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  /* Brand (fixed in both themes) */
  --tile-from: #0a5fd8;
  --tile-to: #03348c;
  --navy: #0743a0;
  --brand-ink: #0b2f75;
  --mint: #0be0a4;
  --mint-deep: #00b58c;

  /* Surfaces & text — light */
  --bg: #f7f6fa;
  --bg-alt: #f0eef7;
  --surface: #ffffff;
  --border: #e5e1ee;
  --ink: #15131b;
  --muted: #5f5a6b;
  --primary: #0a55c9;
  --primary-pressed: #08449f;
  --primary-soft: #e6effd;
  --accent: var(--mint-deep);
  --accent-soft: #dcf7ef;
  --wordmark: var(--brand-ink);
  --success: #2f8f6b;

  --shadow-sm: 0 1px 2px rgb(21 19 27 / 0.06), 0 1px 1px rgb(21 19 27 / 0.04);
  --shadow-md: 0 8px 24px -8px rgb(21 19 27 / 0.12), 0 2px 6px rgb(21 19 27 / 0.05);
  --shadow-lg: 0 32px 64px -24px rgb(3 52 140 / 0.35), 0 12px 24px -12px rgb(21 19 27 / 0.18);

  /* Layout */
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
  --max-prose: 72ch;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-h: 64px;

  /* Type */
  --font:
    'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.75vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 4.1rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121116;
    --bg-alt: #17151c;
    --surface: #1c1a22;
    --border: #35313e;
    --ink: #f7f5fa;
    --muted: #aca6b8;
    --primary: #3f84f2;
    --primary-pressed: #5b97f5;
    --primary-soft: #17263f;
    --accent: var(--mint);
    --accent-soft: #0f2f28;
    --wordmark: #ffffff;
    --success: #49b187;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 8px 24px -8px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 32px 64px -24px rgb(0 0 0 / 0.7), 0 12px 24px -12px rgb(0 0 0 / 0.5);
  }
}

/* ---------- Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main {
  flex: 1;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 850;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-pressed);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: color-mix(in srgb, var(--mint) 45%, transparent);
}

.visually-hidden {
  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-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wordmark);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
  border-radius: 10px;
}

.brand:hover {
  color: var(--wordmark);
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.nav-list a:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.nav-list a[aria-current='page'] {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--bg-alt);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-panel.is-open {
    display: block;
    animation: drop-in 0.22s var(--ease-out);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    padding: 14px 16px;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
  }

  .nav-panel .btn {
    width: 100%;
    margin-top: 12px;
  }

  /* The panel is a sibling of the header bar: keep the page from scrolling under it. */
  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 861px) {
  .nav-panel {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease-out),
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 70%, transparent);
}

.btn-primary:hover {
  background: var(--primary-pressed);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.btn-light {
  background: #fff;
  color: var(--tile-to);
}

.btn-light:hover {
  background: #eef4ff;
  color: var(--tile-to);
}

.btn-outline-light {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  border-color: rgb(255 255 255 / 0.35);
}

.btn-outline-light:hover {
  background: rgb(255 255 255 / 0.16);
  color: #fff;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 1.06rem;
}

/* ---------- Shared section scaffolding ---------- */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  font-size: var(--step-3);
}

.lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.pill-pro {
  background: linear-gradient(135deg, var(--tile-from), var(--tile-to));
  color: #fff;
}

.pill-soon {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (prefers-color-scheme: light) {
  .pill-soon {
    color: #007a5e;
  }
}

/* Scroll-driven reveal. Pure CSS, so nothing is ever hidden while waiting on a
   script; browsers without scroll timelines simply show the content. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 70% at 85% 10%, rgb(11 224 164 / 0.28), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgb(63 132 242 / 0.45), transparent 60%),
    linear-gradient(165deg, var(--tile-from) 0%, #0749b5 45%, var(--tile-to) 100%);
}

.hero::before {
  /* Faint list-paper rules behind everything. */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 100% 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
}

.hero-copy {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-badge span {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: #03348c;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero h1 .accent {
  color: var(--mint);
}

@media (min-width: 901px) {
  .hero h1 .accent {
    display: block;
  }
}

.hero-sub {
  margin-top: 22px;
  max-width: 34em;
  color: rgb(255 255 255 / 0.86);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero-es {
  margin-top: 10px;
  color: rgb(255 255 255 / 0.62);
  font-weight: 700;
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.28);
  border: 1px solid rgb(255 255 255 / 0.2);
  color: #fff;
  line-height: 1.15;
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store-badge small {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-badge strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .hero-copy {
    margin-inline: auto;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-actions,
  .store-row {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Phone mockup ---------- */

.phone {
  --phone-w: min(320px, 78vw);
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 9 / 19;
  padding: 12px;
  border-radius: calc(var(--phone-w) * 0.16);
  background: linear-gradient(145deg, #2a2733, #0d0c11);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1.5px rgb(255 255 255 / 0.12),
    0 0 0 1px rgb(0 0 0 / 0.4);
}

.phone-wrap {
  position: relative;
}

.phone-screen {
  position: relative;
  text-align: left;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--phone-w) * 0.13);
  background: #f7f6fa;
  color: #15131b;
  font-size: calc(var(--phone-w) * 0.042);
  line-height: 1.35;
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 32%;
  height: 4.2%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0d0c11;
}

.app-bar {
  padding: 15% 7% 4%;
}

.app-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6f6a7a;
  font-weight: 700;
  font-size: 0.82em;
}

.app-crumb .space-dot {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 6px;
  background: #e8f7f1;
  font-size: 0.95em;
}

.app-title {
  margin-top: 4px;
  font-size: 1.55em;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.app-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #6f6a7a;
  font-weight: 700;
  font-size: 0.78em;
}

.app-progress .bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #e5e1ee;
  overflow: hidden;
}

.app-progress .bar i {
  display: block;
  height: 100%;
  width: 43%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint-deep), var(--mint));
}

.app-list {
  margin: 0;
  padding: 0 5%;
  list-style: none;
}

.aisle {
  margin: 0.9em 0 0.35em 2%;
  color: #6f6a7a;
  font-size: 0.68em;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.item {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.4em;
  padding: 0.62em 0.75em;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(21 19 27 / 0.06);
  font-weight: 700;
}

.item .box {
  position: relative;
  flex: none;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  border: 2px solid #cfc9da;
}

.item .box::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--mint-deep)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 70% no-repeat;
  transform: scale(0);
}

.item .label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.item .qty {
  color: #6f6a7a;
  font-size: 0.82em;
  font-weight: 800;
}

.item.done .box::after {
  transform: scale(1);
}

.item.done .label {
  color: #9d97a8;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

/* The animated items check themselves off in turn, then reset. */
@media (prefers-reduced-motion: no-preference) {
  .item.anim .box::after {
    animation: check-box 9s var(--ease-out) infinite;
    animation-delay: var(--d, 0s);
  }

  .item.anim .label {
    text-decoration: line-through 2px transparent;
    animation: check-label 9s ease infinite;
    animation-delay: var(--d, 0s);
  }

  .item.anim:nth-of-type(1) {
    --d: 0.6s;
  }
  .item.anim:nth-of-type(2) {
    --d: 1.6s;
  }
  .item.anim:nth-of-type(3) {
    --d: 2.6s;
  }

  .app-progress .bar i {
    animation: progress 9s var(--ease-out) infinite 0.6s;
  }
}

@keyframes check-box {
  0%,
  4% {
    transform: scale(0);
  }
  9% {
    transform: scale(1.18);
  }
  12%,
  86% {
    transform: scale(1);
  }
  92%,
  100% {
    transform: scale(0);
  }
}

@keyframes check-label {
  0%,
  6% {
    color: inherit;
    text-decoration-color: transparent;
  }
  12%,
  86% {
    color: #9d97a8;
    text-decoration-color: #9d97a8;
  }
  92%,
  100% {
    color: inherit;
    text-decoration-color: transparent;
  }
}

@keyframes progress {
  0% {
    width: 14%;
  }
  12% {
    width: 28%;
  }
  23% {
    width: 43%;
  }
  34%,
  86% {
    width: 57%;
  }
  95%,
  100% {
    width: 14%;
  }
}

.app-fab {
  position: absolute;
  right: 7%;
  bottom: 4.5%;
  display: grid;
  place-items: center;
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--tile-from), var(--tile-to));
  box-shadow: 0 10px 22px -8px rgb(3 52 140 / 0.7);
  color: #fff;
}

.app-fab svg {
  width: 45%;
  height: 45%;
}

@media (prefers-reduced-motion: no-preference) {
  .app-fab::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--mint);
    animation: pulse 2.4s ease-out infinite;
  }
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 250px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.96);
  color: #15131b;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.45);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.float-card .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: #0a55c9;
}

.float-card .ic svg {
  width: 18px;
  height: 18px;
}

.float-card .ic.mint {
  background: #dcf7ef;
  color: #00805f;
}

.float-card small {
  display: block;
  color: #6f6a7a;
  font-size: 0.76rem;
  font-weight: 700;
}

.float-voice {
  bottom: 5%;
  left: -36%;
}

.float-aisle {
  top: 3%;
  right: -30%;
}

@media (prefers-reduced-motion: no-preference) {
  .float-voice {
    animation: bob 6s ease-in-out infinite;
  }
  .float-aisle {
    animation: bob 6s ease-in-out infinite 3s;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* On a phone there is no room beside the mockup, and over it they hide the list. */
@media (max-width: 600px) {
  .float-card {
    display: none;
  }
}

/* ---------- Trust strip ---------- */

.trust {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
  margin: 0;
  padding: 22px 0;
  list-style: none;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.97rem;
}

@media (max-width: 600px) {
  .trust ul {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 14px 24px;
  }

  .trust li {
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .trust ul {
    grid-template-columns: max-content;
  }
}

.trust svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--tile-from), var(--tile-to));
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
}

.step h3 {
  font-size: var(--step-2);
}

.step h3 .es {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.6em;
  font-weight: 800;
  letter-spacing: 0;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

.feature-icon.mint {
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

.feature p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Split (bilingual, privacy) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.checklist li::before {
  content: '';
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 62% no-repeat;
}

.checklist strong {
  display: block;
  font-weight: 850;
}

.checklist span {
  color: var(--muted);
}

.lang-cards {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.lang-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.lang-card:nth-child(2) {
  transform: translateY(28px);
}

.lang-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.lang-card h3 {
  font-size: 1.15rem;
}

.lang-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.lang-card ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-card li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-weight: 700;
}

.lang-card li:last-child {
  border-bottom: 0;
}

.lang-card li small {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .lang-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .lang-card:nth-child(2) {
    transform: none;
  }
}

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

.privacy-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(50% 80% at 100% 0%, rgb(11 224 164 / 0.18), transparent 60%),
    linear-gradient(160deg, #0b2f75, #071a45);
}

.privacy-band .eyebrow {
  color: var(--mint);
}

.privacy-band .lede {
  color: rgb(255 255 255 / 0.78);
}

.privacy-band a:not(.btn) {
  color: var(--mint);
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.privacy-point {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
}

.privacy-point svg {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  color: var(--mint);
}

.privacy-point h3 {
  font-size: 1.08rem;
}

.privacy-point p {
  margin-top: 6px;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .privacy-points {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}

.plan-pro {
  position: relative;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(160deg, var(--tile-from), var(--mint)) border-box;
  box-shadow: var(--shadow-lg);
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--step-2);
}

.plan-price {
  margin-top: 10px;
  font-size: var(--step-3);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-price small {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.plan-desc {
  margin-top: 8px;
  color: var(--muted);
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.plan li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  font-weight: 650;
}

.plan li::before {
  content: '';
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300b58c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 64% no-repeat;
}

.plan-note {
  margin-top: 24px;
  color: var(--muted);
  font-size: var(--step--1);
  text-align: center;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.faq {
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-weight: 800;
  font-size: var(--step-1);
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--bg-alt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a7a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 55% no-repeat;
  transition: transform 0.25s var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--primary);
}

.faq .answer {
  padding: 0 0 24px;
  color: var(--muted);
}

.faq .answer p + p {
  margin-top: 12px;
}

/* ---------- CTA band ---------- */

.cta {
  padding-block: clamp(48px, 7vw, 88px);
}

.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(11 224 164 / 0.3), transparent 60%),
    linear-gradient(160deg, var(--tile-from), var(--tile-to));
  box-shadow: var(--shadow-lg);
}

.cta-card img {
  width: clamp(72px, 10vw, 104px);
  height: auto;
  border-radius: 22.37%;
  box-shadow: 0 16px 32px -12px rgb(0 0 0 / 0.5);
}

.cta-card h2 {
  font-size: var(--step-3);
}

.cta-card p {
  margin-top: 8px;
  color: rgb(255 255 255 / 0.82);
  font-size: var(--step-1);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .cta-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .cta-actions {
    justify-content: center;
  }
}

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

.site-footer {
  padding-block: 56px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-about p {
  margin-top: 14px;
  max-width: 30em;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer .brand,
.site-footer .brand:hover {
  color: var(--wordmark);
  font-weight: 900;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(
      50% 90% at 100% 0%,
      color-mix(in srgb, var(--mint) 16%, transparent),
      transparent 60%
    ),
    radial-gradient(
      60% 90% at 0% 0%,
      color-mix(in srgb, var(--primary) 12%, transparent),
      transparent 60%
    ),
    var(--bg);
}

.page-hero h1 {
  max-width: 18em;
  font-size: var(--step-4);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.page-hero .lede {
  max-width: 40em;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

/* ---------- Long-form docs layout ---------- */

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}

.toc h2 {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--border);
}

.toc a {
  display: block;
  margin-left: -2px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.93rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
}

.toc a.is-active {
  border-left-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 960px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    max-height: none;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .toc ol {
    columns: 2 200px;
    column-gap: 24px;
  }

  .toc li {
    break-inside: avoid;
  }
}

.prose {
  max-width: var(--max-prose);
  font-size: 1.05rem;
  line-height: 1.72;
}

.prose > section + section {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.prose h2 {
  font-size: var(--step-2);
  margin-bottom: 16px;
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

.prose p,
.prose ul,
.prose ol,
.prose table,
.prose .callout {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 6px;
}

.prose li::marker {
  color: var(--primary);
  font-weight: 800;
}

.prose strong {
  font-weight: 800;
}

.prose code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--bg-alt);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.prose .section-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
}

.prose .section-icon.mint {
  background: var(--accent-soft);
  color: var(--accent);
}

.prose .section-icon svg {
  width: 22px;
  height: 22px;
}

.callout {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
}

.callout.mint {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.callout svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--primary);
}

.callout.mint svg {
  color: var(--accent);
}

.callout p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.96rem;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--bg-alt);
  font-weight: 850;
  white-space: nowrap;
}

.flow {
  display: grid;
  gap: 0;
  margin: 8px 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 18px;
  counter-increment: flow;
}

.flow li + li {
  margin-top: 0;
}

.flow li::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
}

.flow li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.flow li > span {
  padding-top: 5px;
}

/* ---------- Support page ---------- */

.contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.contact-card .feature-icon {
  margin: 0;
  width: 56px;
  height: 56px;
}

.contact-card h2 {
  font-size: var(--step-2);
}

.contact-card p {
  margin-top: 4px;
  color: var(--muted);
}

.contact-card .email {
  font-weight: 850;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
  }
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.help-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.help-card h3 {
  font-size: 1.08rem;
}

.help-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.96rem;
}

@media (max-width: 820px) {
  .help-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding-block: 80px;
  text-align: center;
}

.not-found img {
  width: 96px;
  margin: 0 auto 28px;
}

.not-found h1 {
  font-size: var(--step-4);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.not-found p {
  max-width: 32em;
  margin: 14px auto 28px;
  color: var(--muted);
  font-size: var(--step-1);
}

.not-found .btn + .btn {
  margin-left: 8px;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Print (mostly for the privacy policy) ---------- */

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip-link,
  .cta {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-hero {
    background: none;
    padding-block: 0 24px;
  }

  .doc-layout {
    display: block;
    padding: 0;
  }

  .prose {
    max-width: none;
  }

  a {
    color: #000;
  }
}
