/* StudyFlow landing page (/). Plain CSS, no build step.
 * Palette and shape follow SPEC §19 (v4); fonts are Kalameh (body) and Hasti
 * (display), self-hosted (SPEC §24, §26). Unlike the app, the website may use
 * restrained gradients, glow and soft shadows. Every text pair is ≥4.5:1. */

@font-face { font-family: 'Kalameh'; src: url('/assets/fonts/Kalameh-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Kalameh'; src: url('/assets/fonts/Kalameh-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Kalameh'; src: url('/assets/fonts/Kalameh-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Kalameh'; src: url('/assets/fonts/Kalameh-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Kalameh'; src: url('/assets/fonts/Kalameh-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Kalameh'; src: url('/assets/fonts/Kalameh-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Hasti'; src: url('/assets/fonts/Hasti-Heavy.woff') format('woff'); font-weight: 900; font-display: swap; }

:root, [data-theme="light"] {
  --bg: #F2F3F8; --bg2: #E9EBF4; --card: #FFFFFF; --card2: #F7F8FB; --line: #E6E8F0; --line2: #DADDE8;
  --ink: #0E1120; --ink2: #525A70;
  --acc: #18227A; --accSoft: #E8EAF8; --onAcc: #FFFFFF; --accHi: #2E3BB5;
  --mint: #0A6E63; --mintSoft: #E3F5F2; --amber: #96590A; --amberSoft: #FBF0DF; --rose: #C42630; --roseSoft: #FBEAEB;
  --hero: #161E6B; --onHero: #F5F6FB; --onHero2: #C3C8EC;
  --frame: #0E1120; --frameRing: #2A2F43;
  --glow1: rgba(46, 59, 181, .20); --glow2: rgba(10, 110, 99, .12);
  --shadow: 0 1px 2px rgba(14, 17, 32, .05), 0 24px 48px -24px rgba(14, 17, 32, .28);
  --shadowPhone: 0 40px 80px -30px rgba(22, 30, 107, .45), 0 12px 24px -12px rgba(14, 17, 32, .25);
  --navBg: rgba(242, 243, 248, .72);
  --gridLine: rgba(24, 34, 122, .07);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #08090F; --bg2: #0D0F18; --card: #11131C; --card2: #161925; --line: #1F2333; --line2: #2A2F43;
  --ink: #F5F6FB; --ink2: #9CA3BA;
  --acc: #8E9CFF; --accSoft: #1B2050; --onAcc: #0A0F33; --accHi: #B4BDFF;
  --mint: #2BD3B4; --mintSoft: rgba(43, 211, 180, .14); --amber: #F0B23F; --amberSoft: rgba(240, 178, 63, .14); --rose: #FF6069; --roseSoft: rgba(255, 96, 105, .14);
  --hero: #161E6B; --onHero: #F5F6FB; --onHero2: #C3C8EC;
  --frame: #1A1D2B; --frameRing: #343A52;
  --glow1: rgba(142, 156, 255, .20); --glow2: rgba(43, 211, 180, .08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 24px 48px -24px rgba(0, 0, 0, .8);
  --shadowPhone: 0 40px 90px -30px rgba(142, 156, 255, .30), 0 12px 24px -12px rgba(0, 0, 0, .6);
  --navBg: rgba(8, 9, 15, .70);
  --gridLine: rgba(142, 156, 255, .07);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Kalameh'; font-size: 16px; line-height: 1.8; font-weight: 400;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--acc); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; top: -60px; right: 16px; z-index: 100; background: var(--acc); color: var(--onAcc); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Theme-paired screenshots */
[data-theme="light"] .th-dark, [data-theme="dark"] .th-light { display: none; }
[data-theme="light"] .only-dark, [data-theme="dark"] .only-light { display: none; }

/* Icons: the shared Hugeicons sprite */
.i { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-15 { width: 15px; height: 15px; } .i-16 { width: 16px; height: 16px; } .i-17 { width: 17px; height: 17px; }
.i-18 { width: 18px; height: 18px; } .i-20 { width: 20px; height: 20px; } .i-22 { width: 22px; height: 22px; } .i-26 { width: 26px; height: 26px; }
.sw-2 { stroke-width: 2; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 16px;
  font-weight: 800; font-size: 16px; line-height: 1.4; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.975); }
.btn-primary { background: var(--acc); color: var(--onAcc); box-shadow: 0 10px 24px -12px var(--acc); }
.btn-primary:hover { background: var(--accHi); }
[data-theme="dark"] .btn-primary:hover { background: var(--accHi); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: var(--acc); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 14.5px; border-radius: 13px; box-shadow: none; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 17px; border-radius: 18px; }
.btn-block { width: 100%; }
.btn-light { background: var(--onHero); color: var(--hero); }
.btn-light:hover { background: #FFFFFF; }
.btn-outline-light { color: var(--onHero); border: 1px solid rgba(245, 246, 251, .35); }
.btn-outline-light:hover { border-color: var(--onHero); background: rgba(245, 246, 251, .06); }
.btn-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--acc); font-size: 15px; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.nav.scrolled { background: var(--navBg); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--line); }
.nav-in { max-width: 1200px; margin: 0 auto; height: 68px; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
@media (min-width: 720px) { .nav-in { padding: 0 32px; height: 76px; } }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); min-height: 44px; }
.brand-tile { width: 38px; height: 38px; border-radius: 12px; background: var(--acc); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-tile img { width: 20px; height: 20px; object-fit: contain; }
.brand-name { font-family: 'Hasti', 'Kalameh'; font-size: 20px; line-height: 1.3; }
.nav-links { display: none; gap: 4px; margin-inline-start: 24px; }
.nav-links a { color: var(--ink2); font-weight: 700; font-size: 15px; padding: 10px 14px; border-radius: 12px; }
.nav-links a:hover { color: var(--ink); background: var(--card); }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); border: 1px solid var(--line2); background: var(--card); }
.icon-btn:hover { color: var(--ink); border-color: var(--acc); }
@media (max-width: 380px) { .nav .btn-sm { padding: 8px 12px; font-size: 14px; } .brand-name { font-size: 18px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 108px 0 40px; overflow: hidden; isolation: isolate; }
@media (min-width: 960px) { .hero { padding: 136px 0 72px; min-height: min(100vh, 920px); display: flex; align-items: center; } }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 30% 40%, var(--glow1), transparent 70%),
    radial-gradient(30% 35% at 75% 20%, var(--glow2), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--gridLine) 1px, transparent 1px), linear-gradient(90deg, var(--gridLine) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line2); color: var(--ink2); font-size: 14px; font-weight: 700; line-height: 1.4;
}
.kicker .i { color: var(--acc); }
.display {
  font-family: 'Hasti', 'Kalameh'; font-weight: 900; color: var(--ink);
  font-size: clamp(44px, 11.5vw, 76px); line-height: 1.12; letter-spacing: -.01em;
}
.hl {
  color: var(--acc);
  background: linear-gradient(100deg, var(--accHi), var(--acc) 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  /* Hasti's swashes overhang the glyph box; widen the painted area to keep them. */
  padding: .12em .2em; margin: -.12em -.2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink2); line-height: 1.95; max-width: 34em; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero .cta-row { width: 100%; } .hero .cta-row .btn { flex: 1 1 100%; } }
.facts { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink2); }
.facts .i { color: var(--mint); }

.returning {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; border-radius: 16px;
  background: var(--amberSoft); color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.5;
  border: 1px solid transparent; transition: border-color .2s ease;
}
.returning:hover { border-color: var(--amber); }
.returning b { font-weight: 800; }
.returning-go { display: inline-flex; align-items: center; gap: 4px; color: var(--amber); font-weight: 800; }
.pulse { width: 9px; height: 9px; border-radius: 99px; background: var(--amber); box-shadow: 0 0 0 0 var(--amber); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 178, 63, .55); } 100% { box-shadow: 0 0 0 10px rgba(240, 178, 63, 0); } }

