:root {
  --bg: #ffffff;
  --bg-alt: #fbf7f4;
  --ink: #1c1f22;
  --ink-soft: #545a61;
  --line: #ece5de;
  --accent: #c2471b;
  --navy: #1c1f22;
  --accent-ink: #ffffff;
  --card: #ffffff;
  --serif: "Outfit", Inter, system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "Inter", system-ui, sans-serif;
  --radius: 999px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 16ch; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.6rem; }
h4 { font: 600 1rem/1.3 var(--sans); margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(1320px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 600 .9rem/1 var(--sans); letter-spacing: 0; color: var(--accent); margin-bottom: 1.1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.lede.narrow { max-width: 68ch; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: .85em 1.6em; border-radius: var(--radius); transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: .5em 1em; font-size: .95rem; }
.btn-block { display: block; text-align: center; }
.link-arrow { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.link-arrow::after { content: " →"; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .55em; text-decoration: none; font-size: 1.05rem; }
.brand b { font-weight: 600; }
.mark { width: 26px; height: 29px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: .9rem; padding: .35em .8em; border-radius: var(--radius); }

/* hero */
.hero { padding: clamp(48px, 9vw, 110px) 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #111827; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 18px 40px -24px rgba(0,0,0,.35); }
.shot img { cursor: zoom-in; }
.shot img:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox::backdrop { background: rgba(10, 11, 13, .88); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); width: auto; height: auto; border-radius: 6px; cursor: zoom-out; }
.lightbox p { margin: 0; color: #d9d5cc; font-size: .9rem; text-align: center; padding: 0 16px; max-width: 70ch; }
.lightbox-close { position: fixed; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 4px 10px; }
.shot-hero { margin: clamp(40px, 6vw, 72px) auto 0; }
.shot figcaption { background: var(--card); color: var(--ink-soft); font-size: .92rem; padding: .8em 1em; border-top: 1px solid var(--line); }

/* facts */
.facts { border-bottom: 1px solid var(--line); padding: 48px 0; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.facts-grid div { border-top: 3px solid var(--accent); padding-top: 14px; }
.facts-grid strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: .3em; }
.facts-grid span { color: var(--ink-soft); font-size: .95rem; }

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin-bottom: 1.2em; }
.two-col { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.plain-list { list-style: none; padding: 0; margin: 1.5em 0 0; border-top: 1px solid var(--line); }
.plain-list li { padding: .9em 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.plain-list b { color: var(--ink); font-weight: 500; }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.feature-flip .feature-text { order: 2; }
.feature-text p { color: var(--ink-soft); }
.num { display: block; font: 600 .95rem var(--sans); color: var(--accent); margin-bottom: 1rem; }
.ticks { list-style: none; padding: 0; margin: 1.2em 0 0; }
.ticks li { position: relative; padding-left: 1.4em; margin-bottom: .55em; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: .7em; height: 2px; background: var(--accent); }
.shot-narrow { max-width: 560px; justify-self: center; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 24px; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.more-grid p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* sage flow */
.flow { list-style: none; padding: 0; margin: 56px 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: f; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.flow li { padding: 22px 20px; border-right: 1px solid var(--line); counter-increment: f; position: relative; }
.flow li:last-child { border-right: 0; }
.flow li::before { content: counter(f); font: 600 .9rem var(--sans); display: grid !important; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff !important; color: var(--accent); display: block; margin-bottom: .7em; }
.flow-step { display: block; font-weight: 600; margin-bottom: .4em; }
.flow p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.sage-detail { grid-template-columns: 1fr 1fr; }
.sage-detail p { color: var(--ink-soft); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline .who { font: 600 .9rem/1.6 var(--sans); color: var(--accent); }
.timeline h4 { font: 600 1.3rem/1.2 var(--serif); }
.timeline p { color: var(--ink-soft); margin: 0; max-width: 70ch; }

/* tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 600 .85rem/1.3 var(--sans); color: var(--ink-soft); background: var(--bg-alt); }
.compare tbody th { font-weight: 600; white-space: nowrap; }
.compare td { color: var(--ink-soft); }
.compare td:last-child { color: var(--ink); }
.sub-title { margin: 56px 0 20px; font-size: 1.5rem; }
.note { color: var(--ink-soft); font-size: .93rem; margin-top: 16px; max-width: 75ch; }

/* specs */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec p { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.faq-group { font: 600 .95rem/1 var(--sans); color: var(--accent); margin: 36px 0 4px; }
.faq-group:first-child { margin-top: 20px; }

/* mobile section */
.mobile-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.mobile-grid p:not(.eyebrow) { color: var(--ink-soft); max-width: 52ch; }
.shot-phone { border-radius: 28px; border: 8px solid #23262b; max-height: 620px; }
.shot-phone img { object-fit: cover; object-position: top; height: 100%; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1em 2em 1.1em 0; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: .9em; font: 400 1.4rem/1 var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-right: 2em; }
.faq details .ticks { margin: -.4em 0 1.2em; color: var(--ink-soft); }

/* contact */
.contact { background: var(--accent); color: #fff; }
.contact .eyebrow { color: #ffd9c7; }
.contact p:not(.eyebrow) { color: #ffe6da; }
.contact-actions { display: grid; gap: 10px; }
.btn-light { background: #fff; color: var(--accent); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.contact .btn-outline:hover { background: #fff; color: var(--accent); filter: none; }
.contact-card { background: var(--navy); border: 0; border-radius: 18px; padding: 28px; }
.contact-card dl { margin: 24px 0 0; }
.contact-card dl div { display: flex; justify-content: space-between; gap: 1em; padding: .7em 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-card dt { color: #b3b7bc; }
.contact-card dd a { color: #fff; }
.contact-card dd { margin: 0; text-align: right; }

.sage-badge { height: 44px; width: auto; margin-top: 28px; }
.site-footer { padding: 28px 0; font-size: .85rem; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* responsive */
@media (max-width: 960px) {
  .facts-grid, .more-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .flow li { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow li:last-child { border-bottom: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  .lede { font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8em 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; }
  .two-col, .sage-detail, .faq-wrap, .gallery, .mobile-grid { grid-template-columns: 1fr; }
  .facts-grid, .more-grid { grid-template-columns: 1fr; gap: 24px; }
  .spec-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: 4px 0; border: 0; white-space: normal; }
  .compare tbody th { font-size: 1.02rem; padding-bottom: 6px; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font: 600 .8rem/1.4 var(--sans); color: var(--ink-soft); margin-top: 6px; }
  .shot-phone { max-width: 260px; justify-self: center; }
  .mobile-grid > div { order: -1; }
}
