/* Vicana website, in the app's Hora design (docs/DESIGN.md): a cool lime-wash
   white, one grotesque (Archivo) with Atkinson Hyperlegible Next for reading,
   buganvilla pink for the learner and the one primary action, turquoise for
   the neighbours and Spanish. Depth instead of outlines. Sentence case. */

@font-face { font-family: Archivo; src: url(/assets/fonts/archivo-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url(/assets/fonts/archivo-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Archivo; src: url(/assets/fonts/archivo-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/assets/fonts/atkinson-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(/assets/fonts/atkinson-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f5f7f8;
  --surface: #ffffff;
  --soft: #ebeff2;
  --text: #101113;
  --muted: #5b6270;
  --faint: #98a0ad;
  --pink: #c8177e;
  --pink-press: #a91169;
  --pink-soft: #fbe5f0;
  --teal: #0a7372;
  --teal-soft: #e1f3f2;
  --sun: #f2e14c;
  --anil: #1d2a6b;
  --noche: #0e1633;
  --line: rgba(16, 17, 19, 0.08);
  --shadow-1: 0 1px 2px rgba(16, 17, 19, 0.05), 0 6px 18px rgba(16, 17, 19, 0.06);
  --shadow-2: 0 2px 6px rgba(16, 17, 19, 0.06), 0 22px 50px rgba(16, 17, 19, 0.12);
  --ui: Archivo, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --read: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1633;
    --surface: #172150;
    --soft: #1f2b5e;
    --text: #f3f5fa;
    --muted: #a9b3cf;
    --faint: #6f7a9c;
    --pink: #ff4fa8;
    --pink-press: #ff79bd;
    --pink-soft: #3a1d4f;
    --teal: #3ccbc8;
    --teal-soft: #173a5e;
    --line: rgba(243, 245, 250, 0.1);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.25);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.35), 0 26px 60px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 var(--read);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--ui); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.08; }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--surface); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow-1); }
.skip:focus { left: 8px; }

/* Spanish in the neighbour's colour, English glosses in muted grey. */
.es { font-family: var(--ui); font-weight: 600; color: var(--teal); }
.gloss { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.28rem); color: var(--muted); max-width: 34em; }

