/* NALYVA website v1.1. Colours from the NALYVA design system v3.59, lighter presentation layout. */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/AtkinsonHyperlegibleNext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Source Serif 4 Display"; src: url("fonts/SourceSerif4Display.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  color-scheme: light;
  --white: #ffffff;
  --mist: #f5f9fc;
  --sky: #eaf4fb;
  --sky-2: #d9edf8;
  --ink: #0e2150;
  --ink-2: #46557a;
  --ink-3: #6b7896;
  --line: #e3ebf3;
  --teal: #00737a;
  --teal-dark: #005a60;
  --teal-soft: #e2f4f6;
  --water: #2cb8cf;
  --amber: #f2a63a;
  --amber-light: #ffc766;
  --wrong: #9a4a0e;
  --wrong-soft: #fcefe4;
  --sos: #c4120f;
  --sos-soft: #fdecea;
  --focus: #1d5fd1;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4 Display", Georgia, serif;
  --page: 1180px;
  --read: 700px;
  --r: 28px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 10px 14px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--page); margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.display { font: 800 clamp(44px, 7.2vw, 88px)/1.02 var(--sans); letter-spacing: -0.035em; }
.h2 { font: 800 clamp(34px, 5vw, 60px)/1.05 var(--sans); letter-spacing: -0.03em; }
.h3 { font: 700 24px/1.2 var(--sans); letter-spacing: -0.01em; }
.sub { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.45; color: var(--ink-2); max-width: 36ch; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.eyebrow { font: 700 15px/1 var(--sans); letter-spacing: 0.02em; color: var(--teal); }
.grad { background: linear-gradient(90deg, #00737a, #1fb3bf); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid rgba(14, 33, 80, 0.06); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 56px; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; opacity: 0.85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--teal); }
.nav .pill { opacity: 1; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; }
.nav .pill:hover { color: #fff; background: #1b3170; }
@media (max-width: 820px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* store badges: official-style black badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .badges { justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: 9px; height: 54px; padding: 0 18px 0 13px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1px solid #a6a6a6; transition: transform 0.15s ease, background 0.15s ease; }
.badge:hover { color: #fff; background: #1a1a1a; transform: translateY(-1px); }
.badge svg { flex: none; }
.badge .t { display: grid; line-height: 1; text-align: left; }
.badge .t small { font: 500 11px/1.1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.01em; }
.badge .t b { font: 600 22px/1.05 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.02em; margin-top: 2px; }
.badge.gp .t small { text-transform: uppercase; font-size: 10px; letter-spacing: 0.04em; }
.badge.gp .t b { font-family: "Product Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-weight: 500; }

/* realistic phone: iPhone 15 Pro style, natural titanium */
.phone { --w: 300px; width: var(--w); flex: none; position: relative; border-radius: calc(var(--w) * 0.175); padding: calc(var(--w) * 0.012);
  background: linear-gradient(135deg, #f1f0ec 0%, #cfcdc6 18%, #e9e7e1 42%, #b9b7b0 64%, #e6e4de 84%, #a9a79f 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(0,0,0,.18) inset, 0 50px 90px -30px rgba(14, 33, 80, 0.45), 0 22px 40px -22px rgba(14, 33, 80, 0.35); }
.phone::before, .phone::after { content: ""; position: absolute; width: calc(var(--w) * 0.012); border-radius: 3px; background: linear-gradient(90deg, #a6a49c, #d9d7d0); }
.phone::before { left: calc(var(--w) * -0.008); top: 18%; height: 7%; box-shadow: 0 calc(var(--w) * 0.2) 0 #bdbbb4, 0 calc(var(--w) * 0.34) 0 #bdbbb4; }
.phone::after { right: calc(var(--w) * -0.008); top: 27%; height: 11%; }
.phone .bezel { border-radius: calc(var(--w) * 0.162); background: #0b0b0d; padding: calc(var(--w) * 0.03); box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.phone .screen { position: relative; border-radius: calc(var(--w) * 0.132); overflow: hidden; aspect-ratio: 390 / 844; background: var(--sky); container-type: inline-size; }
.phone .screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .island { position: absolute; top: 3.1cqw; left: 50%; transform: translateX(-50%); width: 31cqw; height: 9.2cqw; border-radius: 99px; background: #000; }
.phone .status { position: absolute; inset: 0 0 auto 0; height: 13.8cqw; display: flex; align-items: center; justify-content: space-between; padding: 1cqw 7.5cqw 0 9.5cqw; color: #0e2150; font: 600 4.35cqw/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.01em; }
.phone .status.light { color: #fff; }
.phone .status svg { height: 3.2cqw; width: auto; }
.phone .status .ic { display: flex; gap: 1.4cqw; align-items: center; }
.phone .homebar { position: absolute; bottom: 2cqw; left: 50%; transform: translateX(-50%); width: 34cqw; height: 1.3cqw; border-radius: 99px; background: rgba(14, 33, 80, 0.85); }
.phone .homebar.light { background: rgba(255,255,255,.9); }
.phone.sm { --w: 240px; }
.phone.lg { --w: 330px; }
@media (max-width: 640px) { .phone { --w: 250px; } .phone.lg { --w: 270px; } .phone.sm { --w: 200px; } }

/* hero */
.hero { padding-block: 72px 0; background: linear-gradient(180deg, #ffffff 0%, var(--sky) 58%, var(--sky-2) 100%); overflow: hidden; }
.hero .intro { display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero .stage { position: relative; margin-top: 56px; display: flex; justify-content: center; align-items: flex-end; gap: 28px; height: 560px; }
.hero .stage .side-l { transform: translateY(70px) rotate(-6deg); }
.hero .stage .side-r { transform: translateY(70px) rotate(6deg); }
.hero .stage .phone { margin-bottom: -150px; }
.hero .y { position: absolute; width: 170px; left: calc(50% + 140px); top: -46px; z-index: 3; filter: drop-shadow(0 18px 20px rgba(14,33,80,.18)); }
@media (max-width: 900px) { .hero .stage .side-l, .hero .stage .side-r { display: none; } .hero .y { left: calc(50% + 70px); width: 120px; top: -30px; } .hero .stage { height: 470px; } }

/* sections */
.sec { padding-block: 120px; }
.sec.mist { background: var(--mist); }
.sec.sky { background: linear-gradient(180deg, var(--sky) 0%, #f6fbfe 100%); }
.head { display: grid; gap: 18px; margin-bottom: 56px; }
.head.center { justify-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 48px; } .split.rev > :first-child { order: 0; } .sec { padding-block: 84px; } }
.stack { display: grid; gap: 22px; align-content: center; }
.duo { display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.duo .phone:nth-child(2) { margin-top: 70px; }
@media (max-width: 640px) { .duo .phone:nth-child(2) { display: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(14,33,80,.05); font: 600 16px/1.2 var(--sans); }
.chip img { width: 30px; height: 30px; }
.mist .chip { background: var(--white); }

/* SOS band */
.sosband { background: radial-gradient(120% 90% at 20% 10%, #d8191a 0%, #b80a0a 55%, #8f0707 100%); color: #fff; overflow: hidden; }
.sosband .split { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 880px) { .sosband .split { grid-template-columns: 1fr; gap: 0; } .sosband .stack { padding-bottom: 48px !important; } }
.sosband .sub { color: #ffdcd9; }
.sosband .eyebrow { color: #ffc2bd; }
.big112 { font: 800 clamp(96px, 16vw, 200px)/0.9 var(--sans); letter-spacing: -0.05em; }
.sosband .phone { margin-bottom: -180px; }
@media (max-width: 880px) { .sosband .phone { margin-bottom: -120px; } }

/* 30 seconds card */
.play30 { background: var(--white); border-radius: 32px; padding: 26px; display: grid; gap: 18px; box-shadow: 0 30px 70px -30px rgba(14,33,80,.35), 0 0 0 1px var(--line); max-width: 520px; width: 100%; justify-self: center; position: relative; }
.play30-head { display: flex; align-items: center; gap: 12px; }
.play30-head img { width: 46px; height: 46px; }
.play30-head .t { font: 700 15px/1.2 var(--sans); color: var(--teal); }
.play30-head .d { font-size: 14px; color: var(--ink-3); }
.ring { margin-left: auto; width: 60px; height: 60px; position: relative; flex: none; }
.ring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font: 800 19px/1 var(--sans); font-variant-numeric: tabular-nums; }
.q { font: 700 clamp(21px, 2.3vw, 26px)/1.25 var(--sans); letter-spacing: -0.01em; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { all: unset; box-sizing: border-box; display: grid; gap: 8px; cursor: pointer; border-radius: 18px; padding: 6px 6px 10px; background: var(--mist); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tile img { border-radius: 13px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.tile span { font: 600 14px/1.25 var(--sans); text-align: center; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--teal); }
.tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tile.is-right { box-shadow: 0 0 0 3px var(--teal); background: var(--teal-soft); }
.tile.is-wrong { box-shadow: 0 0 0 3px var(--wrong); background: var(--wrong-soft); }
.tile[disabled] { cursor: default; transform: none; }
.fb { border-radius: 18px; padding: 14px 16px; display: grid; gap: 4px; font-size: 16px; }
.fb b { font-size: 17px; }
.fb.right { background: var(--teal-soft); } .fb.right b { color: var(--teal-dark); }
.fb.wrong { background: var(--wrong-soft); } .fb.wrong b { color: var(--wrong); }
.fb .again { justify-self: start; margin-top: 6px; background: none; border: 0; padding: 0; font: 700 15px/1.4 var(--sans); color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* image cards */
.tiles4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 880px) { .tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.icard { background: var(--white); border-radius: var(--r); padding: 26px 22px; display: grid; gap: 10px; justify-items: start; box-shadow: 0 0 0 1px var(--line); }
.icard img { width: 78px; height: 78px; }
.icard p { color: var(--ink-2); font-size: 16px; }
.photo { border-radius: 36px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(14,33,80,.45); }
.photo img { width: 100%; }

/* water world */
.planet { width: min(420px, 76vw); margin-block: 20px; justify-self: center; filter: drop-shadow(0 40px 50px rgba(14,33,80,.22)); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.strip { border-radius: 26px; overflow: hidden; }
.strip img { width: 100%; }

/* rewards */
.badges-row { display: grid; gap: 22px; justify-items: center; }
.badges-row img { width: min(900px, 100%); }

/* promises */
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 880px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }
.pr { background: var(--mist); border-radius: var(--r); padding: 26px 22px; display: grid; gap: 8px; align-content: start; }
.pr b { font-size: 19px; }
.pr span { color: var(--ink-2); font-size: 16px; }

/* plus */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--white); border-radius: var(--r); padding: 32px; display: grid; gap: 14px; align-content: start; box-shadow: 0 0 0 1px var(--line); }
.plan.plus { box-shadow: 0 0 0 2px var(--amber), 0 30px 60px -36px rgba(201,130,15,.55); }
.plan .price { font: 800 44px/1 var(--sans); letter-spacing: -0.02em; }
.plan .price small { font: 600 17px/1 var(--sans); color: var(--ink-2); letter-spacing: 0; }
.plan .muted { color: var(--ink-2); font-size: 16px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 17px; }
.plan li::before { content: ""; width: 20px; height: 20px; margin-top: 4px; border-radius: 99px; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005a60' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plus-mark { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: linear-gradient(180deg, var(--amber-light), var(--amber)); font: 800 14px/1 var(--sans); width: max-content; }
.fine { margin-top: 18px; color: var(--ink-3); font-size: 15px; }

/* cta */
.cta { background: linear-gradient(180deg, #f6fbfe 0%, var(--sky) 100%); }
.cta .y { width: 220px; margin: 0 auto 8px; filter: drop-shadow(0 22px 24px rgba(14,33,80,.2)); }

/* notice strip */
.note { background: var(--mist); border-top: 1px solid var(--line); }
.note .wrap { display: flex; gap: 16px; align-items: center; padding-block: 22px; font-size: 16px; color: var(--ink-2); }
.note img { width: 44px; height: 44px; flex: none; }

/* footer */
footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: 15px; color: var(--ink-2); }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { color: var(--teal); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { margin: 0 0 12px; font: 700 13px/1 var(--sans); color: var(--ink); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-brand img { height: 22px; width: auto; }
.foot-brand p { margin-top: 12px; max-width: 32ch; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--ink-3); font-size: 13px; }

/* inner pages */
.page-head { padding-block: 64px 32px; background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.page-head .wrap { display: grid; gap: 14px; max-width: 860px; }
.page-head .display { font-size: clamp(40px, 5.5vw, 64px); }
.page-meta { font-size: 15px; color: var(--ink-3); }
.doc { padding-block: 16px 100px; background: var(--mist); }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc .wrap > * { min-width: 0; }
@media (max-width: 960px) { .doc .wrap { grid-template-columns: minmax(0, 1fr); } .toc { position: static !important; max-height: none !important; } }
.toc { position: sticky; top: 80px; background: var(--white); border-radius: 22px; padding: 20px; box-shadow: 0 0 0 1px var(--line); font-size: 15px; max-height: calc(100vh - 110px); overflow: auto; }
.toc b { display: block; margin-bottom: 10px; font-size: 13px; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--teal); text-decoration: underline; }
.prose { max-width: var(--read); background: var(--white); border-radius: 28px; padding: clamp(22px, 4vw, 48px); box-shadow: 0 0 0 1px var(--line); font-size: 17px; }
.prose section { scroll-margin-top: 80px; }
.prose section + section { margin-top: 36px; }
.prose h2 { font: 800 26px/1.2 var(--sans); letter-spacing: -0.015em; margin-bottom: 12px; }
.prose h3 { font: 700 18px/1.3 var(--sans); margin: 20px 0 8px; }
.prose p, .prose li { color: #22335e; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0 0; display: grid; gap: 6px; }
.prose aside.summary { background: var(--teal-soft); border-radius: 22px; padding: 20px 22px; margin-bottom: 32px; }
.prose aside.summary h2 { font-size: 20px; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--mist); font-weight: 700; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; margin: 12px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--teal); color: #fff; font: 800 15px/1 var(--sans); }
.callout { border-radius: 20px; padding: 16px 18px; margin-top: 16px; }
.callout.sos { background: var(--sos-soft); }
.callout.sos b { color: #9e0e0b; }
.callout.info { background: var(--sky); }
.copyline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.copyline code { font: 700 16px/1.4 ui-monospace, "SF Mono", Menlo, monospace; background: var(--mist); padding: 8px 12px; border-radius: 10px; }
.copybtn { font: 700 14px/1 var(--sans); border: 0; background: var(--teal-soft); color: var(--teal-dark); padding: 10px 14px; border-radius: 999px; cursor: pointer; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 640px) { .cards2 { grid-template-columns: 1fr; } }
.cards2 > div { background: var(--mist); border-radius: 20px; padding: 16px 18px; display: grid; gap: 6px; }
.hero .badges { justify-content: center; }
.hero .stage .side-l, .hero .stage .side-r { margin-bottom: -40px; }
.hero .stage .side-l { transform: rotate(-6deg); }
.hero .stage .side-r { transform: rotate(6deg); }
@media (max-width: 900px) { .hero .stage { height: 440px; margin-top: 40px; } .hero .stage .phone { margin-bottom: -170px; } }

/* v1.2 */
.hero .stage { height: 600px; align-items: flex-start; padding-top: 44px; margin-top: 32px; overflow: hidden; }
.hero .stage .phone, .hero .stage .side-l, .hero .stage .side-r { margin-bottom: 0; }
.hero .stage .side-l, .hero .stage .side-r { margin-top: 70px; }
.hero .y { top: 0; }
@media (max-width: 900px) { .hero .stage { height: 470px; padding-top: 36px; margin-top: 24px; } .hero .stage .phone { margin-bottom: 0; } .hero .y { top: 0; } }

.sosmini { background: #fff; padding-block: 28px; border-bottom: 1px solid var(--line); }
.sosrow { display: flex; align-items: center; gap: 18px; max-width: 760px; margin: 0 auto; padding: 16px 24px; border-radius: 22px; background: #fff4f3; box-shadow: 0 0 0 1px #f6d4d1; }
.sosrow img { width: 52px; height: 52px; flex: none; }
.sosrow > div { flex: 1; min-width: 0; }
.sosrow h2 { font: 700 20px/1.25 var(--sans); color: var(--ink); margin: 0; }
.sosrow p { margin: 2px 0 0; color: var(--ink-2, #3b4a6b); font-size: 16px; }
.sosrow .n112 { font: 800 30px/1 var(--sans); color: #c4120f; letter-spacing: .02em; }
@media (max-width: 520px) { .sosrow { padding: 14px 16px; gap: 12px; } .sosrow .n112 { font-size: 24px; } .sosrow img { width: 40px; height: 40px; } }

#learn .center-duo { justify-content: center; margin-top: 8px; }
.lessons { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); gap: 16px; overflow-x: auto; padding: 56px 4px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.lcard { scroll-snap-align: start; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(14,33,80,.07); }
.lcard img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.lcard div { padding: 14px 16px 18px; display: grid; gap: 4px; }
.lcard b { font: 700 18px/1.25 var(--sans); color: var(--ink); }
.lcard span { font-size: 15px; color: var(--muted, #52607e); }


.avs { list-style: none; padding: 0; margin: 56px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.avs img { width: 84px; height: 84px; border-radius: 50%; background: #fff; box-shadow: 0 8px 20px rgba(14,33,80,.1); }
@media (max-width: 520px) { .avs img { width: 64px; height: 64px; } }

.bgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bcard { background: #fff; border-radius: 24px; padding: 22px 18px 24px; text-align: center; display: grid; justify-items: center; gap: 6px; box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(14,33,80,.06); }
.bcard img { width: 104px; height: 104px; margin-bottom: 6px; }
.bcard b { font: 700 18px/1.25 var(--sans); color: var(--ink); }
.bcard span { font-size: 15px; line-height: 1.4; color: var(--muted, #52607e); }
@media (max-width: 880px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bcard img { width: 84px; height: 84px; } }
@media (min-width: 900px) { .lessons { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; padding: 56px 0 0; } }
.fb .again { justify-self: stretch; margin-top: 10px; padding: 14px 22px; border-radius: 999px; border: 0; background: var(--teal); color: #fff; font: 700 17px/1.2 var(--sans); text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(0,115,122,.6); }
.fb .again:hover { background: #005f65; }
.fb .again:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hero .y { width: 210px; left: calc(50% + 150px); top: -14px; }
@media (max-width: 900px) { .hero .y { width: 140px; left: calc(50% + 88px); top: -6px; } }
@media (max-width: 900px) { .hero .stage { padding-top: 76px; } .hero .y { width: 132px; left: calc(50% + 58px); top: 0; } }

/* v1.8: Y hello card in the hero */
.ycard { position: absolute; z-index: 3; width: 230px; aspect-ratio: 1; left: calc(50% + 110px); top: -26px; pointer-events: none; filter: drop-shadow(0 18px 16px rgba(14,33,80,.18)); }
.ycard img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ycard .yidle { position: absolute; inset: 0; opacity: 0; transform-origin: 50% 79%; }
.ycard.idle .yhello { opacity: 0; }
.ycard.idle .yidle { opacity: 1; animation: ybreath 2.4s ease-in-out infinite; }
.ycard .yblink { opacity: 0; }
.ycard.idle .yblink { animation: yblink 4.8s linear infinite; }
@keyframes ybreath { 0%, 50%, 100% { transform: none; } 25% { transform: translateY(-0.37%) scale(.994, 1.014); } 75% { transform: scale(1.006, .986); } }
@keyframes yblink { 0%, 20.8% { opacity: 0; } 21.9%, 24.4% { opacity: 1; } 26%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ycard.idle .yidle, .ycard.idle .yblink { animation: none; } }
@media (max-width: 900px) { .ycard { width: 160px; left: calc(50% + 50px); top: -12px; } }
@media (max-width: 480px) { .ycard { width: 136px; left: calc(50% + 30px); top: -6px; } }

/* v1.8: five worlds */
.worlds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.wtile { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 22px 14px 24px; border-radius: var(--r); background: var(--wc); box-shadow: 0 0 0 1px var(--wb), inset 0 2px 0 rgba(255,255,255,.7), 0 14px 26px -20px rgba(14,33,80,.45); text-align: center; color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.wtile:hover { transform: translateY(-3px); color: var(--ink); }
.wtile img { width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(14,33,80,.2)); }
.wtile b { font: 700 18px/1.2 var(--serif); letter-spacing: .06em; text-transform: uppercase; }
.wtile span { color: var(--ink-2); font-size: 15px; line-height: 1.35; }
@media (max-width: 980px) { .worlds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .wtile img { width: 84px; height: 84px; } }

/* v1.8: live card, partners, small headings, button */
.livecard { max-width: 560px; margin: 0 auto; border-radius: 30px; overflow: hidden; box-shadow: 0 24px 40px -24px rgba(0,115,122,.55); }
.livecard img { width: 100%; height: auto; display: block; }
.ppic { display: grid; place-items: center; }
.ppic img { width: min(360px, 80%); height: auto; filter: drop-shadow(0 22px 24px rgba(14,33,80,.2)); }
.h3big { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--serif); margin: 0; }
.cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; background: var(--teal); color: #fff; font: 800 17px/1 var(--sans); text-decoration: none; box-shadow: 0 12px 22px -12px rgba(0,115,122,.8); }
.cta-btn:hover { background: var(--teal-dark); color: #fff; }
@media (prefers-reduced-motion: reduce) { .wtile { transition: none; } }

/* carried over from the live site (v1.7 to v2.0 changes) */
.head.center .sub { max-width: 62ch; text-wrap: balance; }
.badge.soon { position: relative; cursor: default; opacity: .88; }
.badge.soon:hover { background: #000; transform: none; }
.badge.soon em { position: absolute; top: -9px; right: -8px; padding: 3px 8px; border-radius: 99px; font: 800 11px/1 var(--sans); font-style: normal; color: var(--ink); background: linear-gradient(180deg, var(--amber-light), var(--amber)); box-shadow: 0 2px 6px rgba(14,33,80,.25); }
.plus-pic { width: 100%; aspect-ratio: 2.6 / 1; object-fit: cover; object-position: 50% 88%; border-radius: 18px; margin-bottom: 4px; }
.plan.plus { background: linear-gradient(180deg, #fff8ea, var(--white) 55%); }
.plan .includes { margin: 6px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--teal-soft); font: 700 17px/1.3 var(--sans); color: var(--teal-dark); }
.plan .includes span { display: inline-block; padding: 2px 10px; margin-right: 4px; border-radius: 99px; background: var(--white); box-shadow: 0 0 0 1px rgba(0,90,96,.18); }
.plan ul.more li::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2150' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(180deg, var(--amber-light), var(--amber)); }
.plan ul.more { gap: 14px; }
.plan ul.more li { font-size: 19px; }
.plan ul.more li::before { width: 24px; height: 24px; margin-top: 2px; }
.plan ul.more b { font-weight: 800; }
.route { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 0 auto 28px; padding: 10px 22px 10px 10px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -18px rgba(14,33,80,.35); }
.route img { width: 64px; height: 64px; flex: none; border-radius: 99px; background: var(--sky); }
.route p { margin: 0; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.route b { color: var(--ink); }
.places { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .places { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .places { grid-template-columns: repeat(2, 1fr); gap: 12px; } .route { border-radius: 24px; } .route img { width: 52px; height: 52px; } }
.place { position: relative; border-radius: 20px; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 12px 28px -20px rgba(14,33,80,.4); }
.place img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.place div { display: grid; gap: 2px; padding: 10px 14px 14px; }
.place b { font: 800 17px/1.2 var(--sans); color: var(--ink); }
.place div span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.place .tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 99px; font: 800 12px/1 var(--sans); color: var(--ink); background: linear-gradient(180deg, var(--amber-light), var(--amber)); }

/* v2.0: bigger world icons, one-line subtitles */
.wtile img { width: 148px; height: 148px; margin-top: -8px; }
.wtile span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 560px) { .wtile img { width: 112px; height: 112px; } .wtile span { font-size: 14px; } }

/* v2.0: animated Y in Get NALYVA */
.ycard.ycta { position: relative; left: auto; top: auto; width: 260px; margin: 0 auto 4px; }
@media (max-width: 560px) { .ycard.ycta { width: 200px; } }

/* v2.0 polish: centre a short last row of world tiles (3 + 2 on tablets, 2 + 2 + 1 on phones) */
@media (max-width: 980px) { .worlds { display: flex; flex-wrap: wrap; justify-content: center; } .wtile { flex: 0 1 calc((100% - 32px) / 3); } }
@media (max-width: 560px) { .wtile { flex-basis: calc((100% - 12px) / 2); } }

/* v2.0 polish: the Get NALYVA line wraps evenly (no lone "Arabic.") */
.cta .sub { max-width: 52ch; text-wrap: balance; }

/* polish: bigger 30 seconds cards, labels on one line (rows on phones) */
.play30 { max-width: 660px; padding: 30px; gap: 20px; }
.play30 .tiles { gap: 14px; }
.play30 .tile { padding: 8px 8px 12px; gap: 10px; }
.play30 .tile span { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .play30 { padding: 20px 14px; }
  .play30 .tiles { grid-template-columns: 1fr; gap: 10px; }
  .play30 .tile { grid-template-columns: 88px 1fr; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; }
  .play30 .tile span { font-size: 15px; text-align: left; }
}
@media (max-width: 340px) { .play30 .tile { grid-template-columns: 76px 1fr; gap: 10px; } .play30 .tile span { font-size: 13px; } }

/* v2.3: Y travels the Water World */
#world { overflow-x: clip; }
.places { row-gap: 60px; padding-top: 44px; }
.place { overflow: visible; }
.place > img:first-child { border-radius: 20px 20px 0 0; }
.place .tag { z-index: 2; }
.place img.yw { position: absolute; z-index: 1; top: 0; right: -14%; width: 86.67%; height: auto; aspect-ratio: 1; object-fit: contain; pointer-events: none; transform: translateY(-38.46%); transform-origin: 50% 87%; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); filter: drop-shadow(0 10px 10px rgba(14, 33, 80, .2)); }
.place:hover img.yw, .place:focus-within img.yw { transform: translateY(-44%) scale(1.05); }
@media (max-width: 640px) { .places { row-gap: max(40px, 9.5vw); padding-top: max(30px, 7vw); } .place .tag { top: 8px; left: 8px; padding: 3px 8px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .place img.yw { transition: none; } .place:hover img.yw, .place:focus-within img.yw { transform: translateY(-38.46%); } }