/* Phone frames */
.phone {
  position: relative; width: 100%; aspect-ratio: 603 / 1311;
  border-radius: 13.5% / 6.2%; padding: 3.2%;
  background: var(--frame); box-shadow: var(--shadowPhone), inset 0 0 0 1px var(--frameRing);
}
.phone::before { /* speaker slot */
  content: ''; position: absolute; top: 1.35%; left: 50%; width: 22%; height: .9%; transform: translateX(-50%);
  border-radius: 99px; background: var(--frameRing); z-index: 2;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 11% / 5.1%; overflow: hidden; background: var(--bg); }
.screen img { width: 100%; height: 100%; object-fit: cover; }

.hero-stage { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1 / 1.42; --p: 0; }
@media (min-width: 960px) { .hero-stage { max-width: none; aspect-ratio: auto; height: 640px; } }
.hero-stage .phone { position: absolute; top: 0; }
.phone-front { width: 62%; left: 50%; transform: translate(-50%, calc(var(--p) * -40px)); z-index: 3; }
.phone-back { width: 48%; opacity: .9; z-index: 1; }
.hero-stage .phone-back { top: 9%; }
.phone-b1 { right: 0; transform: rotate(7deg) translateY(calc(var(--p) * 40px)); }
.phone-b2 { left: 0; transform: rotate(-7deg) translateY(calc(var(--p) * 70px)); }
@media (min-width: 960px) {
  .phone-front { width: 300px; }
  .phone-back { width: 244px; }
  .phone-b1 { right: 2%; }
  .phone-b2 { left: 2%; }
}
.float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); line-height: 1.35; animation: bob 6s ease-in-out infinite;
}
.float b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.float small { display: block; font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.ft { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.f1 { top: 18%; right: -2%; }
.f2 { bottom: 16%; left: -2%; animation-delay: -2s; }
.f3 { bottom: 2%; right: 8%; animation-delay: -4s; }
@media (max-width: 559px) { .f3 { display: none; } .f1 { right: 0; top: 10%; } .f2 { left: 0; bottom: 8%; } .float { padding: 8px 12px; } .float small { font-size: 12px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.t-acc { background: var(--accSoft); color: var(--acc); }
.t-mint { background: var(--mintSoft); color: var(--mint); }
.t-amber { background: var(--amberSoft); color: var(--amber); }
.t-rose { background: var(--roseSoft); color: var(--rose); }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 18px 0; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 48s linear infinite; }
.ticker span { font-family: 'Hasti', 'Kalameh'; font-size: 22px; color: var(--ink); white-space: nowrap; line-height: 1.4; }
.ticker i { width: 8px; height: 8px; border-radius: 3px; background: var(--acc); transform: rotate(45deg); flex: none; }
@keyframes ticker { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding-top: 24px; }
@media (min-width: 960px) { .section { padding: 128px 0; } .section-tight { padding-top: 32px; } }
.sec-head { max-width: 760px; margin-bottom: 44px; }
@media (min-width: 960px) { .sec-head { margin-bottom: 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--acc); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.h2 { font-family: 'Hasti', 'Kalameh'; font-weight: 900; font-size: clamp(34px, 7vw, 58px); line-height: 1.22; color: var(--ink); }
.sec-lead { margin-top: 18px; font-size: clamp(16.5px, 1.9vw, 19px); color: var(--ink2); line-height: 1.95; font-weight: 500; }
.h3 { font-family: 'Hasti', 'Kalameh'; font-weight: 900; font-size: clamp(28px, 5vw, 40px); line-height: 1.3; color: var(--ink); }

/* ---------- Showcase ---------- */
.show { display: grid; gap: 0; }
@media (min-width: 960px) { .show { grid-template-columns: 1fr 1fr; gap: 64px; } }
.step { display: flex; flex-direction: column; gap: 16px; padding: 40px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .step { min-height: 74vh; justify-content: center; border-top: 0; padding: 48px 0; }
  .step-num { transition: color .4s ease; }
  .step.active .step-num { color: var(--acc); }
}
.step-num { font-family: 'Hasti', 'Kalameh'; font-size: 15px; color: var(--ink2); letter-spacing: .08em; }
.step-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 11px; background: var(--accSoft); color: var(--acc); font-weight: 800; font-size: 14px; line-height: 1.5; }
.step p { color: var(--ink2); font-size: 17px; line-height: 2; font-weight: 500; }
.ticks { display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; font-size: 15.5px; color: var(--ink); font-weight: 600; line-height: 1.8; }
.ticks li::before {
  content: ''; position: absolute; right: 0; top: .42em; width: 20px; height: 20px; border-radius: 7px; background: var(--mintSoft);
}
.ticks li::after {
  content: ''; position: absolute; right: 7px; top: calc(.42em + 4px); width: 5px; height: 9px;
  border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.step .note { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 15px; color: var(--ink); font-weight: 600; line-height: 1.8; }
.step .note .i { color: var(--acc); margin-top: 4px; }
.step-phone { margin-top: 12px; display: flex; justify-content: center; }
.step-phone .phone { width: min(78%, 300px); }
@media (min-width: 960px) { .step-phone { display: none; } }
.show-stage { display: none; }
@media (min-width: 960px) {
  .show-stage { display: block; position: relative; }
  .show-sticky { position: sticky; top: calc(50vh - 330px); height: 660px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
}
.show-halo { position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow1), transparent); filter: blur(10px); z-index: -1; }
.phone-xl { width: 292px; }
#show-screen img { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
#show-screen img.on { opacity: 1; transform: none; }
.show-dots { display: flex; gap: 8px; }
.show-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line2); transition: width .35s ease, background-color .35s ease; }
.show-dots i.on { width: 26px; background: var(--acc); }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 14px; }
@media (min-width: 640px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.tile-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .25s ease, transform .25s ease;
}
.tile-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.tile-card h3 { font-family: 'Hasti', 'Kalameh'; font-size: 23px; line-height: 1.4; color: var(--ink); margin-top: 6px; }
.tile-card p { color: var(--ink2); font-size: 15.5px; line-height: 1.9; font-weight: 500; }
.tile-card .ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 640px) { .span-2 { grid-column: span 2; } }
@media (min-width: 960px) { .span-2 { grid-row: span 2; grid-column: span 1; justify-content: flex-start; } }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 800; line-height: 1.4; }
.p-mint { background: var(--mintSoft); color: var(--mint); }
.p-amber { background: var(--amberSoft); color: var(--amber); }
.p-rose { background: var(--roseSoft); color: var(--rose); }

