/* Homepage only. The guides, compare and legal pages keep /style.css. */
@font-face { font-family: 'Stack Sans Headline'; font-weight: 300; font-style: normal; font-display: swap; src: url('/assets/fonts/stack-sans-headline-300.woff2') format('woff2'); }
@font-face { font-family: 'Stack Sans Text'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/stack-sans-text-400.woff2') format('woff2'); }
@font-face { font-family: 'Stack Sans Text'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/stack-sans-text-500.woff2') format('woff2'); }

:root {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --surface-2: #e6e6e6;
  --ink: #0a0a0a;
  --muted: #5f5f5f;
  /* Gable Takeoff orange, as in the app. Fills take dark text; small orange
     text on white uses the deeper shade so it stays readable. */
  --accent: #e0692a;
  --accent-ink: #0a0a0a;
  --accent-hover: #c95a1f;
  --accent-text: #a64a0d;
  --field-1: #0a0a0a;
  --field-1-ink: #ffffff;
  --field-1-muted: #b4b4b4;
  --ink-hover: #333333;
  --field-1-input: #1f1f1f;
  --ui-bg: #ffffff; --ui-line: #d9d9d9; --ui-line2: #e4e4e4; --ui-soft: #f0f0f0; --ui-hover: #e2e2e2;
  --ui-row: #fafafa; --ui-foot: #f6f6f6; --ui-text2: #444444; --ui-shadow: rgba(0,0,0,0.35);
  color-scheme: light;

  --display: 'Stack Sans Headline', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Stack Sans Text', 'Helvetica Neue', Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1rem + 5.6vw, 7rem);

  --margin: clamp(20px, 2.8vw, 40px);
  --gap: clamp(16px, 1.7vw, 24px);
  --section: clamp(112px, 12vw, 200px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-press: 120ms;
  --t-hover: 180ms;
}

/* Dark mode: follows the device unless the visitor picks one (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #111315; --surface: #1b1e21; --surface-2: #262a2e;
  --ink: #f2f2f2; --muted: #a6a6a6; --ink-hover: #d0d0d0;
  --accent-text: #f0884a;
  --field-1: #000000; --field-1-ink: #f2f2f2; --field-1-muted: #a6a6a6; --field-1-input: #1b1e21;
  --ui-bg: #181b1e; --ui-line: #30353a; --ui-line2: #2a2e33; --ui-soft: #23272b; --ui-hover: #2e3338;
  --ui-row: #1e2226; --ui-foot: #1e2226; --ui-text2: #c4c4c4; --ui-shadow: rgba(0,0,0,0.6);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111315; --surface: #1b1e21; --surface-2: #262a2e;
  --ink: #f2f2f2; --muted: #a6a6a6; --ink-hover: #d0d0d0;
  --accent-text: #f0884a;
  --field-1: #000000; --field-1-ink: #f2f2f2; --field-1-muted: #a6a6a6; --field-1-input: #1b1e21;
  --ui-bg: #181b1e; --ui-line: #30353a; --ui-line2: #2a2e33; --ui-soft: #23272b; --ui-hover: #2e3338;
  --ui-row: #1e2226; --ui-foot: #1e2226; --ui-text2: #c4c4c4; --ui-shadow: rgba(0,0,0,0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; text-decoration-color: currentColor; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--margin); top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: 12px 16px; }
.skip:focus { top: 12px; }

.wrap { padding-left: var(--margin); padding-right: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
section { padding-top: var(--section); }
.display { font-family: var(--display); font-weight: 300; letter-spacing: -0.022em; line-height: 1.02; }
h2 { font-family: var(--display); font-weight: 300; font-size: var(--step-head); letter-spacing: -0.022em; line-height: 1.05; }
h3 { font-size: var(--step-lead); font-weight: 500; line-height: 1.25; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.prose { max-width: 60ch; }
.prose + .prose { margin-top: 1em; }
.note { font-size: var(--step-small); color: var(--muted); max-width: 70ch; }
.muted { color: var(--muted); }

/* One button shape for the whole page: square, filled. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 12px 24px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 500 var(--step-body)/1.2 var(--text); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(0.97); }
.button.ink { background: var(--ink); color: var(--bg); }
.button.ink:hover { background: var(--ink-hover); }
.textlink { font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px var(--margin);
}
.wordmark { white-space: nowrap; font-weight: 500; font-size: var(--step-body); text-decoration: none; letter-spacing: -0.01em; }
.toplinks { white-space: nowrap; display: flex; gap: clamp(16px, 2vw, 32px); font-size: var(--step-small); }
.toplinks a { text-decoration-color: transparent; font-weight: 500; }
.toplinks a:hover { text-decoration-color: var(--accent); }
.theme-btn { border: 0; background: none; padding: 0; font: 500 var(--step-small) var(--text); color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
.theme-btn:hover { text-decoration-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: max(100svh, 760px); padding-top: 0; }
.hero-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--margin) clamp(40px, 6vh, 72px); }
.hero h1 { font-size: min(var(--step-display), 5.6vw); }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.hero .lead { margin-top: 36px; max-width: 30ch; }
/* The hero picture fills the space above the headline, however tall the
   screen: an AI render the app made from one of its own drawings. */
.hero-pic { position: relative; flex: 1 1 auto; min-height: 200px; margin: 0 0 clamp(28px, 4vh, 48px); overflow: clip; background: #b98f5c; }
.hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-pic figcaption { position: absolute; left: 12px; bottom: 10px; padding: 4px 8px; font-size: var(--step-small); color: #fff; background: rgba(10,10,10,.55); }
.hero .actions { margin-top: 36px; }
.hero-stage { background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 96px var(--margin) 48px; }

/* ---------- Product fragments (the app's own conventions) ---------- */
[data-ui] { font-family: var(--text); color: var(--ink); }
[data-ui].takeoff { width: min(100%, 520px); background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: 10px; box-shadow: 0 18px 50px -24px var(--ui-shadow); overflow: hidden; }
[data-ui] .t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px 10px; }
[data-ui] .t-title { font-size: 15px; font-weight: 500; }
[data-ui] .t-meta { font-size: 13px; color: var(--muted); }
[data-ui] .t-controls { display: grid; gap: 8px; padding: 4px 18px 14px; }
[data-ui] fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; min-width: 0; }
[data-ui] legend { float: left; font-size: 13px; color: var(--muted); padding: 0; }
[data-ui] .seg { display: flex; background: var(--ui-soft); border-radius: 7px; padding: 3px; gap: 2px; }
[data-ui] .seg label { flex: 1; position: relative; }
[data-ui] .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
[data-ui] .seg span { display: block; text-align: center; font-size: 14px; padding: 7px 0; border-radius: 5px; color: var(--ui-text2); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
[data-ui] .seg label:hover span { background: var(--ui-hover); }
[data-ui] .seg input:checked + span { background: var(--ink); color: var(--bg); }
[data-ui] .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
[data-ui] .seg label:active span { transform: scale(0.95); }
[data-ui] .t-list { width: 100%; border-collapse: collapse; font-size: 13.5px; border-top: 1px solid var(--ui-line2); }
[data-ui] .t-list caption { text-align: left; font-size: 13px; color: var(--muted); padding: 10px 18px 4px; }
[data-ui] .t-list th, [data-ui] .t-list td { padding: 5px 6px; text-align: left; font-weight: 400; border-bottom: 1px solid var(--ui-soft); white-space: nowrap; }
[data-ui] .t-list th { white-space: normal; }
[data-ui] .t-list td.q { text-align: right; padding-left: 18px; color: var(--accent-text); font-weight: 500; width: 2.5em; }
[data-ui] .t-list td:last-child { padding-right: 18px; color: var(--ui-text2); white-space: normal; }
[data-ui] .t-list tbody tr { transition: background-color var(--t-hover) ease; }
[data-ui] .t-list tbody tr:hover { background: var(--ui-row); }
[data-ui] .t-list.is-updating tbody { opacity: 0.4; }
[data-ui] .t-list tbody { transition: opacity 160ms ease; }
[data-ui] .t-totals { display: grid; grid-template-columns: 1fr 1fr; background: var(--ui-foot); border-top: 1px solid var(--ui-line2); }
[data-ui] .t-totals div { padding: 12px 18px; }
[data-ui] .t-totals dt { font-size: 13px; color: var(--muted); }
[data-ui] .t-totals dd { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
[data-ui] .t-totals div + div dd { color: var(--accent-text); }

/* ---------- What it does: the command list on a black band ---------- */
.band { background: var(--field-1); color: var(--field-1-ink); margin-top: 0; padding-top: clamp(96px, 9vw, 160px); padding-bottom: clamp(80px, 7vw, 120px); }
.band a:hover { text-decoration-color: var(--accent); }
.cmd-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: end; }
.cmd-head h2 { grid-column: 1 / 7; }
.cmd-head p { grid-column: 8 / 13; color: var(--field-1-muted); }
.cmd-filter { margin-top: 56px; display: block; }
.cmd-filter input {
  width: 100%; height: 1.9em; padding: 0 0.5em; border: 0; border-radius: 0;
  background: var(--field-1-input); color: var(--field-1-ink);
  font: 300 var(--step-lead) var(--display);
}
.cmd-filter input::placeholder { color: var(--field-1-muted); }
.cmd-filter input:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.cmd-list { margin-top: 24px; }
.cmd-list li a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34ch); column-gap: var(--gap); align-items: baseline;
  padding: 6px 12px; text-decoration: none; color: var(--field-1-ink);
  transition: background-color var(--t-hover) ease;
}
.cmd-list .name { font-family: var(--display); font-weight: 300; font-size: var(--step-head); letter-spacing: -0.022em; line-height: 1.1; }
.cmd-list .say { font-size: var(--step-body); color: var(--field-1-ink); }
.cmd-list li.is-on a { background: var(--accent); color: var(--accent-ink); }
.cmd-list li.is-on .say { color: var(--accent-ink); }
.js .cmd-list li:not(.is-on) .say { visibility: hidden; }
.cmd-list li[hidden] { display: none; }
.cmd-empty { margin-top: 16px; color: var(--field-1-muted); }

/* ---------- Views: live demo with controls ---------- */
.views-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: end; }
.views-head h2 { grid-column: 1 / 7; }
.views-head p { grid-column: 8 / 13; }
.views-panel { margin-top: 48px; display: grid; grid-template-columns: 62fr 38fr; background: var(--surface); min-height: 560px; }
.views-pic { position: relative; overflow: clip; background: var(--surface-2); min-height: 420px; }
.views-pic figure { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease; }
.views-pic figure.is-on { opacity: 1; }
.views-pic figure:first-child { position: relative; height: 100%; }
.views-pic img { width: 100%; height: 100%; object-fit: cover; }
.views-pic figure.contain img { object-fit: contain; background: #fff; }
.views-side { display: flex; flex-direction: column; padding: 28px clamp(20px, 2.4vw, 36px); gap: 4px; }
.views-side legend { font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; padding: 0; }
.views-side fieldset { border: 0; padding: 0; margin: 0; }
.view-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 14px; cursor: pointer; font-weight: 500; transition: background-color var(--t-hover) ease; }
.view-opt:hover { background: var(--surface-2); }
.view-opt input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; cursor: pointer; }
.view-opt:has(input:checked) { background: var(--bg); }
.views-cap { margin-top: auto; padding-top: 24px; }
.views-cap p { font-size: var(--step-small); }
.views-cap p + p { margin-top: 8px; }
.views-cap .tag { color: var(--accent-text); font-weight: 500; }
.views-foot { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); margin-top: 48px; }
.views-foot > div { grid-column: span 6; }
.views-foot h3 { margin-bottom: 12px; }
.ticks li { padding-left: 1.1em; position: relative; }
.ticks li + li { margin-top: 6px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 0.42em; height: 0.42em; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .views-pic figure.is-on img { animation: drift 24s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -1%); } }

