/* ============================================================
   SweetMemories.ai — public website
   The app's Aurora look on the web: pale paper, glass, and a
   blue → violet → orchid sweep taken from the brand accent.
   ============================================================ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/plus-jakarta-sans-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: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/plus-jakarta-sans-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;
}

:root {
  --violet: #6c4bf6;
  --violet-deep: #4a28d0;
  --blue: #4b96f6;
  --orchid: #c24bf6;
  --ink: #171436;
  --muted: #5f5f82;
  --faint: #8d8dab;
  --page: #f5f6fe;
  --surface: #ffffff;
  --line: #e4e6f6;
  --sweep: linear-gradient(95deg, #4b8cf6 0%, #6c4bf6 52%, #b04bf2 100%);
  --sweep-text: linear-gradient(95deg, #4b96f6 0%, #6c4bf6 48%, #c24bf6 100%);
  --shadow-sm: 0 1px 2px rgba(58, 54, 128, 0.06), 0 6px 18px rgba(58, 54, 128, 0.07);
  --shadow-md: 0 2px 6px rgba(58, 54, 128, 0.06), 0 18px 44px rgba(58, 54, 128, 0.12);
  --radius: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Short pages still end with the footer at the bottom of the window. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; }
p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(108, 75, 246, 0.45); outline-offset: 3px; border-radius: 10px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.gradient-text {
  background: var(--sweep-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: var(--sweep);
  box-shadow: 0 10px 26px -10px rgba(108, 75, 246, 0.75);
}
.btn-primary:hover { box-shadow: 0 16px 34px -12px rgba(108, 75, 246, 0.8); filter: saturate(1.1); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-lg { min-height: 64px; padding: 0 34px; font-size: 18px; }

.btn-store {
  min-height: 64px;
  padding: 0 30px 0 24px;
  gap: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  text-align: left;
}
.btn-store .icon-play { width: 30px; height: 32px; }
.btn-store span { display: flex; flex-direction: column; font-size: 22px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.btn-store small { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.btn-store:hover { box-shadow: 0 22px 44px -18px rgba(58, 54, 128, 0.35); }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(245, 246, 254, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 rgba(58, 54, 128, 0.08);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 60px; height: 40px; object-fit: contain; }
.wordmark { font-size: 23px; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); }
.wordmark span { color: var(--violet); }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a:not(.btn) {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current='page'] { color: var(--ink); }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--sweep);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current='page']::after { transform: scaleX(1); }
.nav-cta { margin-left: 12px; }
.nav-menu-cta { display: none; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + clamp(28px, 6vw, 64px)) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
  background:
    url('/assets/img/hero-aurora.webp') center 18% / cover no-repeat,
    linear-gradient(180deg, #fbfbff 0%, var(--page) 100%);
}
@media (max-width: 900px) {
  .hero { background-image: url('/assets/img/hero-aurora-1280.webp'), linear-gradient(180deg, #fbfbff 0%, var(--page) 100%); }
}
.hero::after {
  /* Fades the artwork into the page so the next section starts cleanly. */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(245, 246, 254, 0), var(--page));
  z-index: -1;
}

.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-a { width: 46vw; height: 46vw; left: -14vw; top: 28%; background: radial-gradient(circle, rgba(75, 150, 246, 0.28), transparent 65%); }
.glow-b { width: 42vw; height: 42vw; right: -12vw; top: 18%; background: radial-gradient(circle, rgba(194, 75, 246, 0.24), transparent 65%); animation-delay: -6s; }
.glow-c { width: 38vw; height: 38vw; left: 31vw; top: 46%; background: radial-gradient(circle, rgba(108, 75, 246, 0.2), transparent 62%); animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(3vw, -2vw, 0) scale(1.08); }
}

