/* Shared styles for the secondary pages (features, guide). The home pages keep
   their own inline CSS; the tokens and components here mirror it on purpose so
   every page reads as one site. */
@font-face { font-family: "Nunito"; src: url("nunito-lat.woff2") format("woff2"); unicode-range: U+0000-024F; font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("nunito-cyr.woff2") format("woff2"); unicode-range: U+0400-04FF; font-weight: 300 900; font-display: swap; }
:root {
  --ink: #1c2033; --muted: #5b6172; --candy: #f5934c; --berry: #e0526f;
  --bg: #fffdf9; --cream: #fff3e9; --pink: #ffe9f0; --line: #f0e4d8; --leaf: #2e9e63;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: var(--berry); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* Header */
header { padding: 14px 0; border-bottom: 1px solid var(--line); background: rgba(255,253,249,0.92); }
.nav { display: flex; align-items: center; gap: 10px; }
.nav img { width: 34px; height: 34px; border-radius: 8px; }
.nav b { font-size: 19px; }
.nav b a { color: inherit; text-decoration: none; }
.menu { display: flex; gap: 4px; margin-left: 14px; }
.menu a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; padding: 6px 10px; border-radius: 999px; }
.menu a:hover { color: var(--berry); background: var(--pink); }
.menu a.cur { color: var(--berry); }
.lang { margin-left: auto; position: relative; }
.lang summary { list-style: none; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--muted); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: " ▾"; font-size: 12px; }
.lang[open] summary, .lang summary:hover { color: var(--berry); border-color: var(--berry); }
.lang nav { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(28,32,51,0.12); padding: 6px; min-width: 150px; z-index: 50; }
.lang nav a { display: block; padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: 15px; }
.lang nav a:hover { background: var(--cream); }
.lang nav a.cur { font-weight: 800; color: var(--berry); }

/* Page top */
.top { background: linear-gradient(170deg, var(--pink) 0%, var(--cream) 70%, var(--bg) 100%); padding: 56px 0 40px; }
.top h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.5px; font-weight: 800; max-width: 22ch; }
.top h1 em { font-style: normal; color: var(--berry); }
.top .sub { font-size: 19px; color: var(--muted); margin-top: 14px; max-width: 54ch; }
.top .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 700; color: var(--muted); }
.pill.ok::before { content: "✓"; color: var(--leaf); font-weight: 900; }

/* Sections */
section { padding: 52px 0 6px; }
h2 { font-size: 28px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--candy); margin-bottom: 8px; }
.lead { color: var(--muted); max-width: 60ch; }

.feat { display: grid; grid-template-columns: 1fr 280px; gap: 36px; align-items: center; margin-top: 26px; }
.feat.flip { grid-template-columns: 280px 1fr; }
.feat.flip .visual { order: -1; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 4px 14px rgba(28,32,51,0.04); }
.card .em { font-size: 24px; line-height: 1; }
.card b { display: block; margin: 8px 0 3px; font-size: 16px; }
.card span { color: var(--muted); font-size: 14.5px; }

.visual { display: flex; justify-content: center; }
.phone { background: #1c2033; border-radius: 34px; padding: 9px; box-shadow: 0 18px 40px rgba(28,32,51,0.18); width: 100%; max-width: 250px; }
.phone img { display: block; width: 100%; border-radius: 26px; }
.stack { position: relative; width: 100%; max-width: 280px; padding: 26px 0 34px; }
.stack .phone { margin: 0 auto; max-width: 224px; }
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; box-shadow: 0 12px 28px rgba(28,32,51,0.14); font-size: 12px; font-weight: 800; color: var(--muted); }
.avatars { top: 0; left: -8px; display: flex; align-items: center; }
.avatars span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); border: 2px solid #fff; font-size: 18px; margin-left: -8px; }
.avatars span:first-child { margin-left: 0; }
.avatars .plus { background: var(--pink); color: var(--berry); font-size: 18px; }
.feat.flip.pairwide { grid-template-columns: 400px 1fr; }
.pair { position: relative; width: 100%; max-width: 400px; height: 560px; }
.pair .phone { position: absolute; width: auto; max-width: none; }
.pair .back { left: 0; top: 40px; width: 200px; }
.pair .front { right: 0; top: 76px; width: 222px; z-index: 2; box-shadow: 0 22px 50px rgba(28,32,51,0.28); }
.pair .avatars { top: 0; left: -8px; z-index: 3; }
.pair .tapto { left: 118px; top: 286px; z-index: 3; color: var(--berry); font-size: 13px; }
.pair .zoom { left: -16px; top: 396px; width: 236px; height: auto; padding: 0; border-radius: 16px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--candy), 0 16px 36px rgba(28,32,51,0.22); z-index: 4; }
.moon { left: -6px; bottom: 8px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.moon i { font-style: normal; font-size: 22px; }

.phones-row { display: flex; gap: 14px; justify-content: center; margin-top: 26px; }
.phones-row .phone { max-width: 214px; }
.phones-row figure { margin: 0; flex: 0 1 214px; }
.phones-row figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 10px; }