/* ---------- Drawing sets: tiles with label strips ---------- */
.sheets-head { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: end; }
.sheets-head h2 { grid-column: 1 / 7; }
.sheets-head p { grid-column: 7 / 13; }
.sheets { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.sheet a { display: block; text-decoration: none; }
.sheet .pic { overflow: clip; background: #fff; }
.sheet img { aspect-ratio: 1400 / 906; object-fit: cover; transition: transform 500ms var(--ease-out); }
.sheet a:hover img { transform: scale(1.04); }
.strip { display: grid; gap: 4px; padding: 12px; min-height: 92px; font-size: var(--step-small); line-height: 1.35; }
.strip .r1, .strip .r2 { display: flex; justify-content: space-between; gap: 8px; }
.strip .r1 b { font-weight: 500; }
.s1 .strip { background: var(--field-1); color: var(--field-1-ink); }
.s2 .strip { background: var(--accent); color: var(--accent-ink); }
.s3 .strip { background: var(--surface-2); color: var(--ink); }
.s4 .strip { background: var(--field-1); color: var(--field-1-ink); }
.sheets-more { margin-top: 48px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); row-gap: 32px; }
.sheets-more .actions { grid-column: 1 / 13; }
.sheets-more > div:not(.actions) { grid-column: span 4; }
.sheets-more h3 { font-size: var(--step-body); margin-bottom: 8px; }
.sheets-more .note { grid-column: 1 / 13; }

/* ---------- Configurator: panel with margin notes ---------- */
.config { position: relative; }
.config-board { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); margin-top: 0; }
.config-left, .config-right { display: flex; flex-direction: column; justify-content: space-between; padding: 24px 0; gap: 40px; }
.config-left { grid-column: 1 / 5; text-align: right; align-items: flex-end; }
.config-right { grid-column: 9 / 13; }
.config-left h2 { max-width: 12ch; }
.config-phone { grid-column: 5 / 9; display: flex; justify-content: center; }
.config-phone img { width: min(100%, 360px); border-radius: 28px; background: #14181b; }
.mnote { max-width: 30ch; }
.mnote h3 { font-size: var(--step-body); font-weight: 500; }
.mnote p { font-size: var(--step-small); color: var(--muted); margin-top: 4px; }
.config-left .lead { max-width: 24ch; }
.config-actions { margin-top: 56px; justify-content: center; }

/* ---------- Quotes: statement, table pushed right ---------- */
.quotes h2 { font-size: var(--step-head); }
.quotes h2 .line2 { display: block; padding-left: 3vw; }
.quotes-body { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: start; }
.quotes-body .prose { grid-column: 1 / 7; }
.quotes-body .prose p + p { margin-top: 1em; }
[data-ui].quote { grid-column: 8 / 13; background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: 10px; overflow: hidden; }
[data-ui].quote .q-top { padding: 16px 20px 6px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
[data-ui].quote .q-name { padding: 0 20px 12px; font-size: 18px; font-weight: 500; }
[data-ui].quote table { width: 100%; border-collapse: collapse; font-size: 15px; }
[data-ui].quote th, [data-ui].quote td { padding: 11px 20px; border-top: 1px solid var(--ui-line2); text-align: left; font-weight: 400; vertical-align: top; }
[data-ui].quote th span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
[data-ui].quote td { text-align: right; white-space: nowrap; }
[data-ui].quote tr.sum th, [data-ui].quote tr.sum td { font-weight: 500; font-size: 18px; background: var(--ui-foot); }
[data-ui].quote .q-btns { display: flex; gap: 8px; padding: 14px 20px 18px; }
[data-ui].quote .q-btns span { flex: 1; text-align: center; padding: 11px 0; border-radius: 7px; font-size: 15px; font-weight: 500; }
[data-ui].quote .q-accept { background: var(--accent); color: var(--accent-ink); }
[data-ui].quote .q-change { background: var(--ui-soft); }

/* ---------- Span charts: two-ended rows ---------- */
.spans { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: start; }
.spans-copy { grid-column: 1 / 6; }
.spans-copy .prose { margin-top: 28px; }
.spans-copy .note { margin-top: 20px; }
.spans-list { grid-column: 7 / 13; max-width: 560px; }
.spans-list h3 { font-size: var(--step-body); color: var(--muted); font-weight: 400; margin-bottom: 4px; }
.spans-list h3:not(:first-child) { margin-top: 40px; }
.spans-list li { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 12px; }
.spans-list li span:first-child { display: flex; align-items: center; gap: 10px; }
.spans-list li span:first-child::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; }
.spans-list li b { font-weight: 500; }

/* ---------- Compare: recognition table ---------- */
.compare h2 .line2 { display: block; padding-left: calc((100% + var(--gap)) / 12 * 2); }
.compare-table { margin-top: 56px; width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 14px var(--gap) 14px 0; font-weight: 400; }
.compare-table thead th { font-size: var(--step-small); color: var(--muted); padding-bottom: 8px; }
.compare-table thead th:nth-child(2) { color: var(--accent-text); font-weight: 500; }
.compare-table tbody th { width: 28%; font-weight: 500; }
.compare-table tbody td:nth-child(2) { width: 36%; }
.compare-table tbody tr:nth-child(odd) { background: var(--surface); }
.compare-table tbody tr > :first-child { padding-left: 14px; }
.compare-after { margin-top: 24px; display: grid; gap: 12px; }

/* ---------- Guides: the headline you can type ---------- */
.guides h2 { font-size: var(--step-lead); font-family: var(--text); font-weight: 500; letter-spacing: 0; }
.guides h2 + p { margin-top: 8px; color: var(--muted); }
[data-ui].ask { margin-top: 28px; }
[data-ui].ask input {
  width: 100%; border: 0; padding: 0; background: transparent; color: var(--ink);
  font: 300 var(--step-display)/1.1 var(--display); letter-spacing: -0.03em; caret-color: var(--accent);
}
[data-ui].ask input:focus-visible { outline: none; box-shadow: inset 0 -4px 0 var(--accent); }
[data-ui].ask .examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
[data-ui].ask .examples button { border: 0; border-radius: 0; background: var(--surface); padding: 10px 14px; min-height: 44px; font: 500 var(--step-small) var(--text); color: var(--ink); cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
[data-ui].ask .examples button:hover { background: var(--surface-2); }
[data-ui].ask .examples button:active { transform: scale(0.96); }
.guide-results { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: var(--gap); row-gap: 28px; max-width: 1100px; }
.guide-link { display: block; text-decoration: none; padding-left: 22px; position: relative; }
.guide-link::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transition: transform var(--t-hover) var(--ease-out); }
.guide-link:hover::before { transform: scale(1.5); }
.guide-link .title { font-weight: 500; font-size: var(--step-body); line-height: 1.3; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color var(--t-hover) ease; }
.guide-link:hover .title { text-decoration-color: currentColor; }
.guide-link .desc { margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.guide-link[hidden] { display: none; }
.guide-count { margin-top: 20px; font-size: var(--step-small); color: var(--muted); }

/* ---------- Pricing: plan names, one live figure ---------- */
.pricing h2 { font-size: var(--step-lead); font-family: var(--text); font-weight: 500; letter-spacing: 0; }
.plans { margin-top: 32px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: start; }
.plan-names { grid-column: 1 / 7; display: grid; gap: 8px; }
.plan-names button {
  display: flex; align-items: center; gap: 0.35em; text-align: left;
  border: 0; background: none; padding: 0; cursor: pointer;
  font: 300 var(--step-head)/1.1 var(--display); letter-spacing: -0.022em; color: var(--muted);
  transition: color var(--t-hover) ease;
}
.plan-names button::before { content: ''; width: 0.3em; height: 0.3em; border-radius: 50%; background: transparent; flex: none; transition: background-color var(--t-hover) ease; }
.plan-names button[aria-selected="true"] { color: var(--ink); }
.plan-names button[aria-selected="true"]::before { background: var(--accent); }
.plan-names button:hover { color: var(--ink); }
.plan-stage { grid-column: 8 / 13; }
.plan-panel[hidden] { display: none; }
.plan-price { font-family: var(--display); font-weight: 300; font-size: var(--step-display); letter-spacing: -0.03em; line-height: 1; }
.plan-price span { font-size: var(--step-lead); letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan-annual { margin-top: 8px; color: var(--muted); }
.plan-panel .ticks { margin-top: 24px; }
.plan-panel .actions { margin-top: 28px; }
.plan-panel .small { margin-top: 16px; font-size: var(--step-small); }
.plan-panel .small + .small { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .js .plan-panel:not([hidden]) { animation: fade-in 220ms ease; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.addon { margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); row-gap: 24px; background: var(--surface); padding: 32px clamp(20px, 2.4vw, 36px); }
.addon > div:first-child { grid-column: 1 / 7; }
.addon > div:last-child { grid-column: 8 / 13; }
.addon h3 { font-size: var(--step-body); margin-bottom: 6px; }
.addon .actions { margin-top: 14px; font-size: var(--step-small); }

/* ---------- Contact: one field ---------- */
.contact { padding-bottom: var(--section); }
.contact-inner { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--gap); align-items: start; }
.contact-form { grid-column: 1 / 7; }
.contact-form h2 { font-family: var(--text); font-weight: 500; font-size: var(--step-lead); letter-spacing: 0; line-height: 1.3; }
.contact-form h2 span { display: block; color: var(--muted); }
.ask-field { position: relative; margin-top: 28px; max-width: 560px; }
.ask-field input { width: 100%; height: 64px; border: 0; border-radius: 0; background: var(--surface); padding: 0 72px 0 20px; font: 400 var(--step-body) var(--text); color: var(--ink); }
.ask-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ask-field button { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.ask-field button:hover { background: var(--accent-hover); }
.ask-field button:active { transform: scale(0.94); }
.contact-form .note { margin-top: 14px; }
.contact-rows { grid-column: 8 / 13; display: grid; gap: 20px; padding-top: 6px; }
.contact-rows dt { font-size: var(--step-small); color: var(--muted); }
.contact-rows dd { font-size: var(--step-lead); }

/* ---------- Footer: tiles ---------- */
.tiles { padding: 0 10px 10px; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 8px; }
.tile { background: var(--surface); padding: 22px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.tile-say { grid-column: 1 / 5; }
.tile-say p:first-child { font-size: var(--step-lead); line-height: 1.3; max-width: 22ch; }
.tile-say p:last-child { font-size: var(--step-small); color: var(--muted); }
.tile-nav { grid-column: 5 / 8; justify-content: flex-start; }
.tile-nav ul { display: grid; gap: 4px; }
.tile-time { grid-column: 8 / 10; }
.tile-time p:last-child { font-size: var(--step-lead); }
.tile-mail { grid-column: 10 / 13; }
.tile-mail a { font-size: var(--step-body); }
.tile-word { grid-column: 1 / 9; background: var(--field-1); color: var(--field-1-ink); min-height: 320px; align-items: center; justify-content: center; overflow: hidden; }
.tile-word span { font-family: var(--display); font-weight: 300; font-size: 8.4vw; letter-spacing: -0.04em; line-height: 0.9; white-space: nowrap; }
.tile-go { grid-column: 9 / 13; background: var(--accent); color: var(--accent-ink); min-height: 320px; text-decoration: none; transition: background-color var(--t-hover) ease; }
.tile-go:hover { background: var(--accent-hover); }
.tile-go span { font-size: var(--step-lead); font-weight: 500; max-width: 12ch; }
.tile-go svg { align-self: flex-end; width: 64px; height: 64px; transition: transform 300ms var(--ease-out); }
.tile-go:hover svg { transform: translate(6px, -6px); }
.tile-label { font-size: var(--step-small); color: var(--muted); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--r, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(12px); animation: rise 500ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js .hero-stage [data-ui] { opacity: 0; transform: translateY(24px); animation: rise 900ms var(--ease-out) 250ms forwards; }
  .js .hero [data-open] { clip-path: inset(0 0 100% 0); animation: open 1000ms var(--ease-in-out) 150ms forwards; }
  .js .hero [data-open] img { transform: scale(1.08); animation: settle 1100ms var(--ease-out) 100ms forwards; }
}
@keyframes line-up { to { transform: none; } }
@keyframes open { to { clip-path: inset(0); } }
@keyframes settle { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-top: 96px; padding-bottom: 56px; }
  /* Stacked: the picture follows the headline and the button, at 3:2. */
  .hero-pic { order: 4; flex: none; min-height: 0; aspect-ratio: 3 / 2; margin: 40px 0 0; }
  .hero-stage { padding: 48px var(--margin) 56px; }
  .toplinks a.only-wide { display: none; }
  .config-left, .config-right { padding: 0; }
  .cmd-list li a { grid-template-columns: 1fr; }
  .js .cmd-list li:not(.is-on) .say { display: none; }
  .sheets { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .config-board { grid-template-columns: 1fr; row-gap: 40px; }
  .config-left, .config-right, .config-phone { grid-column: 1 / -1; }
  .config-left { text-align: left; align-items: flex-start; }
  .config-left .lead { max-width: 40ch; }
  .config-actions { justify-content: flex-start; margin-top: 40px; }
  .tile-say { grid-column: 1 / 7; }
  .tile-nav { grid-column: 7 / 13; }
  .tile-time { grid-column: 1 / 7; }
  .tile-mail { grid-column: 7 / 13; }
  .cmd-head { grid-template-columns: 1fr; }
  .cmd-head > * { grid-column: 1 / -1 !important; }
  .cmd-head p { margin-top: 20px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .grid, .cmd-head, .views-head, .sheets-head, .sheets-more, .quotes-body, .spans, .plans, .contact-inner, .addon, .views-foot { grid-template-columns: 1fr; }
  .cmd-head > *, .views-head > *, .sheets-head > *, .sheets-more > *, .quotes-body > *, .spans > *, .plans > *, .contact-inner > *, .addon > *, .views-foot > * { grid-column: 1 / -1 !important; }
  .cmd-head p, .views-head p, .sheets-head p { margin-top: 20px; }
  .toplinks { gap: 16px; }
  .hero h1 { font-size: 10.6vw; }
  .hero .lead { margin-top: 24px; }
  [data-ui] fieldset { grid-template-columns: 52px 1fr; }
  [data-ui] .seg span { padding: 10px 0; }
  .cmd-list li a { grid-template-columns: 1fr; padding: 10px 12px; }
  .cmd-list .name { font-size: 8.5vw; }
  .js .cmd-list li:not(.is-on) .say { display: none; }
  .views-panel { grid-template-columns: 1fr; min-height: 0; }
  .views-pic { aspect-ratio: 4 / 3; min-height: 0; }
  .views-pic figure:first-child { position: absolute; }
  .sheets { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .strip .r2 { display: none; }
  .config-board { grid-template-columns: 1fr; row-gap: 40px; }
  .config-left, .config-right, .config-phone { grid-column: 1 / -1; }
  .config-left { text-align: left; align-items: flex-start; }
  .config-phone img { width: 78vw; }
  .config-actions { justify-content: flex-start; margin-top: 40px; }
  .quotes h2 .line2 { padding-left: 0; }
  .quotes-body { row-gap: 40px; margin-top: 40px; }
  .spans { row-gap: 48px; }
  .compare h2 .line2 { padding-left: 12vw; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto !important; }
  .compare-table tr { padding: 16px 14px; }
  .compare-table tbody tr > * { padding: 0 !important; }
  .compare-table td { margin-top: 8px; }
  .compare-table td::before { content: attr(data-label); display: block; font-size: var(--step-small); color: var(--muted); }
  .compare-table td:nth-child(2)::before { color: var(--accent-text); }
  [data-ui].ask input { font-size: 11vw; }
  .guide-results { grid-template-columns: 1fr; row-gap: 22px; }
  .toplinks .only-wide-sm { display: none; }
  .strip .r1 { display: grid; grid-template-columns: 1fr 1fr; row-gap: 2px; }
  .plan-names button { font-size: 10vw; }
  .plan-stage { margin-top: 32px; }
  .contact-rows { margin-top: 48px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 6px 6px; }
  .tile { min-height: 0; padding: 20px; }
  .tile-word { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .tile-word span { font-size: 15vw; }
  .tile-go { grid-column: 1 / -1; order: -1; min-height: 160px; }
  .tile-say, .tile-nav { grid-column: span 1; }
  .tile-mail, .tile-time { grid-column: 1 / -1; }
  .tile-mail a { font-size: var(--step-body); }
}