.hero-copy { text-align: center; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 6.6vw, 92px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.hero-sub {
  margin-top: 18px;
  font-size: clamp(19px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 36px; }

.hero-stage { position: relative; margin-top: clamp(36px, 5vw, 64px); }
.aside {
  position: absolute;
  top: 18%;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.aside span { display: block; }
.aside-left { left: var(--gutter); top: 16%; }
.aside-right { right: var(--gutter); top: -2%; text-align: left; }

.phones {
  --w: clamp(210px, 23vw, 320px);
  position: relative;
  height: calc(var(--w) * 2.02);
  max-width: 980px;
  margin: 0 auto;
}
.phone {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--w);
  margin: 0;
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.15);
  background: linear-gradient(145deg, #2a2745, #121022 60%, #2a2745);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 40px 80px -34px rgba(58, 40, 170, 0.55),
    0 18px 36px -20px rgba(23, 20, 54, 0.45);
}
.phone img {
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  border-radius: calc(var(--w) * 0.118);
  background: #ece9ff;
}
.phone::before {
  /* The camera island. */
  content: '';
  position: absolute;
  top: calc(var(--w) * 0.058);
  left: 50%;
  width: 26%;
  height: calc(var(--w) * 0.07);
  border-radius: 999px;
  background: #0d0b1a;
  transform: translateX(-50%);
  z-index: 1;
}
.phone-center { z-index: 3; transform: translateX(-50%); animation: float 7s ease-in-out infinite; }
.phone-left,
.phone-right { --w: clamp(186px, 20vw, 282px); z-index: 2; top: 9%; }
.phone-left { transform: translateX(-128%) rotate(-7deg); animation: float-left 8s ease-in-out infinite; }
.phone-right { transform: translateX(28%) rotate(7deg); animation: float-right 8s ease-in-out infinite -2s; }
@keyframes float { 50% { transform: translateX(-50%) translateY(-10px); } }
@keyframes float-left { 50% { transform: translateX(-128%) rotate(-7deg) translateY(-8px); } }
@keyframes float-right { 50% { transform: translateX(28%) rotate(7deg) translateY(-8px); } }

.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.chip-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.chip-icon .icon { width: 20px; height: 20px; }
.chip-icon-wave { color: var(--violet); background: rgba(108, 75, 246, 0.1); }
.chip-icon-globe { color: var(--violet-deep); background: rgba(75, 150, 246, 0.12); }
.chip-icon-heart { color: #f2246b; background: rgba(242, 36, 107, 0.1); }
.chip-speaking { left: -2%; top: 58%; }
.chip-language { right: -1%; top: 22%; animation-delay: -2s; }
.chip-favourite { right: 1%; top: 62%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-7px); } }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* ── Features: bento ───────────────────────────────────────── */
.features { padding-top: clamp(24px, 4vw, 48px); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }

/* Each tile is one full-bleed picture with its words laid over the calm
   part of it: the left of the wide tiles, the foot of the small ones. */
.tile {
  --tile-pos: center;
  position: relative;
  display: flex;
  overflow: hidden;
  isolation: isolate;
  min-height: 300px;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--radius);
  background: var(--c-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 2px rgba(58, 54, 128, 0.06), 0 14px 34px -18px color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -26px color-mix(in srgb, var(--c) 65%, transparent); }
.tile-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--tile-pos);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover .tile-bg { transform: scale(1.035); }
.tile-text { position: relative; }
.tile h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; color: var(--c-deep); }
.tile p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: #3a3960; }

.tile-hero { --tile-pos: right bottom; grid-column: span 7; grid-row: span 2; min-height: 532px; flex-direction: column; }
.tile-hero .tile-text { max-width: 44%; }
.tile-hero h3 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; }
.tile-hero p { font-size: 18px; }

.tile-wide { --tile-pos: right center; grid-column: span 5; align-items: center; min-height: 256px; }
.tile-wide .tile-text { max-width: 49%; }
.tile-wide p { font-size: 15px; }

.tile-small { --tile-pos: center top; grid-column: span 3; flex-direction: column; justify-content: flex-end; min-height: 480px; padding: 26px; }
.tile-small h3 { font-size: clamp(19px, 1.55vw, 22px); }
.tile-small p { font-size: 15px; margin-top: 8px; }
/* Equal-height text blocks, so the four titles line up across the row. */
.tile-small .tile-text { min-height: 158px; }

