/* Shift Agent marketing site. One dark world, on purpose: every colour is set
   here, so the page holds whatever theme the visitor's browser prefers. */
:root {
  --ground: #0D1220;
  --band: #111829;
  --panel: #141B2D;
  --panel-2: #1F2A44;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink: #EEF1F7;
  --soft: #C9D2E3;
  --muted: #A9B3C7;
  --faint: #8792A8;
  --blue: #4AA3F0;
  --teal: #3EC2BE;
  --amber: #F0B45A;
  --violet: #A385F0;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 6.2vw, 80px); line-height: 0.98; }
h2 { font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--ground); font-weight: 700;
}
.skip:focus { top: 12px; color: var(--ground); }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.band { background: var(--band); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 96px 0; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.stack-xl { display: flex; flex-direction: column; gap: 72px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.section-head p:not(.eyebrow) { color: var(--muted); }

.eyebrow, .tag {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
}
.fine { font-size: 14px; color: var(--faint); }

/* ---------- nav ---------- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 20px/1 var(--display); }
.brand img { border-radius: 9px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }

.btn {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 30px; border-radius: 999px;
  background: var(--ink); color: var(--ground); font-weight: 700; font-size: 18px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { color: var(--ground); background: #FFFFFF; transform: translateY(-1px); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.link-strong { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 96px; }
.hero-copy { max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.lede { max-width: 620px; font-size: 20px; color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; margin-top: 6px; }
.cta-left { justify-content: flex-start; margin-top: 0; }

.demo {
  width: 100%; max-width: 1040px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9);
}
.demo-sent { display: flex; justify-content: flex-end; }
.demo-sent[hidden] { display: none; }
.demo-sent p { max-width: 78%; background: var(--panel-2); border-radius: 16px 16px 4px 16px; padding: 10px 16px; font-size: 15px; color: var(--soft); }
.demo-prompt {
  display: flex; align-items: center; gap: 14px; background: var(--ground); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 16px 18px; min-height: 60px; color: var(--blue);
}
.demo-prompt svg { flex: none; }
.demo-prompt p { font: 400 15px/1.5 var(--mono); color: var(--ink); min-height: 22px; }
.caret { display: inline-block; width: 2px; height: 18px; margin-left: 2px; vertical-align: -3px; background: var(--blue); animation: caret 1s step-end infinite; }
@keyframes caret { 50% { opacity: 0; } }

.demo-scroll { overflow-x: auto; }
.demo-grid { min-width: 700px; display: grid; grid-template-columns: 118px repeat(7, minmax(0, 1fr)); gap: 8px; align-items: center; }
.demo-day { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--faint); }
.demo-name { display: flex; flex-direction: column; line-height: 1.2; }
.demo-name b { font-weight: 600; font-size: 15px; }
.demo-name small { font-size: 12px; color: var(--faint); }
.cell {
  height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.035); border: 1px solid transparent; color: var(--ink);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.cell.on { background: rgba(var(--hue), 0.22); }
.cell.draft { background: rgba(var(--hue), 0.08); border: 1px dashed rgb(var(--hue)); color: rgb(var(--hue)); animation: pop 0.3s ease; }
@keyframes pop { from { transform: scale(0.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.demo-foot > p { font-size: 15px; color: var(--soft); min-height: 24px; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.demo-actions span { font-size: 13px; color: var(--faint); }
.demo-actions button {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--blue); color: var(--ground);
  font: 700 15px/1 var(--body); cursor: pointer;
}
.demo-actions button:hover { background: #6BB5F5; }

/* ---------- feature rows ---------- */
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.feature-flip { flex-direction: row-reverse; }
.feature-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.feature-copy > p:not(.tag):not(.eyebrow) { color: var(--muted); }
.feature-copy h3 { font: 700 clamp(24px, 2.5vw, 32px)/1.1 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.shot { flex: 1 1 520px; min-width: 0; }
.shot img { width: 100%; height: auto; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.16); }

.ticks { display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--soft); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.mini { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.mini p { font-size: 16px; color: var(--muted); }

/* ---------- tap illustration ---------- */
.tap { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.tap svg { width: 100%; max-width: 440px; height: auto; }
.tap-tag { fill: var(--panel-2); stroke: var(--blue); stroke-width: 2; }
.tap-waves path { stroke: var(--blue); stroke-width: 4; }
.tap-rings circle { fill: none; stroke: var(--blue); stroke-width: 2; opacity: 0; transform-origin: 300px 160px; animation: ring 3s ease-out infinite; }
.tap-rings circle:nth-child(2) { animation-delay: 1s; }
.tap-rings circle:nth-child(3) { animation-delay: 2s; }
@keyframes ring { 0% { transform: scale(0.95); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
.tap-phone { transform: rotate(-8deg); transform-origin: 145px 164px; animation: lean 3s ease-in-out infinite; }
@keyframes lean { 0%, 100% { transform: rotate(-8deg) translateX(0); } 50% { transform: rotate(-5deg) translateX(14px); } }
.tap-phone > rect:first-child { fill: #26324F; stroke: rgba(255, 255, 255, 0.3); stroke-width: 2; }
.tap-screen { fill: var(--ground); }
.tap-ok { fill: rgba(62, 194, 190, 0.18); stroke: var(--teal); stroke-width: 2; }
.tap-check { stroke: var(--teal); stroke-width: 4; }
.tap-t1 { fill: var(--ink); font: 700 17px var(--body); }
.tap-t2 { fill: var(--muted); font: 500 14px var(--body); }

/* ---------- spreadsheet illustration ---------- */
.sheet { flex: 1 1 500px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.sheet-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.sheet-bar em { margin-left: 10px; font: 400 13px var(--mono); color: var(--faint); }
.sheet-grid { display: grid; grid-template-columns: minmax(92px, 1.15fr) minmax(72px, 0.8fr) minmax(64px, 0.8fr) minmax(64px, 0.7fr) minmax(196px, 1.9fr); overflow-x: auto; }
.sheet-grid > * {
  padding: 11px 12px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  font-size: 14px; font-style: normal; text-decoration: none; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.sheet-grid > :nth-child(5n) { border-right: 0; }
.sheet-grid b { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); background: rgba(255, 255, 255, 0.03); }
.sheet-grid i { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); background: rgba(74, 163, 240, 0.16); opacity: 0; transform: translateY(4px); transition: opacity 0.4s ease, transform 0.4s ease; }
.sheet.in .sheet-grid i { opacity: 1; transform: none; }
.sheet-grid u { font: 400 12.5px var(--mono); color: var(--faint); }
.sheet-grid .flag { background: rgba(240, 180, 90, 0.14); color: var(--amber); }
.sheet figcaption { padding: 12px 16px; font-size: 13.5px; color: var(--faint); }

/* ---------- tiles, chips, plans ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.tiles li { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.tiles svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tiles li:nth-child(3n + 2) svg { stroke: var(--teal); }
.tiles li:nth-child(3n) svg { stroke: var(--violet); }
.tiles p { font-size: 16px; color: var(--muted); }

.crew { display: flex; flex-direction: column; gap: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-weight: 500; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.plan-pro { border-color: var(--blue); }
.price { font: 800 52px/1 var(--display); font-variant-numeric: tabular-nums; }
.price span { font: 500 17px var(--body); color: var(--muted); }
.plan ul { padding-left: 20px; list-style: disc; display: flex; flex-direction: column; gap: 8px; color: var(--soft); }

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 36px; padding-bottom: 56px; font-size: 14px; color: var(--faint); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- privacy page ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 28px; }
.doc h2 { font-size: 26px; margin: 44px 0 14px; }
.doc p, .doc li { color: var(--soft); }
.doc p { margin-bottom: 16px; }
.doc ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .section, .band { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 32px; padding-bottom: 64px; }
  .stack-xl { gap: 56px; }
  .feature { gap: 32px; }
  .nav-links { gap: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .tap-rings circle, .tap-phone, .cell.draft { animation: none; }
  .tap-rings circle { opacity: 0.35; }
  .sheet-grid i { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

@media (max-width: 720px) {
  .nav-links .sec { display: none; }
}
