/* Landing page: header, sections and footer around the hero. Uses the tokens in base.css. */

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.wrap.narrow { max-width: 860px; }
main { display: block; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- header ----------
   One small bar, the same on every page: logo left, weather / day-night / music in the exact centre, Sign in and
   Download right. It is fixed to the top with a fixed height and a row that never wraps, and nothing in it depends on
   a script or a font to find its size (Download is always there, "Sign in" and "Account" share a width), so it does
   not move while the page loads. There is no menu: the page links are in the footer and under the home scene. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: background-color .35s, border-color .35s;
}
/* Home page: the header sits clear over the scene, and turns solid once the page is scrolled. */
.home .site-header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
.home .site-header.is-solid { background: color-mix(in srgb, var(--bg) 82%, transparent); }

/* Weather and music belong to the home scene. Elsewhere they stay invisible but keep their space,
   so day/night stays exactly in the middle and Sign in and Download in the same place on every page. */
body:not(.home) .hdr-tools .syn-wrap { visibility: hidden; }

/* Three fixed columns; the two side columns are equal, which is what keeps the buttons centred. */
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 20px; height: 100%; }
.header-row > .brand { grid-column: 1; justify-self: start; }
.header-row > .hdr-tools { grid-column: 2; justify-self: center; }
.header-row > .header-actions { grid-column: 3; justify-self: end; }
.brand {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); white-space: nowrap;
  font-size: 15px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.brand span { position: relative; white-space: nowrap; }
/* Hover / focus: a thin line draws in under the name and the logo lifts a little, so it reads as a link home.
   Both use transforms only, so nothing in the header moves. */
.brand span::after {
  content: ''; position: absolute; left: 0; right: .2em; bottom: -5px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
}
.brand .logo { transition: transform .28s ease; }
.brand:hover span::after, .brand:focus-visible span::after { transform: scaleX(1); }
.brand:hover .logo, .brand:focus-visible .logo { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .brand span::after, .brand .logo { transition: none; } }

/* weather, music and day/night, grouped in one control */
.hdr-tools {
  --fg: var(--ink); --fg-soft: var(--ink-soft); --btn: transparent; --btn-hover: var(--accent-soft); --panel: var(--surface);
  position: relative; display: flex; align-items: center; gap: 8px;
}
.hdr-tools .syn-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 55%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--fg); box-shadow: none !important; transition: background-color .2s, border-color .2s, color .3s;
}
.hdr-tools .syn-btn:hover, .hdr-tools .syn-btn[aria-expanded="true"] { background: var(--btn-hover); }
.hdr-tools .syn-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hdr-tools .syn-btn svg, .hdr-tools .syn-btn .icon { width: 17px; height: 17px; }
.hdr-tools .syn-menu {
  position: absolute; top: 50px; left: -4px; z-index: 5; min-width: 190px; padding: 10px 0; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.hdr-tools .syn-wrap { position: relative; }
.hdr-tools .syn-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.hdr-tools .syn-menu button {
  position: relative; display: block; width: 100%; padding: 10px 24px 10px 40px; border: 0; background: none; cursor: pointer; text-align: left;
  font: 700 11px/1 'Space Grotesk', system-ui, sans-serif; letter-spacing: .15em; text-transform: uppercase; color: var(--fg-soft);
}
.hdr-tools .syn-menu button:hover { color: var(--fg); background: rgba(128, 128, 128, .13); }
.hdr-tools .syn-menu button[aria-checked="true"] { color: var(--fg); }
.hdr-tools .syn-menu button[aria-checked="true"]::before { content: ''; position: absolute; left: 22px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--accent); }
.hdr-tools .syn-btn:active { transform: scale(.94); }
.header-dl .icon { width: 16px; height: 16px; }
.header-actions .btn { flex: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
/* A fixed width, so swapping "Sign in" for "Account" never moves the buttons beside it. */
.link-btn { display: inline-block; min-width: 76px; padding: 8px 10px; text-align: center; white-space: nowrap; text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.link-btn:hover { color: var(--accent); }
.link-btn[aria-current="page"] { color: var(--accent); }

/* ---------- hero, as part of the page ---------- */
.syn-hero .syn-copy { top: max(calc(var(--header-h) + 32px), 15%); max-width: min(520px, 40vw); }
.syn-hero .syn-copy h1 { font-size: clamp(34px, min(3.8vw, 7vh), 58px); }
.syn-hero.is-stacked .syn-copy { top: calc(var(--header-h) + 20px); }
.syn-hero .syn-back { top: calc(var(--header-h) + 18px); }
.syn-hero .syn-copy code { padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--fg) 10%, transparent); font-size: .9em; }
.syn-hero .syn-card .syn-card-link {
  display: inline-flex; align-items: center; min-height: 40px; margin-top: 16px; padding: 8px 20px; border-radius: 999px;
  background: var(--fg); color: #14171c; text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .2s, background .5s, color .5s;
}
[data-theme="day"] .syn-hero .syn-card .syn-card-link { color: #f2efe6; }
.syn-hero .syn-card .syn-card-link:hover { transform: translateY(-2px); }
.syn-hero .syn-card .syn-card-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.syn-hero .syn-copy .syn-note {
  margin: 18px 0 0; font-size: 12px; letter-spacing: .04em; color: var(--fg-soft); display: block; -webkit-line-clamp: unset;
}
@media (max-width: 860px) { .syn-hero .syn-back { top: calc(var(--header-h) + 10px); } }
@media (min-height: 700px) { .syn-hero.is-stacked .syn-copy p { -webkit-line-clamp: 4; } }
@media (max-height: 760px) { .syn-hero.is-stacked .syn-copy .syn-note { display: none; } }

/* ---------- inner pages ---------- */
.page-main { padding-top: var(--header-h); }
.page-intro { padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 5vw, 56px); }
.page-intro h1, .section.first h1 { margin: 0 0 18px; font-size: clamp(44px, 6vw, 76px); line-height: 1; }
.page-intro .lead { max-width: 720px; }
.page-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.page-jump a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 13.5px; color: var(--ink-soft); }
.page-jump a:hover { color: var(--ink); border-color: var(--ink-faint); }
.section.first { padding-top: clamp(64px, 9vw, 112px); }
.page .facts { border-top: 1px solid var(--line); }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 132px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2, .split-text h2, .cta-inner h2 { margin: 0 0 18px; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.6; color: var(--ink-soft); }
q { quotes: '“' '”'; color: var(--ink); font-style: italic; }

