/* BuildShot — the site.
   Same language as the app: black and safety orange, hard corners, condensed upper case for
   chrome, normal width for anything meant to be read. If the app and the page disagree, the
   page is wrong. */

:root {
  --accent: #f26b12;
  --accent-soft: rgba(242, 107, 18, 0.14);
  --on-accent: #17170f;
  --accent-text: #b34a0b;
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --ink: #1c1c1f;
  --ink-soft: #6b6b73;
  --hairline: #e2e2e8;
  --radius-card: 12px;
  --radius-control: 10px;
  --gutter: clamp(20px, 5vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff8a2b;
    --accent-soft: rgba(255, 138, 43, 0.16);
    --on-accent: #17170f;
    --accent-text: #ff8a2b;
    --canvas: #121214;
    --surface: #1f1f23;
    --ink: #f2f2f5;
    --ink-soft: #9a9aa4;
    --hairline: #34343a;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Chrome voice: condensed, upper case, tracked out ---- */

.stamp {
  font-weight: 800;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 13px;
}

/* ---- Header ---- */

header {
  padding: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--on-accent);
  font-weight: 800;
  font-size: 15px;
}

.brand strong { font-size: 19px; letter-spacing: -0.01em; }

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 18px;
  font-size: 15px;
}

nav a:hover { color: var(--ink); }

/* ---- Hazard stripe: the app allows itself two. So does the page. ---- */

.hazard {
  height: 6px;
  background:
    repeating-linear-gradient(115deg,
      rgba(0, 0, 0, 0.6) 0 8px,
      transparent 8px 16px),
    var(--accent);
  border-radius: 3px;
}

/* ---- Hero ---- */

.hero { padding: 52px 0 44px; }

.hero-grid { display: grid; gap: 36px; align-items: center; }

@media (min-width: 780px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 44px; }
}

/* ---- The phone. Drawn, not an image: one less thing to load and it stays sharp. ---- */

.phone {
  width: 100%;
  max-width: 286px;
  margin: 0 auto;
  background: #0e0e11;
  /* Bezel and corners scaled from the real thing: ~9.5 pt of frame around a 402 pt screen whose
     corner radius is ~62 pt. Outer radius = inner + bezel, or the corners look moulded on. */
  border-radius: 48px;
  padding: 7px;
  box-shadow:
    0 0 0 2px #33333b,
    0 26px 54px rgba(0, 0, 0, 0.30);
}

.phone .screen {
  position: relative;
  border-radius: 41px;
  overflow: hidden;
  /* ⚠️ The real screen, 402 x 874 pt. Never crop this to tidy up the bottom of a screenshot:
     the frame stops being an iPhone and everybody who owns one can see it. Fix the screenshot
     instead. The capture is 1206 x 2622 device pixels, which is the same ratio. */
  aspect-ratio: 402 / 874;
  background: #f5f5f7;
}

/* ⚠️ `height: auto` is load-bearing. The img carries width/height attributes so the layout does
   not jump while it loads, and without this the attribute height wins as a presentational hint —
   the screenshot renders 1391px tall inside a 466px frame, stretched to four times its height. */
.phone .screen img { width: 100%; height: auto; display: block; }


.hero h1 {
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero p.lead {
  font-size: clamp(18px, 2.6vw, 21px);
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 40ch;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--radius-control);
  font-weight: 800;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
}

.btn.ghost {
  background: transparent;
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero .note {
  color: var(--ink-soft);
  margin: 18px 0 0;
}

/* ---- Value propositions ---- */

.props {
  display: grid;
  gap: 14px;
  padding: 8px 0 48px;
}

@media (min-width: 720px) {
  .props { grid-template-columns: 1fr 1fr; }
}

.prop {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 22px;
}

.prop h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.prop p { margin: 0; color: var(--ink-soft); font-size: 16px; }

@media (min-width: 720px) {
  .prop.wide { grid-column: 1 / -1; }
}

/* The caveat that keeps a claim honest. Smaller, never hidden. */
.fineprint {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px !important;
}

.burn {
  display: inline-block;
  background: var(--ink);
  color: var(--canvas);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: 0.06em;
  font-size: 12px;
  vertical-align: 1px;
}

/* ---- Closing ---- */

.close { padding: 0 0 56px; }
.close p { font-size: clamp(19px, 2.6vw, 23px); margin: 0 0 22px; max-width: 30ch; letter-spacing: -0.01em; }

/* ---- The honest section. Deliberately not a card: it is not a feature. ---- */

.plain {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 32px 0;
  margin: 8px 0 48px;
}

.plain h2 { margin: 0 0 14px; font-size: 22px; }
.plain p { margin: 0 0 12px; color: var(--ink-soft); max-width: 62ch; }
.plain p:last-child { margin-bottom: 0; }

/* ---- Long-form legal pages ---- */

.doc { padding: 40px 0 72px; max-width: 68ch; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.02em; margin: 0 0 6px; }
.doc .updated { color: var(--ink-soft); font-size: 15px; margin: 0 0 36px; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent-text); }

.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-control) var(--radius-control) 0;
  padding: 16px 18px;
  margin: 22px 0;
}

.callout p { margin: 0; }

/* ---- Footer ---- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 26px 0 46px;
  color: var(--ink-soft);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

footer a { color: var(--ink-soft); }
footer a:hover { color: var(--ink); }
