/* GooshiYar website. Same "warm and calm" tokens as the app (ui/theme/Color.kt). */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #fbf5ec;
  --bg-deep: #f5ecdf;
  --surface: #ffffff;
  --ink: #3b2f2a;
  --ink-muted: #7a6a5f;
  --stroke: #4a3a32;
  --primary: #5aa86e;
  --primary-deep: #3f8a54;
  --ok: #2f7a45; --ok-soft: #ddf2e2; --ok-border: #bfe5c9;
  --warn: #9a7210; --warn-soft: #fcf0c8; --warn-border: #f3de95;
  --error: #b23b36; --error-soft: #f9dcda; --error-border: #f0bbb7;
  --track: #f3ece2;

  --tile-call: #d7f0dd; --tile-call-ink: #2f6e41;
  --tile-messages: #d6e9f8; --tile-messages-ink: #2e5a85;
  --tile-camera: #fde2cc; --tile-camera-ink: #a3521f;
  --tile-photos: #e6ddf6; --tile-photos-ink: #5b4391;
  --tile-myphone: #fbebb8; --tile-myphone-ink: #8a6508;
  --tile-help: #f9d6d6; --tile-help-ink: #a33a3a;
  --tile-contacts: #d5efeb; --tile-contacts-ink: #23706a;
  --tile-apps: #e6f2c7; --tile-apps-ink: #4f6b17;
  --tile-games: #f8daea; --tile-games-ink: #993366;

  --light-housing: #4a3f38; --light-off: #6e6158;
  --light-red: #e8605a; --light-yellow: #f2c14e; --light-green: #5bc27a;

  /* The one shadow the design allows: soft and brown. */
  --shadow: 0 6px 18px rgba(139, 107, 74, 0.14);
  --shadow-lg: 0 24px 60px rgba(139, 107, 74, 0.22);
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.85;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.45; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 236, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: #eadfcf; }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 24px; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--tile-myphone); display: grid; place-items: center; }
.brand-mark img { width: 32px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 14px; border-radius: 999px; color: var(--ink-muted); transition: background .2s, color .2s; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.menu-btn { display: none; margin-inline-start: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; font: inherit; font-size: 22px; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn img { width: 28px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(63, 138, 84, .3); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn[aria-disabled="true"] { cursor: default; }
.btn-soon { background: var(--surface); color: var(--ink-muted); box-shadow: var(--shadow); }
.btn-soon b { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(251, 235, 184, .55), transparent);
  pointer-events: none; z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 500; font-size: 15px; color: var(--ink-muted); }
.eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--light-green); box-shadow: 0 0 0 4px var(--ok-soft); }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; margin: 20px 0 18px; letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--primary-deep); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset: auto 0 .08em 0; height: .32em; background: var(--tile-apps); border-radius: 8px; z-index: -1; }
.hero .lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.pills li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink-muted); }
.pills img { width: 26px; }

/* ---------- Interactive phone ---------- */
.phone-stage { display: grid; justify-items: center; gap: 14px; }
.phone {
  /* As tall as the window allows, so the whole phone is visible on a laptop. */
  width: min(100%, clamp(270px, (100svh - 150px) * 9 / 19.2, 340px)); aspect-ratio: 9 / 19.2;
  background: #2b231f; border-radius: 48px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #4a3f38;
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 84px; height: 22px; border-radius: 99px; background: #1a1411; z-index: 3; }
.screen {
  container-type: inline-size;
  width: 100%; height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--bg); position: relative;
}
/* Inside the phone, 1em = 10dp of the 360dp-wide app, at any phone size. */
.app { font-size: calc(100cqw / 36); height: 100%; display: flex; flex-direction: column; }
.app-status { height: 4.2em; flex: none; }
.app-header { display: flex; align-items: center; gap: .8em; padding: 0 1.6em; min-height: 6.4em; flex: none; }
.app-title { flex: 1; font-weight: 700; font-size: 2.4em; text-align: center; white-space: nowrap; }
.app-header.home .app-title { text-align: start; font-size: 2.9em; }
.round-btn { width: 5.4em; height: 5.4em; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 .5em 1.4em rgba(139,107,74,.16); display: grid; place-items: center; cursor: pointer; flex: none; padding: 0; }
.round-btn img { width: 3.2em; }
/* Inner screens keep the title centred where the speaker button used to be. */
.round-spacer { width: 5.4em; flex: none; }
/* Home: today's date opposite the app name, weekday over day and month. */
.today { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; flex: none; }
.today small { font-size: 1.5em; color: var(--ink-muted); }
.today b { font-size: 1.9em; }
.app-body { flex: 1; overflow-y: auto; padding: 1.6em 1.6em 2.4em; scrollbar-width: none; }
.app-body::-webkit-scrollbar { display: none; }
.app-body > * + * { margin-top: 1.2em; }
.view { position: absolute; inset: 0; transition: opacity .28s ease, transform .28s ease; }
.view[hidden] { display: flex; opacity: 0; transform: translateX(-6%); pointer-events: none; visibility: hidden; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em 2em; }
.tile {
  border: 0; font: inherit; cursor: pointer; color: inherit;
  min-height: 12.2em; border-radius: 3.2em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6em;
  box-shadow: 0 .6em 1.6em rgba(139,107,74,.14); transition: transform .15s;
}
.tile:active { transform: scale(.96); }
.tile .halo { width: 6.4em; height: 6.4em; border-radius: 50%; background: rgba(255,255,255,.7); display: grid; place-items: center; }
.tile .halo img { width: 4.6em; }
/* «بازی‌ها»: under the eight, across the row, icon beside the label (HomeTile wide = true). */
.tile.wide { grid-column: 1 / -1; min-height: 8em; flex-direction: row; gap: 1.4em; }
.tile.wide .halo { width: 6em; height: 6em; }
.tile.wide .halo img { width: 4.2em; }
.tile b { font-size: 2.2em; font-weight: 700; }
.tile.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 .6em 1.6em rgba(139,107,74,.14), 0 0 0 0 rgba(90,168,110,.0); } 50% { box-shadow: 0 .6em 1.6em rgba(139,107,74,.14), 0 0 0 .8em rgba(90,168,110,.28); } }