/* facts strip */
.facts { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 28px 24px 28px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--accent); }
.fact strong { display: block; margin-bottom: 2px; font-size: 15px; }
.fact span { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 30px 28px 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 26px; border: 1px solid var(--line-strong); border-radius: 50%;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 600; color: var(--accent);
}
.step h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.1; }
.step p { color: var(--ink-soft); }

/* ---------- demo ---------- */
.demo { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.demo-prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 26px; }
.demo-prompts button {
  padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); cursor: pointer;
  font-size: 14px; color: var(--ink-soft); transition: border-color .2s, color .2s, background-color .2s;
}
.demo-prompts button:hover { color: var(--ink); border-color: var(--ink-faint); }
.demo-prompts button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

.app-window { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.app-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.app-dots { display: flex; gap: 7px; }
.app-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.app-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.app-mode { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.app-body { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.12fr); min-height: 500px; }
.app-label { margin: 0 0 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.app-sessions { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; border-right: 1px solid var(--line); }
.app-sessions span { padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-sessions span.is-on { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.app-chat { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 20px 18px; overflow: auto; max-height: 520px; }
.chat-input {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 14px 14px; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; font-size: 14px; color: var(--ink-faint); min-height: 46px;
}
.chat-input.is-typing { color: var(--ink); }
.chat-input.is-typing [data-typing]::after { content: ''; display: inline-block; width: 1px; height: 15px; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.msg { max-width: 92%; font-size: 14.5px; line-height: 1.55; animation: msg-in .35s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.msg-user { align-self: flex-end; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--accent-soft); }
.msg-ai { color: var(--ink-soft); }
.msg-ai strong { color: var(--ink); }

.change-card { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-2); animation: msg-in .35s ease both; }
.cc-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.cc-head .icon { width: 17px; height: 17px; color: var(--accent); }
.cc-head span { flex: 1; min-width: 0; }
.cc-status { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; background: var(--accent-soft); color: var(--accent); }
.cc-status[data-s="applied"] { background: var(--ins-bg); color: var(--ins); }
.cc-status[data-s="denied"], .cc-status[data-s="undone"] { background: var(--surface); color: var(--ink-faint); }
.cc-rows { display: grid; gap: 6px; padding: 12px 14px; }
.cc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13.5px; }
.cc-row del { padding: 1px 6px; border-radius: 5px; background: var(--del-bg); color: var(--del); }
.cc-row ins { padding: 1px 6px; border-radius: 5px; background: var(--ins-bg); color: var(--ins); text-decoration: none; }
.cc-row .icon { width: 14px; height: 14px; color: var(--ink-faint); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.cc-actions button, .chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.cc-actions button:hover { border-color: var(--ink-faint); }
.cc-actions button.is-primary, .chip-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cc-actions .icon, .chip .icon { width: 14px; height: 14px; }
.cc-foot { padding: 0 14px 12px; font-size: 12.5px; color: var(--ink-faint); }

.app-doc { min-width: 0; padding: 18px 20px 22px; background: color-mix(in srgb, var(--bg-2) 60%, var(--surface)); }
.doc-page {
  padding: 30px 32px 36px; border-radius: 4px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
  font: 400 13.5px/1.65 Georgia, 'Times New Roman', serif; min-height: 420px;
}
.doc-page h4 { margin: 0 0 14px; font: 600 24px/1.2 'Cormorant Garamond', Georgia, serif; color: #1a1c18; }
.doc-page h5 { margin: 18px 0 6px; font: 700 13px/1.3 Georgia, serif; color: #1a1c18; transition: color .4s, font-size .4s; }
.doc-page.h2-styled h5 { color: #8b1a1a; font-size: 16px; }
.doc-page p { margin: 0 0 8px; }
.doc-page .hl { border-radius: 3px; padding: 0 2px; transition: background-color .4s; }
.doc-page .hl-pending { background: rgba(30, 58, 110, .18); box-shadow: inset 0 -1.5px 0 rgba(30, 58, 110, .7); }
.doc-page .hl-done { background: rgba(46, 160, 110, .2); }
.doc-page .toc { margin: 4px 0 16px; padding: 12px 14px; border: 1px dashed rgba(30, 58, 110, .55); border-radius: 4px; background: rgba(30, 58, 110, .07); animation: msg-in .35s ease both; }
.doc-page .toc.is-done { border-style: solid; border-color: rgba(46, 160, 110, .5); background: rgba(46, 160, 110, .07); }
.doc-page .toc b { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.doc-page .toc span { display: flex; justify-content: space-between; border-bottom: 1px dotted rgba(0, 0, 0, .25); margin-bottom: 4px; }
.demo-note { margin: 18px auto 0; text-align: center; font-size: 13px; color: var(--ink-faint); }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { padding: 32px 32px 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 16px; font-size: 28px; line-height: 1.1; }
.ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks-lg li { font-size: 16.5px; }

/* ---------- split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-rev .split-text { order: 2; }
.points { display: grid; gap: 20px; margin: 30px 0 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.points .icon { width: 22px; height: 22px; margin-top: 3px; color: var(--accent); }
.points strong { display: block; margin-bottom: 2px; font-size: 16px; }
.points span { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* big jobs card */
.big { background: var(--bg-2); }
.job-card { padding: 26px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.job-head { display: flex; align-items: center; justify-content: space-between; }
.job-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.job-kicker .icon { width: 18px; height: 18px; }
.job-status { padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); font-size: 11.5px; font-weight: 700; color: var(--accent); }
.job-status.is-done { background: var(--ins-bg); color: var(--ins); }
.job-title { margin: 10px 0 18px; font: 600 26px/1.15 'Cormorant Garamond', Georgia, serif; }
.job-steps { display: grid; gap: 4px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: s; }
.job-steps li { position: relative; padding: 8px 0 8px 34px; font-size: 14.5px; color: var(--ink-faint); transition: color .3s; counter-increment: s; }
.job-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 7px; display: grid; place-items: center; width: 22px; height: 22px;
  border: 1px solid var(--line-strong); border-radius: 50%; font-size: 11px; font-weight: 700; transition: all .3s;
}
.job-steps li.is-run { color: var(--ink); }
.job-steps li.is-run::before { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.job-steps li.is-done { color: var(--ink-soft); }
.job-steps li.is-done::before { content: '✓'; border-color: var(--ins); background: var(--ins-bg); color: var(--ins); }
.job-parts { display: grid; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.part span { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--ink-soft); }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width .6s ease; }
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
.job-btns { display: flex; gap: 8px; }
.job-btns .chip { cursor: default; }

/* modes */
.modes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-bottom: 28px; border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden; background: var(--surface); }
.mode-tabs { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-right: 1px solid var(--line); }
.mode-tabs button {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid transparent; border-radius: 14px; background: none; cursor: pointer;
  font-size: 16px; font-weight: 600; text-align: left; color: var(--ink-soft); transition: background-color .2s, border-color .2s, color .2s;
}
.mode-tabs button:hover { color: var(--ink); background: var(--surface-2); }
.mode-tabs button[aria-selected="true"] { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.mode-tabs .tag { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); font-size: 11px; color: var(--accent); }
.mode-panel { display: grid; align-content: center; gap: 22px; padding: 28px clamp(20px, 3vw, 36px); }
.mode-text { font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); }
.mode-text strong { color: var(--ink); }
.mini-card { border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-2); }
.mini-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.mini-head .icon { width: 17px; height: 17px; color: var(--accent); }
.mini-head span { flex: 1; }
.mini-head em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent); }
.mini-card.is-applied .mini-head em { color: var(--ins); }
.mini-card.is-locked .mini-head em { color: var(--ink-faint); }
.mini-diff { display: flex; gap: 8px; padding: 12px 14px; font-size: 13.5px; }
.mini-diff del { padding: 1px 6px; border-radius: 5px; background: var(--del-bg); color: var(--del); }
.mini-diff ins { padding: 1px 6px; border-radius: 5px; background: var(--ins-bg); color: var(--ins); text-decoration: none; }
.mini-card.is-locked .mini-diff { opacity: .45; }
.mini-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; }
.mini-actions .chip { cursor: default; }

.control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.control { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.control .icon { width: 24px; height: 24px; margin-bottom: 16px; color: var(--accent); }
.control h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.15; }
.control p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* intact */
.intact { background: var(--bg-2); }
.anatomy { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.anat-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14.5px; }
.anat-row > .icon { width: 19px; height: 19px; color: var(--ink-faint); }
.anat-row span { flex: 1; }
.anat-row em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--ins); }
.anat-row em .icon { width: 15px; height: 15px; }
.anat-row.is-changed { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.anat-row.is-changed > .icon { color: var(--accent); }
.anat-row.is-changed em { color: var(--accent); }

/* command palette */
.palette { border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette-input .icon { color: var(--accent); }
.palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 16px/1.4 ui-monospace, 'Cascadia Code', Consolas, monospace; color: var(--ink); }
.palette-list { max-height: 360px; margin: 0; padding: 8px; overflow: auto; list-style: none; }
.palette-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; padding: 9px 10px; border-radius: 10px; font-size: 14px; }
.palette-list li.is-first { background: var(--accent-soft); }
.palette-list li[hidden] { display: none; }
.palette-list code { color: var(--accent); font-size: 13.5px; }
.palette-list span { color: var(--ink-soft); }
.palette-list .empty { display: block; padding: 18px 10px; color: var(--ink-faint); background: none !important; }
.palette-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); }