/* ---------- Windows ---------- */
.desk { background: linear-gradient(180deg, transparent, var(--bg2) 30%, var(--bg2) 70%, transparent); }
.desk-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .desk-in { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.desk-copy .ticks { margin-top: 24px; }
.desk-stage { position: relative; padding-bottom: 56px; }
.window { border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: var(--card); box-shadow: var(--shadowPhone); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--card2); border-bottom: 1px solid var(--line); }
.window-bar span { width: 10px; height: 10px; border-radius: 99px; background: var(--line2); }
.window-bar b { margin-inline-start: auto; font-size: 13px; font-weight: 700; color: var(--ink2); }
.window-screen { aspect-ratio: 16 / 10; }
.window-screen img { width: 100%; height: 100%; object-fit: cover; }
.mini {
  position: absolute; left: -8px; bottom: 0; width: min(64%, 300px);
  background: var(--card); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
}
@media (min-width: 960px) { .mini { left: -36px; } }
.mini-bar { font-size: 12.5px; font-weight: 700; color: var(--ink2); padding: 7px 14px; background: var(--card2); border-bottom: 1px solid var(--line); }
.mini-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 10px; }
.mini-k { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink2); line-height: 1.4; }
.mini-k .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--mint); }
.mini-t { font-family: 'Kalameh'; font-weight: 900; font-size: 34px; color: var(--ink); line-height: 1.2; }
.mini-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accSoft); color: var(--acc); }
.mini-track { height: 4px; margin: 0 14px 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mini-track i { display: block; height: 100%; width: 72%; margin-inline-start: auto; background: var(--mint); border-radius: 99px; }

/* ---------- How it works ---------- */
.how { position: relative; display: grid; gap: 14px; counter-reset: how; }
@media (min-width: 720px) { .how { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .how { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.how-step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.how-n { position: absolute; left: 18px; top: 6px; font-family: 'Hasti', 'Kalameh'; font-size: 72px; line-height: 1; color: var(--accSoft); pointer-events: none; }
[data-theme="dark"] .how-n { color: var(--line2); }
.how-ic { width: 48px; height: 48px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.how-step h3 { font-family: 'Hasti', 'Kalameh'; font-size: 22px; line-height: 1.45; color: var(--ink); margin-top: 6px; position: relative; }
.how-step p { color: var(--ink2); font-size: 15.5px; line-height: 1.9; font-weight: 500; position: relative; }
.how-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- Download ---------- */
.dl { display: grid; gap: 14px; }
@media (min-width: 720px) { .dl { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .dl { grid-template-columns: 1fr 1fr 1fr; gap: 18px; } }
.dl-card, .dl-notes { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-ic { width: 56px; height: 56px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center; background: var(--accSoft); color: var(--acc); flex: none; }
.dl-card h3, .dl-notes h3 { font-family: 'Hasti', 'Kalameh'; font-size: 26px; line-height: 1.35; color: var(--ink); }
.dl-meta .ltr, .dl-notes h3 .ltr { font-family: 'Kalameh'; font-weight: 800; }
.dl-meta { font-size: 14.5px; color: var(--ink2); font-weight: 600; }
.dl-hint { font-size: 14px; color: var(--ink2); line-height: 1.9; }
.dl-notes { background: var(--card2); }
@media (min-width: 720px) and (max-width: 1079px) { .dl-notes { grid-column: span 2; } }
.dl-notes-head { display: flex; align-items: center; gap: 10px; color: var(--acc); }
.dl-notes h3 { font-size: 22px; }
.dl-notes ul { display: flex; flex-direction: column; gap: 10px; }
.dl-notes li { position: relative; padding-inline-start: 18px; font-size: 15px; color: var(--ink); font-weight: 500; line-height: 1.8; }
.dl-notes li::before { content: ''; position: absolute; right: 0; top: .75em; width: 7px; height: 7px; border-radius: 2px; background: var(--acc); transform: rotate(45deg); }
.gate { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--accSoft); color: var(--acc); }
.gate p { color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.8; }
.gate .i { margin-top: 3px; }
.gate a { font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; min-height: 64px; font-weight: 800; font-size: 17px; color: var(--ink); line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--acc); transition: transform .3s ease; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink2); font-size: 16px; line-height: 2; font-weight: 500; }

/* ---------- Final CTA ---------- */
.final { padding: 0 0 96px; }
.final-card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: 56px 24px;
  background: var(--hero); color: var(--onHero); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
}
@media (min-width: 720px) { .final-card { padding: 88px 48px; border-radius: 40px; } }
.final-mark { position: absolute; top: -12%; left: -8%; width: 340px; opacity: .07; z-index: -1; pointer-events: none; }
.final-glow { position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(142, 156, 255, .38), transparent 70%); pointer-events: none; }
.final-h { font-family: 'Hasti', 'Kalameh'; font-weight: 900; font-size: clamp(38px, 8vw, 68px); line-height: 1.2; color: var(--onHero); }
.final-card p { color: var(--onHero2); font-size: clamp(16.5px, 2vw, 19px); max-width: 34em; line-height: 1.9; font-weight: 500; }
.final-card .cta-row { justify-content: center; margin-top: 8px; }
.final-card :focus-visible { outline-color: var(--onHero); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-sub { display: block; font-size: 13.5px; color: var(--ink2); line-height: 1.4; }
.footer .brand-name { display: block; font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-links a { color: var(--ink2); font-weight: 700; font-size: 14.5px; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 10px; }
.footer-links a:hover { color: var(--ink); background: var(--card); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .06s; } .hero .reveal:nth-child(3) { transition-delay: .12s; }
.hero .reveal:nth-child(4) { transition-delay: .18s; } .hero .reveal:nth-child(5) { transition-delay: .24s; }
.js .hero-stage .phone, .js .hero-stage .float { transition: opacity 1s ease; }
.js:not(.ready) .hero-stage .phone, .js:not(.ready) .hero-stage .float { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float, .ticker-track, .pulse { animation: none; }
  .ticker-track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }
  .ticker-track > :nth-child(n+17) { display: none; }
  .hero-stage { --p: 0 !important; }
  .js:not(.ready) .hero-stage .phone, .js:not(.ready) .hero-stage .float { opacity: 1; }
  .step { transition: none; }
  #show-screen img { transition: none; transform: none; }
  .btn, .tile-card { transition: none; }
}
