/* Dricast promo site (ADR-063) — Apple "Today" design language. Plain CSS, no build step.
   Dark-first; light theme via prefers-color-scheme. Admin uses /css/admin.css. */

/* Plus Jakarta Sans (SIL OFL 1.1, /fonts/OFL.txt) — self-hosted variable WOFF2 (wght 200–800), Latin + Latin Extended (Turkish). */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../../fonts/PlusJakartaSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../../fonts/PlusJakartaSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../../fonts/PlusJakartaSans-Italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../../fonts/PlusJakartaSans-Italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }


/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: var(--font);

  --accent: #34CC58;            /* fills, rings, selected states */
  --accent-text: #34CC58;       /* accent-coloured text (AA on --bg) */
  --on-accent: #000;            /* text on accent fills (AA) */
  --brand-gradient: linear-gradient(180deg, #6FE07A, #2DB24A);

  --bg: #000;
  --surface: #1C1C1E;
  --surface-2: #2C2C2E;
  --surface-3: #3A3A3C;
  --fill: rgba(120, 120, 128, .24);
  --fill-2: rgba(120, 120, 128, .16);
  --label: #fff;
  --label-2: #98989F;
  --label-3: #6C6C72;
  --separator: rgba(84, 84, 88, .55);
  --danger: #FF453A;
  --danger-text: #FF6961;
  --warning: #FF9F0A;
  --info: #0A84FF;

  --glass-bg: rgba(22, 22, 24, .7);
  --glass-border: rgba(255, 255, 255, .12);
  --glass-blur: blur(24px) saturate(180%);
  --hero-glow: rgba(45, 178, 74, .30);

  --r-card: 26px;
  --r-tile: 20px;
  --r-group: 22px;

  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --t: .3s;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Plus Jakarta Sans has no Cyrillic, Greek, Hebrew, Thai, Japanese, Chinese or Korean glyphs (and the web subsets no
   Vietnamese range): these languages use the system face for the whole page instead of mixing it with Jakarta's Latin
   letters (ADR-062, 3rd wave). Arabic keeps per-glyph fallback. */
:root:lang(ru), :root:lang(uk), :root:lang(el), :root:lang(vi) {
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
:root:lang(he) {
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Noto Sans Hebrew", Arial, sans-serif;
}
:root:lang(th) {
  --font: -apple-system, BlinkMacSystemFont, "Thonburi", system-ui, "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif;
}
:root:lang(ja) {
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
:root:lang(zh-Hans) {
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
:root:lang(zh-Hant) {
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}
:root:lang(ko) {
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --accent: #2DB24A;
    --accent-text: #1A7F32;     /* #2DB24A fails AA as text on light */
    --bg: #F5F5F7;
    --surface: #FFFFFF;
    --surface-2: #F2F2F7;
    --surface-3: #E5E5EA;
    --fill: rgba(120, 120, 128, .16);
    --fill-2: rgba(120, 120, 128, .1);
    --label: #1D1D1F;
    --label-2: #6E6E73;
    --label-3: #AEAEB2;
    --separator: rgba(60, 60, 67, .2);
    --danger: #FF3B30;
    --danger-text: #D70015;
    --info: #007AFF;
    --glass-bg: rgba(255, 255, 255, .72);
    --glass-border: rgba(0, 0, 0, .08);
    --hero-glow: rgba(45, 178, 74, .22);
  }
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--label);
  font: 17px/1.4 var(--font); letter-spacing: -0.01em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; transition: top var(--t) var(--ease); }
.skip-link:focus { top: calc(var(--safe-top) + 12px); text-decoration: none; }
main { display: block; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
main:focus { outline: none; }
.glass { background: var(--glass-bg); border: .5px solid var(--glass-border); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--label-2); }
.eyebrow-date { font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--label-2); }
.large-title { font-family: var(--font-display); font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -0.022em; }
.title-1 { font-family: var(--font-display); font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.title-2 { font-family: var(--font-display); font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -0.018em; }
.title-3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.headline { font-size: 17px; font-weight: 600; }
.subhead { font-size: 15px; }
.footnote { font-size: 13px; }
.secondary { color: var(--label-2); }
.legal-fallback-note { margin: 8px 0 20px; font-size: 15px; color: var(--label-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; padding-top: var(--safe-top);
  background: var(--glass-bg); border-bottom: .5px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; gap: 20px; }
.header-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--label); font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.header-brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; display: inline-grid; place-items: center; background: var(--brand-gradient); color: #fff; }
.brand-mark svg { width: 62%; height: 62%; }
.brand-mark.xl { width: 72px; height: 72px; border-radius: 20px; }
.header-nav { display: none; gap: 4px; margin-inline-start: auto; }
.header-nav a { padding: 8px 12px; border-radius: 999px; color: var(--label); font-size: 15px; font-weight: 500; }
.header-nav a:hover { background: var(--fill-2); text-decoration: none; }
.header-nav a[aria-current="page"] { background: var(--fill); font-weight: 600; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 760px) {
  .header-nav { display: flex; }
  .header-actions { margin-inline-start: 8px; }
}

/* Avatar + account popover */
.avatar {
  --size: 38px; width: var(--size); height: var(--size); flex: 0 0 var(--size); border-radius: 50%;
  display: grid; place-items: center; overflow: hidden; color: #fff; font-size: calc(var(--size) * .4); font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(180deg, #A5A5AD, #6E6E76); cursor: pointer; list-style: none;
}
.avatar::-webkit-details-marker { display: none; }
.avatar.is-pro { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.account-menu { position: relative; }
.account-popover {
  position: absolute; z-index: 60; top: calc(100% + 12px); inset-inline-end: 0; width: min(340px, calc(100vw - 24px));
  padding: 16px; border-radius: 22px; background: var(--surface); border: .5px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: pop-in .2s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.account-head { display: flex; align-items: center; gap: 12px; }
.account-name { display: block; font-weight: 700; font-size: 17px; }
.account-head .row-sub { display: block; font-size: 14px; color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 15px; }
.account-status a { margin-inline-start: auto; font-weight: 600; }
.account-rows { margin-top: 10px; display: grid; }
.account-rows form { margin: 0; }
.menu-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 8px 6px;
  border: 0; border-top: .5px solid var(--separator); background: none; color: var(--label); font-size: 16px; text-align: start;
}
.account-rows > :first-child, .account-rows > :first-child .menu-row { border-top: 0; }
a.menu-row:hover, button.menu-row:hover { text-decoration: none; color: var(--accent-text); }
.menu-row svg { width: 15px; height: 15px; color: var(--label-3); }
.menu-row.destructive { color: var(--danger-text); }
.pro-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--brand-gradient); color: #000; font-size: 12px; font-weight: 800; letter-spacing: .04em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 17px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: transform var(--t) var(--ease), filter var(--t) var(--ease);
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn.gray { background: var(--fill); color: var(--label); }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 15px; }
.btn.large { min-height: 54px; padding: 0 28px; font-size: 18px; }
.btn.danger-fill { background: var(--danger); color: #fff; }
.icon-btn {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; border: 0; display: inline-grid; place-items: center;
  background: var(--fill); color: var(--label-2);
}
.icon-btn svg { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; font-weight: 600; }
.text-link svg { width: 14px; height: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin: 18px 0 12px; font-weight: 600; }
.back-link svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; gap: 36px; align-items: center; padding: 48px 0 24px; isolation: isolate; }
.hero::before {
  /* Full viewport width: on wide screens a column-wide glow ends in a visible edge (body clips the overflow). */
  content: ""; position: absolute; z-index: -1; inset: -40px calc(50% - 50vw) 0; pointer-events: none;
  background: radial-gradient(50% 45% at 70% 35%, var(--hero-glow), transparent 70%), radial-gradient(35% 35% at 15% 10%, rgba(10, 132, 255, .16), transparent 70%);
}
.hero-text { text-align: center; }
.hero-eyebrow { color: var(--accent-text); }
.hero-title { margin-top: 12px; font-family: var(--font-display); font-size: clamp(38px, 7.4vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.hero-lead { margin: 18px auto 0; max-width: 600px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.4; color: var(--label-2); text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.hero-device { display: flex; justify-content: center; }
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr .9fr; padding: 72px 0 40px; }
  .hero-text { text-align: start; }
  .hero-lead { margin-inline: 0; }
  .hero-ctas { justify-content: flex-start; }
}
.page-hero { text-align: center; padding: 48px 0 8px; }
.page-hero .hero-lead { margin-inline: auto; }
.icon-tile.pro-tile { margin: 0 auto 8px; --tile: #D9590D; background: linear-gradient(180deg, #F2A61A, #D9590D); }

/* Device frame around a screenshot */
.device-frame {
  width: min(420px, 82vw); padding: 10px; border-radius: 40px; background: #0B0B0C;
  box-shadow: 0 0 0 1px #3a3a3e, 0 40px 90px rgba(0, 0, 0, .45);
}
.device-frame img { display: block; width: 100%; height: auto; border-radius: 30px; background: #000; }
.device-frame.small { width: 100%; padding: 7px; border-radius: 28px; box-shadow: 0 0 0 1px #3a3a3e, 0 20px 40px rgba(0, 0, 0, .3); }
.device-frame.small img { border-radius: 21px; }

/* iPhone mockup (phone frames only): titanium band, black bezel, Dynamic Island, side buttons. Sizes follow the frame width
   (container units), so the hero and the small screenshots share one shape. Screens are 6.9" captures (1320×2868). */
.device-frame:not(.tablet):not(.tv) {
  container-type: inline-size; position: relative; padding: 3px; border-radius: 68px;
  background: linear-gradient(135deg, #a1a1a6 0%, #48484c 14%, #232326 45%, #2c2c2f 60%, #5c5c61 86%, #b3b3b8 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .22), 0 40px 90px rgba(0, 0, 0, .45);
}
/* Hero phone: the frame radius must scale with the width like the screen's (15.6cqw), otherwise on narrow phones the fixed 68px
   makes the frame's corners cut into the screen's black bezel (corner radius 16.1% of the width, circular: 7.75% of the height). */
.hero-device .device-frame:not(.tablet):not(.tv) { border-radius: 16.1% / 7.75%; }
.device-frame.small:not(.tablet):not(.tv) { padding: 2px; border-radius: 42px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .2), 0 20px 40px rgba(0, 0, 0, .3); }
.device-frame:not(.tablet):not(.tv) img { box-sizing: border-box; border: 3.4cqw solid #000; border-radius: 15.6cqw; background: #000; }
.device-frame:not(.tablet):not(.tv)::after {
  content: ''; position: absolute; left: 50%; top: calc(3px + 3.4cqw + 2.6cqw); transform: translateX(-50%);
  width: 28.5cqw; height: 8.4cqw; border-radius: 99px; background: #000; pointer-events: none;
}
.device-frame:not(.tablet):not(.tv)::before {
  content: ''; position: absolute; right: -2px; top: 27%; width: 3px; height: 21cqw; border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #6a6a6f, #36363a);
  box-shadow: calc(-100cqw - 7px) -8cqw 0 0 #4a4a4e, calc(-100cqw - 7px) 17cqw 0 0 #4a4a4e;
  pointer-events: none;
}

/* Download CTA */
.download-cta { display: inline-flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.appstore-link { display: inline-flex; border-radius: 12px; }
.appstore-link:hover { text-decoration: none; }
.appstore-link img { display: block; height: 50px; width: auto; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--fill-2); color: var(--label); font-size: 15px; font-weight: 500; white-space: nowrap; }
.soon-chip { color: var(--label-2); }
.download-qr { display: none; margin: 0; text-align: center; font-size: 12px; color: var(--label-2); }
.qr-box { width: 104px; height: 104px; padding: 9px; border-radius: 14px; background: #fff; margin-bottom: 6px; }
.qr-box svg { display: block; width: 100%; height: 100%; }
@media (min-width: 1024px) and (hover: hover) { .download-qr { display: block; } }

/* ---------- Sections ---------- */
.section { margin-top: 72px; }
.section-head { margin-bottom: 22px; }
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.section-head .eyebrow + .section-title { margin-top: 4px; }
.section-lead { margin-top: 10px; max-width: 640px; font-size: 18px; color: var(--label-2); }
.section-foot { margin-top: 16px; font-size: 14px; color: var(--label-2); }

/* Features */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature-card { padding: 22px; border-radius: var(--r-card); background: var(--surface); }
.feature-title { margin: 14px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.feature-card p { font-size: 16px; line-height: 1.45; }

/* Icon tiles (settings-style) */
.icon-tile { --tile: #8E8E93; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; --symbol-inner: var(--tile); background: var(--tile); background-image: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0)); }
.icon-tile svg { width: 18px; height: 18px; }
.icon-tile.lg { width: 46px; height: 46px; flex-basis: 46px; border-radius: 12px; }
.icon-tile.lg svg { width: 26px; height: 26px; }
.icon-tile.xl { width: 88px; height: 88px; flex-basis: 88px; border-radius: 24px; }
.icon-tile.xl svg { width: 50px; height: 50px; }
.tint-green { --tile: #30B94D; } .tint-blue { --tile: #0A84FF; } .tint-indigo { --tile: #5E5CE6; } .tint-orange { --tile: #FF9F0A; }
.tint-pink { --tile: #FF375F; } .tint-teal { --tile: #30B0C7; } .tint-gray { --tile: #8E8E93; } .tint-red { --tile: #FF453A; }
.tint-purple { --tile: #BF5AF2; } .tint-graphite { --tile: #48484A; }

/* Screens */
.screens-row {
  list-style: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; display: grid; gap: 18px;
  grid-auto-flow: column; grid-auto-columns: min(260px, 66vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.screens-row::-webkit-scrollbar { display: none; }
.screen-item { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.screen-label { font-size: 15px; font-weight: 600; color: var(--label-2); }
.big-screens { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .big-screens { grid-template-columns: 1fr 1.25fr; } }
.device-frame.tablet, .device-frame.tv { width: 100%; }
.device-frame.tablet { padding: 12px; border-radius: 30px; }
.device-frame.tablet img { border-radius: 19px; }
.device-frame.tv { padding: 6px; border-radius: 14px; }
.device-frame.tv img { border-radius: 9px; }
@media (min-width: 1100px) { .screens-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; } }

/* Today stories */
.today-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.story-card {
  position: relative; display: flex; flex-direction: column; width: 100%; aspect-ratio: 87 / 100; border-radius: var(--r-card); overflow: hidden;
  color: #fff; text-decoration: none; isolation: isolate;
  background: radial-gradient(75% 60% at 88% 12%, var(--c3) 0%, transparent 62%), radial-gradient(85% 70% at 8% 92%, var(--c2) 0%, transparent 68%), linear-gradient(150deg, var(--c1) 0%, var(--c2) 100%);
  transition: transform var(--t) var(--ease);
}
a.story-card:hover { text-decoration: none; transform: scale(.985); }
.story-card .story-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .6; }
.story-art { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; pointer-events: none; }
.story-art-ghost { position: absolute; z-index: -1; right: -14%; top: 8%; width: 78%; height: auto; opacity: .15; transform: rotate(-12deg); }
.story-squircle {
  width: 33%; aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; margin-top: 12%; --symbol-inner: var(--c1);
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 24px 48px rgba(0, 0, 0, .16);
}
.story-squircle svg { width: 58%; height: 58%; }
.story-top { padding: 0 22px 16px; }
.story-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: rgba(255, 255, 255, .82); }
.story-title { margin-top: 4px; font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.story-subtitle { margin-top: 6px; font-size: 16px; color: rgba(255, 255, 255, .82); }
.story-strip { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(20, 10, 60, .28); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); }
.story-tile { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; --symbol-inner: var(--c1); background: linear-gradient(160deg, var(--c2, #2DB24A), var(--c1, #1A7F32)); }
.story-tile svg { width: 27px; height: 27px; }
.story-strip-text { flex: 1; min-width: 0; }
.story-strip-title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-strip-subtitle { font-size: 14px; color: rgba(255, 255, 255, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-card .capsule { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 16px; font-weight: 700; background: rgba(255, 255, 255, .24); color: #fff; }

/* Story detail */
.story-detail { max-width: 760px; margin: 0 auto; }
.story-detail .story-card { aspect-ratio: auto; min-height: min(70vh, 600px); }
.story-detail .story-title { font-size: clamp(32px, 8vw, 40px); }
.story-body { margin-top: 26px; font-size: 19px; line-height: 1.55; }
.steps-panel { margin-top: 26px; padding: 20px; border-radius: var(--r-card); background: var(--surface); }
.steps-panel h2 { margin-bottom: 14px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.4; }
.steps li::before { content: counter(step); flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 700; margin-top: -2px; }
.cta-strip { margin-top: 26px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-tile); background: var(--surface); }

/* Platforms */
.platform-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.platform-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-card); background: var(--surface); min-width: 0; }
.platform-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--fill-2); color: var(--accent-text); margin-bottom: 6px; }
.platform-icon svg { width: 26px; height: 26px; }
.platform-name { font-size: 19px; font-weight: 700; }
.platform-body { font-size: 15px; color: var(--label-2); line-height: 1.4; }
.platform-status { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--accent-text); }
.platform-status.soon { color: var(--label-2); }
.platform-card.is-soon .platform-icon { color: var(--label-2); }

/* Pro: comparison + plans */
.compare { border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 14px 18px; border-top: .5px solid var(--separator); font-size: 15px; }
.compare-row:first-child { border-top: 0; }
.compare-row > :not(:first-child) { text-align: center; }
.compare-head { font-weight: 700; color: var(--label-2); font-size: 14px; }
.compare-label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.compare-label svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--accent-text); --symbol-inner: var(--surface); }
.compare .is-pro { font-weight: 700; }
.compare [role="cell"] svg { width: 20px; height: 20px; color: var(--accent-text); vertical-align: middle; }
.compare-foot { margin-top: 10px; font-size: 14px; color: var(--label-2); }
.plan-cards { margin-top: 22px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.plan-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--r-tile); background: var(--surface); }
.plan-name { font-size: 18px; font-weight: 700; }
.plan-price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.plan-intro { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.plan-note { font-size: 14px; color: var(--label-2); }
.plans-foot { margin-top: 14px; font-size: 14px; color: var(--label-2); max-width: 760px; }
.info-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.section .platform-grid + .section-foot + .info-cards { margin-top: 22px; }
.info-cards li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-tile); background: var(--surface); font-size: 15px; line-height: 1.45; }
.info-cards li > svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--accent-text); margin-top: 1px; --symbol-inner: var(--surface); }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; }

/* CTA band */
.cta-band { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 48px 20px; border-radius: 34px; background: var(--surface); }
.cta-band .download-cta { margin-top: 8px; }

/* ---------- Grouped lists (support, TV, legal) ---------- */
.group-title { margin: 26px 16px 7px; font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; color: var(--label-2); }
.group-foot { margin: 7px 16px 0; font-size: 13px; color: var(--label-2); }
.group { background: var(--surface); border-radius: var(--r-group); overflow: hidden; }
.row {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 16px;
  color: var(--label); text-decoration: none; background: none; border: 0; width: 100%; text-align: start; font-size: 17px;
}
.row + .row::before { content: ""; position: absolute; top: 0; inset-inline: 16px 0; border-top: .5px solid var(--separator); }
.row.has-icon + .row::before { inset-inline-start: 60px; }
a.row:hover { background: var(--fill-2); text-decoration: none; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 17px; line-height: 1.25; }
.row-sub { font-size: 14px; color: var(--label-2); line-height: 1.3; margin-top: 1px; }
.row-value { color: var(--label-2); font-size: 17px; white-space: nowrap; }
.row-chev { width: 14px; height: 14px; color: var(--label-3); flex: 0 0 14px; }
[dir="rtl"] .row-chev, [dir="rtl"] .back-link svg, [dir="rtl"] .text-link svg { transform: scaleX(-1); }

/* FAQ */
.faq-item { border-top: .5px solid var(--separator); }
.faq-item:first-child { border-top: 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .row-chev { transition: transform var(--t) var(--ease); }
.faq-item[open] summary .row-chev { transform: rotate(90deg); }
.faq-item p { padding: 0 18px 18px; color: var(--label-2); line-height: 1.5; }
.support .faq { margin-top: 40px; }

/* Support / legal / TV pages */
.page { padding-top: 32px; }
.support .large-title, .legal .large-title { margin-top: 4px; }
.legal { max-width: 760px; margin: 0 auto; }
.legal-body { margin-top: 20px; line-height: 1.6; }
.legal-body h2 { margin: 28px 0 10px; font-size: 22px; letter-spacing: -0.015em; }
.legal-body h3 { margin: 22px 0 8px; font-size: 18px; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 12px; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { padding: 8px 10px; border: .5px solid var(--separator); text-align: start; vertical-align: top; }
.legal-more { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding-top: 18px; border-top: .5px solid var(--separator); font-size: 15px; }
.auth { max-width: 460px; margin: 0 auto; text-align: center; }
.auth .icon-tile.xl { margin: 8px auto 18px; }
.auth .lead { margin-top: 8px; color: var(--label-2); font-size: 17px; }
.auth form { text-align: start; margin-top: 22px; }
.auth .switch-auth { margin-top: 22px; color: var(--label-2); font-size: 15px; }
.form-card { padding: 6px 0; }
.field { padding: 0 16px; }
.field label { display: block; padding-top: 10px; font-size: 13px; color: var(--label-2); }
.input { display: block; width: 100%; min-height: 40px; padding: 4px 0 10px; border: 0; background: none; color: var(--label); font-size: 17px; outline: none; }
.input::placeholder { color: var(--label-3); }
.field:focus-within label { color: var(--accent-text); }
.field-error, .error { color: var(--danger-text); font-size: 13px; padding: 6px 0; }
.form-actions { display: grid; gap: 10px; margin-top: 22px; }

/* Notices + toast */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); font-size: 15px; line-height: 1.4; margin: 14px 0; text-align: start; }
.notice > svg { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; --symbol-inner: var(--surface-2); }
.notice.error > svg { color: var(--danger-text); }
.notice.info > svg { color: var(--info); }
.toast-wrap { position: fixed; z-index: 70; left: 50%; top: calc(var(--safe-top) + 72px); transform: translateX(-50%); width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; animation: toast-in .45s var(--ease) both, toast-out .45s var(--ease) 4.5s forwards; }
.toast svg { width: 20px; height: 20px; flex: 0 0 20px; }
.toast.success svg { color: var(--accent-text); }
.toast.error svg { color: var(--danger-text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px); visibility: hidden; } }

/* ---------- Dialogs (sign-in, delete account) ---------- */
.sheet-dialog { width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 30px; background: var(--surface); color: var(--label); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.sheet-dialog::backdrop { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sheet-dialog[open] { animation: sheet-up var(--t) var(--ease); }
.dialog-body { position: relative; padding: 34px 24px 22px; text-align: center; }
.dialog-body > .brand-mark, .dialog-body > .icon-tile.xl { margin: 0 auto 16px; }
.dialog-close { position: absolute; top: 14px; inset-inline-end: 14px; margin: 0; }
.dialog-lead { margin-top: 8px; font-size: 16px; }
/* Apple's rendered button never grows past 375px (its max data-width); Google's is capped the same so both match. */
.signin-buttons { display: grid; gap: 12px; margin: 24px auto 0; width: 100%; max-width: 375px; }
.signin-buttons > * { width: 100%; }
.apple-btn-slot { height: 50px; border-radius: 999px; overflow: hidden; cursor: pointer; }
/* Google sign-in button (branding guidelines: light #FFF / #747775 stroke / #1F1F1F text; dark #131314 / #8E918F / #E3E3E3). */
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 999px;
  background: #fff; color: #1F1F1F; box-shadow: inset 0 0 0 1px #747775; font-family: Roboto, var(--font); font-size: 17px; font-weight: 500;
}
.google-btn:hover { text-decoration: none; background: #F8F8F8; }
.google-btn svg { width: 20px; height: 20px; flex: none; }
@media (prefers-color-scheme: dark) {
  .google-btn { background: #131314; color: #E3E3E3; box-shadow: inset 0 0 0 1px #8E918F; }
  .google-btn:hover { background: #1F1F21; }
}
.dialog-legal { margin-top: 20px; }
.dialog-legal a { color: inherit; text-decoration: underline; }
.info-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; text-align: start; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.info-list li > svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--danger-text); --symbol-inner: var(--surface); }
.confirm-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); text-align: start; font-size: 15px; cursor: pointer; }
.confirm-check input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--danger); }
@media (max-width: 600px) {
  .sheet-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 30px 30px 0 0; padding-bottom: var(--safe-bottom); }
}
@keyframes sheet-up { from { opacity: 0; transform: translateY(30px); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; border-top: .5px solid var(--separator); font-size: 13px; color: var(--label-2); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) calc(var(--safe-bottom) + 32px); display: grid; gap: 16px; }
.footer-links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.footer-links a { color: var(--label); }
.footer-pickers { display: flex; flex-wrap: wrap; gap: 10px; }
.region-picker { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.region-picker svg { width: 16px; height: 16px; }
.region-picker select { border: 0; background: var(--fill-2); color: var(--label); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.footer-note { line-height: 1.5; max-width: 820px; }

/* ---------- Language suggestion (/<locale>/ pages, ADR-065) ---------- */
.lang-suggest { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px var(--gutter); background: var(--fill-2); font-size: 14px; }
.lang-suggest[hidden] { display: none; }
.lang-suggest a { color: var(--accent-text); font-weight: 600; }
.lang-suggest-close { border: 0; background: none; color: var(--label-2); font-size: 20px; line-height: 1; padding: 4px 8px; cursor: pointer; }

/* ---------- RTL ---------- */
[dir="rtl"] .hero-title, [dir="rtl"] .section-title, [dir="rtl"] .large-title, [dir="rtl"] .title-1, [dir="rtl"] .story-title { letter-spacing: 0; }
[dir="rtl"] .story-art-ghost { right: auto; left: -14%; }

/* ---------- PWA offline page ---------- */
.offline { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px var(--gutter); text-align: center; }
.offline p { max-width: 420px; }
.offline-mark { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 6px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
  .toast { animation: none; }
}

/* Your Devices (account menu sheet, UserDevices) */
.device-list li { align-items: center; }
.device-list li > svg { color: var(--accent-text); }
.device-list .row-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.device-list .inline-form { display: flex; gap: 8px; align-items: center; }
.device-list .inline-form input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--separator);
    background: var(--fill); color: var(--label); font: inherit; font-size: 15px; }
.device-list .danger-text { color: var(--danger-text); }
