/* صياناتي — موقع التطبيق.
   كل لون ومقاس من دليل الهوية: بنفسجي واحد للإجراء، كحلي للعدّاد، نعناعي فوق الكحلي فقط،
   وألوان الحالة الثلاثة محجوزة للحالة. الارتفاع بالحدود لا بالظلال. */

/* ---------- tokens: الفاتح هو الأساس، والداكن فقط حين يختاره الزائر من الزر ---------- */
:root {
  color-scheme: light;
  --bg: #faf9ff; --surface: #ffffff; --surface-sunken: #f6f4fd; --line: #e7e4f4; --track: #f4f4f5;
  --ink: #18181b; --ink-2: #52525b; --ink-muted: #71717a; --ink-faint: #b1b1b5;
  --brand: #7c3aed; --on-brand: #ffffff; --brand-ink: #6d28d9; --brand-soft: #f3eeff; --brand-line: #ddd0fb; --focus: #6d28d9;
  --midnight: #1e1b4b; --midnight-glow: #3b247f; --midnight-line: #3e2e76; --midnight-track: #594493;
  --on-midnight: #ffffff; --on-midnight-muted: #c8c2db; --midnight-overlay: #ffffff0d; --midnight-tile: #ffffff1f;
  --mint: #6ee7b7;
  --ok: #15803d; --ok-fill: #15803d; --ok-soft: #ecfdf3; --ok-line: #bbf7d0;
  --soon: #b45309; --soon-fill: #f59e0b; --soon-soft: #fff8eb; --soon-line: #fde68a; --on-soon-fill: #1c1304;
  --due: #b91c1c; --due-fill: #dc2626; --due-soft: #fef2f2; --due-line: #fecaca;
  --on-fill: #ffffff; --neutral-fill: #71717a; --neutral-fill-2: #8b8b92;
  --shadow-hero: 0 12px 28px #1e1b4b40; --shadow-fab: 0 4px 10px #18181b33;
  --header-bg: #faf9ffd9;

  --radius-sm: 10px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-2xl: 32px; --radius-full: 9999px;
  --font-sans: "Changa", "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0f; --surface: #141221; --surface-sunken: #0f0e19; --line: #2c2748; --track: #1f1d2e;
  --ink: #f4f4f5; --ink-2: #b4b0c4; --ink-muted: #8e8aa0; --ink-faint: #5c596b;
  --brand-ink: #a78bfa; --brand-soft: #221d3d; --brand-line: #3b3168; --focus: #a78bfa;
  --midnight-line: #43357a;
  --ok: #4ade80; --ok-soft: #122a1e; --ok-line: #1f5137;
  --soon: #fbbf24; --soon-soft: #2c2211; --soon-line: #5c4513;
  --due: #f87171; --due-soft: #2e1618; --due-line: #5f2327;
  --shadow-hero: 0 0 0 1px #43357a; --shadow-fab: 0 0 0 0 #0000;
  --header-bg: #0a0a0fd9;
}

