/* Flash Feed website. Mobile-first; every value comes from the app's "Electric Paper" tokens (design/tokens.json, FlashFeed/App/Theme.swift).
   Paper and ink screens, one hero violet, the feed's deep-violet gradient, chunky buttons with a lip, 28 px flashcards. No external requests (system rounded type). */

:root {
  color-scheme: light dark;
  --paper: #FAF7F1;
  --card: #FFFFFF;
  --ink: #221A3F;
  --ink2: #5E5873;
  --line: #ECE6DC;
  --dash: #8F8777;
  --violet: #6C4DF6;
  --violet-press: #5638D6;
  --violet-text: #5638D6;
  --violet-tint: #EFEAFE;
  --shade: #412F94;
  --gold: #FFC01F;
  --amber: #FFAA1F;
  --amber-text: #935600;
  --green: #17A24A;
  --green-text: #0E6B3A;
  --sky: #2E9FDB;
  --dock: #17131F;
  --feed-top: #4A36D8;
  --feed-mid: #3326A5;
  --feed-bottom: #2A1F64;
  --r-card: 28px;
  --r-tile: 24px;
  --r-btn: 18px;
  --r-chip: 13px;
  --shadow-tile: 0 6px 16px rgba(34, 26, 63, .08);
  --shadow-card: 0 12px 28px rgba(34, 26, 63, .16);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B0C16;
    --card: #171A2B;
    --ink: #F3F1FC;
    --ink2: #B9B4CC;
    --line: #212540;
    --dash: #8A86A8;
    --violet-text: #B3A2FF;
    --violet-tint: rgba(142, 117, 255, .24);
    --amber-text: #F2A33A;
    --green-text: #5BD68A;
    --shadow-tile: 0 6px 16px rgba(0, 0, 0, .35);
    --shadow-card: 0 12px 28px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1.0625rem/1.58 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--violet-text); text-underline-offset: .18em; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow-card); }