/* ── Comparison ─────────────────────────────────────────────
   A real table, so it reads correctly aloud. The highlighted column
   is a panel drawn behind the third column, which sits at a fixed
   share of the width. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.section-sub { margin: 14px auto 0; max-width: 62ch; font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); }

.compare-card {
  position: relative;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}
.compare-highlight {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  border-radius: 32px;
  background: linear-gradient(180deg, #f1ecff 0%, #f6f0fe 55%, #efeaff 100%);
  box-shadow: 0 34px 70px -34px rgba(108, 75, 246, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.compare-table { position: relative; width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.col-feature { width: 36%; }
.col-them { width: 24%; }
.col-us { width: 40%; }
.compare-table th,
.compare-table td { padding: 16px 28px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(58, 54, 128, 0.07); }
.compare-table tbody:last-of-type tr:last-child > * { border-bottom: 0; }

.compare-table thead th { padding: 30px 28px; font-weight: 700; border-bottom: 0; }
.compare-table thead .c-feature { font-size: 20px; }
.compare-table thead .c-them { text-align: center; }
.compare-table thead .c-us { color: #fff; background: var(--sweep); border-radius: 32px 32px 0 0; }
.compare-name { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.compare-note { display: block; font-size: 15px; font-weight: 500; color: var(--muted); }
.c-us .compare-note { color: rgba(255, 255, 255, 0.88); }
.compare-brand { display: flex; align-items: center; gap: 14px; }
.compare-brand img { width: 72px; height: 48px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(23, 20, 54, 0.25)); }

.compare-group th { padding: 13px 28px; font-size: 17px; font-weight: 800; border-bottom: 0; }
.compare-group-0 th { color: #2f6fe0; background: linear-gradient(90deg, rgba(75, 150, 246, 0.12), rgba(75, 150, 246, 0.03)); }
.compare-group-1 th { color: var(--violet); background: linear-gradient(90deg, rgba(108, 75, 246, 0.12), rgba(194, 75, 246, 0.04)); }
.compare-group .c-us { background: rgba(108, 75, 246, 0.06); border-bottom: 0; }

.compare-feature { display: flex; align-items: center; gap: 16px; font-size: 17px; font-weight: 600; color: var(--ink); }
.compare-feature img { width: 56px; height: 56px; flex: none; margin: -4px 0; }
.compare-table td.c-them { text-align: center; color: var(--muted); font-size: 17px; }
.not-purpose { color: #8d8dab; font-size: 16px; }
.us-cell { display: flex; align-items: center; gap: 18px; font-size: 17px; color: var(--ink); }
.us-text { font-size: 19px; font-weight: 800; }

.tick { display: inline-grid; place-items: center; flex: none; border-radius: 50%; }
.tick .icon { width: 20px; height: 20px; }
.tick-us { width: 46px; height: 46px; color: #fff; background: var(--sweep); box-shadow: 0 8px 18px -8px rgba(108, 75, 246, 0.8); }
.tick-them { width: 40px; height: 40px; color: #6a6a8c; background: #eceef6; }

.compare-closing { margin-top: clamp(36px, 5vw, 56px); text-align: center; }
.compare-closing p { margin-bottom: 24px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; }

/* ── How it works ───────────────────────────────────────────
   Three cards, each a step: its words, a picture, and what the
   step gives you. The middle card pairs its picture with points. */
.how-container { max-width: calc(1360px + var(--gutter) * 2); }
.kicker-color { background: var(--sweep-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 30px;
  background: var(--how-bg);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}
.how-step:not(:last-child)::after {
  /* A dashed arrow into the next step. */
  content: '';
  position: absolute;
  top: 46%;
  right: -28px;
  z-index: 2;
  width: 30px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='14' viewBox='0 0 30 14' fill='none' stroke='%237B5CF6' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 7h24' stroke-dasharray='3 4'/%3E%3Cpath d='m21 2 6 5-6 5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.how-step-capture { --how-bg: linear-gradient(170deg, #eef3ff 0%, #f5f0ff 55%, #fbf0f7 100%); --how-num: linear-gradient(135deg, #4b8cf6, #6c4bf6); }
.how-step-companion { --how-bg: linear-gradient(170deg, #f2edff 0%, #f6effd 55%, #fbeef8 100%); --how-num: linear-gradient(135deg, #6c4bf6, #9b4be8); }
.how-step-talk { --how-bg: linear-gradient(170deg, #fff3ee 0%, #fdeef4 55%, #f6effe 100%); --how-num: linear-gradient(135deg, #b44be8, #e0409e); }

.how-head { display: flex; align-items: flex-start; gap: 16px; padding: 26px 26px 20px; }
.how-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  background: var(--how-num);
  box-shadow: 0 10px 22px -10px rgba(108, 75, 246, 0.75), inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.how-head h3 { margin-top: 4px; font-size: clamp(20px, 1.6vw, 25px); font-weight: 800; letter-spacing: -0.025em; }
.how-head p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted); }

.how-body { position: relative; flex: 1; min-height: 0; }
.how-art { display: block; width: 100%; height: 100%; min-height: 260px; aspect-ratio: 960 / 680; object-fit: cover; }
.how-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 16px 12px 18px;
  list-style: none;
  border-radius: 0 0 30px 30px;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
}
.how-chips li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; line-height: 1.25; color: #3a3960; }
.how-chips img { width: 44px; height: 44px; }

.how-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--violet-deep);
}
.how-note-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--violet); background: #efe9ff; }
.how-note-icon .icon { width: 18px; height: 18px; }

.how-body { overflow: hidden; }

/* ── Call to action ────────────────────────────────────────── */
.cta { padding-top: 0; }
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 34px) clamp(24px, 4vw, 48px);
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(60% 120% at 12% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(50% 120% at 100% 100%, rgba(255, 255, 255, 0.2), transparent 60%),
    var(--sweep);
  box-shadow: 0 30px 60px -30px rgba(108, 75, 246, 0.7);
}
.cta-mark { width: clamp(120px, 14vw, 180px); height: auto; filter: drop-shadow(0 10px 24px rgba(23, 20, 54, 0.25)); }
.cta-divider { align-self: stretch; width: 1px; background: rgba(255, 255, 255, 0.35); }
.cta-title { flex: 1; font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.btn-store-light { border-color: transparent; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 24px 36px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.footer .wordmark { font-size: 21px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-left: auto; }
.footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--violet); }
.copyright { font-size: 14px; color: var(--faint); margin-left: 16px; }

/* ── Admin-written pages ───────────────────────────────────── */
.page-hero {
  position: relative;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + 48px) 0 110px;
  background:
    url('/assets/img/hero-aurora-1280.webp') center 30% / cover no-repeat,
    var(--page);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(245, 246, 254, 0), var(--page));
}
.page-hero-inner { position: relative; z-index: 1; max-width: 860px; text-align: center; }
.crumbs { display: flex; justify-content: center; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--violet); text-decoration: none; }
.page-hero h1 { margin-top: 16px; font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; }
.page-summary { margin: 16px auto 0; max-width: 60ch; font-size: 18px; color: var(--muted); }

