/* ==========================================================================
   StillDrill - landing styles
   System derived from the drill app itself: CAD amber dispatch card, mint
   CTA, CAD-grid motif, Saira Condensed display + IBM Plex Sans/Mono.
   ========================================================================== */

@font-face {
  font-family: 'Saira Condensed';
  src: url('/fonts/SairaCondensed-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Saira Condensed';
  src: url('/fonts/SairaCondensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Saira Condensed';
  src: url('/fonts/SairaCondensed-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/IBMPlexSans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/IBMPlexMono-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --bg: #07090f;
  --bg-2: #0b0f18;
  --panel: #111726;
  --line: #232d47;
  --line-soft: #1a2236;
  --text: #eef2f9;
  --dim: #9aa6bd;
  --faint: #6d7994;
  --amber: #f6a821;          /* the CAD card */
  --amber-deep: #e08c0c;
  --mint: #5eead4;           /* the CTA */
  --mint-deep: #2dd4bf;
  --font-display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --font-text: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 14px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-text);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, .foot-brand, .wordmark {
  font-family: var(--font-display);
  letter-spacing: .01em;
}
h1 { font-size: clamp(44px, 6.2vw, 76px); font-weight: 800; line-height: .98; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.04; text-transform: uppercase; }
h3 { font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
h1 em, h2 .dot-end, .wordmark em, .foot-brand em { font-style: normal; color: var(--mint); }
.lede { color: var(--dim); font-size: 17px; max-width: 56ch; }

/* --- kicker: CAD-grid tick instead of tracked eyebrow --- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .02em; color: var(--amber);
  margin-bottom: 18px;
}
.tick {
  width: 26px; height: 13px; flex: 0 0 auto;
  background:
    linear-gradient(to right, transparent 0 3px, var(--amber) 3px 4px, transparent 4px 9px, var(--amber) 9px 10px, transparent 10px 15px, var(--amber) 15px 16px, transparent 16px 21px, var(--amber) 21px 22px, transparent 22px) 0 0 / 26px 5px repeat-y,
    linear-gradient(to bottom, transparent 0 3px, var(--amber) 3px 4px, transparent 4px 8px) 0 0 / 5px 13px repeat-x;
  opacity: .85;
}

/* ============ top bar ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 15, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.bar { display: flex; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logomark { height: 34px; width: auto; display: block; }
.wordmark { font-size: 25px; font-weight: 800; color: var(--text); }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.topbar nav a { color: var(--dim); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.topbar nav a:hover { color: var(--text); }
.topbar nav .nav-cta {
  color: #06281f; background: var(--mint);
  padding: 8px 16px; border-radius: 9px; font-weight: 600;
}
.topbar nav .nav-cta:hover { background: var(--mint-deep); color: #06281f; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn .arr { transition: transform .15s ease; font-family: var(--font-text); }
.btn:hover .arr { transform: translateX(3px); }
.btn-amber {
  background: linear-gradient(180deg, #ffc247 0%, var(--amber) 55%, var(--amber-deep) 100%);
  color: #241300;
  box-shadow: 0 1px 0 rgba(255, 214, 130, .55) inset, 0 10px 26px -12px rgba(246, 168, 33, .55);
}
.btn-amber:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,214,130,.55) inset, 0 16px 30px -12px rgba(246,168,33,.7); }
.btn-ghost {
  color: var(--text); background: transparent;
  border: 1px solid var(--line); font-weight: 600;
}
.btn-ghost:hover { border-color: var(--faint); }
.btn-wide { width: 100%; justify-content: center; }

/* ============ hero ============ */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(94, 234, 212, .07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(246, 168, 33, .06), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px; align-items: center;
}
.hero-copy .micro {
  margin-top: 22px; font-family: var(--font-mono);
  font-size: 12.5px; color: var(--faint); letter-spacing: .01em;
}
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* product frame */
.hero-shot { position: relative; margin: 0; }
.frame {
  position: relative; border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, .04) inset,
    0 30px 70px -30px rgba(0, 0, 0, .85),
    0 8px 22px -12px rgba(0, 0, 0, .6);
  overflow: hidden;
  transform: rotate(.4deg);
}
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #0d1322; border-bottom: 1px solid var(--line-soft);
}
.frame-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #2a3550; }
.frame-bar .url {
  margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--faint); letter-spacing: .03em;
}
.frame img { display: block; width: 100%; height: auto; }
.chip {
  position: absolute; right: 14px; bottom: 14px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--amber);
  background: rgba(7, 9, 15, .78); border: 1px solid rgba(246, 168, 33, .35);
  padding: 5px 11px; border-radius: 999px; letter-spacing: .02em;
}
.glow {
  position: absolute; inset: -8% -6% -14% -6%; z-index: -1;
  background: radial-gradient(60% 55% at 55% 45%, rgba(94, 234, 212, .13), transparent 70%);
  filter: blur(6px);
}

/* CAD-grid field at hero base */
.cadfield {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  pointer-events: none; opacity: .5;
  background:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px) 0 0 / 130px 100%,
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px) 0 0 / 100% 60px;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  mask-image: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}

/* ============ bento features ============ */
.features { padding: 96px 0 84px; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.sec-title { margin-bottom: 44px; }
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
}
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--panel) 0%, #0e1420 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: #35425f;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .8);
}
.f-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.ficon {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(94, 234, 212, .08);
  border: 1px solid rgba(94, 234, 212, .22);
}
.ficon svg { width: 18px; height: 18px; fill: none; stroke: var(--mint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--dim); font-size: 14.5px; }