/* ---------- base ---------- */
*, *::before, *::after { 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: var(--font-sans); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-md); background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.num { direction: ltr; unicode-bidi: isolate; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- icons (Material Icons Round / Outlined, by ligature) ---------- */
.i { display: inline-block; flex: none; width: 1em; height: 1em; overflow: hidden; font-size: 24px; line-height: 1; font-weight: 400; font-style: normal; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; user-select: none; }
.i-r { font-family: "Material Icons Round"; }
.i-o { font-family: "Material Icons Outlined"; }
.i-18 { font-size: 18px; } .i-20 { font-size: 20px; } .i-22 { font-size: 22px; } .i-28 { font-size: 28px; } .i-40 { font-size: 40px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { flex: none; }
.logo-word { font-weight: 700; font-size: 22px; line-height: 1; white-space: nowrap; }
.mark { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.mark-brand .mark { stroke: var(--brand); }
.mark-duo .mark-arc { stroke: var(--on-brand); }
.mark-duo .mark-check { stroke: var(--mint); }
.mark-tile { fill: var(--brand); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--brand-ink); }
.eyebrow-num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; padding: 2px 8px; border-radius: var(--radius-full); background: var(--brand-soft); }
.on-night .eyebrow { color: var(--mint); }
.on-night .eyebrow-num { background: var(--midnight-tile); }
.h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.14; font-weight: 700; letter-spacing: -.005em; }
.h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.22; font-weight: 700; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 1.45; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.8; color: var(--ink-2); text-wrap: pretty; max-width: 680px; }
.on-night .lead { color: var(--on-midnight-muted); }
.text { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); text-wrap: pretty; }
.cap { font-size: 13.5px; line-height: 1.6; color: var(--ink-muted); }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section-y); }
.section-white { background: var(--surface); }
.section-night { background: var(--midnight); color: var(--on-midnight); background-image: radial-gradient(1100px 700px at 50% 60%, var(--midnight-glow) 0%, var(--midnight) 70%); }
.sec-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head-center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head-center .lead { margin-inline: auto; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.section-white .card { background: var(--bg); }
.tile { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-lg); border: 1px solid transparent; background: none; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-filled { background: var(--brand); color: var(--on-brand); }
.btn-filled:hover { background: #6d28d9; }
.btn-outline { background: var(--surface); border-color: var(--brand-line); color: var(--brand-ink); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* store buttons: icon on the right of its text, two-line label */
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 22px 8px 26px; border-radius: var(--radius-lg); border: 1px solid transparent; text-decoration: none; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.store:active { transform: scale(.98); }
.store-label { display: grid; line-height: 1.25; text-align: start; }
.store-label small { font-size: 12.5px; font-weight: 400; opacity: .85; }
.store-label b { font-size: 18px; font-weight: 700; direction: ltr; unicode-bidi: isolate; text-align: right; }
.store-filled { background: var(--brand); color: var(--on-brand); }
.store-filled:hover { background: #6d28d9; }
.store-white { background: #ffffff; color: #4c1d95; }
.store-white:hover { background: #f3eeff; }
.store-ghost { border-color: var(--midnight-track); color: var(--on-midnight); background: var(--midnight-overlay); }
.store-line { border-color: #ffffff66; color: #ffffff; }
/* Google Play isn't live yet: same shape as a store button, but not a link */
.store-soon { border-style: dashed; cursor: default; }
.store-soon:active { transform: none; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- status components (from the component library) ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: var(--radius-full); border: 1px solid; font-size: 12px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.badge-soon { background: var(--soon-soft); border-color: var(--soon-line); color: var(--soon); }
.badge-due { background: var(--due-soft); border-color: var(--due-line); color: var(--due); }

.bar { display: block; height: 8px; border-radius: var(--radius-full); background: var(--track); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--ok-fill); border-radius: inherit; transition: width .6s var(--ease), background-color .25s var(--ease); }
.part-soon .bar-fill { background: var(--soon-fill); }
.part-due .bar-fill { background: var(--due-fill); }

.part { display: grid; gap: 12px; width: 100%; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); text-align: start; }
.part-head { display: flex; align-items: center; gap: 12px; }
.part-tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--ok-soft); color: var(--ok); transition: background-color .25s var(--ease), color .25s var(--ease); }
.part-soon .part-tile { background: var(--soon-soft); color: var(--soon); }
.part-due .part-tile { background: var(--due-soft); color: var(--due); }
.part-names { flex: 1; min-width: 0; }
.part-name { font-size: 16px; line-height: 24px; font-weight: 700; }
.part-interval, .part-meta, .part-dates { font-size: 13px; line-height: 20px; color: var(--ink-2); }
.part-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.part-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.part-remaining { color: var(--ok); font-weight: 500; }
.part-soon .part-remaining { color: var(--soon); }
.part-due .part-remaining { color: var(--due); }
.part .btn { width: 100%; pointer-events: none; }

/* notification (as it lands on the lock screen) */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: start; }
.note-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.note-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink-muted); }
.note-title { font-size: 15px; line-height: 1.5; font-weight: 700; }
.note-body { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .15s var(--ease), background-color .15s var(--ease); }
.nav a:hover { color: var(--ink); background: var(--surface-sunken); }
.nav a[aria-current="true"] { color: var(--brand-ink); background: var(--brand-soft); }
.header-end { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-full); background: none; color: var(--ink); cursor: pointer; transition: background-color .15s var(--ease); }
.icon-btn:hover { background: var(--surface-sunken); }
.theme-dark-icon { display: none; }
:root[data-theme="dark"] .theme-dark-icon { display: inline-block; }
:root[data-theme="dark"] .theme-light-icon { display: none; }
.menu-btn { display: none; }
.mobile-nav { border-top: 1px solid var(--line); padding: 12px var(--gutter) 20px; background: var(--bg); max-height: calc(100dvh - 72px); overflow-y: auto; }
.mobile-nav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.mobile-nav a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: var(--radius-md); text-decoration: none; font-weight: 500; }
.mobile-nav a:hover { background: var(--surface-sunken); }
.mobile-nav .mono { font-size: 12px; color: var(--brand-ink); }
.mobile-nav .btn { width: 100%; margin-top: 12px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-end { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
}

/* ---------- 01 hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--midnight); color: var(--on-midnight); background-image: radial-gradient(900px 760px at 18% 58%, var(--midnight-glow) 0%, var(--midnight) 72%); }
.hero-bg { position: absolute; left: -220px; top: 40px; width: 860px; height: 860px; pointer-events: none; opacity: .9; }
.hero-bg .a { stroke: var(--midnight-track); opacity: .38; }
.hero-bg .c { stroke: var(--mint); opacity: .12; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 48px; padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px); }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px 0 14px; border-radius: var(--radius-full); border: 1px solid var(--midnight-track); background: var(--midnight-overlay); font-size: 14px; font-weight: 500; color: var(--on-midnight-muted); }
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.hero .h1 span { color: var(--mint); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone { position: relative; width: 100%; max-width: 290px; aspect-ratio: 600 / 1304; border-radius: 46px; overflow: hidden; background: #000; box-shadow: 0 0 0 10px var(--midnight-tile), 0 40px 80px -20px #0a081f99; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero .phone { max-width: 300px; }
.float { position: absolute; z-index: 2; }
.float-note { top: 64px; inset-inline-end: -8px; width: 300px; box-shadow: 0 18px 40px -12px #0a081f80; }
.float-badge { bottom: 92px; inset-inline-start: -4px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 18px; border-radius: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 40px -12px #0a081f80; }
.float-badge .part-tile { width: 40px; height: 40px; }
.float-badge b { display: block; font-size: 15px; line-height: 1.4; }
.float-badge span { font-size: 13px; color: var(--ink-2); }
.float-badge-soon .part-tile { background: var(--soon-soft); color: var(--soon); }

/* ---------- 02 about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.promise { position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 40px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-2xl); background: var(--brand); color: var(--on-brand); min-height: 380px; }
.promise-mark { position: absolute; left: -36px; top: -44px; width: 240px; height: 240px; opacity: .2; }
.promise-mark .mark-arc { stroke: var(--on-brand); }
.promise-mark .mark-check { stroke: var(--mint); }
.promise q { display: block; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.2; font-weight: 700; quotes: none; }
.promise p { position: relative; font-size: 17px; line-height: 1.8; max-width: 440px; opacity: .92; }
.about-side { display: grid; gap: 24px; }
.persona { display: grid; gap: 12px; padding: clamp(24px, 3vw, 32px); }
.persona blockquote { margin: 0; font-size: 20px; line-height: 1.7; font-weight: 600; color: var(--ink); }
.persona .cap { color: var(--ink-muted); }
.audience { display: grid; gap: 0; padding: 8px clamp(20px, 3vw, 28px); }
.audience li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.audience li:first-child { border-top: 0; }
.audience b { display: block; font-size: 16px; line-height: 1.5; }
.audience span.text { font-size: 14.5px; }

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.principle { display: grid; gap: 12px; align-content: start; padding: 26px; }
.principle .h3 { font-size: 18px; }

/* ---------- 03 features ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { display: grid; gap: 14px; align-content: start; padding: 28px; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.feature:hover { border-color: var(--brand-line); }
.feature p { font-size: 15px; line-height: 1.8; color: var(--ink-2); text-wrap: pretty; }
.feature-lead { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(24px, 3.5vw, 40px); background: var(--surface); }
.section-white .feature-lead { background: var(--bg); }
.feature-lead .h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; }
.feature-lead-copy { display: grid; gap: 16px; align-content: start; }
.status-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.status-row .badge .i { font-size: 14px; }
.stack { display: grid; gap: 12px; }
.extras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.extra { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius-lg); border: 1px dashed var(--brand-line); background: transparent; }
.extra b { display: block; font-size: 15px; line-height: 1.45; }
.extra span { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }
.extra .i { color: var(--brand-ink); }

/* ---------- 04 how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; display: grid; gap: 14px; align-content: start; padding: 28px 24px; }
.step-num { position: absolute; top: 22px; inset-inline-end: 24px; font-family: var(--font-mono); font-size: 13px; color: var(--brand-ink); }
.step p { font-size: 15px; line-height: 1.75; color: var(--ink-2); }

.rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.rule { display: grid; gap: 6px; padding: 24px 28px; border-radius: var(--radius-xl); background: var(--brand-soft); }
.rule .cap { color: var(--brand-ink); font-weight: 600; }
.rule p:last-child { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; font-weight: 700; }

.timeline { margin-top: 20px; padding: clamp(24px, 3.5vw, 40px); }
.timeline-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.tl { display: grid; gap: 12px; }
.tl-row { display: flex; gap: 4px; }
.tl-row > * { min-width: 0; }
.tl-ok { flex: 1 1 0; } .tl-soon { flex: 0 0 22%; } .tl-due { flex: 0 0 18%; }
.tl-label { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-bars { height: 20px; border-radius: var(--radius-full); overflow: hidden; }
.tl-bars span { display: block; height: 100%; }
.tl-mark { display: grid; gap: 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--ink); }
.tl-mark b { justify-self: start; font-size: clamp(16px, 2vw, 22px); line-height: 1.3; }
.tl-mark span { font-size: 13px; color: var(--ink-muted); white-space: nowrap; }

.presets { margin-top: 20px; overflow: hidden; }
.presets-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.presets ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.presets li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 28px; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.presets li:nth-child(3n+1) { border-inline-start: 0; }
.presets li:nth-last-child(-n+3) { border-bottom: 0; }
.presets b { font-size: 16px; }
.presets span { font-size: 15px; color: var(--ink-2); white-space: nowrap; }

/* try-it calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: 20px; padding: clamp(24px, 3.5vw, 40px); }
.calc-controls { display: grid; gap: 22px; }
.calc-controls .h3 { font-size: clamp(22px, 2.4vw, 28px); }
.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: var(--radius-full); border: 1px solid var(--line); background: var(--surface-sunken); color: var(--ink); font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.chip:hover { border-color: var(--brand-line); }
.chip[aria-checked="true"] { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-ink); font-weight: 700; }
.field-box { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-sunken); color: var(--ink-muted); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.field-box input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); text-align: right; direction: ltr; font-feature-settings: "tnum" 1; }
.field-box input::-webkit-inner-spin-button { opacity: .4; }
.field-box .unit { color: var(--ink-2); font-size: 15px; }
.range-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.range-head .field-label { margin: 0; }
.range-head output { font-size: 20px; font-weight: 700; }
.range { width: 100%; height: 28px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-muted); }
.calc-result { display: grid; gap: 14px; }
.calc-say { min-height: 3.4em; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--surface-sunken); font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.calc-say b { color: var(--ink); }

/* ---------- 05 screens ---------- */
.screens { display: flex; gap: clamp(20px, 3vw, 36px); justify-content: center; align-items: flex-start; }
.screens figure { display: grid; justify-items: center; gap: 18px; flex: 0 1 220px; min-width: 0; }
.screens figure:nth-child(even) { margin-top: 56px; }
.screens .phone { max-width: 220px; border-radius: 36px; box-shadow: 0 0 0 8px var(--midnight-tile), 0 30px 60px -20px #0a081f99; }
.screens figcaption { display: grid; gap: 2px; text-align: center; }
.screens figcaption b { font-size: 17px; }
.screens figcaption span { font-size: 13.5px; color: var(--on-midnight-muted); }
.screens-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: clamp(40px, 5vw, 64px); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--radius-full); border: 1px solid var(--midnight-track); color: var(--on-midnight); font-size: 14.5px; font-weight: 500; }
.pill .i { color: var(--mint); }