.prose {
  position: relative;
  max-width: 860px;
  margin: -60px auto clamp(56px, 8vw, 96px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 17px;
  line-height: 1.75;
  color: #34335a;
  overflow-wrap: break-word;
}
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 0.6em; font-size: 26px; font-weight: 800; color: var(--ink); }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 20px; font-weight: 800; color: var(--ink); }
.prose h4 { margin: 1.4em 0 0.4em; font-size: 17px; font-weight: 800; color: var(--ink); }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--violet); }
.prose a { color: var(--violet); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(108, 75, 246, 0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--violet); }
.prose strong { color: var(--ink); }
.prose blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--violet);
  background: #f3f0fe;
  color: var(--ink);
}
.prose pre { padding: 16px; border-radius: 14px; background: #f1f2fb; overflow-x: auto; font-size: 14px; }
.prose img { border-radius: 16px; margin: 1.4em auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 2em; }
.prose .ql-indent-2 { padding-left: 4em; }
.prose .ql-indent-3 { padding-left: 6em; }

.error-page { padding: clamp(56px, 10vw, 120px) 0; }
.error-card { max-width: 560px; margin: 0 auto; text-align: center; }
.error-code { font-size: clamp(80px, 14vw, 140px); font-weight: 800; line-height: 1; letter-spacing: -0.06em; }
.error-card h1 { margin-top: 12px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; }
.error-card p:not(.error-code) { margin: 12px 0 28px; color: var(--muted); }

/* ── Scroll reveal (only once the script is running) ──────── */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .aside { display: none; }
  .compare-table th,
  .compare-table td { padding: 14px 18px; }
  .compare-table thead th { padding: 24px 18px; }
  .compare-name { font-size: 19px; }
  .compare-note { font-size: 13px; }
  .compare-brand { gap: 10px; }
  .compare-brand img { width: 50px; height: 34px; }
  .compare-feature { gap: 12px; font-size: 16px; }
  .compare-feature img { width: 46px; height: 46px; }
  .us-cell { gap: 12px; font-size: 15px; }
  .compare-table td.c-them,
  .not-purpose { font-size: 15px; }
  .tile-hero { grid-column: span 12; grid-row: auto; min-height: 480px; }
  .tile-hero .tile-text { max-width: 42%; }
  .tile-wide { grid-column: span 12; min-height: 300px; }
  .tile-wide .tile-text { max-width: 46%; }
  .tile-small { grid-column: span 6; min-height: 560px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.nav-open { background: rgba(245, 246, 254, 0.97); box-shadow: 0 1px 0 rgba(58, 54, 128, 0.08); }
  .nav.nav-open .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(245, 246, 254, 0.98);
    box-shadow: 0 18px 30px -20px rgba(58, 54, 128, 0.35);
  }
  .nav.nav-open .nav-links a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav.nav-open .nav-links a:not(.btn)::after { display: none; }
  .nav.nav-open .nav-menu-cta { display: inline-flex; margin-top: 16px; }

  .chip-speaking { left: 0; top: 70%; }
  .chip-language { right: 0; top: 6%; }
  .chip-favourite { right: 0; top: 74%; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-divider { display: none; }
  .footer-links { margin-left: 0; }
  .copyright { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
  .brand-mark { width: 48px; height: 32px; }
  .wordmark { font-size: 20px; }
  .btn-lg, .btn-store { min-height: 58px; }
  .btn-store span { font-size: 20px; }
  .cta-row .btn { width: 100%; max-width: 340px; }
  .phones { --w: 58vw; height: calc(var(--w) * 2.05); }
  .phone-left, .phone-right { --w: 44vw; top: 12%; }
  .phone-left { transform: translateX(-104%) rotate(-7deg); }
  .phone-right { transform: translateX(4%) rotate(7deg); }
  @keyframes float-left { 50% { transform: translateX(-104%) rotate(-7deg) translateY(-6px); } }
  @keyframes float-right { 50% { transform: translateX(4%) rotate(7deg) translateY(-6px); } }
  .kicker { font-size: 11px; letter-spacing: 0.2em; }
  .chip { font-size: 13px; padding: 8px 14px 8px 9px; gap: 7px; }
  .chip-icon { width: 26px; height: 26px; }
  .chip-icon .icon { width: 16px; height: 16px; }
  /* Kept off the Talk screen's controls, where a narrow phone has no room. */
  .chip-speaking { left: 0; top: 2%; }
  .chip-language { right: 0; top: 50%; }
  .chip-favourite { display: none; }
  .tile-hero,
  .tile-wide,
  .tile-small { grid-column: span 12; }
  .tile-hero,
  .tile-wide { display: block; min-height: 0; padding: 0; }
  .tile-hero .tile-bg,
  .tile-wide .tile-bg {
    position: static;
    height: auto;
    aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
    mask-image: linear-gradient(180deg, #000 72%, transparent);
  }
  .tile-wide .tile-bg { aspect-ratio: 16 / 10; }
  .tile-hero .tile-text,
  .tile-wide .tile-text { max-width: none; margin-top: -28px; padding: 0 24px 26px; }
  .tile-hero h3 { font-size: 32px; }
  .tile-hero p { font-size: 16px; }
  .tile-small { min-height: 500px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .compare-card { background: transparent; border: 0; box-shadow: none; }
  .compare-highlight,
  .compare-table thead,
  .compare-group .c-us { display: none; }
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; width: auto; }
  .compare-table tbody + tbody { margin-top: 26px; }
  .compare-group th { border-radius: 14px; margin-bottom: 12px; }
  .compare-table tr:not(.compare-group) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
  }
  .compare-table tr:not(.compare-group) > * { padding: 0; border: 0; }
  .compare-table tr:not(.compare-group) .c-feature { grid-column: 1 / -1; }
  .compare-table td.c-them,
  .compare-table td.c-us { padding: 10px 12px; border-radius: 14px; font-size: 14px; text-align: left; }
  .compare-table td.c-them { background: #f3f4fa; }
  .compare-table td.c-us { background: #f1ecfe; }
  .compare-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .compare-table td.c-us::before { color: var(--violet); }
  .compare-feature { font-size: 16px; }
  .compare-feature img { width: 40px; height: 40px; }
  .us-cell { gap: 10px; font-size: 14px; }
  .us-text { font-size: 15px; }
  .not-purpose { font-size: 14px; }
  .tick-us, .tick-them { width: 28px; height: 28px; }
  .tick .icon { width: 14px; height: 14px; }
}

@media (max-width: 1180px) {
  .how-steps { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
  .how-step:not(:last-child)::after { top: auto; right: auto; bottom: -24px; left: calc(50% - 15px); transform: rotate(90deg); }
}

@media (max-width: 640px) {
  .how-head { padding: 22px 20px 16px; gap: 14px; }
  .how-number { width: 46px; height: 46px; font-size: 22px; }
  .how-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .how-note { left: 12px; right: 12px; bottom: 10px; font-size: 13.5px; padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

.copyright a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.copyright a:hover { color: var(--violet); }