/* bento placement: dispatch is the hero feature (2x2), flanked by a stack */
.f-dispatch { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.f-dispatch p { max-width: 52ch; }
.f-dispatch .f-media {
  margin: auto 0 0; padding: 22px 18px 6px;
  display: flex; justify-content: center;
}
.f-dispatch .f-media, .f-stack .f-shot { position: relative; }
.f-dispatch .f-media img { width: 100%; aspect-ratio: 780 / 1258; height: auto; object-fit: cover; object-position: top center; }
.f-stack .f-shot img {
  width: 100%; height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9);
}
.f-stack { grid-row: span 2; display: grid; grid-template-rows: auto auto; gap: 16px; padding: 0; border: 0; background: none; }
.f-stack .card { height: 100%; }
.bento-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bento-row .card { grid-column: auto; }
/* v74: tick decoration removed (read as unfinished placeholder) */
.district-line {
  position: absolute; left: -14px; top: -4px;
  width: 44%; height: 58px; color: var(--amber); opacity: .28;
  pointer-events: none;
}
.f-data .ficon, .f-mobile .ficon, .f-timed .ficon, .f-route .ficon { /* default mint */ }
.f-data .ficon { background: rgba(246, 168, 33, .08); border-color: rgba(246, 168, 33, .25); }
.f-data .ficon svg { stroke: var(--amber); }
.f-district { grid-column: 1 / -1; }
.f-district .ficon { background: rgba(246, 168, 33, .08); border-color: rgba(246, 168, 33, .25); }
.f-district .ficon svg { stroke: var(--amber); }

/* ============ real-data band ============ */
.databand {
  position: relative; overflow: hidden;
  padding: 76px 0;
  background:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px) 0 0 / 190px 100%,
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px) 0 0 / 100% 95px,
    radial-gradient(700px 360px at 85% 20%, rgba(246, 168, 33, .07), transparent 65%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
}
.databand > .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px; align-items: center;
}
.db-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.db-stats > div {
  background: rgba(17, 23, 38, .75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 15px;
}
.db-stats dt {
  font-family: var(--font-display); font-weight: 800; font-size: 40px;
  line-height: 1; color: var(--amber); letter-spacing: .01em;
}
.db-stats dd { margin-top: 5px; font-size: 13px; color: var(--dim); }

/* ============ contact ============ */
.contact { padding: 92px 0 100px; border-top: 1px solid var(--line-soft); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.c-points { margin: 22px 0 0; padding: 0; list-style: none; }
.c-points li {
  position: relative; padding: 9px 0 9px 30px;
  color: var(--dim); font-size: 15px;
  border-bottom: 1px dashed var(--line-soft);
}
.c-points li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 12px; height: 12px; border-radius: 3px;
  border: 1.6px solid var(--amber);
  background:
    linear-gradient(to right, transparent 0 2.5px, var(--amber) 2.5px 3.5px, transparent 3.5px 8.5px, var(--amber) 8.5px 9.5px, transparent 9.5px) 0 0 / 12px 4px repeat-y;
}
.mono-inline { font-family: var(--font-mono); font-size: .92em; color: var(--text); }

form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ffield { margin-bottom: 14px; }
.ffield label {
  display: block; margin-bottom: 7px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
}
.ffield input, .ffield textarea {
  width: 100%; padding: 12px 14px;
  background: #0d1322; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-text); font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ffield input:focus, .ffield textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(246, 168, 33, .18);
}
.ffield input::placeholder, .ffield textarea::placeholder { color: #4d5872; }
#formMsg { min-height: 22px; margin-top: 10px; font-size: 14px; text-align: center; }
#formMsg.ok { color: var(--mint); }
#formMsg.err { color: #f87171; }

/* ============ footer ============ */
.foot { border-top: 1px solid var(--line-soft); padding: 26px 0 30px; background: var(--bg-2); }
.foot-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--faint);
}
.foot-brand { font-size: 19px; font-weight: 800; color: var(--text); }
.foot .brand { gap: 8px; }
.foot .logomark { height: 24px; }
.foot .wordmark { font-size: 18px; }
.foot-row a { color: var(--dim); text-decoration: none; }
.foot-row a:hover { color: var(--mint); }
.foot-links { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.foot-links a:first-child { margin-left: 0; }
.foot-links a + a { margin-left: 10px; }

/* ============ form extras ============ */
.ffield select {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
  font-family: var(--font-text); font-size: 15px;
}
.ffield select:focus { outline: none; border-color: var(--mint); }
.ffield .opt { color: var(--faint); font-weight: 400; }
.form-consent { font-size: 12.5px; color: var(--faint); margin: 4px 0 14px; }
.form-consent a { color: var(--mint); text-decoration: none; }
.form-consent a:hover { color: var(--mint-deep); }

/* ============ reveal on scroll ============ */
/* hidden state only when JS is running (html.js added by main.js):
   no-JS visitors and crawlers see the full page */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ responsive ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 70px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .f-dispatch { grid-column: span 2; }
  .f-stack { grid-row: auto; grid-column: span 2; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .bento-row { grid-template-columns: 1fr 1fr; }
  .bento-row .card:last-child { grid-column: span 2; }
  .databand > .wrap { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .bento { grid-template-columns: 1fr; }
  .f-dispatch, .f-stack { grid-column: span 1; }
  .f-stack { grid-template-columns: 1fr; }
  .bento-row { grid-template-columns: 1fr; }
  .bento-row .card:last-child { grid-column: auto; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .db-stats { grid-template-columns: 1fr 1fr; }
  .frow { grid-template-columns: 1fr; gap: 0; }
  h1 { font-size: clamp(38px, 11vw, 52px); }
}

/* v74: phone screenshot fills the whitespace in the timed/zero cards */
.f-stack .f-shot {
  margin-top: auto; padding: 14px 0 4px;
  display: flex; justify-content: center;
}
.f-stack .f-shot img {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
@media (max-width: 900px) {
  .f-stack .f-shot img { width: min(160px, 52%); }
}