/* ---------- header ---------- */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; border-radius: 10px; }
.wordmark { font: 800 1.7rem/1 var(--ui); letter-spacing: -0.045em; display: inline-flex; align-items: flex-end; gap: 3px; }
.wordmark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); margin-bottom: 4px; }
.nav { display: flex; align-items: center; gap: 26px; font-family: var(--ui); font-weight: 600; font-size: 0.98rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
@media (max-width: 860px) { .nav .hide-sm { display: none; } }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 700 1rem/1 var(--ui); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--pink); color: #fff; box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button:hover { background: var(--pink-press); }
.button:active { transform: scale(0.96); }
.nav .button { color: #fff; }

/* ---------- hero ---------- */
.hero { padding: clamp(20px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.eyebrow .es { font-size: 1.05rem; }
.eyebrow .gloss { font-size: 0.95rem; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.15s ease; }
.store:hover { transform: translateY(-2px); }
.store img { height: 52px; width: auto; }
.store.play img { height: 76px; margin: -12px -10px; }
.store[aria-disabled="true"] { cursor: default; opacity: 0.92; }
.store[aria-disabled="true"]:hover { transform: none; }
.store-note { margin: 14px 0 0; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 440px) {
  .store img { height: 44px; }
  .store.play img { height: 64px; margin: -10px -8.5px; }
  .top .button { min-height: 42px; padding: 0 16px; font-size: 0.95rem; }
  .wordmark { font-size: 1.5rem; }
  .brand svg { width: 32px; height: 32px; }
}
.store-note strong { color: var(--text); font-weight: 700; }

/* The film */
.film {
  position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 36px; overflow: hidden;
  background: #0e1633 url(/assets/film/poster.webp) center / cover no-repeat;
  box-shadow: var(--shadow-2); isolation: isolate;
}
.film:focus-visible { outline-offset: 4px; }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.film-play {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px 0 14px;
  border: 0; border-radius: 999px; background: #fff; color: #101113; cursor: pointer;
  font: 700 1rem/1 var(--ui); box-shadow: 0 10px 30px rgba(7, 11, 38, 0.35);
  transition: transform 0.15s ease, opacity 0.25s ease;
}
.film-play:active { transform: scale(0.96); }
.film-play .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; }
.film-play .dot svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.film[data-loading] .film-play .dot { animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(0.85); opacity: 0.7; } }
.film[data-mode="playing"] .film-play, .film[data-mode="paused"] .film-play { opacity: 0; pointer-events: none; }
.film-bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(14, 22, 51, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.film[data-mode="playing"]:hover .film-bar, .film[data-mode="playing"]:focus-within .film-bar,
.film[data-mode="paused"] .film-bar { opacity: 1; pointer-events: auto; }
@media (hover: none) { .film[data-mode="playing"] .film-bar { opacity: 1; pointer-events: auto; } }
.film-bar button {
  width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; flex: none;
}
.film-bar button svg { width: 16px; height: 16px; fill: currentColor; }
.film-bar .track { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.film-bar .track span { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.film[data-mode="playing"] [data-film-toggle] .i-play, .film:not([data-mode="playing"]) [data-film-toggle] .i-pause { display: none; }
[data-film-mute][aria-pressed="true"] .i-on, [data-film-mute][aria-pressed="false"] .i-off { display: none; }
.film-caption { margin: 14px 4px 0; font-size: 0.95rem; color: var(--muted); }
.film-caption details { display: inline; }
.film-caption summary { display: inline; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.transcript { margin: 12px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 0.95rem; }
.transcript p { margin: 0 0 8px; }
.transcript p:last-child { margin: 0; }

/* ---------- sections ---------- */
section { padding: clamp(48px, 6.5vw, 88px) 0; }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.kicker { display: block; margin-bottom: 10px; font-size: 1rem; }

.card { background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-1); padding: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .grid-4 { gap: 12px; }
  .grid-4 .card { padding: 18px; border-radius: 24px; }
  .grid-4 .neighbour canvas { width: 84px; height: 84px; }
  .grid-4 .neighbour h3 { font-size: 1.15rem; }
  .grid-4 .neighbour .role, .grid-4 .neighbour .gloss { font-size: 0.88rem; }
  .grid-4 .neighbour .es { font-size: 0.98rem; }
  .grid-4 .hear { font-size: 0.88rem; padding-right: 12px; gap: 6px; }
}
@media (max-width: 340px) { .grid-4 { grid-template-columns: 1fr; } }

.step .art { aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; margin-bottom: 20px; }
.step .art svg { width: 100%; height: 100%; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
.step .num { font: 700 0.95rem/1 var(--ui); color: var(--pink); margin-bottom: 8px; display: block; }

.neighbour { display: flex; flex-direction: column; gap: 4px; }
.neighbour canvas { width: 116px; height: 116px; border-radius: 50%; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.neighbour h3 { font-size: 1.35rem; }
.neighbour .role { color: var(--muted); font-size: 0.98rem; margin: 0 0 12px; }
.neighbour .es { font-size: 1.08rem; line-height: 1.35; }
.neighbour .gloss { font-size: 0.95rem; margin: 2px 0 16px; }
.hear {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px 0 10px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--teal-soft); color: var(--teal); font: 700 0.95rem/1 var(--ui);
  transition: transform 0.15s ease;
}
.hear:active { transform: scale(0.96); }
.hear .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; }
.hear .dot svg { width: 11px; height: 11px; fill: var(--surface); margin-left: 2px; }
.hear[aria-pressed="true"] .dot { animation: pulse 0.9s ease-in-out infinite; }
.note { margin-top: 20px; color: var(--muted); font-size: 0.98rem; }

.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }
.why .card h3 { margin-bottom: 8px; }
.why .card p { margin: 0; color: var(--muted); }
.why .card .es { display: block; font-size: 0.98rem; margin-bottom: 6px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; max-width: 900px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; }
.plan.plus { box-shadow: 0 0 0 2px var(--pink), var(--shadow-2); }
.plan h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font: 700 0.85rem/1.2 var(--ui); background: var(--pink); color: #fff; }
.price { font: 800 2.3rem/1.1 var(--ui); letter-spacing: -0.03em; margin: 14px 0 2px; }
.price small { font: 400 1rem/1 var(--read); color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); margin: 0 0 18px; font-size: 0.98rem; }
.checks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan .fine { margin-top: auto; color: var(--muted); font-size: 0.9rem; }
.pricing-note { margin-top: 20px; color: var(--muted); font-size: 0.95rem; max-width: 50em; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-1); padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 700 1.1rem/1.3 var(--ui);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--ui); color: var(--pink); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* Final call to action: the icon's evening sky */
.cta { padding: 0 0 clamp(48px, 6.5vw, 88px); }
.cta .band {
  border-radius: 40px; padding: clamp(36px, 6vw, 72px); text-align: center; color: #fff;
  background: linear-gradient(180deg, #1d2a6b 0%, #c8177e 70%, #ff7a59 100%); box-shadow: var(--shadow-2);
  position: relative; overflow: hidden;
}
.cta .band::before { content: ""; position: absolute; left: 50%; bottom: -60%; width: 90%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(242, 225, 76, 0.35), rgba(242, 225, 76, 0) 60%); }
.cta .band > * { position: relative; }
.cta .es { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; display: block; }
.cta .gloss { color: rgba(255, 255, 255, 0.86); font-size: 1.15rem; display: block; margin: 10px 0 28px; }
.cta .stores { justify-content: center; }
.cta .store-note { color: rgba(255, 255, 255, 0.86); }
.cta .store-note strong { color: #fff; }

/* ---------- footer ---------- */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }
.foot h2 { font: 700 0.98rem/1.2 var(--ui); color: var(--text); margin: 0 0 12px; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot .about p { margin: 12px 0 0; max-width: 26em; }
.foot .legal { grid-column: 1 / -1; margin-top: 8px; font-size: 0.9rem; }

/* ---------- document pages (privacy, terms, support) ---------- */
.doc { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 10px; }
.doc .updated { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 12px; letter-spacing: -0.015em; }
.doc h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--pink); text-underline-offset: 3px; }
.doc .box { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-1); padding: 22px 24px; margin: 24px 0; }
.doc .box p:last-child { margin: 0; }
.back { display: inline-flex; margin-bottom: 20px; font: 600 0.98rem/1 var(--ui); color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }

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