/* Gridline website */
:root {
  --navy: #02204b; --ink: #0f2340; --body: #3d4d63; --muted: #5d6c80;
  --paper: #f3f6fa; --grid: rgba(2, 32, 75, .07); --card: #ffffff; --line: #d9e1ea;
  --orange: #e8620d; --orange-hover: #c95208; --orange-ink: #a34507; --good: #1e7a3c; --good-bg: #e3f3e8;
  --band: #02204b; --band-ink: #d3deec; --heading: #02204b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ecf4; --body: #c2cddb; --muted: #97a7bb; --paper: #0b1422; --grid: rgba(150, 180, 220, .06);
    --card: #132034; --line: #263650; --heading: #f2f6fb; --orange-ink: #ffaa6e; --good: #74d69c; --good-bg: #133323;
    --band: #060e1a; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: 'Archivo', Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.6; color: var(--body);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
h1, h2, h3 { color: var(--heading); margin: 0; }
.display { font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; line-height: 1.02; }
p { margin: 0; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.mark { font-weight: 800; font-size: 22px; letter-spacing: -.4px; text-decoration: none; color: var(--heading); display: inline-flex; align-items: center; gap: 9px; }
.mark .word span { color: var(--orange); }
.mark img { width: 30px; height: 30px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a:not(.btn) { white-space: nowrap; text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.top nav a:not(.btn):hover { background: var(--grid); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } .top nav a:not(.btn) { padding: 10px 8px; } .mark { font-size: 20px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; white-space: nowrap; font-size: 16px; }
.btn.go { background: var(--orange); color: #fff; }
.btn.go:hover { background: var(--orange-hover); }
.btn.plain { border-color: var(--line); background: var(--card); color: var(--heading); }
.btn.plain:hover { border-color: var(--muted); }
.btn.sm { min-height: 42px; padding: 0 16px; font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 56px 0 88px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 80px); }
.hero .lede { font-size: 20px; margin-top: 24px; max-width: 34em; color: var(--body); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 64px; } }

/* The call sheet: the one big moment */
.sheet { background: var(--card); border: 2px solid var(--heading); border-radius: 16px; box-shadow: 10px 10px 0 var(--orange); overflow: hidden; }
.sheet-head { background: var(--navy); color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 14px 14px; }
.sheet-head b { display: block; font-size: 19px; }
.sheet-head small { color: #c3d1e4; font-size: 14px; }
.sheet-clock { font-stretch: 125%; font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1; }
.call { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 16px 22px; border-top: 1px solid var(--line); }
.call:first-of-type { border-top: 0; }
.call strong { color: var(--heading); }
.call .why { grid-column: 1 / -1; font-size: 14.5px; color: var(--muted); }
.call .tag { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; align-self: start; }
.tag.hot { background: #fff0e4; color: var(--orange-ink); }
.tag.hire { background: #e4edf7; color: var(--navy); }
.tag.due { background: var(--good-bg); color: var(--good); }
@media (prefers-color-scheme: dark) { .tag.hot { background: #3a2414; } .tag.hire { background: #1b2d47; color: #cfe0f5; } }
.sheet-foot { padding: 14px 22px; background: var(--paper); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Sections */
section { padding: 88px 0; }
.sec-title { font-size: clamp(30px, 4vw, 46px); max-width: 18em; }
.sec-lede { margin-top: 16px; font-size: 19px; max-width: 38em; }

.points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--heading); margin-top: 40px; }
.points > div { padding: 24px 24px 8px 0; }
.points > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.points h3 { font-size: 19px; margin-bottom: 8px; }
@media (max-width: 900px) { .points { grid-template-columns: 1fr 1fr; } .points > div:nth-child(3) { border-left: 0; padding-left: 0; } .points > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } .points > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* Sequence timeline: a real order, so it's numbered by day */
.seq { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.seq::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--heading); }
.seq li { position: relative; padding-right: 22px; }
.seq .day { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 16px; border-radius: 10px; background: var(--card); border: 2px solid var(--heading); font-weight: 800; color: var(--heading); position: relative; }
.seq li.ring .day { background: var(--orange); border-color: var(--orange); color: #fff; }
.seq h3 { margin: 18px 0 6px; font-size: 19px; }
@media (max-width: 800px) {
  .seq { grid-template-columns: 1fr; gap: 26px; padding-left: 4px; }
  .seq::before { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .seq li { display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; padding: 0; }
  .seq .day { justify-self: start; }
  .seq h3 { margin: 10px 0 4px; } .seq p { grid-column: 2; }
}

/* Compliance band */
.band { background: var(--band); color: var(--band-ink);
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; }
.band h2 { color: #fff; }
.band .grid2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { padding-left: 34px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 5px; background: var(--orange); }
.checks li::after { content: ''; position: absolute; left: 6px; top: 8px; width: 7px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checks strong { color: #fff; }
.band .note { margin-top: 22px; font-size: 14.5px; color: #9fb1c8; }
@media (max-width: 860px) { .band .grid2 { grid-template-columns: 1fr; gap: 32px; } }

/* Griddy */
.griddy { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.griddy svg { width: 88px; height: 88px; }
.bubble { display: inline-block; margin-top: 14px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--paper); border: 1px solid var(--line); font-size: 15.5px; }
@media (max-width: 600px) { .griddy { grid-template-columns: 1fr; } }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; align-items: stretch; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.price.main { border: 2px solid var(--heading); box-shadow: 8px 8px 0 var(--orange); }
.price h3 { font-size: 21px; }
.amount { display: flex; align-items: baseline; gap: 6px; }
.amount b { font-stretch: 125%; font-size: 44px; font-weight: 800; color: var(--heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.amount span { color: var(--muted); }
.price ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; flex: 1; }
.price .btn { width: 100%; }
.price .addon { font-size: 15px; padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.prices-note { margin-top: 20px; font-size: 15px; color: var(--muted); max-width: 52em; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 36px; border-top: 2px solid var(--heading); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; color: var(--heading); font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 26px; font-weight: 400; color: var(--orange); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; max-width: 46em; }

/* Final CTA + footer */
.final { text-align: center; }
.final h2 { font-size: clamp(32px, 4.6vw, 54px); }
.final .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14.5px; color: var(--muted); background: var(--paper); }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer a { color: var(--muted); }

/* Legal pages */
.legal { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 5vw, 56px); margin: 24px auto 64px; max-width: 860px; }
.legal h1 { font-size: clamp(32px, 4.4vw, 46px); }
.legal .updated { margin-top: 10px; color: var(--muted); font-size: 15px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal li { max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 6px; }
.legal table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--heading); }
.legal .fill { background: #fff4d6; color: #6b4e00; padding: 0 4px; border-radius: 4px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .legal .fill { background: #3a2f10; color: #f1cb69; } }
.legal .table-wrap { overflow-x: auto; }

/* One orchestrated moment: the call sheet arrives, then calls tick in */
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: rise .7s cubic-bezier(.2,.7,.2,1) both .1s; }
  .sheet .call { animation: fade .5s ease both; }
  .sheet .call:nth-of-type(1) { animation-delay: .55s; } .sheet .call:nth-of-type(2) { animation-delay: .7s; }
  .sheet .call:nth-of-type(3) { animation-delay: .85s; } .sheet .call:nth-of-type(4) { animation-delay: 1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) rotate(1.2deg); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