/* ---------- 06 why ---------- */
.compare { overflow: hidden; }
.compare-head, .compare-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.compare-head > div { display: flex; align-items: center; gap: 10px; padding: 20px 28px; font-size: 17px; font-weight: 700; }
.compare-head > div:first-child { color: var(--ink-muted); }
.compare-head > div:last-child { background: var(--brand-soft); color: var(--brand-ink); }
.compare-row > div { display: flex; align-items: flex-start; gap: 12px; padding: 18px 28px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.7; }
.compare-row > div:first-child { color: var(--ink-muted); }
.compare-row > div:last-child { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); color: var(--ink); font-weight: 500; }
.compare-row .i { margin-top: 3px; }
.compare-row > div:first-child .i { color: var(--ink-faint); }
.compare-row > div:last-child .i { color: var(--brand-ink); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.value { display: grid; gap: 10px; align-content: start; padding: 26px; }
.value .h3 { font-size: 17px; }
.value p { font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }

/* ---------- 07 download ---------- */
.download { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 48px); padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-2xl); background: var(--brand); color: var(--on-brand); }
.download-icon { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 30px; background: var(--brand); box-shadow: 0 0 0 1px #ffffff40, 0 18px 40px #2e106566; }
.download-copy { display: grid; gap: 10px; }
.download-copy p { font-size: 18px; line-height: 1.75; opacity: .92; max-width: 480px; }
.download .stores { flex-direction: column; }
.download .store { min-width: 230px; }

/* ---------- 08 developer ---------- */
.dev { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(28px, 4vw, 48px); }
.dev-avatar { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: center 30%; background: var(--surface); box-shadow: 0 0 0 6px var(--brand-soft), 0 0 0 7px var(--brand-line); }
.dev-copy { display: grid; gap: 14px; justify-items: start; }
.dev-name { font-size: clamp(26px, 3vw, 34px); line-height: 1.3; font-weight: 700; }
.dev-role { font-size: 15px; color: var(--brand-ink); font-weight: 600; }

/* ---------- 09 faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: 104px; margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s var(--ease); }
.section-white .faq details { background: var(--bg); }
.faq details[open] { border-color: var(--brand-line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 22px; font-size: 17px; line-height: 1.5; font-weight: 700; cursor: pointer; list-style: none; border-radius: inherit; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--brand-ink); transition: transform .25s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.faq .answer a { color: var(--brand-ink); font-weight: 500; }

/* ---------- 10 contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.contact-card { display: grid; gap: 14px; align-content: start; padding: 28px; text-decoration: none; transition: border-color .2s var(--ease); }
.contact-card:hover { border-color: var(--brand-line); }
.contact-card p { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.contact-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--brand-ink); }
.contact-main { background: var(--midnight); color: var(--on-midnight); border-color: var(--midnight-line); background-image: radial-gradient(420px 320px at 20% 50%, var(--midnight-glow) 0%, var(--midnight) 75%); }
.section-white .contact-main { background-color: var(--midnight); }
.contact-main:hover { border-color: var(--midnight-track); }
.contact-main p { color: var(--on-midnight-muted); }
.contact-main .tile { background: var(--midnight-tile); color: var(--on-midnight); }
.contact-main .more { color: var(--mint); }
.contact-handle { justify-self: start; font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.3; }
.follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 20px; padding: 24px 28px; }
.follow-copy { display: grid; gap: 4px; }
.follow-copy p { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.follow-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* brand glyphs (Instagram, X) are inline SVG: Material Icons has no brand set */
.glyph { flex: none; width: 20px; height: 20px; }
.footer .social { display: flex; gap: 8px; }
.footer .social a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: var(--radius-full); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease); }
.footer .social a:hover { color: var(--brand-ink); border-color: var(--brand-line); background: var(--brand-soft); }

