@font-face {
  font-family: "Noto Sans Arabic Dahliz";
  src: url("/assets/fonts/noto-sans-arabic-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Noto Sans Arabic Dahliz";
  src: url("/assets/fonts/noto-sans-arabic-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy-950: #041331;
  --navy-900: #071f4b;
  --navy-800: #0b2c66;
  --cyan-600: #049fc0;
  --cyan-500: #08b7d6;
  --cyan-100: #d9f6fb;
  --amber-500: #ffb21a;
  --amber-100: #fff2c9;
  --coral-500: #ff6b5f;
  --coral-100: #ffe5e1;
  --mint-300: #bdebd8;
  --mint-100: #eafaf4;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #13233f;
  --muted: #66728a;
  --line: rgba(7, 31, 75, .11);
  --shadow-sm: 0 10px 30px rgba(7, 31, 75, .08);
  --shadow-lg: 0 28px 80px rgba(7, 31, 75, .18);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-xl: 48px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #f6fbfc; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans Arabic Dahliz", "DIN Next Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(8,183,214,.14), transparent 28rem),
    radial-gradient(circle at 90% 38%, rgba(255,178,26,.10), transparent 24rem),
    linear-gradient(180deg, #f8fcfd 0%, #f4f8fb 100%);
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(8,183,214,.35);
  outline-offset: 3px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(150px, 260px) 1fr minmax(150px, 260px);
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(22px) saturate(1.2);
  border-bottom: 1px solid rgba(7,31,75,.07);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.topbar.is-hidden { transform: translateY(-110%); }
.brand {
  display: flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.brand img { width: clamp(132px, 15vw, 205px); height: auto; display: block; }
.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(7,31,75,.045);
}
.nav-btn {
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  gap: 7px;
  align-items: center;
  transition: .25s var(--ease);
}
.nav-btn:hover { color: var(--navy-900); background: rgba(255,255,255,.65); }
.nav-btn.is-active { color: white; background: var(--navy-900); box-shadow: 0 8px 20px rgba(7,31,75,.18); }
.nav-icon { font-size: 19px; line-height: 1; }
.profile-chip {
  justify-self: end;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  cursor: pointer;
  border-radius: 16px;
  padding: 6px;
}
.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--navy-900);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), #ffd975);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 8px 20px rgba(255,178,26,.2);
}
.profile-copy { display: grid; line-height: 1.15; }
.profile-copy small { font-size: 10px; color: var(--muted); }
.profile-copy strong { font-size: 13px; max-width: 105px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#app { min-height: calc(100vh - 82px); }
.page { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0 80px; animation: page-in .5s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 112px));
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: stretch;
  overflow: hidden;
  color: white;
  background: var(--navy-950);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent 25%, rgba(4,19,49,.16) 46%, rgba(4,19,49,.98) 73%);
}
.hero-art { min-height: 600px; background: url("/assets/hero-world.webp") center left / cover no-repeat; }
.hero-copy {
  position: relative;
  padding: clamp(44px, 6vw, 86px) clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: #c9f7ff;
  background: rgba(8,183,214,.12);
  border: 1px solid rgba(8,183,214,.24);
  font-size: 13px;
  font-weight: 800;
}
.eyebrow::before { content: "✦"; color: var(--amber-500); }
.hero h1 { margin: 0; font-size: clamp(52px, 7vw, 96px); line-height: .98; letter-spacing: -3px; }
.hero h1 span { color: var(--cyan-500); }
.hero-lead { margin: 26px 0 28px; max-width: 550px; color: #dce8fa; font-size: clamp(18px, 2vw, 23px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; color: #a9b9d1; font-size: 13px; }
.hero-trust span::before { content: "✓"; color: var(--mint-300); margin-left: 6px; font-weight: 900; }

.btn {
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber-500); color: var(--navy-950); box-shadow: 0 14px 30px rgba(255,178,26,.24); }
.btn-primary:hover { box-shadow: 0 18px 38px rgba(255,178,26,.32); }
.btn-secondary { color: white; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.17); }
.btn-navy { background: var(--navy-900); color: white; box-shadow: 0 12px 28px rgba(7,31,75,.18); }
.btn-cyan { background: var(--cyan-500); color: var(--navy-950); }
.btn-ghost { background: rgba(7,31,75,.055); color: var(--navy-900); }
.btn-danger { background: var(--coral-100); color: #9a2b22; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.promise-grid { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.promise-card .symbol { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 15px; font-size: 22px; background: var(--cyan-100); color: var(--navy-900); }
.promise-card:nth-child(2) .symbol { background: var(--amber-100); }
.promise-card:nth-child(3) .symbol { background: var(--mint-100); }
.promise-card h3 { margin: 0 0 7px; font-size: 18px; }
.promise-card p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 14px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h1, .section-head h2 { margin: 0; color: var(--navy-900); font-size: clamp(30px, 4vw, 48px); line-height: 1.2; }
.section-head p { margin: 9px 0 0; max-width: 680px; color: var(--muted); line-height: 1.8; }
.section-kicker { display: block; margin-bottom: 7px; color: var(--cyan-600); font-size: 12px; font-weight: 900; letter-spacing: .05em; }

.assessment-shell { max-width: 900px; margin: 0 auto; }
.assessment-top { margin-bottom: 22px; }
.assessment-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(7,31,75,.08); }
.progress-fill { height: 100%; width: var(--value, 10%); border-radius: inherit; background: linear-gradient(90deg, var(--cyan-500), var(--amber-500)); transition: width .45s var(--ease); }
.assessment-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  padding: clamp(28px, 6vw, 64px);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.assessment-card::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: var(--cyan-100); filter: blur(4px); opacity: .55; left: -130px; bottom: -150px; }
.question-number { color: var(--cyan-600); font-weight: 900; font-size: 12px; }
.assessment-card h2 { position: relative; margin: 12px 0 10px; max-width: 720px; color: var(--navy-900); font-size: clamp(28px, 4vw, 42px); }
.question-help { position: relative; margin: 0 0 28px; color: var(--muted); line-height: 1.8; }
.text-input {
  width: 100%;
  min-height: 62px;
  padding: 14px 18px;
  border: 1.5px solid rgba(7,31,75,.13);
  border-radius: 17px;
  background: #fbfdfe;
  color: var(--navy-900);
  font-size: 18px;
  transition: .2s;
}
.text-input:focus { border-color: var(--cyan-500); background: white; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card label {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: white;
  cursor: pointer;
  transition: .2s var(--ease);
}
.choice-card label:hover { transform: translateY(-2px); border-color: rgba(8,183,214,.5); }
.choice-card input:checked + label { border-color: var(--cyan-500); background: var(--cyan-100); box-shadow: inset 0 0 0 1px var(--cyan-500); }
.choice-emoji { flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 23px; background: rgba(7,31,75,.055); }
.choice-copy { display: grid; gap: 2px; }
.choice-copy strong { color: var(--navy-900); }
.choice-copy small { color: var(--muted); line-height: 1.5; }
.assessment-actions { position: relative; display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }

.plan-reveal { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.reveal-main, .reveal-side { border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 54px); }
.reveal-main { color: white; background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); box-shadow: var(--shadow-lg); }
.reveal-main h1 { margin: 12px 0 18px; font-size: clamp(38px, 5vw, 64px); line-height: 1.15; }
.reveal-main p { color: #cbd8ec; line-height: 1.9; }
.baseline-meter { margin: 30px 0; padding: 20px; border-radius: 20px; background: rgba(255,255,255,.07); }
.meter-labels { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; color: #b7c8e1; }
.meter-bar { position: relative; height: 12px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: var(--value); border-radius: inherit; background: linear-gradient(90deg, var(--mint-300), var(--amber-500)); }
.reveal-side { background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan-fact { padding: 16px 0; border-bottom: 1px solid var(--line); }
.plan-fact:last-child { border-bottom: 0; }
.plan-fact small { display: block; color: var(--muted); }
.plan-fact strong { display: block; margin-top: 4px; color: var(--navy-900); font-size: 20px; }

.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  min-height: 330px;
  padding: clamp(30px, 5vw, 58px);
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  color: white;
  background: var(--navy-950);
  box-shadow: var(--shadow-lg);
}
.dashboard-hero::before { content: ""; position: absolute; inset: 0; background: url("/assets/hero-world.webp") 8% 54% / 66% auto no-repeat; opacity: .23; mix-blend-mode: screen; }
.dashboard-copy { position: relative; z-index: 1; }
.dashboard-copy h1 { margin: 7px 0 10px; font-size: clamp(35px, 5vw, 60px); }
.dashboard-copy p { margin: 0; color: #c4d3e9; line-height: 1.8; }
.today-card { position: relative; z-index: 1; justify-self: end; width: min(100%, 390px); padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(255,255,255,.09); backdrop-filter: blur(14px); }
.today-card small { color: #a9c6dc; }
.today-card h3 { margin: 8px 0 14px; font-size: 22px; }
.mini-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.mini-progress .ring {
  --p: 0;
  width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--amber-500) calc(var(--p) * 1%), rgba(255,255,255,.12) 0);
}
.mini-progress .ring::after { content: attr(data-label); width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); font-size: 11px; font-weight: 900; }
.mini-progress p { margin: 0; font-size: 12px; line-height: 1.5; color: #bed0e7; }

.phase { margin: 28px 0; }
.phase-title { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.phase-index { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: var(--navy-900); background: var(--amber-100); font-weight: 900; }
.phase-title h2 { margin: 0; font-size: 20px; color: var(--navy-900); }
.phase-title p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day-card {
  position: relative;
  min-height: 155px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.88);
  text-align: right;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.day-card:hover { transform: translateY(-4px); border-color: rgba(8,183,214,.5); box-shadow: var(--shadow-sm); }
.day-card.is-locked { cursor: default; filter: grayscale(.2); opacity: .58; }
.day-card.is-locked:hover { transform: none; box-shadow: none; border-color: var(--line); }
.day-card.is-done { background: var(--mint-100); border-color: rgba(47,171,124,.25); }
.day-card.is-current { border: 2px solid var(--cyan-500); background: white; box-shadow: 0 10px 30px rgba(8,183,214,.12); }
.day-num { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 11px; background: rgba(7,31,75,.055); color: var(--navy-900); font-size: 12px; font-weight: 900; }
.is-done .day-num { background: #c9f1df; color: #18714b; }
.is-current .day-num { color: white; background: var(--cyan-500); }
.day-card h3 { margin: 0; font-size: 13px; line-height: 1.55; }
.day-status { position: absolute; left: 12px; bottom: 12px; font-size: 14px; }
.day-duration { position: absolute; right: 13px; bottom: 12px; color: var(--muted); font-size: 10px; }

.tool-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 48px);
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cyan-100), white 62%);
  border: 1px solid rgba(8,183,214,.18);
}
.tool-hero h1 { margin: 5px 0 10px; color: var(--navy-900); font-size: clamp(34px, 5vw, 54px); }
.tool-hero p { margin: 0; max-width: 650px; color: var(--muted); line-height: 1.8; }
.tool-hero .big-symbol { width: 112px; height: 112px; border-radius: 34px; display: grid; place-items: center; font-size: 46px; background: white; box-shadow: var(--shadow-sm); transform: rotate(-4deg); }
.generator-panel { display: grid; grid-template-columns: .75fr 1.25fr; gap: 18px; }
.filter-card, .result-card, .content-card { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); }
.filter-card h2, .result-card h2, .content-card h2 { margin: 0 0 8px; color: var(--navy-900); }
.filter-card p, .result-card p, .content-card p { color: var(--muted); line-height: 1.75; }
.field { margin: 19px 0; }
.field label { display: block; margin-bottom: 8px; color: var(--navy-900); font-weight: 800; font-size: 13px; }
.select-input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 13px; background: #fbfdfe; }
.activity-result { min-height: 360px; display: flex; flex-direction: column; justify-content: center; }
.activity-result.is-empty { text-align: center; align-items: center; }
.empty-orbit { width: 120px; height: 120px; margin-bottom: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; background: var(--amber-100); box-shadow: inset 0 0 0 12px white, 0 0 0 1px var(--line); }
.activity-tagline { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.tag { padding: 6px 10px; border-radius: 999px; background: rgba(7,31,75,.055); color: var(--navy-800); font-size: 11px; font-weight: 800; }
.steps-list { margin: 18px 0; padding: 0; list-style: none; counter-reset: steps; }
.steps-list li { position: relative; min-height: 34px; padding: 6px 44px 6px 0; line-height: 1.7; }
.steps-list li::before { counter-increment: steps; content: counter(steps); position: absolute; right: 0; top: 4px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--cyan-100); color: var(--navy-900); font-size: 11px; font-weight: 900; }