.card { background: #fff; border-radius: 2.8em; box-shadow: 0 .5em 1.4em rgba(139,107,74,.12); }
.hub-card { border: .2em solid; display: flex; flex-direction: column; align-items: center; gap: .6em; padding: 1.8em 1.4em; width: 100%; font: inherit; color: inherit; cursor: pointer; }
.hub-card h4 { margin: 0; font-size: 2.3em; }
.hub-card p { font-size: 1.7em; color: var(--ink-muted); }
.hub-card .halo { width: 7.2em; height: 7.2em; border-radius: 50%; display: grid; place-items: center; }
.hub-card .halo img { width: 5.2em; }

.light { display: inline-flex; gap: .9em; padding: 1em; border-radius: 99em; background: var(--light-housing); }
.light i { width: 3.4em; height: 3.4em; border-radius: 50%; background: var(--light-off); transition: background .3s, box-shadow .3s; }
.light[data-level="ok"] i:nth-child(1) { background: var(--light-green); box-shadow: 0 0 1.4em rgba(91,194,122,.7); }
.light[data-level="warn"] i:nth-child(2) { background: var(--light-yellow); box-shadow: 0 0 1.4em rgba(242,193,78,.7); }
.light[data-level="error"] i:nth-child(3) { background: var(--light-red); box-shadow: 0 0 1.4em rgba(232,96,90,.7); }

.summary { display: flex; align-items: center; gap: 1.2em; padding: 1.6em 2em; }
.summary .txt { flex: 1; }
.summary strong { display: block; font-size: 2.5em; line-height: 1.3; }
.summary .txt > span { font-size: 1.6em; color: var(--ink-muted); }

.status-row { display: flex; align-items: center; gap: 1.3em; padding: 1.2em 1.5em; border-radius: 2.8em; background: #fff; border: .2em solid; }
.status-row .cat { width: 6em; height: 6em; border-radius: 50%; display: grid; place-items: center; flex: none; }
.status-row .cat img { width: 4.2em; }
.status-row .txt { flex: 1; }
.status-row strong { display: block; font-size: 2.1em; line-height: 1.35; }
.status-row .txt > span { font-size: 1.6em; }
.status-row > img { width: 5.2em; }
.status-row.tappable { cursor: pointer; font: inherit; color: inherit; width: 100%; text-align: start; }

.lvl-ok { border-color: var(--ok-border); } .lvl-ok .txt > span, .t-ok { color: var(--ok); }
.lvl-warn { border-color: var(--warn-border); } .lvl-warn .txt > span, .t-warn { color: var(--warn); }
.lvl-error { border-color: var(--error-border); } .lvl-error .txt > span, .t-error { color: var(--error); }

.storage-summary { padding: 2em; display: grid; gap: 1.4em; }
.storage-summary .top { display: flex; align-items: center; gap: 1.2em; }
.storage-summary .txt { flex: 1; }
.storage-summary strong { display: block; font-size: 2.5em; line-height: 1.3; }
.storage-summary .txt > span { font-size: 1.6em; color: var(--ink-muted); }
.storage-summary .top > img { width: 6.4em; }
.insight { font-size: 1.7em; font-weight: 700; }
.cats { padding: .6em 1.6em; }
.messenger { border: 0; background: none; font: inherit; color: inherit; width: 100%; text-align: start; cursor: pointer; padding: .9em 1.6em; }
.messenger small { display: block; font-size: 1.5em; color: var(--ink-muted); }
.letter { width: 4.8em; height: 4.8em; border-radius: 1.4em; display: grid; place-items: center; font-weight: 700; flex: none; }
.letter span { font-size: 2em; }
.help-text { font-size: 1.5em; color: var(--ink-muted); line-height: 1.7; }
.spec { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 1em 1.6em; }
.spec + .spec { border-top: .1em solid var(--track); }
.spec span { font-size: 1.6em; color: var(--ink-muted); }
.spec b { font-size: 1.8em; }
.app-foot { flex: none; padding: 1em 1.6em 2.2em; }

.mini-btn { display: flex; align-items: center; justify-content: center; gap: .6em; width: 100%; min-height: 4.8em; border-radius: 99em; border: 0; background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 1em; cursor: pointer; }
.mini-btn span { font-size: 1.9em; }
.mini-btn img { width: 2.8em; }
.mini-btn.secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 .2em var(--track); }

/* «خالی کردن حافظه»: StepCard, a big icon, one fact and at most two buttons. */
.step-card { padding: 2.4em 2em 2em; display: flex; flex-direction: column; align-items: center; gap: 1.2em; text-align: center; }
.step-card .halo { width: 9.6em; height: 9.6em; border-radius: 50%; display: grid; place-items: center; }
.step-card .halo img { width: 6.4em; }
.step-card h4 { margin: 0; font-size: 2.3em; line-height: 1.4; }
.step-card .sub { font-size: 1.9em; }
.step-card p { font-size: 1.6em; line-height: 1.7; text-align: start; width: 100%; }
.step-card .mini-btn { min-height: 5.6em; }
.thumbs { display: flex; gap: .8em; }
.thumbs i { width: 6.4em; height: 6.4em; border-radius: 1.4em; }

.app-card { padding: 1.6em; display: grid; gap: 1em; }
.app-card .top { display: flex; align-items: center; gap: 1.2em; }
.app-card .top img { width: 6.4em; height: 6.4em; border-radius: 2em; border: .1em solid var(--track); }
.app-card .top div { flex: 1; }
.app-card strong { display: block; font-size: 2.1em; line-height: 1.35; }
.app-card small, .app-card p { font-size: 1.5em; color: var(--ink-muted); }
.banner { display: flex; align-items: center; justify-content: center; gap: .8em; min-height: 5.6em; border-radius: 2em; background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.banner span { font-size: 1.9em; }
.banner img { width: 3em; }

.bar { display: flex; flex-direction: row; gap: .2em; height: 2em; border-radius: 1em; overflow: hidden; background: var(--track); }
.bar i { display: block; height: 100%; }
.cat-row { display: flex; align-items: center; gap: 1.2em; padding: .7em 0; }
.cat-row .cat { width: 4.8em; height: 4.8em; border-radius: 50%; display: grid; place-items: center; flex: none; }
.cat-row .cat img { width: 3.2em; }
.cat-row .mid { flex: 1; }
.cat-row strong { display: block; font-size: 1.9em; line-height: 1.4; }
.cat-row .track { height: .6em; border-radius: 1em; background: var(--track); overflow: hidden; margin-top: .4em; }
.cat-row .track i { display: block; height: 100%; border-radius: 1em; }
.cat-row b { font-size: 1.7em; min-width: 3.8em; text-align: end; }

.contact-row { display: flex; align-items: center; gap: 1.2em; padding: .9em 1.6em; }
.contact-row .avatar { width: 4.8em; height: 4.8em; border-radius: 50%; display: grid; place-items: center; font-weight: 700; flex: none; }
.contact-row .avatar span { font-size: 2em; }
.contact-row .mid { flex: 1; }
.contact-row strong { display: block; font-size: 1.9em; line-height: 1.4; }
.contact-row small { font-size: 1.5em; color: var(--ink-muted); unicode-bidi: plaintext; }
.contact-row .call { width: 4.8em; height: 4.8em; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; }
.contact-row .call img { width: 3em; }
.list-card { padding: .6em 0; }
.section-label { font-size: 1.5em; font-weight: 700; color: var(--ink-muted); padding: 0 .8em; }

.toast {
  position: absolute; inset: auto 1.6em 2.4em 1.6em; z-index: 5;
  background: rgba(59, 47, 42, .94); color: #fff; border-radius: 2em; padding: 1.2em 1.6em;
  font-size: calc(100cqw / 36 * 1.6); line-height: 1.6; text-align: center;
  opacity: 0; transform: translateY(1em); transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }
.phone-hint { font-size: 15px; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.phone-hint b { color: var(--ink); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 84px; }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-deep); }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker { display: inline-block; font-weight: 700; font-size: 15px; color: var(--primary-deep); background: var(--ok-soft); padding: 2px 14px; border-radius: 99px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--ink-muted); font-size: 19px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; transition: transform .2s; }
.feature:hover { transform: translateY(-4px); }
.feature .halo { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; }
.feature .halo img { width: 48px; }
.feature h3 { font-size: 22px; }
.feature p { color: var(--ink-muted); font-size: 17px; margin-top: 6px; }

