/* The marketing pages (guides, compare, examples, legal, 404) in the
   homepage's style (home.css): Stack Sans, plain neutral greys, Gable
   orange, square corners, surfaces told apart by tone rather than lines.
   Stack Sans (variable), self-hosted. SIL Open Font License: assets/fonts/OFL-stack-sans.txt. */
@font-face { font-family: 'Stack Sans Text Variable'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('/assets/fonts/stack-sans-text-var-ext.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Stack Sans Text Variable'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('/assets/fonts/stack-sans-text-var.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Stack Sans Headline Variable'; font-style: normal; font-weight: 200 700; font-display: swap; src: url('/assets/fonts/stack-sans-headline-var.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Dark (the default without a choice or a light device). The same values as
   the homepage's dark theme. Contrast on page / card: text 16.6 / 15.0,
   muted 7.6 / 6.9, dim 6.1 / 5.5, orange text 7.4 / 6.6. */
:root {
  --bg: #111315; --card: #1b1e21; --card2: #262a2e;
  --border: #2e3337; --border2: #464c52;
  --text: #f2f2f2; --muted: #a6a6a6; --dim: #949494;
  /* Orange fills carry a dark label (5.9:1); orange as text uses the
     lighter shade on dark and the deeper one on light. */
  --on-accent: #0a0a0a;
  --accent: #e0692a; --accent2: #ea7a3e;
  --accent-text: #f0884a; --accent-text-hover: #f6a674;
  --font: 'Stack Sans Text Variable', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Stack Sans Headline Variable', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
/* Light (theme.js sets data-theme; without script, the device decides): the
   homepage's white page with grey panels. Text on page / card: text 19.8 /
   17.7, muted 6.4 / 5.7, dim 5.7 / 5.1, orange text 5.8 / 5.2. */
:root[data-theme="light"] {
  --bg: #ffffff; --card: #f2f2f2; --card2: #e6e6e6;
  --border: #e0e0e0; --border2: #b8b8b8;
  --text: #0a0a0a; --muted: #5f5f5f; --dim: #666666;
  --accent-text: #a64a0d; --accent-text-hover: #8a3d0a;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #ffffff; --card: #f2f2f2; --card2: #e6e6e6;
    --border: #e0e0e0; --border2: #b8b8b8;
    --text: #0a0a0a; --muted: #5f5f5f; --dim: #666666;
    --accent-text: #a64a0d; --accent-text-hover: #8a3d0a;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-text-hover); }
/* Links inside running text are underlined, so they don't rely on color alone. */
p a:not([class]), dd a:not([class]), td a:not([class]), li a:not([class]), .breadcrumb a, .contact-line a {
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em;
}
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; font-weight: 500;
}
.skip:focus { top: 12px; color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
/* Numbers line up by tabular figures; there is no monospace on these pages. */
.mono { font-family: inherit; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 2.8vw, 40px); }

/* ---- Header: wordmark, plain links, one action ---- */
header { padding: 20px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.logo { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
a.logo, a.logo:hover { color: var(--text); }
.logo span { color: inherit; }
/* Every header link is a 44px tap target. */
.header-links { display: flex; align-items: center; gap: 22px; margin: -3px 0; }
.header-links a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.header-links a.plain { color: var(--text); font-size: 14px; font-weight: 500; padding: 0 4px; margin: 0 -4px; }
.header-links a.plain:hover { color: var(--accent-text); }
/* The Light/Dark switch theme.js adds to the header. */
.theme-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: 0 -4px;
  border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; color: var(--text);
}
.theme-btn:hover { color: var(--accent-text); }
@media (max-width: 560px) {
  header.stack-sm .wrap { display: grid; grid-template-columns: repeat(4, auto) 1fr; column-gap: 14px; row-gap: 2px; }
  header.stack-sm .header-links { display: contents; }
  header.stack-sm .logo { grid-column: 1 / 4; grid-row: 1; }
  header.stack-sm .nav-cta { grid-column: 4 / 6; grid-row: 1; justify-self: end; }
  header.stack-sm .header-links a.plain { font-size: 13.5px; grid-row: 2; }
  .header-links { gap: 16px; }
}

/* ---- Buttons: square, filled ---- */
.nav-cta, .btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border: 0; border-radius: 0; font-weight: 500; line-height: 1.2;
  transition: background-color 180ms ease, transform 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-cta:active, .btn-primary:active, .btn-secondary:active { transform: scale(0.97); }
.nav-cta { background: var(--accent); color: var(--on-accent); padding: 10px 18px; font-size: 14px; }
.nav-cta:hover { color: var(--on-accent); background: var(--accent2); }
.btn-primary { background: var(--accent); color: var(--on-accent); min-height: 52px; padding: 12px 24px; font-size: 16px; }
.btn-primary:hover { color: var(--on-accent); background: var(--accent2); }
.btn-secondary { background: var(--card); color: var(--text); min-height: 52px; padding: 12px 24px; font-size: 16px; }
.btn-secondary:hover { background: var(--card2); color: var(--text); }

/* ---- Type ---- */
.hero { padding-top: 72px; padding-bottom: 48px; }
/* A plain small label above a heading, in sentence case. */
.eyebrow { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
h1 {
  font-family: var(--display); font-weight: 300; font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
  line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 22px; max-width: 22ch;
}
.sub { font-size: 19px; line-height: 1.5; color: var(--text); max-width: 58ch; margin: 0 0 32px; }
h2 {
  font-family: var(--display); font-weight: 300; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem);
  line-height: 1.08; letter-spacing: -0.022em; margin: 0 0 14px;
}
h3 { font-size: 19px; font-weight: 500; margin: 32px 0 10px; letter-spacing: -0.005em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-shot { overflow: hidden; background: var(--card); }
.hero-shot img { display: block; width: 100%; height: auto; }
.render-shot { margin: 0 0 28px; }
.render-shot img { display: block; width: 100%; height: auto; }
.render-shot figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }
/* Configurator phone screenshots: two phone-shaped frames side by side. */
.phone-shots { margin: 0 0 28px; }
.phone-shots .phones { display: flex; gap: 20px; justify-content: center; }
.phone-shots picture { flex: 0 1 280px; min-width: 0; }
.phone-shots img { display: block; width: 100%; height: auto; border: 6px solid #1b1e21; border-radius: 22px; background: var(--card); }
.phone-shots figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; text-align: center; }
@media (max-width: 640px) { .phone-shots .phones { gap: 12px; } .phone-shots img { border-width: 4px; border-radius: 16px; } }
/* Drawing sheets: white paper set on a grey field, so the sheet's edge shows
   on a white page too. */
.sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.sheet-grid figure { margin: 0; }
.sheet-grid a { display: block; background: var(--card); padding: 10px; transition: background-color 180ms ease; }
.sheet-grid a:hover { background: var(--card2); }
.sheet-grid img { display: block; width: 100%; height: auto; background: #fff; }
.sheet-grid figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
@media (max-width: 640px) { .sheet-grid { grid-template-columns: 1fr; } }

/* Sections are separated by space, not rules. */
section { padding: clamp(64px, 7vw, 112px) 0 0; }
main > section:last-of-type, .legal { padding-bottom: clamp(64px, 7vw, 112px); }
.price-date { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 60ch; margin: 0 0 32px; }

/* ---- Panels: a fill one tone off the page, no outline ---- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.card { background: var(--card); padding: 24px; }
.card h3 { font-size: 17px; margin: 0 0 10px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.card li { margin-bottom: 6px; }
.feature-card { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: center; margin-top: 20px; }
.feature-card img { display: block; width: 100%; height: auto; }
.feature-card .eyebrow { margin-bottom: 6px; }
.feature-card .feature-note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
@media (max-width: 760px) { .feature-card { grid-template-columns: 1fr; gap: 18px; } }

.compare { background: var(--card); padding: 24px 26px; margin-top: 12px; }
.compare p { color: var(--muted); font-size: 16px; margin: 0; }
.compare strong { color: var(--text); font-weight: 500; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.plan { background: var(--card); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-top: 4px solid var(--accent); }
.plan-name { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-price { font-family: var(--display); font-weight: 300; font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; margin: 8px 0 4px; }
.plan-price span { font-family: var(--font); font-size: 15px; color: var(--muted); letter-spacing: 0; }
.plan-annual { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.plan-desc { color: var(--muted); font-size: 15px; margin-bottom: 18px; min-height: 42px; }
.plan-cta {
  margin-top: auto; display: block; text-align: center; background: var(--card2); color: var(--text);
  padding: 13px; font-size: 15px; font-weight: 500;
}
.plan-cta:hover { background: var(--border2); color: var(--text); }
.plan.featured .plan-cta { background: var(--accent); color: var(--on-accent); }
.plan.featured .plan-cta:hover { background: var(--accent2); color: var(--on-accent); }
.plan-alt { margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }
.plan-alt a { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }
.plan-alt a:hover { color: var(--accent-text-hover); }
.plan-trial { color: var(--text); font-size: 15px; margin: -8px 0 16px; }
.plan-examples { display: block; margin-top: 12px; text-align: center; background: var(--card2); padding: 11px; font-size: 14px; color: var(--text); }
.plan-examples:hover { background: var(--border2); color: var(--text); }
.plan-note { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.plan-list { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--text); }
.plan-list li { position: relative; padding-left: 20px; }
.plan-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 0.42em; height: 0.42em; background: var(--accent); }
.plan-addon {
  margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  background: var(--card); padding: 18px 26px; font-size: 15px; color: var(--muted);
}
.plan-addon strong { color: var(--text); font-weight: 500; }
.plan-addon a { flex: none; color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }
.plan-addon-links { flex: none; display: flex; gap: 16px; }

/* ---- Footer: a filled close ---- */
footer { margin-top: clamp(64px, 7vw, 112px); background: var(--card); padding: 36px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--text); }
footer a:hover { color: var(--accent-text); }

/* ---- Guide and content pages ---- */
.breadcrumb { display: block; font-size: 14px; color: var(--muted); padding-top: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-text); }
.article-hero { padding-top: 28px; padding-bottom: 8px; }
.article-hero h1 { max-width: 20ch; }

.spec-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.spec-chip { background: var(--card); padding: 8px 14px; font-size: 14px; color: var(--muted); }
.spec-chip strong { color: var(--text); font-weight: 500; }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.stat { background: var(--card); padding: 18px 22px; flex: 1 1 160px; }
.stat .num { font-family: var(--display); font-weight: 300; font-size: 36px; line-height: 1.1; letter-spacing: -0.025em; color: var(--text); }
.stat .label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Real tables keep their rows. */
table.takeoff { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0 8px; }
table.takeoff th {
  text-align: left; font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 0 10px 8px; border-bottom: 1px solid var(--border2);
}
table.takeoff td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
table.takeoff tr.hl td { color: var(--accent-text); font-weight: 500; }
table.takeoff td.qty, table.takeoff th.qty { text-align: right; white-space: nowrap; }
table.takeoff tr.section-row td { padding-top: 24px; font-size: 14px; font-weight: 500; color: var(--text); border-bottom: none; }
table.takeoff .note { color: var(--muted); font-size: 13.5px; }
table.takeoff tr.total-row td { border-top: 1px solid var(--border2); border-bottom: none; font-weight: 500; padding-top: 14px; }
/* The narrowest phones: tighter cells, so a table that only just doesn't fit
   (the 40x60 turnkey cost table was 321px in a 320px screen) fits instead of
   scrolling sideways by a pixel. */
@media (max-width: 360px) {
  table.takeoff th, table.takeoff td { padding-left: 6px; padding-right: 6px; }
}

.faq dt { font-size: 18px; font-weight: 500; margin: 24px 0 6px; }
.faq dd { margin: 0; color: var(--muted); font-size: 16px; max-width: 65ch; }

.cta-band {
  background: var(--card); padding: 28px; margin: 40px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cta-band p { margin: 0; font-size: 17px; }
.cta-band .sub2 { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Guide lists: plain rows with a dot, as on the homepage. */
.guide-list { display: grid; gap: 22px; margin-top: 24px; }
.guide-link { display: block; position: relative; padding-left: 22px; color: var(--text); }
.guide-link::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transition: transform 180ms ease; }
.guide-link:hover { color: var(--text); }
.guide-link:hover::before { transform: scale(1.5); }
.guide-link .title { font-size: 18px; font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; transition: text-decoration-color 180ms ease; }
.guide-link:hover .title { text-decoration-color: currentColor; }
.guide-link .desc { color: var(--muted); font-size: 15px; margin-top: 4px; }
.guide-list.cols { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); column-gap: 28px; }
.see-also { color: var(--muted); font-size: 16px; max-width: 65ch; margin: 18px 0 0; }
.see-also a { color: var(--text); }

.disclaimer { color: var(--muted); font-size: 14px; margin-top: 30px; max-width: 70ch; }

/* ---- Legal pages (privacy, terms) ---- */
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 44px 0 10px; }
.legal p, .legal li { color: var(--text); font-size: 16px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal .effective { font-size: 14px; color: var(--muted); }
.legal code { font-size: 0.92em; }

/* Plain bulleted / numbered lists in guides. */
.plain-list { color: var(--text); font-size: 16px; max-width: 65ch; padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.plain-list a { color: var(--text); }
.plain-list.sources { font-size: 15px; color: var(--muted); }
/* Wide tables scroll inside their own box instead of widening the page. */
.table-scroll { overflow-x: auto; max-width: 100%; margin: 18px 0 8px; }
.table-scroll > table.takeoff { margin: 0; }
.compare-table { min-width: 560px; }
.compare-table tbody th { color: var(--text); font-weight: 500; text-align: left; font-family: inherit; font-size: inherit; padding: 10px; vertical-align: top; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Phones: each comparison row becomes a block — the feature, then each side
   on its own labeled line — so nothing scrolls off the right edge. */
@media (max-width: 640px) {
  .compare-scroll { overflow: visible; }
  .compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  table.compare-table tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  table.compare-table tr:first-child { border-top: 1px solid var(--border); }
  table.compare-table tbody th { padding: 0 0 6px; border: 0; color: var(--text); font-weight: 500; font-size: 16px; }
  table.compare-table td { padding: 2px 0; border: 0; }
  .compare-table td::before { content: attr(data-label); display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
}
.compare-table td a { color: var(--accent-text); }
.roi { margin-top: 28px; }
.contact-line { color: var(--muted); font-size: 16px; margin: 18px 0 0; }
.contact-line a { color: var(--text); }

@media (max-width: 640px) {
  html, body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .sub { font-size: 17px; }
}