.skip:focus { top: 12px; }
.icon { width: 1.5em; height: 1.5em; flex: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.1rem; letter-spacing: -.01em; margin-right: auto; white-space: nowrap; }
.brand img { border-radius: 9px; }
.nav { display: none; gap: 4px; }
.nav a, .nav-decks { color: var(--ink2); text-decoration: none; font-weight: 800; padding: 10px 12px; border-radius: 12px; font-size: .95rem; }
.nav a:hover, .nav-decks:hover { color: var(--violet-text); background: var(--violet-tint); }
.nav-decks { display: inline-block; white-space: nowrap; padding: 10px 8px; }
.lang-code { display: inline; }
.lang-full { display: none; }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: .9rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 1.1em; height: 1.1em; }
@media (min-width: 560px) { .lang-code { display: none; } .lang-full { display: inline; } }
@media (max-width: 359px) {
  .bar { gap: 6px; }
  .brand { font-size: 1rem; gap: 8px; }
  .nav-decks { padding: 10px 4px; font-size: .88rem; }
  .lang summary { padding: 0 10px; gap: 4px; }
}
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 11rem; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-card); padding: 6px; z-index: 60; }
.lang li a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.lang li a:hover, .lang li a[aria-current="true"] { background: var(--violet-tint); color: var(--violet-text); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 24px; border: 0; border-radius: var(--r-btn); font: 900 1.05rem/1.1 var(--font); text-decoration: none; cursor: pointer; text-align: center; transition: transform .12s ease, box-shadow .12s ease; }
.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 4px 0 var(--shade); }
.btn-violet:hover { color: #fff; background: #765AF8; }
.btn-white { background: #fff; color: #2A1F64; box-shadow: 0 4px 0 rgba(10, 6, 40, .45); }
.btn-white:hover { color: #2A1F64; background: #F6F2FF; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .22); }
.btn-outline { background: var(--card); color: var(--violet-text); box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line); }
.btn:active:not([role="note"]) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(10, 6, 40, .4); }
.btn[role="note"] { cursor: default; }
.btn .icon { width: 1.25em; height: 1.25em; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .92rem; }
.chip .icon { width: 1.1em; height: 1.1em; }
.chip-light { background: rgba(255, 255, 255, .16); color: #fff; }
.chip-tint { background: var(--violet-tint); color: var(--violet-text); }
.kicker { display: inline-block; margin: 0 0 12px; font-weight: 900; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--violet-text); }
.hero .kicker, .on-violet .kicker { color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(60% 50% at 85% 8%, rgba(255, 192, 31, .22), transparent 60%),
  radial-gradient(70% 60% at 0% 100%, rgba(142, 117, 255, .45), transparent 65%),
  linear-gradient(170deg, var(--feed-top) 0%, var(--feed-mid) 48%, var(--feed-bottom) 100%); }
.hero-grid { display: grid; gap: 28px; padding-top: 40px; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(2.5rem, 11vw, 4.6rem); margin-bottom: 18px; color: #fff; }
.hero .sub { font-size: 1.15rem; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 34rem; margin-bottom: 26px; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.cta-row .btn { flex: 1 1 15rem; }
@media (min-width: 760px) { .cta-row .btn { flex: 0 0 auto; white-space: nowrap; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 440px; padding-bottom: 0; }
.phone { position: relative; width: min(62vw, 270px); aspect-ratio: 1206 / 2622; padding: 8px; background: var(--dock); border-radius: 38px; box-shadow: 0 30px 60px rgba(5, 3, 30, .5), inset 0 0 0 2px rgba(255, 255, 255, .08); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.phone-peek { aspect-ratio: auto; border-radius: 38px 38px 0 0; }
.phone-peek img { height: auto; border-radius: 30px 30px 0 0; }
.hero-art .phone { margin-bottom: -90px; }
.hero-art .phone-a { transform: rotate(-5deg) translateX(8%); z-index: 2; }
.hero-art .phone-b { transform: rotate(5deg) translateX(-8%) translateY(-18px); margin-left: -34px; }
.hero-art .cue { position: absolute; z-index: 3; width: 88px; right: 3%; top: 4%; animation: bob 4s ease-in-out infinite; }
.hero-art .cue-b { left: 2%; right: auto; top: 46%; width: 64px; animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.hero-fade { height: 60px; margin-top: -60px; position: relative; z-index: 4; background: linear-gradient(to bottom, transparent, var(--paper)); }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 72px 0; }
.section-head { max-width: 40rem; margin-bottom: 32px; }
.section-head h2, .final h2 { font-size: clamp(1.9rem, 7vw, 3rem); margin-bottom: 14px; }
.section-head p { color: var(--ink2); font-size: 1.1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* demo */
.demo { padding: 64px 0 24px; }
.demo-grid { display: grid; gap: 28px; align-items: center; }
.demo-copy h2 { font-size: clamp(1.9rem, 7vw, 2.75rem); margin-bottom: 14px; }
.demo-copy p { color: var(--ink2); font-size: 1.1rem; max-width: 30rem; }
.feed { position: relative; width: 100%; max-width: 380px; margin: 0 auto; padding: 18px 16px 20px; border-radius: 34px; background: linear-gradient(170deg, var(--feed-top), var(--feed-mid) 55%, var(--feed-bottom)); box-shadow: 0 24px 50px rgba(42, 31, 100, .35); color: #fff; }
.feed-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-weight: 800; font-size: .9rem; }
.feed-deck { background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 6px 12px; }
.feed-count { background: rgba(0, 0, 0, .28); border-radius: 999px; padding: 6px 12px; }
.fcard { position: relative; display: block; width: 100%; min-height: 260px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; perspective: 1000px; text-align: left; }
.fcard-inner { display: block; position: relative; min-height: 260px; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .9, .3, 1); }
.fcard.flipped .fcard-inner { transform: rotateY(180deg); }
.fface { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px 20px 16px; border-radius: var(--r-card); background: #fff; color: #221A3F; box-shadow: 0 18px 40px rgba(5, 22, 17, .35); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fface-back { transform: rotateY(180deg); }
.flabel { align-self: flex-start; font-weight: 900; font-size: .72rem; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: #EFEAFE; color: #5638D6; }
.ftext { margin: auto 0; padding: 14px 0; font-weight: 900; font-size: clamp(1.35rem, 5.4vw, 1.75rem); line-height: 1.18; text-align: center; letter-spacing: -.01em; color: #221A3F; }
.fhint { text-align: center; color: #5E5873; font-weight: 700; font-size: .85rem; }
.rate { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.rate button { min-height: 54px; border: 0; border-radius: var(--r-btn); font: 900 1rem/1.1 var(--font); cursor: pointer; }
.rate .still { background: var(--amber); color: #221A3F; box-shadow: 0 4px 0 #A8680A; }
.rate .got { background: var(--green); color: #fff; box-shadow: 0 4px 0 #0C7A36; }
.rate button:active { transform: translateY(3px); box-shadow: none; }
.rate button[disabled] { opacity: .45; cursor: default; transform: none; }
.feed-done { display: none; text-align: center; padding: 20px 8px 8px; }
.feed-done img { width: 112px; margin: 0 auto 12px; }
.feed-done h3 { font-size: 1.7rem; margin-bottom: 8px; color: #fff; }
.feed-done p { color: rgba(255, 255, 255, .85); font-weight: 600; margin-bottom: 18px; }
.feed.finished .fcard, .feed.finished .rate { display: none; }
.feed.finished .feed-done { display: block; }

/* story */
.story { padding-top: 40px; }
.chapter { display: grid; gap: 28px; align-items: center; padding: 44px 0; }
.chapter h3 { font-size: clamp(1.7rem, 6.4vw, 2.6rem); margin-bottom: 14px; }
.chapter p { color: var(--ink2); font-size: 1.12rem; max-width: 33rem; }
.visual { display: flex; justify-content: center; align-items: center; min-height: 280px; border-radius: 36px; padding: 28px 20px 0; overflow: hidden; }
.v-violet { background: linear-gradient(170deg, var(--feed-top), var(--feed-bottom)); }
.v-tint { background: var(--violet-tint); padding-bottom: 28px; }
.v-gold { background: linear-gradient(170deg, #FFE08A, #FFC01F); padding-bottom: 28px; }
.v-green { background: linear-gradient(170deg, #CFF3DC, #98E0B4); padding-bottom: 28px; }
.visual .phone { width: min(62%, 260px); margin-bottom: -2px; border-radius: 38px 38px 0 0; }

.streak-card { width: min(100%, 330px); background: #fff; color: #221A3F; border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow-card); }
.streak-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.streak-top .icon { width: 42px; height: 42px; color: var(--amber); }
.streak-n { font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; }
.day { display: grid; justify-items: center; gap: 6px; font-weight: 800; font-size: .78rem; color: #5E5873; }
.dot { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed #8F8777; color: transparent; }
.dot .icon { width: 55%; height: 55%; }
.dot.on { background: var(--green); border: 0; color: #fff; }
.dot.shield { background: #EFEAFE; border: 2px solid #6C4DF6; color: #5638D6; }
.shield-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #EFEAFE; color: #5638D6; font-weight: 800; font-size: .92rem; }
.shield-note .icon { width: 22px; height: 22px; }

.devices { position: relative; display: grid; gap: 16px; justify-items: center; width: 100%; padding-bottom: 28px; }
.banner { display: flex; align-items: center; gap: 12px; width: min(100%, 340px); padding: 12px 14px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 22px; box-shadow: 0 10px 28px rgba(34, 26, 63, .18); color: #221A3F; }
.banner img { width: 38px; height: 38px; border-radius: 9px; }
.banner b { display: block; font-weight: 800; font-size: .95rem; }
.banner span { display: block; font-size: .88rem; color: #4A4560; }
.banner time { margin-left: auto; align-self: flex-start; font-size: .78rem; color: #6B6680; }
.dev-row { display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
.widget { width: 128px; height: 128px; border-radius: 28px; background: #fff; display: grid; place-items: center; align-content: center; gap: 6px; box-shadow: 0 10px 28px rgba(34, 26, 63, .18); color: #221A3F; text-align: center; }
.ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 1.5rem; background: conic-gradient(var(--violet) 0 72%, #E4DDF9 72% 100%); position: relative; }
.ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.ring b { position: relative; z-index: 1; }
.widget span { font-weight: 800; font-size: .92rem; }
.watch { width: 150px; padding: 8px; border-radius: 44px; background: #17131F; box-shadow: 0 10px 28px rgba(34, 26, 63, .3); }
.watch-screen { border-radius: 36px; background: linear-gradient(170deg, #3A2BB8, #231B66); padding: 14px 12px 12px; color: #fff; min-height: 168px; display: flex; flex-direction: column; }
.watch-meta { display: flex; justify-content: space-between; gap: 6px; font-weight: 800; font-size: .62rem; color: rgba(255, 255, 255, .75); margin-bottom: 8px; white-space: nowrap; }
.watch-meta span:first-child { overflow: hidden; text-overflow: ellipsis; }
.watch-q { font-weight: 900; font-size: .95rem; line-height: 1.15; margin-bottom: auto; }
.watch-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 10px; }
.watch-btns i { font-style: normal; text-align: center; border-radius: 999px; padding: 6px 2px; font-weight: 900; font-size: .58rem; line-height: 1.1; display: grid; place-items: center; }
.watch-btns .s { background: var(--amber); color: #221A3F; }
.watch-btns .g { background: var(--green); color: #fff; }

.timeline { width: min(100%, 360px); padding: 8px 0 0; }
.timeline svg { width: 100%; height: auto; overflow: visible; }
.files { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 300px; }
.files .chip { background: #fff; color: #221A3F; box-shadow: 0 4px 0 rgba(10, 60, 30, .18); font-size: 1rem; min-height: 48px; padding: 8px 18px; }
.visual-col { display: grid; gap: 22px; justify-items: center; }
.visual-col .cue { width: 120px; }

/* features */
.features { background: var(--card); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 16px; }
.feat { padding: 22px; border-radius: var(--r-tile); background: var(--paper); border: 1.5px solid var(--line); }
.feat .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--violet-tint); color: var(--violet-text); margin-bottom: 14px; }
.feat h3 { font-size: 1.15rem; margin-bottom: 6px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--ink2); font-size: 1rem; }

@media (max-width: 519px) {
  .feat { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 18px; }
  .feat .ico { grid-row: 1 / span 2; margin: 0; }
  .feat h3 { margin: 2px 0 4px; }
}

/* deck tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 190px; padding: 20px; border-radius: var(--r-tile); color: #fff; text-decoration: none; box-shadow: var(--shadow-tile); overflow: hidden; transition: transform .15s ease; }
.tile:hover { color: #fff; transform: translateY(-3px); }
.tile .em { font-size: 2.2rem; line-height: 1; margin-bottom: auto; }
.tile h3 { font-size: 1.35rem; color: #fff; }
.tile p { margin: 0; color: rgba(255, 255, 255, .88); font-size: .98rem; font-weight: 600; }
.tile .count { align-self: flex-start; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .26); font-weight: 800; font-size: .85rem; }
.g-biology { background: linear-gradient(150deg, #0E7C4A, #0A5661); }
.g-chemistry { background: linear-gradient(150deg, #6D32BE, #3B2B96); }
.g-physics { background: linear-gradient(150deg, #4936D9, #2A1F8F); }
.g-math { background: linear-gradient(150deg, #0F5FBF, #0E7C9C); }
.g-history { background: linear-gradient(150deg, #A8431C, #7C2D3E); }
.g-geography { background: linear-gradient(150deg, #0C7192, #0F6E4F); }
.g-language { background: linear-gradient(150deg, #B62A5C, #6F2DA8); }
.g-literature { background: linear-gradient(150deg, #96264A, #5F2D74); }
.g-computing { background: linear-gradient(150deg, #0A6F9C, #3A2FBF); }
.g-health { background: linear-gradient(150deg, #B02B2B, #8F2D5E); }
.g-art { background: linear-gradient(150deg, #A84812, #8F2DA8); }
.g-general { background: linear-gradient(150deg, #5B3FE0, #2E2470); }
.more-link { margin-top: 28px; }

/* languages */
.langs { background: linear-gradient(170deg, var(--feed-top), var(--feed-bottom)); color: #fff; }
.langs .section-head p { color: rgba(255, 255, 255, .85); }
.langs h2 { color: #fff; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-chips .chip { background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.02rem; }

/* faq */
.faq-list { display: grid; gap: 12px; max-width: 46rem; }
.faq-list details { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 800; font-size: 1.05rem; min-height: 56px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--violet-tint); color: var(--violet-text); font-weight: 900; font-size: 1.2rem; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .ans { padding: 0 20px 18px; color: var(--ink2); }
.faq-list .ans p { margin: 0; }

/* final */
.final { text-align: center; color: #fff; padding: 80px 0 90px; background:
  radial-gradient(60% 60% at 50% 0%, rgba(255, 192, 31, .25), transparent 65%),
  linear-gradient(170deg, var(--feed-top), var(--feed-bottom)); }
.final .cue { width: 120px; margin: 0 auto 12px; }
.final h2 { color: #fff; }
.final p { color: rgba(255, 255, 255, .88); font-size: 1.15rem; margin-bottom: 26px; }
.final .cta-row { justify-content: center; }
.final .cta-row .btn { flex: 0 1 22rem; }

/* footer */
.site-footer { padding: 44px 0 56px; border-top: 1px solid var(--line); color: var(--ink2); font-size: .95rem; }
.foot { display: grid; gap: 28px; }
.foot .brand { margin-bottom: 8px; }
.foot ul { display: grid; gap: 4px; }
.foot .brand { color: var(--ink); }
.foot a { color: var(--ink2); text-decoration: none; font-weight: 700; display: inline-flex; min-height: 40px; align-items: center; }
.foot a:hover { color: var(--violet-text); }
.foot h2 { font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.legal { margin-top: 28px; font-size: .85rem; }

/* ---------- decks pages ---------- */
.page-hero { color: #fff; padding: 36px 0 36px; background: linear-gradient(170deg, var(--feed-top), var(--feed-bottom)); }
.page-hero h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); color: #fff; margin-bottom: 12px; }
.page-hero .lead { color: rgba(255, 255, 255, .88); font-size: 1.15rem; max-width: 38rem; font-weight: 600; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-weight: 800; font-size: .9rem; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { color: rgba(255, 255, 255, .55); }
.deck-hero { color: #fff; padding: 36px 0 40px; }
.deck-hero + .section { padding-top: 40px; }
.deck-hero h1 { font-size: clamp(2rem, 7.5vw, 3.2rem); color: #fff; margin: 6px 0 12px; }
.deck-hero .lead { color: rgba(255, 255, 255, .9); font-size: 1.15rem; max-width: 40rem; font-weight: 600; margin-bottom: 18px; }
.deck-hero .em { font-size: 3rem; line-height: 1; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tools { display: grid; gap: 14px; margin: 28px 0 8px; }
.search { position: relative; }
.search input { width: 100%; min-height: 54px; padding: 0 18px 0 48px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 700 1.05rem var(--font); }
.search input:focus { outline: 3px solid var(--violet); outline-offset: 2px; border-color: transparent; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink2); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 800 .95rem var(--font); cursor: pointer; }
.cat[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { display: none; padding: 32px 0; color: var(--ink2); font-weight: 700; }
.note { margin-top: 32px; padding: 18px 20px; border: 2px dashed var(--dash); border-radius: var(--r-tile); color: var(--ink2); font-weight: 700; }

.cards { display: grid; gap: 14px; margin-top: 8px; }
.fc { list-style: none; }
.fc-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: default; perspective: 900px; }
.fc-face { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow-tile); min-height: 148px; }
.fc-a { margin-top: 8px; background: var(--violet-tint); border-color: transparent; }
.fc-label { align-self: flex-start; font-weight: 900; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--violet-tint); color: var(--violet-text); }
.fc-a .fc-label { background: var(--card); }
.fc-text { margin: auto 0; font-weight: 800; font-size: 1.12rem; line-height: 1.3; }
.fc-hint { color: var(--ink2); font-weight: 700; font-size: .82rem; }
.js .fc-btn { cursor: pointer; }
.js .fc-inner { position: relative; display: block; min-height: 168px; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.3, .9, .3, 1); }
.js .fc-face { position: absolute; inset: 0; margin: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.js .fc-a { transform: rotateY(180deg); background: var(--violet-tint); }
.js .fc-btn[aria-pressed="true"] .fc-inner { transform: rotateY(180deg); }
.js .fc-text { font-size: 1.1rem; }
.cta-card { display: grid; gap: 18px; margin: 40px 0 0; padding: 26px; border-radius: 32px; background: linear-gradient(170deg, var(--feed-top), var(--feed-bottom)); color: #fff; }
.cta-card h2 { font-size: 1.7rem; color: #fff; }
.cta-card p { margin: 0; color: rgba(255, 255, 255, .88); font-weight: 600; }
.cta-card .cue { width: 88px; }
.steps { display: grid; gap: 12px; counter-reset: s; margin-top: 18px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #221A3F; font-weight: 900; }
.related { margin-top: 48px; }
.related h2 { font-size: 1.6rem; margin-bottom: 18px; }
.prose { max-width: 44rem; margin: 0 auto; padding: 24px var(--gutter) 64px; }
.prose h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin: 8px 0 12px; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .4rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .2rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.prose li { margin: .35rem 0; }
.prose code { background: var(--card); border: 1px solid var(--line); border-radius: .35rem; padding: .05rem .3rem; font-size: .9em; }
.prose .lede { font-size: 1.25rem; color: var(--ink2); }
.picker { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); color: #fff; background: linear-gradient(170deg, var(--feed-top), var(--feed-bottom)); }
.picker .cue { width: 140px; margin: 0 auto 8px; }
.picker h1 { font-size: 2.6rem; color: #fff; margin-bottom: 6px; }
.picker p { color: rgba(255, 255, 255, .85); font-weight: 600; margin-bottom: 22px; }
.picker ul { display: grid; gap: 12px; max-width: 320px; margin: 0 auto; }
.picker a { display: flex; justify-content: center; align-items: center; min-height: 58px; border-radius: var(--r-btn); background: #fff; color: #2A1F64; font-weight: 900; font-size: 1.15rem; text-decoration: none; box-shadow: 0 4px 0 rgba(10, 6, 40, .45); }
.picker a:hover { background: #F6F2FF; color: #2A1F64; }

.section.tight { padding-top: 36px; }
.h-steps { margin-top: 36px; font-size: 1.4rem; }
.visual.peek { height: 400px; align-items: flex-end; padding-bottom: 0; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.3, .9, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- wider screens ---------- */
@media (min-width: 520px) {
  .grid.feats { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .nav { display: flex; }
  .section { padding: 96px 0; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: stretch; gap: 24px; padding-top: 48px; }
  .hero-copy { align-self: center; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(3rem, 5vw, 4.2rem); margin-bottom: 16px; }
  .hero .sub { margin-bottom: 22px; }
  .hero .cta-row .btn { padding: 14px 20px; }
  .hero-art { align-self: end; min-height: 520px; }
  .hero-fade { display: none; }
  .hero-art .phone { width: min(40vw, 290px); }
  .demo-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .chapter { grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; }
  .chapter:nth-child(even) .visual { order: -1; }
  .visual { min-height: 380px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: 1.4fr 1fr 1fr; }
  .cta-card { grid-template-columns: auto 1fr auto; align-items: center; padding: 32px 36px; }
  .tools { grid-template-columns: 1fr auto; align-items: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1040px) {
  .grid.feats { grid-template-columns: repeat(4, 1fr); }
  .hero-art .phone { width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .hero-art, .demo, .final, .lang { display: none; } }