/* Checkup playground */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }
.control + .control { margin-top: 22px; padding-top: 22px; border-top: 1px dashed #eadfcf; }
.control label, .control .label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; font-size: 18px; }
.control output { font-weight: 800; color: var(--primary-deep); font-size: 20px; }
.control small { display: block; color: var(--ink-muted); font-size: 14px; margin-top: 2px; }
input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--primary); height: 32px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.seg button { flex: 1 1 auto; min-height: 48px; border-radius: 99px; border: 2px solid #eadfcf; background: var(--bg); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink-muted); cursor: pointer; padding: 0 14px; }
.seg button[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok-border); color: var(--ok); }
.lab-result { container-type: inline-size; }
.lab-result .app { height: auto; font-size: min(calc(100cqw / 36), 13px); gap: 1.2em; }
.lab-note { margin-top: 16px; font-size: 15px; color: var(--ink-muted); }
/* On narrow screens the result sits below the sliders, so a small copy of the light follows them. */
.lab-mini { display: none; }

/* Good apps */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chips button { min-height: 48px; padding: 0 20px; border-radius: 99px; border: 0; background: var(--surface); box-shadow: var(--shadow); font: inherit; font-weight: 700; font-size: 16px; color: var(--ink-muted); cursor: pointer; transition: background .2s, color .2s; }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.app-tile {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 24px; background: var(--surface);
  box-shadow: var(--shadow); text-decoration: none; transition: transform .2s, opacity .3s;
}
.app-tile:hover { transform: translateY(-3px); }
.app-tile img { width: 64px; height: 64px; border-radius: 18px; flex: none; border: 1px solid var(--track); }
.app-tile strong { display: block; font-size: 19px; }
.app-tile small { display: block; color: var(--primary-deep); font-weight: 700; font-size: 14px; }
.app-tile p { color: var(--ink-muted); font-size: 15px; line-height: 1.7; margin-top: 4px; }
.games-head { margin-top: clamp(56px, 8vw, 96px); scroll-margin-top: 96px; }
.app-tile.hide { display: none; }
.apps-note { margin-top: 20px; color: var(--ink-muted); font-size: 15px; }