/* privacy */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 0; margin: 0 auto; max-width: 980px; }
.flow-node { flex: 1; display: grid; justify-items: center; gap: 6px; padding: 24px 18px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); text-align: center; }
.flow-node .icon { width: 28px; height: 28px; margin-bottom: 6px; color: var(--accent); }
.flow-node strong { font-size: 16px; }
.flow-node span { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); }
.flow-arrow { flex: 0 0 150px; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 0 8px; text-align: center; }
.flow-arrow span { font-size: 12px; line-height: 1.35; color: var(--ink-faint); }
.flow-arrow .icon { color: var(--ink-faint); }
.flow-caption { margin: 18px 0 44px; text-align: center; font-size: 13.5px; color: var(--ink-faint); }
.privacy-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.privacy-col { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.privacy-col h3 { margin: 0 0 16px; font-size: 26px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.price h3 { margin: 0; font-size: 28px; }
.price-amount { font-size: 15px; font-weight: 600; color: var(--ink-soft); min-height: 24px; }
.price-amount.is-set { font: 600 34px/1 'Cormorant Garamond', Georgia, serif; color: var(--ink); }
.price .ticks { flex: 1; }
.price .ticks li { font-size: 14.5px; }
.credits-note { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; text-align: left; color: var(--ink-soft); font-size: 15px; }
.ring { width: 44px; height: 44px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; }

/* faq */
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s; }
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 18px; height: 18px; color: var(--ink-faint); transition: transform .25s; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }

/* final call */
.cta-band { padding: clamp(72px, 9vw, 112px) 0; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 70%), var(--bg-2); }
.cta-inner { text-align: center; }
.cta-inner p { color: var(--ink-soft); font-size: 16.5px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* download details under the main Download button */
.dl-info { margin: 18px auto 0; max-width: 560px; text-align: center; font-size: 13.5px; line-height: 1.6; color: var(--ink-faint); }
.cta-inner .dl-info p { margin: 4px 0; font-size: 13.5px; color: var(--ink-faint); }
.dl-hash { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.dl-hash code { max-width: 100%; overflow-wrap: anywhere; padding: 3px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-soft); font-size: 12px; }
.dl-info a { color: var(--ink-soft); }

/* terms and the detailed privacy text */
.draft-banner { margin: 0 0 28px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 14px; line-height: 1.55; text-align: center; }
.section.legal h1 { margin: 0 0 28px; font-size: clamp(36px, 4.6vw, 54px); line-height: 1.04; }
.section.legal h2 { margin: 38px 0 12px; font-size: clamp(24px, 2.6vw, 32px); }
.section.legal h3 { margin: 28px 0 8px; font-size: 22px; }
.section.legal p, .section.legal li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.section.legal ul { padding-left: 22px; }
.section.legal li { margin: 8px 0; }
.section.legal a { color: var(--ink); }

/* footer */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-row { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 280px; font-size: 14.5px; color: var(--ink-soft); }
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col h3 { margin: 0 0 4px; font: 700 11px/1.4 'Space Grotesk', system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.footer-col a { text-decoration: none; font-size: 14.5px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }

/* reveal on scroll (only when JS runs, so the page is never left blank) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .msg, .change-card, .doc-page .toc { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .app-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .app-sessions { display: none; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Small screens: logo | day-night | Sign in + Download (icon only), side by side. */
@media (max-width: 760px) {
  .header-row { grid-template-columns: auto 1fr auto; }
  .header-row > .brand, .header-row > .hdr-tools, .header-row > .header-actions { grid-column: auto; }
  .header-dl { width: 40px; padding: 0; }
  .header-dl .dl-text { display: none; }
}
@media (max-width: 960px) {
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .split, .modes { grid-template-columns: 1fr; }
  .split-rev .split-text { order: 0; }
  .mode-tabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .control-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .app-body { grid-template-columns: 1fr; }
  .app-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-log { max-height: none; }
  .doc-page { padding: 22px 20px 26px; min-height: 0; }
  .feature-grid, .privacy-cols { grid-template-columns: 1fr; }
  .feature { padding: 26px 22px; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { flex: none; padding: 10px 0; }
  .flow-arrow .icon { transform: rotate(90deg); }
}
@media (max-width: 420px) {
  .header-row { column-gap: 10px; }
  .brand { gap: 8px; font-size: 12.5px; letter-spacing: .12em; white-space: nowrap; }
  .brand .logo { height: 26px; }
  .site-header .brand span { letter-spacing: .1em; }
  .hdr-tools { gap: 6px; }
  .hdr-tools .syn-btn { width: 36px; height: 36px; }
  .syn-hero .syn-dock { gap: 0; }
  .syn-hero .syn-dock button { padding: 10px 9px; letter-spacing: .07em; font-size: 10px; }
}
@media (max-width: 560px) {
  /* Weather and music need room: on a phone only the day/night button stays. */
  .hdr-tools .syn-wrap { display: none; }
  .facts-row { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .control-grid, .price-grid { grid-template-columns: 1fr; }
  .palette-list li { grid-template-columns: 1fr; gap: 2px; }
  .demo-prompts { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 22px; padding: 0 16px 4px; scrollbar-width: none; }
  .demo-prompts::-webkit-scrollbar { display: none; }
  .demo-prompts button { flex: none; }
  .brand span { letter-spacing: .16em; white-space: nowrap; }
  .footer-row { grid-template-columns: 1fr; }
}

/* Remembered as signed in (site.js): keep "Sign in" hidden until it is swapped for "Account". */
html[data-auth="in"] a[href="sign-in.html"], html[data-auth="admin"] a[href="sign-in.html"] { visibility: hidden; }

/* FAQ: a small heading above each group of questions. */
.faq-group-h { margin: 44px 0 14px; font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.section-head + .faq-group-h { margin-top: 8px; }

/* ---------- download page ---------- */
.dl-card { max-width: 640px; margin: 0 auto 8px; padding: 32px 30px 28px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.dl-card-head { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; }
.dl-badge { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.dl-badge .icon { width: 28px; height: 28px; }
.dl-card h2 { margin: 0; font-size: clamp(26px, 4vw, 32px); line-height: 1.1; }
.dl-card-head p { margin-top: 2px; font-size: 14px; color: var(--ink-faint); }
.dl-card-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.dl-unavailable { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.dl-unavailable .icon { width: 18px; height: 18px; color: var(--accent); }
.dl-card .dl-info p { margin: 4px 0; font-size: 13.5px; color: var(--ink-faint); }
.dl-page .steps { margin-bottom: 8px; }
.header-dl[aria-current="page"] { border-color: var(--ink); }
@media (max-width: 960px) { .dl-page .steps { grid-template-columns: 1fr; } }
.dl-page .section-head h1 { font-size: clamp(38px, 5vw, 58px); }

/* Smallest phones: the logo alone, without its name. */
@media (max-width: 360px) { .site-header .brand span { display: none; } .link-btn { min-width: 0; } }