/* ---------- footer ---------- */
.footer { padding-block: 56px 32px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-brand p { font-size: 15px; color: var(--ink-2); max-width: 340px; }
.footer h3 { margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.footer ul { display: grid; gap: 4px; }
.footer ul a { display: inline-block; padding: 4px 0; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.footer ul a:hover { color: var(--brand-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bar-fill { transition: none; }
}

/* ---------- text pages (account deletion) ---------- */
.doc { max-width: 760px; margin-inline: auto; }
.doc h1 { margin-bottom: 8px; }
.doc .updated { margin-bottom: 40px; color: var(--ink-muted); }
.doc h2 { margin: 48px 0 14px; font-size: 24px; line-height: 1.4; }
.doc h3 { margin: 24px 0 8px; font-size: 18px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.9; color: var(--ink-2); }
.doc ul { display: grid; gap: 6px; margin: 10px 0; padding-inline-start: 22px; list-style: disc; }
.doc ol { display: grid; gap: 6px; margin: 10px 0; padding-inline-start: 22px; list-style: decimal; }
.doc strong { color: var(--ink); }
.doc a { color: var(--brand-ink); }
.doc table { width: 100%; margin: 14px 0; border-collapse: collapse; font-size: 15.5px; }
.doc th, .doc td { padding: 12px 16px; border: 1px solid var(--line); text-align: start; vertical-align: top; }
.doc th { background: var(--surface-sunken); font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-copy { justify-items: center; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .stores { justify-content: center; }
  .hero-visual { min-height: 0; }
  .principles, .steps, .values, .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-lead { grid-column: 1 / -1; grid-row: auto; }
  .screens { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .screens figure { flex: 0 0 220px; scroll-snap-align: center; }
  .screens figure:nth-child(even) { margin-top: 0; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .sec-head { position: static; }
  .download { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .download .stores { flex-direction: row; justify-content: center; }
  .download-copy p { margin-inline: auto; }
}
@media (max-width: 820px) {
  .about-grid, .rules, .calc { grid-template-columns: minmax(0, 1fr); }
  .feature-lead { grid-template-columns: minmax(0, 1fr); }
  .presets ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presets li, .presets li:nth-child(3n+1), .presets li:nth-last-child(-n+3) { border-inline-start: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .presets li:nth-child(2n+1) { border-inline-start: 0; }
  .presets li:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .principles, .steps, .values, .extras, .bento, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .float-note { width: 252px; top: 24px; inset-inline-end: -6px; }
  .float-note .note-body { display: none; }
  .float-badge { bottom: 40px; inset-inline-start: -6px; }
  .hero .phone { max-width: 250px; }
  .hero-bg { left: -320px; top: 260px; }
  .promise { min-height: 0; }
  .compare-head, .compare-row { grid-template-columns: minmax(0, 1fr); }
  .compare-head > div:first-child { display: none; }
  .compare-row > div { padding: 14px 20px; }
  .compare-row > div:first-child { padding-bottom: 0; border-bottom: 0; font-size: 14.5px; }
  .compare-row > div:last-child { border-top: 0; background: none; padding-top: 6px; }
  .compare-row { border-top: 1px solid var(--line); }
  .compare-row > div:first-child { border-top: 0; }
  .presets li { padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 0; }
  .presets-head { padding: 20px; }
  .dev { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .dev-avatar { width: 112px; height: 112px; }
  .download-icon { width: 104px; height: 104px; border-radius: 24px; }
  .download .stores { flex-direction: column; width: 100%; }
  .download .store { width: 100%; justify-content: center; }
  .store { width: 100%; justify-content: center; }
  .hero .stores { width: 100%; }
  .tl-soon { flex-basis: 26%; } .tl-due { flex-basis: 22%; }
  .tl-label { font-size: 13px; }
  .tl-mark { padding-inline-start: 8px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .follow { padding: 24px 20px; }
  .follow-links { width: 100%; }
  .follow-links .btn { flex: 1 1 auto; }
}
