/* =============================================================================
   Sheet Engine marketing tokens
   Product lockup: SheetEngine (Sheet = charcoal, Engine = bolt orange).
   Surfaces are blended off-whites / lifted charcoal — never #000 or #FFF.
   Tosa-simple chrome: space, few colors, restrained motion. Hero may keep
   a soft blue/teal wash. Primary mark is the black squircle bolt.
   ============================================================================= */
:root {
  --engine-blue: #2f6fe4;
  --engine-blue-deep: #1d4ed8;
  --engine-teal: #21c9a6;
  --engine-teal-deep: #0f766e;
  --bolt: #e06b1a;
  --bolt-ink: #2a1c06;
  --ink: #121820;
  --mute: #4a5564;
  --line: #d3dce6;
  --paper: #f2f6f9;
  --surface: #f7f8fa;
  --ok: #22a558;
  --addon-surface: #f0f3f8;
  --addon-blue: #1a73e8;
  --footer: #161c26;
  --on-dark: #e8eef4;
  --radius: 16px;
  --shadow: 0 14px 36px rgba(18, 24, 32, 0.07);
  --font-body: Inter, "Segoe UI", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", Inter, "Segoe UI", system-ui, sans-serif;
  --font: var(--font-body);
  --display: var(--font-display);
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--engine-blue);
}

a:hover {
  color: var(--engine-blue-deep);
}

:focus-visible {
  outline: 3px solid var(--bolt);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 80;
}

.skip:focus {
  left: 0.5rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.wm-sheet {
  color: var(--ink);
}

.wm-engine {
  color: var(--bolt);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
}

.nav-links a[aria-current="page"] {
  color: var(--engine-blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.74rem 1.18rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.94rem;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.nav-cta .btn-primary {
  background: var(--bolt);
  color: var(--bolt-ink);
}

.nav-cta .btn-primary:hover {
  filter: brightness(0.96);
  color: var(--bolt-ink);
  background: var(--bolt);
}

.btn-primary {
  background: var(--engine-blue);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--engine-blue-deep);
  color: var(--paper);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--engine-teal);
  color: var(--engine-teal-deep);
}

.btn-bolt {
  background: var(--bolt);
  color: var(--bolt-ink);
}

.btn-bolt:hover {
  filter: brightness(0.97);
  color: var(--bolt-ink);
}

/* Hero — soft icon wash, no hard split or bolt ornament */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.4rem 0 4.2rem;
  background:
    linear-gradient(165deg, rgba(47, 111, 228, 0.11) 0%, transparent 46%),
    linear-gradient(340deg, rgba(33, 201, 166, 0.1) 8%, transparent 48%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 3.2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bolt);
}

h1,
.h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0.85rem 0 0.95rem;
  color: var(--ink);
  font-size: clamp(2.05rem, 4.8vw, 3.4rem);
  font-weight: 700;
}

.lede {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--mute);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.65rem 0 1.25rem;
}

.trust-row,
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
}

.chip.sample {
  border-style: dashed;
  color: var(--mute);
}

.wit {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--bolt);
  border-radius: 6px;
  padding: 0.12rem 0.4rem;
}

/* Product frame: Sheets + flush add-on sidebar (original illustration) */
.product-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.8rem;
}

.frame-bar b {
  font-family: var(--font-display);
}

.dots {
  display: flex;
  gap: 0.28rem;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b5a70;
}

.frame-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 360px;
}

.sheet-mock {
  background:
    linear-gradient(#e8eef5 1px, transparent 1px) 0 26px / 100% 26px,
    linear-gradient(90deg, #e8eef5 1px, transparent 1px) 40px 0 / 70px 100%,
    var(--surface);
  padding: 0.55rem;
  font-size: 0.7rem;
}

.sheet-head,
.sheet-row {
  display: grid;
  grid-template-columns: 32px repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 3px;
}

.sheet-head span,
.sheet-row span {
  background: #f4f7fb;
  padding: 0.26rem 0.32rem;
}

.sheet-head span {
  background: #d9e6f8;
  font-weight: 600;
}

.sheet-row.active span {
  background: #fff6dd;
  outline: 1px solid var(--bolt);
}

.sidebar-mock {
  background: var(--addon-surface);
  border-left: 1px solid #c6d0de;
  padding: 0;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

.addon-title {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #c6d0de;
  font-size: 0.78rem;
  font-weight: 600;
}

.rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #dae0ea;
  font-size: 0.78rem;
}

.rule-row b {
  display: block;
}

.rule-row span {
  color: #5f6368;
  font-size: 0.7rem;
}

.addon-editor {
  padding: 0.65rem 0.7rem 0.85rem;
}

.step {
  border: 1px solid #c6d0de;
  background: var(--surface);
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.45rem;
}

.step strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--addon-blue);
  text-transform: uppercase;
}

