/* ScalifAI site. One small system, taken from the brand (brand/scalifai/README.md) and scalifai.com as it stands
   on 13 November 2026: ground #06080B, ink #FFFFFF, quiet #A1A1A1, one accent #20E69F, black on accent buttons,
   Instrument Sans with headings at 600. */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #06080B;
  --raised: #0E1116;      /* one step up from the ground, for the contact block only */
  --ink: #FFFFFF;
  --quiet: #A1A1A1;       /* 8.1:1 on the ground */
  --accent: #20E69F;      /* 12.2:1 on the ground; black text on it, 13.4:1 */
  --rule: rgba(255, 255, 255, .12);
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Five sizes, reused. Phone first; the desktop sizes are set below. */
  --t-hero: 40px;
  --t-h2: 28px;
  --t-lead: 20px;
  --t-body: 18px;
  --t-small: 15px;

  /* Spacing: 8, 16, 24, 40, 64, 104 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px;
  --gutter: 20px;
  --measure: 34em;
}

@media (min-width: 768px) {
  :root { --t-hero: 64px; --t-h2: 40px; --t-lead: 24px; --gutter: 40px; }
}
@media (min-width: 1200px) {
  :root { --t-hero: 80px; --gutter: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: var(--t-hero); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: var(--t-h2); line-height: 1.12; }
h3 { font-size: var(--t-lead); line-height: 1.3; }
p { margin: 0 0 var(--s2); max-width: var(--measure); }
.lead { font-size: var(--t-lead); line-height: 1.4; color: var(--quiet); }
.quiet { color: var(--quiet); }
.small { font-size: var(--t-small); }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--accent); color: #000; padding: var(--s1) var(--s2); font-weight: 600; z-index: 20;
}
.skip:focus { top: var(--s1); }

/* Only side padding here. Sections set top and bottom with padding-block, never the shorthand (lesson L1). */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Buttons: the one accent, black text. */
.btn {
  display: inline-block;
  background: var(--accent); color: #000;
  font-weight: 600; font-size: var(--t-body); line-height: 1.2;
  padding: 16px 28px; border-radius: 2px; text-decoration: none;
}
.btn:hover { background: #5BEFBA; }
.btn:focus-visible { outline-color: var(--ink); }

/* Nav */
.nav { border-bottom: 1px solid var(--rule); }
.navrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-block: var(--s2); }
.brand { display: block; line-height: 0; }
.brand img { height: 44px; width: auto; }
.navlinks { display: flex; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.navlinks a { color: var(--quiet); text-decoration: none; font-size: var(--t-small); font-weight: 500; }
.navlinks a:hover { color: var(--ink); }

/* Hero: the words, then the mark drawn large as the picture of one person and the AI team around them. */
.hero { padding-block: var(--s5) var(--s5); display: grid; gap: var(--s4); align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: var(--s3); }
.hero .lead { margin-bottom: var(--s4); }
.team { margin: 0; }
.team svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.team figcaption { margin-top: var(--s2); text-align: center; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.25fr 1fr; padding-block: var(--s6) var(--s6); }
  .team svg { max-width: 480px; }
}
.ring { transform-box: view-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .ring-2 { animation: turn 120s linear infinite; }
  .ring-3 { animation: turn 180s linear infinite reverse; }
}
@keyframes turn { to { transform: rotate(360deg); } }

/* Sections */
.sec { border-top: 1px solid var(--rule); padding-block: var(--s5); }
@media (min-width: 900px) { .sec { padding-block: var(--s6); } }
.sec > .wrap > h2 { max-width: 20ch; margin-bottom: var(--s3); }
.split { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1.4fr; gap: var(--s5); } }

/* Before and after: a plain two-column list, not cards. */
.change { display: grid; gap: var(--s4); margin-top: var(--s4); }
@media (min-width: 768px) { .change { grid-template-columns: 1fr 1fr; } }
.change h3 { font-size: var(--t-small); text-transform: none; color: var(--quiet); font-weight: 600; margin-bottom: var(--s2); letter-spacing: 0; }
.change ul { list-style: none; margin: 0; padding: 0; }
.change li { padding-block: var(--s2); border-top: 1px solid var(--rule); }
.change .after h3 { color: var(--accent); }

