/* Tabstinence site — shared theme + layout. Two calm palettes, straight from the app's
   Theme.axaml; picked by the system's light / dark setting only (no toggle on the site).
   Depth comes from soft fills and one photo wash — no heavy shadows. */

:root {
  --bg: #F4F5F7; --surface: #FFFFFF; --surface2: #F3F4F6; --track: #ECEEF1;
  --line: #E8EAEE; --line-strong: #D7DAE0;
  --text: #1D2026; --muted: #5D636E; --faint: #7A808B;
  --accent: #E2A04C; --accent-ink: #A4630F; --accent-hover: #E9AE60; --accent-text: #231A0B;
  --accent-soft: #24E2A04C; --good: #3B8A4E;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --bar: 40px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181C; --surface: #22252B; --surface2: #2A2D34; --track: #17191D;
    --line: #30333A; --line-strong: #3D414A;
    --text: #EDEDEF; --muted: #A3A7B0; --faint: #afb2b9;
    --accent: #E3A857; --accent-ink: #EBB66C; --accent-hover: #EDB86C;
    --accent-soft: #29E3A857; --good: #8CC08F;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 650; line-height: 1.06; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 650; line-height: 1.12; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 13px; }
section { padding: 56px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-quiet { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-quiet:hover { background: var(--surface2); transform: translateY(-1px); }

/* Nav — slim bar; the logo fills its full height, no padding around it. */
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav {
  display: flex; align-items: stretch; min-height: var(--bar);
  padding: 0 24px; max-width: 1120px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 16px; font-weight: 650; text-decoration: none;
}
.brand img { height: var(--bar); width: var(--bar); }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a {
  display: flex; align-items: center; color: var(--muted); text-decoration: none;
  font-size: 13.5px; font-weight: 600;
}
.nav-links a:hover { color: var(--accent-ink); }
nav > .btn { align-self: center; margin-left: 18px; padding: 7px 16px; }

/* Hero: the heading and the calls to action. */
.hero { padding: 84px 0 24px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/land/dawn-lake-reflection.webp") center/cover;
  opacity: 0.15;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(32px, 3.8vw, 50px); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.hero .lead {
  font-size: clamp(16px, 2vw, 19px); color: var(--muted);
  max-width: 30em; margin: 20px 0 30px;
}
/* Downloads: one compact box holding the ways to get the app; the installer leads. */
.download-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  max-width: 540px; padding: 12px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}
.dl {
  display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: background .15s ease, transform .15s ease;
}
.dl:hover { background: var(--surface2); transform: translateY(-1px); }
.dl b { font-size: 14.5px; font-weight: 650; }
.dl-primary { background: var(--accent); border-color: transparent; color: var(--accent-text); }
.dl-primary:hover { background: var(--accent-hover); }
.dl-primary .faint { color: color-mix(in srgb, var(--accent-text) 72%, transparent); }

/* The promises, as one glass card: icons, not pills. */
.trust {
  position: relative; border-radius: 20px; padding: 24px 26px 20px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}
/* Hairline gradient border — the quiet fancy edge. */
.trust::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, var(--accent-soft), transparent 32%, transparent 68%, var(--accent-soft));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; pointer-events: none;
}
.trust-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.trust-title { font-family: var(--display); font-size: 21px; font-weight: 650; }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.tile {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px;
  border-radius: 12px; transition: background .2s ease;
}
.tile:hover { background: var(--surface2); }
.tile b { display: block; font-size: 14.5px; font-weight: 650; }
.disc {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center;
}
.disc.key { background: var(--accent); color: var(--accent-text); }
.disc svg { width: 20px; height: 20px; }

/* Guided tour */
.tour-section { padding-top: 24px; }
.tour-section .wrap > h2 { margin-bottom: 26px; }
.tour {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; display: grid; grid-template-columns: 250px 1fr; gap: 22px;
}
.tour-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.tour-list li {
  display: flex; gap: 10px; padding: 7px 12px; border-radius: 10px; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 600; flex: 1;
}
.tour-list li:hover { background: var(--surface2); color: var(--text); }
.tour-list li[aria-current="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.tour-list .n { color: var(--faint); font-variant-numeric: tabular-nums; font-size: 12px; padding-top: 2px; }
.tour-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tour-stage {
  border-radius: 12px; overflow: hidden; background: var(--track); aspect-ratio: 16/10;
  position: relative;
}
.tour-stage img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* A small popup shot (the nudge) must not be blown up to fill the frame — sit it inside. */
.tour-stage img.contain { object-fit: contain; object-position: center; padding: 22px; box-sizing: border-box; }
.tour-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tour-title .count { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.tour-controls { display: flex; align-items: center; gap: 10px; }

/* The play button: big, centered on the stage. */
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-text);
  font-size: 26px; line-height: 1; z-index: 2;
  transition: background .15s ease, transform .15s ease, opacity .25s ease;
}
.play:hover { background: var(--accent-hover); transform: translate(-50%, -50%) scale(1.06); }
/* While playing the big button steps aside; hovering the screen brings it back. */
.tour-stage.playing .play { opacity: 0; pointer-events: none; }
.tour-stage:hover .play { opacity: 1; pointer-events: auto; }
.ctrl {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  border-radius: 9px; padding: 8px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s ease;
}
.ctrl:hover { background: var(--surface2); }
.progress { display: flex; gap: 5px; flex: 1; }
.progress button {
  flex: 1; height: 6px; border: 0; border-radius: 99px; background: var(--track); cursor: pointer; padding: 0;
  transition: background .25s ease;
}
.progress button.done { background: var(--accent); }

/* Features: one big centered heading, then left / right rows. */
.features-intro { text-align: center; padding: 24px 0 8px; }
.features-intro h2 { font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.025em; }

.frow { padding: 42px 0; }
.frow .row {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center;
}
/* The copy shrink-wraps toward the image on both sides, so short text doesn't
   leave a large dead zone between text and screenshot. */
.frow .row > .row-copy { justify-self: end; }
.frow.rev .row > .row-copy { order: 2; justify-self: start; }
.row-copy h2 { font-size: clamp(19px, 2vw, 22px); }
.row-copy ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.row-copy li {
  display: flex; gap: 10px; align-items: baseline; color: var(--muted);
  font-size: 15px; line-height: 1.65;
}
.row-copy li::before {
  content: ""; flex: 0 0 7px; height: 7px; border-radius: 99px;
  background: var(--accent); transform: translateY(-1px);
}

/* Shots: one main crop, then smaller focused ones. Heights are bounded so a tall
   screenshot never takes over the row. */
.shot {
  margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.shot img {
  width: 100%; max-height: 300px; object-fit: cover; object-position: top center;
}
.thumbs { display: flex; gap: 12px; margin-top: 12px; }
.thumbs .shot { flex: 1 1 0; min-width: 0; }
.thumbs .shot img { max-height: 140px; }

/* Effect A — images breathe: slow zoom while pointed at. */
.fx-zoom .shot img { transition: transform .7s cubic-bezier(.2, .6, .2, 1); will-change: transform; }
.fx-zoom .shot:hover img { transform: scale(1.05); }

/* Effect B — shots lift a touch when pointed at. */
.fx-lift .shot { transition: transform .25s ease, border-color .25s ease; }
.fx-lift .shot:hover { transform: translateY(-3px); border-color: var(--accent); }

/* Effect C — sections settle in as you reach them. */
.fx-reveal [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1);
}
.fx-reveal [data-reveal].in { opacity: 1; transform: none; }
.fx-reveal [data-reveal][data-delay="1"] { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .fx-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .fx-zoom .shot img, .fx-lift .shot { transition: none; }
  html { scroll-behavior: auto; }
}

/* Feature groups: one label per kind of feature, then its rows. */
.fgroup-title { padding: 72px 0 6px; }
.fgroup-title .band {
  display: flex; align-items: center; gap: 11px;
  /* background: var(--surface2);  */
  border-bottom: 1px solid var(--line); 
  border-radius: 12px;
  padding: 11px 18px;
  
}
.fgroup-title h3 {
  font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 350;
  letter-spacing: .05em;
}
.fgroup-title .dot { width: 9px; height: 9px; border-radius: 99px; background: var(--accent); flex: none; }

/* FAQ */
.faq { max-width: 760px; margin-top: 22px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 4px; font-weight: 650; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; color: var(--faint); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--accent-ink); }
.faq .answer { padding: 0 40px 18px 4px; color: var(--muted); }

/* Support */
.support {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 40px; text-align: center;
}
.tiers { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 14px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .tour { grid-template-columns: 1fr; }
  .tour-list { flex-direction: row; overflow-x: auto; }
  .tour-list li { white-space: nowrap; flex: none; }
  .frow .row { grid-template-columns: 1fr; gap: 24px; }
  .frow .row > .row-copy, .frow.rev .row > .row-copy { order: 0; justify-self: start; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
}

/* Feature lists with a term + description per item, so the eye can scan the terms.
   Selectors are ul.rlist… so they out-specify .row-copy ul / .row-copy li. */
ul.rlist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
ul.rlist li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--muted); font-size: 15px; line-height: 1.65;
}
.rlist li::before { content: none; } /* the .row-copy bullet must not leak in here */
.rlist .body { display: grid; gap: 1px; }
.rlist .term { color: var(--text); font-weight: 650; font-family: var(--display); font-size: 15.5px; }
.rlist .n {
  color: var(--accent-ink); font-weight: 650; font-size: 12.5px;
  font-variant-numeric: tabular-nums; padding-top: 4px;
}