.step p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
}

.live-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  margin-top: 0.45rem;
}

.toggle {
  width: 36px;
  height: 20px;
  border-radius: 99px;
  background: #c6d0de;
  position: relative;
}

.toggle::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  position: absolute;
  top: 3px;
  left: 3px;
}

.toggle.on {
  background: var(--ok);
}

.toggle.on::after {
  left: 19px;
}

section {
  padding: 4.4rem 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head h2,
h2 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  line-height: 1.22;
  margin: 0 0 0.55rem;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}

.muted {
  color: var(--mute);
}

.grid-3,
.grid-2,
.grid-4 {
  display: grid;
  gap: 1.15rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem;
}

.card h3 {
  margin-top: 0.25rem;
}

.card.is-plan-on {
  outline: 2px solid var(--engine-blue);
  outline-offset: 2px;
}

.checkout-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.checkout-row .btn {
  text-align: center;
}

.num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.card a.more {
  font-weight: 600;
  text-decoration: none;
}

.sample-note {
  font-size: 0.78rem;
  color: var(--mute);
  font-style: italic;
}

.quote {
  position: relative;
}

.quote::before {
  content: "SAMPLE";
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--engine-teal-deep);
}

.logo-chip {
  background: #e6edf3;
  color: #6b7280;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.cta-band {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 20px;
  padding: 3rem 2.4rem;
}

.cta-band h2 {
  color: var(--paper);
}

.cta-band p {
  color: var(--on-dark);
}

.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.price span {
  font-size: 1rem;
  color: var(--mute);
  font-weight: 600;
}

.badge {
  display: inline-block;
  background: #e7f6ec;
  color: #146c2e;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.badge.warn {
  background: #fff4d8;
  color: #8a5a00;
}

.badge.soon {
  background: #dcf6f0;
  color: #0f766e;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.78rem 0.95rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #eef4f8;
  font-size: 0.85rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.prose {
  max-width: 46rem;
}

.prose p,
.prose li {
  color: #243041;
}

.prose h2 {
  margin-top: 2rem;
}

.draft-banner {
  background: #fff4d8;
  border: 1px solid #efd48a;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
}

.page-hero {
  padding: 3.2rem 0 0.4rem;
}

.crumbs {
  font-size: 0.88rem;
  color: var(--mute);
  margin-bottom: 0.55rem;
}

.crumbs a {
  color: inherit;
}

.footer {
  background: var(--footer);
  color: #b7c2ce;
  padding: 3.4rem 0 1.6rem;
  margin-top: 2.4rem;
}

.footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.footer a:hover {
  color: var(--bolt);
}

.footer .brand {
  color: var(--on-dark);
  margin-bottom: 0.85rem;
}

.footer .brand img {
  width: 28px;
  height: 28px;
  border-radius: 0;
}

.footer .wm-sheet {
  color: var(--on-dark);
}

.footer .wm-engine {
  color: var(--bolt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 1.8rem;
}

.footer h3 {
  color: var(--paper);
  font-size: 0.88rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin: 0.35rem 0;
}

.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #2a3340;
  font-size: 0.85rem;
}

.article-meta {
  color: var(--mute);
  font-size: 0.9rem;
}

.compare-pick {
  border-left: 4px solid var(--engine-teal);
}

.not-found {
  text-align: center;
  padding: 5rem 0;
}

.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.split-band > div {
  padding: 1.7rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.split-band .blue,
.split-band .teal {
  background: var(--surface);
  color: var(--ink);
}

.split-band .blue h2,
.split-band .teal h2 {
  color: var(--ink);
}

.split-band .teal a {
  color: var(--engine-blue);
}

@media (max-width: 920px) {
  .hero-grid,
  .frame-body,
  .grid-3,
  .grid-4,
  .footer-grid,
  .grid-2,
  .split-band {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