/* What we do: rows divided by rules. */
.offers { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.offers li { display: grid; gap: var(--s1); padding-block: var(--s3); border-top: 1px solid var(--rule); }
.offers li:last-child { border-bottom: 1px solid var(--rule); }
.offers p { margin: 0; color: var(--quiet); }
@media (min-width: 900px) { .offers li { grid-template-columns: 1fr 1.4fr; gap: var(--s5); } }

/* Proof slot: our own Control room. Empty until a real screen is chosen. */
.proof-slot {
  margin: var(--s4) 0 0; border: 1px dashed var(--rule); border-radius: 2px;
  aspect-ratio: 16 / 10; display: grid; place-items: center; padding: var(--s3); text-align: center;
}

/* Steps: ordered list, the numbers are real order. */
.steps { list-style: none; margin: var(--s4) 0 0; padding: 0; counter-reset: step; display: grid; gap: var(--s4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5em 1fr; gap: var(--s2); }
.steps li::before { content: counter(step); font-weight: 600; font-size: var(--t-lead); color: var(--accent); line-height: 1.3; }
.steps h3 { margin-bottom: var(--s1); }
.steps p { margin: 0; color: var(--quiet); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li { grid-template-columns: 1fr; } }

/* Sister company line */
.sister p { font-size: var(--t-lead); line-height: 1.4; max-width: 30em; }

/* Contact */
.contact { background: var(--raised); }
.contact h2 { margin-bottom: var(--s3); }
.contact .btn { margin-top: var(--s2); }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding-block: var(--s4) var(--s5); }
.foot p { margin: 0 0 var(--s1); max-width: none; }

/* Draft marking. Every placeholder word sits in .ph. Remove the class when the Page writer's copy is built in. */
.draft-bar {
  background: var(--accent); color: #000; font-size: var(--t-small); font-weight: 600;
  padding: var(--s1) var(--gutter); text-align: center;
}
.ph { background: rgba(32, 230, 159, .10); box-shadow: inset 0 -1px 0 rgba(32, 230, 159, .5); }

/* Added for draft 0 copy */
.kicker { font-size: var(--t-small); font-weight: 600; color: var(--accent); margin-bottom: var(--s2); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.textlink { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 4px; }
.shot-slot { border: 1px dashed var(--rule); border-radius: 4px; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.points { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.points li { padding-block: var(--s2); border-top: 1px solid var(--rule); max-width: var(--measure); }
.points strong { font-weight: 600; }
.faq details { border-top: 1px solid var(--rule); padding-block: var(--s2); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--t-lead); line-height: 1.3; }
.faq details p { margin: var(--s2) 0 0; color: var(--quiet); }
.split > div > h2 { max-width: 14ch; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .hero-stack { grid-template-columns: 1fr 1.1fr; } }
.shot-wide { margin-top: var(--s4); }
.shot figcaption { margin-top: var(--s1); }
@media (min-width: 1200px) { .steps-5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 900px) and (max-width: 1199px) { .steps-5 { grid-template-columns: repeat(3, 1fr); } }
.shot-narrow { max-width: 720px; }
.underhero { padding-bottom: var(--s5); display: grid; gap: var(--s4); }
.underhero .lead { color: var(--ink); max-width: 38em; }
.offers .tag { color: var(--ink); font-weight: 600; }
.price { margin-top: var(--s3); }
.foot .sister-line { color: var(--ink); margin-bottom: var(--s2); }
.draft-bar { background: var(--raised); color: var(--quiet); font-weight: 500; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .hero { padding-block: var(--s5) var(--s5); } .hero h1 { max-width: 17ch; } }
@media (min-width: 1200px) { .hero h1 { font-size: 72px; } }
.trio { display: grid; gap: var(--s5); }
.trio h2 { font-size: var(--t-lead); line-height: 1.3; margin-bottom: var(--s2); }
.trio p { color: var(--quiet); margin: 0; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.shot-rooms .scroller { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; }
.shot-rooms .scroller img { border: 0; border-radius: 0; min-width: 900px; }
@media (min-width: 900px) { .shot-rooms .scroller img { min-width: 0; } }
.underhero > * { min-width: 0; }

/* Nav, v1.1: a wide nav from 960 px, a Menu disclosure below it. No script. */
.navrow { position: relative; }
.nav-wide { display: none; }
.navlinks { align-items: center; }
.dropdown { position: relative; }
.dropdown summary, .menu summary { cursor: pointer; list-style: none; color: var(--quiet); font-size: var(--t-small); font-weight: 500; }
.dropdown summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: " \25BE"; }
.dropdown summary:hover, .menu summary:hover { color: var(--ink); }
.dropdown.open-here summary { color: var(--ink); }
.dropdown ul { position: absolute; top: calc(100% + 12px); left: -16px; z-index: 30; list-style: none; margin: 0; padding: var(--s1) 0;
  background: var(--raised); border: 1px solid var(--rule); border-radius: 4px; min-width: 200px; }
.dropdown li a { display: block; padding: var(--s1) var(--s2); }
.navlinks a[aria-current="page"], .menu a[aria-current="page"] { color: var(--ink); }
.btn-small { padding: 10px 16px; font-size: var(--t-small); }
.navlinks .btn-small { color: #000; }
.menu summary { border: 1px solid var(--rule); border-radius: 2px; padding: 10px 16px; color: var(--ink); font-size: var(--t-small); }
.menu nav { position: absolute; right: var(--gutter); left: var(--gutter); top: 100%; z-index: 30; background: var(--raised);
  border: 1px solid var(--rule); border-radius: 4px; padding: var(--s2) var(--s3) var(--s3); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a:not(.btn) { display: block; padding-block: 12px; color: var(--ink); text-decoration: none; font-size: var(--t-body); }
.menu .group-label { color: var(--quiet); font-size: var(--t-small); padding-top: var(--s2); }
.menu .btn { margin-top: var(--s2); display: block; text-align: center; }
@media (min-width: 960px) { .nav-wide { display: block; } .menu { display: none; } }
.footlinks { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.footlinks a { color: var(--quiet); }
.footlinks a:hover { color: var(--ink); }
.hero-text { grid-template-columns: 1fr !important; }
.hero-text h1 { max-width: 18ch; }
.prose > * + * { margin-top: var(--s2); }
.prose h3 { margin-top: var(--s4); }
.prose h3:first-child { margin-top: 0; }
.prose .points { margin-top: var(--s2); }
.prose .btn { margin-top: var(--s3); }
.points.numbered { list-style: none; counter-reset: n; }
.points.numbered li { counter-increment: n; display: grid; grid-template-columns: 2em 1fr; }
.points.numbered li::before { content: counter(n); color: var(--accent); font-weight: 600; }
.faq-more { margin-top: var(--s3); color: var(--quiet); }
.shot-room { max-width: 760px; }
@media (min-width: 900px) { .steps h3 { min-height: 2.6em; } .steps li { align-content: start; } }