.land-row { display: grid; grid-template-columns: 1.45fr 1fr; gap: 34px; align-items: center; margin-top: 26px; }
.phone-land { margin: 0; background: #1c2033; border-radius: 30px; padding: 10px; box-shadow: 0 18px 40px rgba(28,32,51,0.18); }
.phone-land img { display: block; width: 100%; height: auto; border-radius: 22px; }
.h3 { font-size: 20px; font-weight: 800; line-height: 1.3; }
.h3.tv { margin-top: 40px; margin-bottom: 4px; }
.how3 { list-style: none; counter-reset: s; display: grid; gap: 12px; margin-top: 14px; }
.how3 li { counter-increment: s; position: relative; padding-left: 40px; color: var(--muted); font-size: 15px; }
.how3 li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; background: var(--candy); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.how3 li b { color: var(--ink); }
.small { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.mini.two { margin-top: 22px; }

.shots2 { display: flex; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.shots2 figure { margin: 0; flex: 1 1 240px; }
.shots2 img { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.shots2 figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* Banner */
.banner { margin-top: 30px; border-radius: 22px; padding: 30px 32px; color: #fff; background: linear-gradient(120deg, var(--candy) 0%, var(--berry) 100%); box-shadow: 0 16px 40px rgba(224,82,111,0.28); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.banner h2 { color: #fff; font-size: 26px; }
.banner p { opacity: 0.95; max-width: 52ch; }
.banner .btn { background: #fff; color: var(--berry); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 15px; padding: 12px 18px; border-radius: 14px; background: #14161f; color: #fff; box-shadow: 0 6px 16px rgba(28,32,51,0.16); transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }

.soon { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.soon .pill { border-style: dashed; }

/* Guide */
.ages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.age { background: var(--cream); border-radius: 18px; padding: 18px; }
.age b { display: block; font-size: 22px; color: var(--berry); line-height: 1.2; }
.age small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--candy); margin-bottom: 6px; }
.age span { color: var(--ink); font-size: 14.5px; display: block; margin-top: 6px; }
.age .src { color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 4px 14px rgba(28,32,51,0.04); display: flex; flex-direction: column; gap: 8px; }
.fact .em { font-size: 24px; line-height: 1; }
.fact h3 { font-size: 17px; line-height: 1.3; }
.fact p { color: var(--muted); font-size: 14.5px; }
.fact .src { font-size: 12.5px; color: var(--muted); }
.fact .src a { color: var(--muted); }
.fact .inb { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--ink); }
.fact .inb::before { content: "🍬 "; }
.fact .inb b { color: var(--berry); }
.sources { margin-top: 18px; padding-left: 22px; color: var(--muted); font-size: 13.5px; max-width: 78ch; }
.sources li { margin-bottom: 6px; }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 70ch; }
/* Guide top: a YouTube short behind a local poster. The page asks YouTube for
   nothing until the parent taps play; the embed then loads over the poster,
   which stays visible (play button pulsing) until YouTube paints its player. */
.lockvid { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; grid-template-areas: "vid ." "vid head" "vid droid" "vid ."; gap: 22px 40px; }
.lockvid .head { grid-area: head; }
.lockvid .vid { grid-area: vid; margin: 0; }
.lockvid .droid { grid-area: droid; max-width: 460px; }
.ytbox { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #1c2033; box-shadow: 0 18px 40px rgba(28,32,51,0.18); }
.ytbox a, .ytbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytbox img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ytbox .play { position: absolute; left: 50%; top: 43%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: linear-gradient(120deg, var(--candy) 0%, var(--berry) 100%); box-shadow: 0 10px 26px rgba(224,82,111,0.45); transition: transform 0.15s ease; }
.ytbox .play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.ytbox a:hover .play, .ytbox a:focus-visible .play { transform: scale(1.08); }
@keyframes ytwait { to { transform: scale(0.86); opacity: 0.75; } }
.ytbox .dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(20,22,31,0.72); color: #fff; font-size: 12.5px; font-weight: 800; }
.vid figcaption { margin-top: 12px; }
.vid figcaption small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--candy); }
.vid figcaption b { display: block; font-size: 17px; line-height: 1.3; margin-top: 2px; }
.vid figcaption span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 3px; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.quote .stars { color: var(--candy); letter-spacing: 2px; font-size: 14px; }
.quote p { margin-top: 8px; font-size: 15px; }
.quote cite { display: block; margin-top: 10px; font-style: normal; color: var(--muted); font-size: 13px; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 30px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
footer a { color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13.5px; line-height: 1.2; transition: border-color 0.15s ease, transform 0.15s ease; }
.social a:hover { border-color: var(--berry); transform: translateY(-1px); }
.social .ig { color: #d62976; }
.social .li { color: #0a66c2; }
.social small { font-size: 10px; font-weight: 800; letter-spacing: 0.3px; color: var(--muted); background: var(--cream); border-radius: 999px; padding: 1px 6px; }
footer .social { flex-basis: 100%; margin-top: 10px; }

/* Motion */
/* Plans, cancelling, comparison and "how we check" pages */
.mini.three { grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
.how3.wide { max-width: 72ch; }
.how3.wide li { font-size: 15.5px; }
.warn { margin-top: 20px; padding: 16px 18px 16px 50px; border-radius: 16px; background: var(--pink); border: 1px solid #f7c9d5; color: var(--ink); font-size: 15.5px; position: relative; max-width: 78ch; }
.warn::before { content: "⚠️"; position: absolute; left: 16px; top: 14px; font-size: 20px; }
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.store { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 4px 14px rgba(28,32,51,0.04); display: flex; flex-direction: column; }
.store .how3 { margin-bottom: 16px; }
.store .btn { margin-top: auto; align-self: flex-start; }
.btn.ghost { background: var(--cream); color: var(--ink); box-shadow: none; font-size: 14px; padding: 10px 14px; }
.btn.ghost::after { content: "›"; font-size: 17px; line-height: 1; }
.small.first { margin-top: 12px; }
.plain { list-style: none; margin-top: 12px; display: grid; gap: 8px; font-size: 15px; }
.h3.after { margin-top: 36px; }
.ticks { list-style: none; margin-top: 12px; display: grid; gap: 8px; max-width: 72ch; color: var(--muted); font-size: 15.5px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--leaf); font-weight: 900; }
.twoways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.way { border-radius: 18px; padding: 22px; border: 1px solid var(--line); background: #fff; }
.way.ours { background: var(--cream); border-color: #f6d9bd; }
.way small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--candy); margin-bottom: 6px; }
.way b { display: block; font-size: 18px; line-height: 1.3; margin-bottom: 6px; }
.way span { color: var(--muted); font-size: 15px; }
.textlinks { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; font-size: 15px; }
.textlinks a { text-decoration: none; }
.textlinks a::after { content: " ›"; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .mini .reveal:nth-child(2), .js .facts .reveal:nth-child(2), .js .ages .reveal:nth-child(2), .js .quotes .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .mini .reveal:nth-child(3), .js .facts .reveal:nth-child(3), .js .ages .reveal:nth-child(3), .js .quotes .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .mini .reveal:nth-child(4), .js .facts .reveal:nth-child(4), .js .ages .reveal:nth-child(4) { transition-delay: 0.24s; }
  .js .mini .reveal:nth-child(5) { transition-delay: 0.32s; }
  .js .mini .reveal:nth-child(6) { transition-delay: 0.4s; }
  .ytbox a.on .play { animation: ytwait 0.9s ease-in-out infinite alternate; }
}

@media (max-width: 760px) {
  .menu { display: none; }
  .top { padding: 40px 0 30px; }
  .top h1 { font-size: 30px; }
  .feat, .feat.flip { grid-template-columns: 1fr; gap: 26px; }
  .feat.flip .visual { order: 0; }
  .land-row { grid-template-columns: 1fr; gap: 20px; }
  .feat.flip.pairwide { grid-template-columns: 1fr; }
  .pair { max-width: 330px; height: 470px; margin: 0 auto; }
  .pair .back { width: 165px; top: 36px; }
  .pair .front { width: 185px; top: 62px; }
  .pair .tapto { left: 92px; top: 236px; }
  .pair .zoom { width: 190px; top: 330px; left: -6px; }
  .phone-land { border-radius: 22px; padding: 7px; }
  .phone-land img { border-radius: 16px; }
  .mini { grid-template-columns: 1fr; }
  .stack { margin: 0 auto; }
  .phones-row { flex-wrap: wrap; }
  .phones-row figure { flex: 1 1 150px; }
  .banner { grid-template-columns: 1fr; padding: 24px; }
  .ages { grid-template-columns: 1fr 1fr; }
  .facts, .quotes { grid-template-columns: 1fr; }
  .mini.three, .stores, .twoways { grid-template-columns: 1fr; }
  .phone { max-width: 224px; }
  .lockvid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "vid" "droid"; }
  .lockvid .vid { width: 100%; max-width: 260px; justify-self: center; }
  .lockvid .droid { max-width: none; }
}
@media (max-width: 420px) { .ages { grid-template-columns: 1fr; } }