.rescue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rescue-card { position: relative; min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; cursor: pointer; text-align: right; overflow: hidden; transition: .22s var(--ease); }
.rescue-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.rescue-card::after { content: attr(data-symbol); position: absolute; left: 18px; bottom: -12px; font-size: 72px; opacity: .13; }
.rescue-card h3 { margin: 22px 0 7px; color: var(--navy-900); font-size: 20px; }
.rescue-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.rescue-chip { display: inline-flex; padding: 6px 9px; border-radius: 9px; background: var(--coral-100); color: #963229; font-size: 10px; font-weight: 900; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.stat-card { min-height: 145px; padding: 22px; border-radius: var(--radius-md); background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat-card small { color: var(--muted); }
.stat-card strong { display: block; margin: 9px 0 3px; color: var(--navy-900); font-size: 32px; }
.stat-card span { color: var(--cyan-600); font-size: 11px; }
.progress-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 17px; }
.chart-wrap { min-height: 330px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.chart-wrap h2 { margin: 0 0 22px; color: var(--navy-900); }
.screen-chart { width: 100%; height: 240px; overflow: visible; }
.chart-grid { stroke: rgba(7,31,75,.08); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--cyan-500); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { fill: url(#chartGradient); }
.chart-dot { fill: white; stroke: var(--cyan-500); stroke-width: 3; }
.achievement-list { display: grid; gap: 10px; }
.achievement { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: 16px; background: rgba(7,31,75,.035); }
.achievement-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--amber-100); }
.achievement.is-locked { filter: grayscale(1); opacity: .45; }
.achievement strong { display: block; font-size: 13px; color: var(--navy-900); }
.achievement small { color: var(--muted); font-size: 10px; }

.profile-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 18px; }
.family-card { padding: 28px; color: white; border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); box-shadow: var(--shadow-lg); }
.family-avatar { width: 88px; height: 88px; margin-bottom: 18px; border-radius: 28px; display: grid; place-items: center; font-size: 36px; font-weight: 900; color: var(--navy-900); background: linear-gradient(135deg, var(--amber-500), #ffda7e); }
.family-card h1 { margin: 0; font-size: 32px; }
.family-card p { color: #bfcce1; line-height: 1.8; }
.profile-actions { display: grid; gap: 10px; }
.profile-action { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: white; cursor: pointer; text-align: right; }
.profile-action:hover { border-color: var(--cyan-500); }
.profile-action small { color: var(--muted); }

.day-dialog, .simple-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 0;
  border-radius: 30px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 40px 120px rgba(4,19,49,.35);
  overflow: auto;
}
.day-dialog::backdrop, .simple-dialog::backdrop { background: rgba(4,19,49,.64); backdrop-filter: blur(7px); }
.dialog-close { position: sticky; top: 16px; float: left; z-index: 5; width: 42px; height: 42px; margin: 16px 0 0 16px; border: 0; border-radius: 14px; background: rgba(7,31,75,.08); font-size: 25px; cursor: pointer; }
.dialog-hero { padding: 38px 34px 28px; color: white; background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); }
.dialog-hero .day-pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; color: var(--navy-950); background: var(--amber-500); font-size: 11px; font-weight: 900; }
.dialog-hero h1 { margin: 14px 0 8px; font-size: clamp(30px, 5vw, 44px); line-height: 1.25; }
.dialog-hero p { margin: 0; color: #c4d2e6; line-height: 1.8; }
.dialog-body { padding: 30px 34px 40px; }
.mission-box { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; margin: 0 0 22px; padding: 18px; border-radius: 19px; background: var(--amber-100); }
.mission-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: white; font-size: 22px; }
.mission-box h3 { margin: 0 0 4px; color: var(--navy-900); }
.mission-box p { margin: 0; color: #5f5e58; line-height: 1.7; }
.content-block { margin: 24px 0; }
.content-block h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: var(--navy-900); }
.content-block h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-500); }
.content-block p { color: var(--muted); line-height: 1.9; }
.script-box { position: relative; padding: 20px 22px; border-radius: 18px; background: var(--mint-100); color: #204f40; line-height: 1.9; }
.script-box::before { content: "“"; position: absolute; left: 12px; top: -8px; font-size: 52px; color: rgba(32,79,64,.15); }
.checkin { padding: 22px; border-radius: 21px; background: white; border: 1px solid var(--line); }
.checkin h3 { margin-top: 0; }
.mood-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.mood-btn { min-height: 62px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfe; cursor: pointer; }
.mood-btn.is-selected { border-color: var(--cyan-500); background: var(--cyan-100); }
.range-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin: 18px 0; }
.range-row input { width: 100%; accent-color: var(--cyan-500); }
.range-value { min-width: 72px; padding: 8px; border-radius: 12px; background: rgba(7,31,75,.055); text-align: center; font-weight: 900; color: var(--navy-900); }
.simple-dialog-content { padding: 34px; }
.simple-dialog-content h1 { margin: 0 0 12px; color: var(--navy-900); font-size: 32px; }
.simple-dialog-content p, .simple-dialog-content li { color: var(--muted); line-height: 1.9; }
.rescue-script { margin: 20px 0; padding: 22px; border-right: 5px solid var(--coral-500); border-radius: 18px; background: var(--coral-100); color: #65332f; line-height: 1.9; }
.safety-note { padding: 18px; border-radius: 16px; background: #f4f6f8; color: var(--muted); font-size: 12px; line-height: 1.8; }

.toast-region { position: fixed; left: 18px; bottom: 18px; z-index: 100; display: grid; gap: 10px; }
.toast { min-width: 260px; max-width: 360px; padding: 14px 16px; border-radius: 16px; color: white; background: var(--navy-900); box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 18px; border-radius: 3px; animation: fall 1.8s linear forwards; }
@keyframes fall { to { transform: translate3d(var(--drift), 110vh, 0) rotate(760deg); } }

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 1020px) {
  .topbar { grid-template-columns: 180px 1fr auto; gap: 12px; }
  .nav-btn span:last-child { display: none; }
  .nav-btn { padding: 10px 13px; }
  .profile-copy { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 720px; }
  .hero-art { position: absolute; inset: 0; min-height: 0; background-position: 33% center; }
  .hero::after { z-index: 0; background: linear-gradient(180deg, rgba(4,19,49,.10), rgba(4,19,49,.98) 67%); }
  .hero-copy { z-index: 1; justify-content: end; min-height: 720px; padding-top: 230px; }
  .hero h1 { letter-spacing: -2px; }
  .plan-reveal, .generator-panel, .progress-layout, .profile-layout { grid-template-columns: 1fr; }
  .days-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-hero { grid-template-columns: 1fr; gap: 25px; }
  .today-card { justify-self: stretch; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { padding-bottom: 82px; }
  .topbar { min-height: 66px; grid-template-columns: 1fr auto; padding: 9px 14px; }
  .brand img { width: 135px; }
  .main-nav {
    position: fixed;
    right: 10px;
    left: 10px;
    bottom: 10px;
    z-index: 80;
    justify-content: space-around;
    gap: 2px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: rgba(4,19,49,.94);
    box-shadow: 0 18px 50px rgba(4,19,49,.3);
    backdrop-filter: blur(18px);
  }
  .nav-btn { flex: 1; flex-direction: column; gap: 3px; min-height: 54px; padding: 5px 3px; color: #aebed5; font-size: 9px; }
  .nav-btn span:last-child { display: block; }
  .nav-btn.is-active { color: var(--amber-500); background: rgba(255,255,255,.08); box-shadow: none; }
  .nav-icon { font-size: 18px; }
  .profile-avatar { width: 40px; height: 40px; border-radius: 14px; }
  .page { width: min(100% - 22px, 1240px); padding: 20px 0 42px; }
  .hero { min-height: 690px; border-radius: 30px; }
  .hero-copy { min-height: 690px; padding: 300px 24px 34px; }
  .hero h1 { font-size: 52px; letter-spacing: -2px; }
  .hero-lead { margin: 18px 0 22px; font-size: 17px; line-height: 1.7; }
  .hero-actions { display: grid; width: 100%; }
  .btn { width: 100%; }
  .hero-trust { gap: 8px 14px; }
  .promise-grid, .choice-grid, .rescue-grid { grid-template-columns: 1fr; }
  .promise-card { padding: 20px; }
  .assessment-card { min-height: 520px; padding: 27px 20px; border-radius: 25px; }
  .choice-card label { min-height: 78px; }
  .assessment-actions { flex-direction: column-reverse; }
  .plan-reveal { gap: 12px; }
  .reveal-main, .reveal-side { padding: 26px 22px; border-radius: 26px; }
  .dashboard-hero { padding: 28px 22px; border-radius: 27px; }
  .days-grid { grid-template-columns: repeat(3, 1fr); }
  .day-card { min-height: 135px; padding: 12px; }
  .day-card h3 { font-size: 11px; }
  .phase-title h2 { font-size: 17px; }
  .tool-hero { grid-template-columns: 1fr; padding: 26px 21px; border-radius: 26px; }
  .tool-hero .big-symbol { width: 78px; height: 78px; border-radius: 24px; font-size: 32px; grid-row: 1; }
  .filter-card, .result-card, .content-card { padding: 21px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 125px; padding: 17px; }
  .stat-card strong { font-size: 25px; }
  .day-dialog, .simple-dialog { width: calc(100% - 12px); max-height: calc(100vh - 12px); border-radius: 26px; }
  .dialog-hero { padding: 34px 22px 24px; }
  .dialog-body, .simple-dialog-content { padding: 24px 20px 30px; }
  .mood-options { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .topbar, .main-nav, .dialog-close, .btn, .noise { display: none !important; }
  body { background: white; padding: 0; }
  .page { width: 100%; padding: 0; }
  .print-card { border: 8px solid var(--navy-900); border-radius: 30px; padding: 45px; min-height: 80vh; display: grid; place-items: center; text-align: center; }
}

/* Experience refresh — immersive story world and practical family tools */
.landing-page { padding-top: 26px; }
.hero-v2 {
  direction: ltr;
  grid-template-columns: 1.08fr .92fr;
  grid-template-areas: "visual copy";
  min-height: 690px;
  background: #061b43;
  border: 1px solid rgba(255,255,255,.1);
}
.hero-v2::after {
  z-index: 1;
  background: linear-gradient(90deg, rgba(4,19,49,.05) 0%, rgba(4,19,49,.1) 34%, rgba(4,19,49,.9) 57%, #061b43 76%);
  pointer-events: none;
}
.hero-visual { position: relative; grid-area: visual; min-width: 0; overflow: hidden; }
.hero-visual > img { width: 100%; height: 100%; min-height: 690px; display: block; object-fit: cover; object-position: 38% center; transform: scale(1.015); }
.world-glow { position: absolute; inset: auto 3% 4% auto; width: 42%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,202,91,.2); filter: blur(70px); }
.hero-v2 .hero-copy { grid-area: copy; z-index: 3; direction: rtl; align-items: flex-start; padding: 64px clamp(36px,4.8vw,72px) 54px 42px; }
.hero-v2 .eyebrow { margin-bottom: 17px; }
.hero-v2 h1 { font-size: clamp(64px,7.4vw,102px); letter-spacing: -5px; text-shadow: 0 12px 35px rgba(0,0,0,.16); }
.hero-promise { margin: 22px 0 0; color: white; font-size: clamp(23px,2.2vw,32px); line-height: 1.5; letter-spacing: -.02em; }
.hero-v2 .hero-lead { max-width: 555px; margin: 14px 0 24px; font-size: clamp(16px,1.45vw,20px); line-height: 1.9; }
.btn-xl { min-height: 58px; padding-inline: 27px; border-radius: 18px; }
.hero-proof { width: 100%; max-width: 570px; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 19px; background: rgba(255,255,255,.1); }
.hero-proof div { display: grid; gap: 1px; padding: 13px 15px; background: rgba(4,19,49,.35); }
.hero-proof strong { color: var(--amber-500); font-size: 23px; }
.hero-proof span { color: #c2d0e6; font-size: 10px; }
.world-marker { position: absolute; z-index: 4; direction: rtl; display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--navy-900); background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 18px 45px rgba(4,19,49,.22); backdrop-filter: blur(14px); animation: marker-float 5s ease-in-out infinite; }
.world-marker strong { font-size: 24px; line-height: 1; }
.world-marker span { font-size: 11px; font-weight: 800; }
.marker-days { top: 11%; right: 9%; }
.marker-tools { left: 7%; bottom: 16%; animation-delay: -1.3s; }
.marker-calm { right: 8%; bottom: 7%; animation-delay: -2.5s; }
.marker-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: var(--navy-900); background: var(--amber-100); font-size: 17px !important; }
.marker-dot { width: 10px; height: 10px; border-radius: 50%; background: #35b985; box-shadow: 0 0 0 7px rgba(53,185,133,.14); }
@keyframes marker-float { 0%,100% { transform: translateY(0) rotate(-.5deg); } 50% { transform: translateY(-8px) rotate(.5deg); } }

.outcome-section { margin-top: 36px; padding: clamp(28px,4vw,48px); border: 1px solid rgba(7,31,75,.08); border-radius: 38px; background: rgba(255,255,255,.75); box-shadow: var(--shadow-sm); }
.outcome-intro { display: grid; grid-template-columns: .85fr 1.15fr; grid-template-areas: "copy title"; align-items: end; gap: 44px; margin-bottom: 28px; }
.outcome-intro h2 { grid-area: title; margin: 0; color: var(--navy-900); font-size: clamp(30px,4vw,49px); line-height: 1.25; }
.outcome-intro .section-kicker { grid-area: title; align-self: start; transform: translateY(-22px); }
.outcome-intro p { grid-area: copy; margin: 0; color: var(--muted); line-height: 1.9; }
.outcome-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.outcome-card { position: relative; min-height: 280px; padding: 25px; overflow: hidden; border-radius: 26px; border: 1px solid var(--line); background: white; }
.outcome-card::after { content: ""; position: absolute; left: -50px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; opacity: .5; }
.outcome-card.is-cyan::after { background: var(--cyan-100); }
.outcome-card.is-amber::after { background: var(--amber-100); }
.outcome-card.is-mint::after { background: var(--mint-300); }
.outcome-number { position: absolute; left: 20px; top: 17px; color: rgba(7,31,75,.12); font-size: 34px; font-weight: 900; }
.outcome-card .symbol { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 17px; color: var(--navy-900); background: var(--cyan-100); font-size: 23px; }
.outcome-card.is-amber .symbol { background: var(--amber-100); }
.outcome-card.is-mint .symbol { background: var(--mint-100); }
.outcome-card h3 { margin: 0 0 9px; color: var(--navy-900); font-size: 20px; }
.outcome-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.outcome-card small { position: absolute; right: 25px; bottom: 22px; z-index: 1; color: var(--cyan-600); font-size: 10px; font-weight: 800; }
.method-ribbon { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 20px; padding: 22px 30px; color: white; border-radius: 28px; background: linear-gradient(120deg,#071f4b,#0d3774); box-shadow: var(--shadow-lg); }
.method-ribbon div { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; align-items: center; }
.method-ribbon div > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--navy-950); background: var(--amber-500); font-weight: 900; }
.method-ribbon strong { font-size: 13px; }
.method-ribbon small { color: #b9c9df; font-size: 10px; }
.method-ribbon > i { width: 35px; height: 1px; background: rgba(255,255,255,.22); }

.decision-center { margin: 20px 0 42px; padding: clamp(24px,4vw,38px); border: 1px solid rgba(8,183,214,.16); border-radius: 32px; background: linear-gradient(135deg,rgba(217,246,251,.72),rgba(255,255,255,.94) 48%,rgba(255,242,201,.46)); box-shadow: var(--shadow-sm); }
.decision-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 22px; }
.decision-heading h2 { margin: 0; color: var(--navy-900); font-size: clamp(28px,4vw,42px); }
.decision-heading > p { max-width: 470px; margin: 0; padding: 12px 15px; border-radius: 15px; color: #31586a; background: rgba(255,255,255,.7); font-size: 12px; line-height: 1.75; }
.decision-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 13px; }
.decision-card { position: relative; min-height: 245px; display: flex; flex-direction: column; padding: 23px; overflow: hidden; border: 1px solid rgba(7,31,75,.09); border-radius: 23px; background: rgba(255,255,255,.92); box-shadow: 0 10px 24px rgba(7,31,75,.055); }
.decision-card::after { content: ""; position: absolute; left: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: var(--cyan-100); opacity: .45; }
.decision-card:nth-child(2)::after { background: var(--amber-100); }
.decision-card:nth-child(3)::after { background: var(--mint-300); }
.decision-icon { position: relative; z-index: 1; width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; color: var(--navy-900); background: white; box-shadow: 0 8px 20px rgba(7,31,75,.08); font-size: 22px; }
.decision-card small { color: var(--cyan-600); font-weight: 900; }
.decision-card h3 { margin: 7px 0; color: var(--navy-900); font-size: 18px; }
.decision-card p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.decision-script { color: white; background: linear-gradient(145deg,#071f4b,#0b3473); }
.decision-script::after { background: rgba(8,183,214,.32); }
.decision-script small { color: #78e9f7; }
.decision-script h3 { color: white; }
.decision-script p { color: #d5e2f3; }
.text-action { margin-top: auto; padding: 0; border: 0; color: var(--cyan-600); background: transparent; font-size: 11px; font-weight: 900; text-align: right; cursor: pointer; }
.decision-script .text-action { color: var(--amber-500); }

.rescue-hero { min-height: 300px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: clamp(30px,5vw,58px); margin-bottom: 18px; overflow: hidden; color: white; border-radius: 38px; background: radial-gradient(circle at 14% 10%,rgba(8,183,214,.36),transparent 28%),linear-gradient(135deg,#041331,#0a326e); box-shadow: var(--shadow-lg); }
.rescue-hero h1 { margin: 3px 0 10px; font-size: clamp(42px,6vw,72px); }
.rescue-hero p { max-width: 660px; margin: 0; color: #c7d5e9; line-height: 1.9; }
.rescue-orbit { position: relative; width: 175px; height: 175px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.rescue-orbit::before,.rescue-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.rescue-orbit::before { inset: 18px; }
.rescue-orbit::after { inset: 41px; background: rgba(8,183,214,.13); }
.rescue-orbit > span { position: absolute; z-index: 2; top: 26px; font-size: 25px; color: var(--amber-500); }
.rescue-orbit b { position: relative; z-index: 2; font-size: 17px; text-align: center; line-height: 1.5; }
.rescue-orbit i { position: absolute; z-index: 3; width: 12px; height: 12px; top: 28px; right: 28px; border-radius: 50%; background: var(--mint-300); box-shadow: 0 0 0 8px rgba(189,235,216,.12); }
.rescue-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 42px; }
.rescue-tool { min-height: 300px; padding: 28px; border-radius: 28px; border: 1px solid var(--line); background: white; box-shadow: var(--shadow-sm); }
.tool-label { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #087c99; background: var(--cyan-100); font-size: 10px; font-weight: 900; }
.rescue-tool h2 { margin: 15px 0 8px; color: var(--navy-900); font-size: 26px; }
.rescue-tool p { color: var(--muted); line-height: 1.8; }
.mini-script { margin: 18px 0; padding: 16px; border-right: 4px solid var(--amber-500); border-radius: 15px; color: #33485f; background: #f7fafc; font-size: 12px; line-height: 1.8; }
.rescue-tool.is-timer { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 25px; background: linear-gradient(135deg,#f6fdff,#fff9e9); }
.timer-preview { position: relative; width: 170px; height: 170px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--cyan-500) 72%,rgba(7,31,75,.08) 0); }
.timer-preview::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: white; box-shadow: inset 0 0 0 1px var(--line); }
.timer-preview span { position: relative; z-index: 1; color: var(--navy-900); font-size: 32px; font-weight: 900; direction: ltr; }
.timer-preview i { position: absolute; z-index: 2; width: 14px; height: 14px; top: 2px; border-radius: 50%; background: var(--amber-500); box-shadow: 0 0 0 7px white; }
.rescue-list-head h2 { font-size: clamp(29px,4vw,44px); }

.timer-dialog-content { padding: 38px; text-align: center; }
.timer-dialog-content h1 { margin: 2px 0 8px; color: var(--navy-900); font-size: clamp(31px,5vw,45px); }
.timer-dialog-content > p { max-width: 590px; margin: 0 auto; color: var(--muted); line-height: 1.8; }
.timer-presets { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 25px 0 18px; }
.timer-presets button { min-width: 90px; min-height: 42px; border: 1px solid var(--line); border-radius: 13px; color: var(--navy-900); background: white; cursor: pointer; font-weight: 800; }
.timer-presets button.is-selected { color: white; border-color: var(--navy-900); background: var(--navy-900); }
.transition-ring { --timer-progress:100%; position: relative; width: min(290px,70vw); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: conic-gradient(var(--cyan-500) var(--timer-progress),rgba(7,31,75,.08) 0); transition: background .3s linear; }
.transition-ring::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: linear-gradient(145deg,#fff,#f1fbfd); box-shadow: inset 0 0 0 1px var(--line),0 18px 40px rgba(7,31,75,.1); }
.transition-ring > div { position: relative; z-index: 1; display: grid; gap: 4px; }
.transition-ring small,.transition-ring span { color: var(--muted); font-size: 11px; }
.transition-ring strong { direction: ltr; color: var(--navy-900); font-size: clamp(51px,8vw,78px); line-height: 1; font-variant-numeric: tabular-nums; }
.timer-say { max-width: 620px; margin: 0 auto 20px; padding: 18px 22px; border-radius: 18px; color: #315e50; background: var(--mint-100); text-align: right; }
.timer-say small { color: #23825e; font-weight: 900; }
.timer-say p { margin: 5px 0 0; line-height: 1.8; }
.dialog-action-row { display: flex; justify-content: center; gap: 10px; }

@media (max-width: 1020px) {
  .hero-v2 { grid-template-columns: 1fr; grid-template-areas: "visual" "copy"; min-height: auto; }
  .hero-v2::after { background: linear-gradient(180deg,rgba(4,19,49,.04),rgba(4,19,49,.92) 78%,#061b43 100%); }
  .hero-visual { min-height: 430px; }
  .hero-visual > img { min-height: 430px; object-position: 38% center; }
  .hero-v2 .hero-copy { min-height: auto; margin-top: -120px; padding: 165px 38px 42px; }
  .outcome-intro { grid-template-columns: 1fr; grid-template-areas: "title" "copy"; gap: 12px; }
  .outcome-intro .section-kicker { transform: none; }
  .outcome-grid,.decision-grid { grid-template-columns: 1fr 1fr; }
  .outcome-card:last-child,.decision-card:first-child { grid-column: 1 / -1; }
  .method-ribbon { grid-template-columns: 1fr; gap: 11px; }
  .method-ribbon > i { width: 1px; height: 15px; margin-right: 20px; }
  .rescue-tool.is-timer { grid-template-columns: 150px 1fr; }
  .timer-preview { width: 145px; height: 145px; }
}

@media (max-width: 680px) {
  .landing-page { width: min(100% - 14px,1240px); padding-top: 10px; }
  .hero-v2 { min-height: auto; border-radius: 27px; }
  .hero-visual { min-height: 380px; }
  .hero-visual > img { min-height: 380px; object-position: 34% center; }
  .hero-v2 .hero-copy { min-height: auto; margin-top: -118px; padding: 150px 22px 29px; }
  .hero-v2 h1 { font-size: 58px; letter-spacing: -3px; }
  .hero-promise { margin-top: 14px; font-size: 21px; }
  .hero-v2 .hero-lead { font-size: 14px; line-height: 1.8; }
  .world-marker { padding: 8px 10px; border-radius: 14px; }
  .world-marker span { font-size: 9px; }
  .marker-days { top: 7%; right: 5%; }
  .marker-tools { left: 4%; bottom: 8%; }
  .marker-calm { display: none; }
  .hero-proof { margin-top: 19px; }
  .hero-proof div { padding: 10px 8px; }
  .hero-proof strong { font-size: 18px; }
  .hero-proof span { font-size: 8px; }
  .outcome-section { margin-top: 14px; padding: 25px 18px; border-radius: 27px; }
  .outcome-grid,.decision-grid,.rescue-tools { grid-template-columns: 1fr; }
  .outcome-card:last-child,.decision-card:first-child { grid-column: auto; }
  .outcome-card { min-height: 255px; }
  .method-ribbon { margin-top: 12px; padding: 20px; border-radius: 24px; }
  .decision-center { margin-bottom: 30px; padding: 22px 16px; border-radius: 26px; }
  .decision-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .decision-card { min-height: 220px; }
  .rescue-hero { grid-template-columns: 1fr; min-height: auto; padding: 29px 22px; border-radius: 28px; }
  .rescue-orbit { width: 135px; height: 135px; justify-self: center; }
  .rescue-tools { margin-bottom: 30px; }
  .rescue-tool { min-height: auto; padding: 22px; border-radius: 24px; }
  .rescue-tool.is-timer { grid-template-columns: 1fr; }
  .timer-preview { justify-self: center; }
  .timer-dialog-content { padding: 31px 17px 25px; }
  .timer-presets { display: grid; grid-template-columns: 1fr 1fr; }
  .dialog-action-row { flex-direction: column; }
}

.personal-day-note { margin: 0 0 24px; padding: 18px 20px; border: 1px solid rgba(8,183,214,.16); border-radius: 19px; background: linear-gradient(135deg,var(--cyan-100),rgba(255,255,255,.9)); }
.personal-day-note > span { display: inline-flex; margin-bottom: 7px; padding: 5px 8px; border-radius: 8px; color: #087c99; background: white; font-size: 9px; font-weight: 900; }
.personal-day-note p { margin: 0; color: #31566e; line-height: 1.8; }
.personal-day-note small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.7; }
.saved-activities { margin-top: 26px; padding: 28px; border: 1px solid var(--line); border-radius: 29px; background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }
.saved-activities .section-head { margin-bottom: 18px; }
.saved-activities .section-head h2 { font-size: clamp(27px,3vw,38px); }
.saved-count { padding: 8px 12px; border-radius: 999px; color: #207255; background: var(--mint-100); font-size: 11px; font-weight: 900; }
.saved-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.saved-grid article { position: relative; min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 42px 13px 14px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.saved-grid article > span { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; color: var(--navy-900); background: var(--amber-100); font-size: 18px; }
.saved-grid strong,.saved-grid small { display: block; }
.saved-grid strong { color: var(--navy-900); font-size: 13px; }
.saved-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.saved-grid article > button:not(.remove-saved) { border: 0; color: var(--cyan-600); background: transparent; font-size: 10px; font-weight: 900; cursor: pointer; }
.saved-grid .remove-saved { position: absolute; right: 10px; top: 10px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 8px; color: #a2463d; background: var(--coral-100); cursor: pointer; }

@media (max-width: 680px) {
  .saved-activities { padding: 21px 16px; border-radius: 24px; }
  .saved-grid { grid-template-columns: 1fr; }
  .saved-grid article { grid-template-columns: auto 1fr; }
  .saved-grid article > button:not(.remove-saved) { grid-column: 2; width: auto; justify-self: start; }
}

/* World-class product layer — adaptive day, actionable analytics, privacy and access */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(110,228,245,.2);
  border-radius: 999px;
  color: #a8eff8;
  background: rgba(8,183,214,.1);
  font-size: 11px;
  font-weight: 900;
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #74e8b9; box-shadow: 0 0 0 5px rgba(116,232,185,.12); }
.dashboard-snapshot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.dashboard-snapshot span { display: inline-flex; align-items: baseline; gap: 5px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #b9cae0; background: rgba(255,255,255,.055); font-size: 10px; }
.dashboard-snapshot strong { color: white; font-size: 15px; }
.today-adaptive-copy { margin: 0 0 11px; color: #d6e2f2; font-size: 12px; line-height: 1.8; }
.today-duration { display: inline-flex; margin-bottom: 15px; color: #8eeaf6; font-size: 11px; font-weight: 900; }
.today-card > .btn { width: 100%; }

.readiness-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
  margin: -5px 0 20px;
  padding: 22px 25px;
  border: 1px solid rgba(8,183,214,.16);
  border-radius: 25px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}
.readiness-copy h2 { margin: 0; color: var(--navy-900); font-size: 24px; }
.readiness-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.readiness-group > small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 800; }
.segmented-control { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding: 5px; border-radius: 15px; background: rgba(7,31,75,.055); }
.segmented-control button { min-height: 39px; padding: 5px 7px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; transition: .2s var(--ease); }
.segmented-control button.is-active { color: white; background: var(--navy-900); box-shadow: 0 8px 18px rgba(7,31,75,.16); }

.quick-dock { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: -18px 0 36px; }
.quick-dock button { min-height: 86px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); background: rgba(255,255,255,.9); cursor: pointer; text-align: right; box-shadow: 0 8px 24px rgba(7,31,75,.05); transition: .2s var(--ease); }
.quick-dock button:hover { transform: translateY(-3px); border-color: rgba(8,183,214,.38); box-shadow: var(--shadow-sm); }
.quick-dock button > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; color: var(--navy-900); background: var(--cyan-100); font-size: 18px; }
.quick-dock button:nth-child(2) > span { background: var(--coral-100); }
.quick-dock button:nth-child(3) > span { background: var(--amber-100); }
.quick-dock button:nth-child(4) > span { background: var(--mint-100); }
.quick-dock strong,.quick-dock small { display: block; }
.quick-dock strong { color: var(--navy-900); font-size: 12px; }
.quick-dock small { max-width: 170px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.quick-dock b { color: var(--cyan-600); font-size: 13px; }

.win-input { width: 100%; min-height: 86px; margin: 8px 0 18px; padding: 13px 15px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fbfdfe; line-height: 1.7; }
.win-input:focus { border-color: var(--cyan-500); background: white; }

.insight-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 17px; padding: 18px 20px; border-radius: 22px; color: white; background: linear-gradient(120deg,#071f4b,#0b3473); box-shadow: var(--shadow-lg); }
.insight-banner > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; color: var(--navy-950); background: var(--amber-500); font-size: 20px; }
.insight-banner small,.insight-banner strong { display: block; }
.insight-banner small { margin-bottom: 2px; color: #8eeaf6; font-size: 9px; font-weight: 900; }
.insight-banner strong { font-size: 13px; line-height: 1.7; }
.insight-banner button { border: 0; color: var(--amber-500); background: transparent; cursor: pointer; font-size: 11px; font-weight: 900; }
.chart-title,.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.chart-title h2,.card-heading h2 { margin: 0; }
.chart-title p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.chart-title > span { padding: 7px 10px; border-radius: 999px; color: #087c99; background: var(--cyan-100); font-size: 9px; font-weight: 900; }
.mood-card { display: flex; flex-direction: column; }
.mood-meter { display: flex; height: 16px; margin: 22px 0; overflow: hidden; border-radius: 999px; background: rgba(7,31,75,.06); }
.mood-meter i { width: var(--w); min-width: calc(var(--w) * .01); background: var(--c); }
.mood-legend { display: grid; gap: 12px; }
.mood-legend span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.mood-legend b { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.mood-legend strong { color: var(--navy-900); }
.progress-secondary { display: grid; grid-template-columns: 1.3fr .7fr; gap: 17px; margin-top: 17px; }
.wins-list { display: grid; gap: 9px; margin-top: 16px; }
.wins-list > div { padding: 13px 15px; border-right: 3px solid var(--cyan-500); border-radius: 13px; background: #f7fafc; }
.wins-list span { color: var(--cyan-600); font-size: 9px; font-weight: 900; }
.wins-list p { margin: 4px 0 0; color: #33485f; font-size: 12px; line-height: 1.7; }
.empty-note { margin-top: 16px; padding: 25px; border: 1px dashed rgba(7,31,75,.15); border-radius: 16px; color: var(--muted); background: #fbfdfe; font-size: 11px; line-height: 1.8; text-align: center; }

.family-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.family-mini-stats span { padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; color: #bfcce1; background: rgba(255,255,255,.055); font-size: 9px; }
.family-mini-stats strong { display: block; color: white; font-size: 20px; }
.privacy-seal { margin-top: 12px; padding: 10px 12px; border-radius: 13px; color: #8eeac4; background: rgba(53,185,133,.1); font-size: 10px; font-weight: 800; }
.local-badge { padding: 7px 10px; border-radius: 999px; color: #207255; background: var(--mint-100); font-size: 9px; font-weight: 900; }
.accessibility-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #f7fafc; }
.accessibility-card > div strong,.accessibility-card > div small { display: block; }
.accessibility-card > div strong { color: var(--navy-900); font-size: 12px; }
.accessibility-card > div small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.accessibility-card label { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 12px; background: white; cursor: pointer; color: var(--muted); font-size: 10px; font-weight: 800; }
.accessibility-card input { accent-color: var(--navy-900); }

.rescue-tool.is-reset { grid-column: 1 / -1; min-height: 220px; display: grid; grid-template-columns: 175px 1fr; align-items: center; gap: 28px; background: linear-gradient(135deg,#fff7f5,#fff 48%,#f3fcf8); }
.reset-preview { width: 155px; height: 155px; display: grid; place-content: center; border-radius: 50%; color: var(--navy-900); background: radial-gradient(circle at 50% 50%,white 46%,transparent 48%),conic-gradient(var(--coral-500),var(--amber-500),var(--mint-300),var(--cyan-500),var(--coral-500)); box-shadow: 0 20px 45px rgba(7,31,75,.11); text-align: center; }
.reset-preview span { font-size: 42px; font-weight: 900; line-height: 1; }
.reset-preview small { color: var(--muted); font-size: 10px; }
.reset-dialog-content { padding: 38px; text-align: center; }
.reset-dialog-content h1 { margin: 3px 0 8px; color: var(--navy-900); font-size: clamp(31px,5vw,46px); }
.reset-dialog-content > p { max-width: 590px; margin: 0 auto; color: var(--muted); line-height: 1.8; }
.reset-orb { width: min(310px,72vw); aspect-ratio: 1; display: grid; place-items: center; margin: 25px auto; border-radius: 50%; background: radial-gradient(circle,var(--cyan-100) 0 37%,rgba(8,183,214,.14) 38% 52%,rgba(8,183,214,.06) 53% 68%,transparent 69%); }
.reset-orb.is-running { animation: breathe 10s ease-in-out infinite; }
.reset-orb > div { width: 58%; aspect-ratio: 1; display: grid; place-content: center; gap: 7px; border-radius: 50%; color: white; background: linear-gradient(145deg,var(--navy-900),#0d3c80); box-shadow: 0 20px 55px rgba(7,31,75,.24); }
.reset-orb small { max-width: 130px; color: #bdebf1; font-size: 10px; line-height: 1.5; }
.reset-orb strong { direction: ltr; font-size: 40px; font-variant-numeric: tabular-nums; }
@keyframes breathe { 0%,100% { transform: scale(.92); } 50% { transform: scale(1.05); } }
.reset-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; max-width: 650px; margin: 0 auto 22px; }
.reset-steps span { padding: 10px; border-radius: 12px; color: #40566e; background: #f4f7fa; font-size: 9px; font-weight: 800; }
.source-links { display: grid; gap: 8px; }
.source-links a { padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--cyan-600); background: white; text-decoration: none; }

.trust-standard { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 20px; }
.trust-standard > div { min-height: 95px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-content: center; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.82); }
.trust-standard span { grid-row: 1 / 3; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: var(--navy-900); background: var(--cyan-100); }
.trust-standard strong { color: var(--navy-900); font-size: 11px; }
.trust-standard small { color: var(--muted); font-size: 8px; line-height: 1.5; }

.force-reduced-motion *, .force-reduced-motion *::before, .force-reduced-motion *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.high-contrast { --ink:#06142e; --muted:#42506a; --line:rgba(4,19,49,.22); }
.high-contrast body { background: #fff; }
.high-contrast .content-card,.high-contrast .stat-card,.high-contrast .readiness-panel,.high-contrast .quick-dock button { border-color: rgba(4,19,49,.28); }

@media (max-width: 1020px) {
  .readiness-panel { grid-template-columns: 1fr 1fr; }
  .readiness-copy { grid-column: 1 / -1; }
  .quick-dock { grid-template-columns: 1fr 1fr; }
  .progress-secondary { grid-template-columns: 1fr; }
  .trust-standard { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .dashboard-snapshot { display: grid; grid-template-columns: repeat(3,1fr); }
  .dashboard-snapshot span { display: grid; gap: 1px; padding: 8px; }
  .dashboard-snapshot strong { font-size: 14px; }
  .readiness-panel { grid-template-columns: 1fr; gap: 15px; padding: 20px 16px; border-radius: 22px; }
  .readiness-copy { grid-column: auto; }
  .quick-dock { gap: 7px; margin: -12px 0 28px; }
  .quick-dock button { min-height: 92px; grid-template-columns: auto 1fr; padding: 11px; }
  .quick-dock button > span { width: 34px; height: 34px; }
  .quick-dock b { display: none; }
  .quick-dock small { max-width: 95px; }
  .insight-banner { grid-template-columns: auto 1fr; padding: 15px; }
  .insight-banner button { grid-column: 2; justify-self: start; padding: 0; }
  .progress-layout { gap: 12px; }
  .progress-secondary { gap: 12px; margin-top: 12px; }
  .accessibility-card { grid-template-columns: 1fr 1fr; }
  .accessibility-card > div { grid-column: 1 / -1; }
  .accessibility-card label { justify-content: center; }
  .rescue-tool.is-reset { grid-column: auto; grid-template-columns: 1fr; min-height: auto; }
  .reset-preview { width: 135px; height: 135px; justify-self: center; }
  .reset-dialog-content { padding: 30px 17px 25px; }
  .reset-steps { grid-template-columns: 1fr 1fr; }
  .trust-standard { grid-template-columns: 1fr; gap: 7px; }
  .trust-standard > div { min-height: 78px; }
}