/* Family steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step, persian);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tile-myphone); color: var(--tile-myphone-ink); font-weight: 800; font-size: 22px; margin-bottom: 14px;
}
.steps h3 { font-size: 20px; }
.steps p { color: var(--ink-muted); font-size: 16px; margin-top: 6px; }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.perm { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px dashed #eadfcf; }
.perm:last-child { border-bottom: 0; }
.perm .halo { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.perm .halo img { width: 38px; }
.perm h3 { font-size: 19px; }
.perm p { color: var(--ink-muted); font-size: 16px; }
.promise { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.promise h3 { font-size: 24px; }
.promise ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.promise li { display: flex; gap: 10px; font-size: 17px; }
.promise li::before { content: "✓"; color: var(--light-green); font-weight: 800; }
.promise a { color: var(--tile-apps); font-weight: 700; }
.promise .btn-ghost { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; color: var(--primary-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-muted); }

/* Download */
.cta { text-align: center; background: var(--tile-myphone); border-radius: 40px; padding: clamp(40px, 6vw, 72px) var(--gutter); position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.cta p { color: var(--tile-myphone-ink); margin-top: 10px; font-size: 19px; }
.cta .hero-cta { justify-content: center; }

footer { padding: 40px 0 56px; color: var(--ink-muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Legal page */
.legal { max-width: 820px; padding: clamp(32px, 6vw, 72px) 0; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.legal .meta { color: var(--ink-muted); margin-top: 6px; }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal p, .legal li { color: #4d3f38; }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-inline-start: 1.4em; }
.legal li + li { margin-top: 6px; }
.legal .box { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 20px 24px; margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero .wrap, .lab, .privacy-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .pills { justify-content: center; }
  .nav { display: none; position: absolute; inset: 72px var(--gutter) auto var(--gutter); flex-direction: column; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 10px; }
  .nav.open { display: flex; }
  .nav.nav-static { display: flex; position: static; flex-direction: row; background: none; box-shadow: none; padding: 0; }
  .nav a { font-size: 18px; padding: 12px 16px; }
  .menu-btn { display: grid; place-items: center; }
  .lab-mini {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 84px; z-index: 2;
    margin-bottom: 18px; padding: 8px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-lg);
    font-size: 8px;
  }
  .lab-mini b { font-size: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .features, .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
