/* ═══════════════════════════════════════════════════════════════
   GRASP — site styles

   Same tokens as the app, so the site and the product read as one
   thing. Warm charcoal base, hot orange for chrome only, filled
   surfaces rather than outlines.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:         #0C0E0D;
  --surface:    #212825;
  --surface-up: #2B3531;
  --line:       #3A453F;
  --line-bright:#657270;

  --text:       #F5F3F0;
  --text-dim:   #9BA39E;
  --text-faint: #8D9690;

  --hot:        #FF6B2C;
  --hot-deep:   #C2410C;
  /* The band orange is deeper than the accent orange. At full #FF6B2C
     the dark text technically passed contrast but visibly vibrated,
     which is what saturated orange at that lightness does. */
  --hot-band:   #A93607;

  /* Light band. Warm off-white rather than pure white, so it belongs
     with the charcoal instead of fighting it. */
  --paper:      #F5F2EC;
  --paper-line: #CFC7B6;
  --ink:        #17191A;
  --ink-dim:    #56605C;
  --hot-dim:    #2A1409;
  --amber:      #F5A524;
  --green:      #4ADE80;

  --max:  680px;
  --wide: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Header ── */

header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(12, 14, 13, 0.92);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.4px;
}

.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav-links { display: flex; gap: 26px; align-items: center; }

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text); }

/* ── Hero ── */

.hero {
  padding: 92px 0 72px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  color: var(--hot);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1 {
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: -1.8px;
  font-weight: 800;
  margin-bottom: 22px;
}

.lead { font-size: 20px; color: var(--text-dim); max-width: 560px; }

.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 240px; height: 240px; border-radius: 52px; }

/* ── Buttons ── */

.actions { display: flex; gap: 13px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--hot); color: var(--bg); }
.btn-primary:hover { opacity: 0.9; }

.btn-ghost { border-color: var(--line-bright); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }

.btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }

/* ── Screenshots ──
   The single most important thing on a page about a mobile app, and the
   thing most app landing pages bury below three sections of prose. */

.shots-band { padding: 0 0 88px; }

.shots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 26px;
}

.shot { text-align: center; }

.shot img {
  width: 232px;
  border-radius: 26px;
  border: 1px solid var(--line);
  display: block;
  background: var(--surface);
  aspect-ratio: 1290 / 2796;
  object-fit: cover;
}

/* The middle one sits forward, which stops three flat rectangles from
   reading as a spec sheet. */
.shot-mid img {
  width: 262px;
  border-color: var(--line-bright);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.shot figcaption {
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 16px;
}

@media (max-width: 860px) {
  .shots { gap: 14px; overflow-x: auto; padding: 0 24px 8px; justify-content: flex-start; }
  .shot img { width: 176px; }
  .shot-mid img { width: 176px; box-shadow: none; }
  .shot figcaption { font-size: 12px; }
}

/* ── Email capture ── */

.signup {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  max-width: 500px;
  flex-wrap: wrap;
}

.signup input {
  flex: 1;
  min-width: 220px;
  height: 54px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}

.signup input::placeholder { color: var(--text-faint); }
.signup input:focus { outline: none; border-color: var(--hot); }

.signup button { height: 54px; border: none; cursor: pointer; font-family: inherit; }

.signup-note {
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 14px;
  max-width: 440px;
}

/* Form result. A signup form has three states and most only build one. */
.form-note {
  font-size: 14px;
  margin-top: 12px;
  max-width: 440px;
}
.form-note.is-good { color: var(--green); }
.form-note.is-bad  { color: #FF8A73; }

.band-hot .form-note { color: rgba(255,255,255,.9); max-width: none; }

.signup.is-done input { opacity: .5; }
.signup.is-done button { background: var(--green); color: var(--bg); }
.band-hot .signup.is-done button { background: #FFFFFF; color: var(--hot-band); }

.waitlist-count {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 10px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Sections ── */

/* Bands rather than rules. A hairline divider says "this bit ended".
   A change of ground says "this is a different part of the argument",
   which is what a landing page actually needs. */
section { padding: 88px 0; }

.band-dark  { background: var(--bg); }
.band-lift  { background: var(--surface); }
.band-light { background: var(--paper); color: var(--ink); }
.band-hot   { background: var(--hot-band); color: #FFFFFF; }

/* Text has to invert inside the light and hot bands */
.band-light h2,
.band-light h4,
.band-light .stat .n { color: var(--ink); }
.band-light p,
.band-light .section-lead,
.band-light .card p { color: var(--ink-dim); }
.band-light .card {
  background: #FFFFFF;
  border-color: var(--paper-line);
}
.band-light .stat {
  background: #FFFFFF;
  border-color: var(--paper-line);
}
.band-light .stat .l { color: var(--ink-dim); }
.band-light .num { color: var(--hot-deep); }

.band-hot h2 { color: #FFFFFF; }
.band-hot .section-lead,
.band-hot p { color: rgba(255, 255, 255, 0.86); }
.band-hot .card {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}
.band-hot .card h4 { color: #FFFFFF; }
.band-hot .card p { color: rgba(255, 255, 255, 0.80); }
.band-hot .num { color: rgba(255, 255, 255, 0.65); }

h2 {
  font-size: 32px;
  letter-spacing: -0.8px;
  font-weight: 800;
  margin-bottom: 14px;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 34px 0 10px;
}

.section-lead { color: var(--text-dim); max-width: 620px; margin-bottom: 40px; }

/* ── Two-column prose ──
   A single column of text in a 1080px container leaves half the page
   empty, which reads as unfinished rather than spacious. The right
   column carries something that earns its place. */

.split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.split .section-lead { margin-bottom: 18px; }

/* Pull quote. Uses a real line from the course rather than a testimonial
   we do not have. */
/* The card shows the moment rather than describing it. A fabricated
   figure at display size, then the correction. The number is the point,
   so it is the biggest thing here. */
.pullquote {
  background: var(--ink);
  border-radius: 16px;
  padding: 32px 30px;
  color: var(--paper);
}

.pq-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.5);
  margin-bottom: 18px;
}

.pq-figure {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.pq-sub {
  font-size: 15px;
  color: rgba(245, 242, 236, 0.62);
  font-style: italic;
}

.pq-rule {
  height: 1px;
  background: rgba(245, 242, 236, 0.16);
  margin: 24px 0;
}

.pq-correction {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.86);
  margin-bottom: 20px;
}

.pq-attr {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--hot);
}

/* A plain list of what the organisation has done. Deliberately not
   stat boxes, because rounded numbers we cannot source would be worse
   than none. */
.side-list {
  border-top: 1px solid var(--line);
}

.side-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.side-n { font-size: 17px; font-weight: 700; color: var(--text); }
.side-l { font-size: 14px; color: var(--text-faint); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .pullquote { padding: 24px 22px; }
  .pq-text { font-size: 19px; }
}

/* ── Cards ── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}

/* On a lifted band the cards need to sit above it, not blend in */
.band-lift .card { background: var(--bg); }

/* Feature marks. Line icons at card scale, inheriting the band's
   accent so they work on dark and light grounds alike. */
.card-mark {
  width: 46px; height: 46px;
  color: var(--hot);
  margin-bottom: 18px;
}
.card-mark svg { width: 100%; height: 100%; }
.band-light .card-mark { color: var(--hot-deep); }
.band-hot   .card-mark { color: rgba(255,255,255,.75); }

/* World marks. The same isometric geometry as the app illustrations,
   so the site and the product look like one thing. */
.world-mark {
  width: 74px; height: 74px;
  margin-bottom: 14px;
}
.world-mark svg { width: 100%; height: 100%; }

.card .num {
  color: var(--hot);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* ── Stats ── */

.stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 40px; }

.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 30px;
  flex: 1;
  min-width: 150px;
}

.stat .n {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  display: block;
}

.stat .l { color: var(--text-faint); font-size: 13px; }

/* ── Prose pages ── */

/* Long reading happens on the light band. Dark text on warm paper is
   easier over several hundred words than light on dark. */
.doc { padding: 72px 0 110px; }
.doc h1 { font-size: 40px; margin-bottom: 10px; color: var(--ink); letter-spacing: -1.2px; }
.doc .updated { color: var(--ink-dim); font-size: 14px; margin-bottom: 48px; }
.doc h2 { font-size: 22px; margin: 46px 0 12px; letter-spacing: -0.3px; color: var(--ink); }
.doc p { color: var(--ink-dim); margin-bottom: 16px; }
.doc ul { color: var(--ink-dim); margin: 0 0 18px 22px; }
.doc li { margin-bottom: 9px; }
.doc strong { color: var(--ink); font-weight: 650; }
.doc a { color: var(--hot-deep); font-weight: 550; }

.callout {
  background: #FFFFFF;
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--hot-deep);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 28px 0;
}
.callout p { color: var(--ink-dim); }

.callout p:last-child { margin-bottom: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--paper-line);
  color: var(--ink-dim);
}

th {
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ── Closing band ──
   Centred, constrained, and repeats the one action the page is asking
   for. Someone who read to the bottom should not have to scroll back up
   to act on it. */

.closer { padding: 72px 0; text-align: center; }
.closer .wrap { max-width: 620px; }
.closer h2 { margin-bottom: 12px; }
.closer p { font-size: 18px; margin-bottom: 28px; }

.signup-light { margin: 0 auto; justify-content: center; }

.signup-light input {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}
.signup-light input::placeholder { color: rgba(255, 255, 255, 0.6); }
.signup-light input:focus { border-color: #FFFFFF; }

.signup-light button {
  background: #FFFFFF;
  color: var(--hot-band);
}

/* ── Footer ── */

footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 48px 0;
  color: var(--text-faint);
  font-size: 14px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.foot a { color: var(--text-dim); text-decoration: none; margin-right: 20px; }
.foot a:hover { color: var(--text); }

/* ── Small screens ── */

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding: 56px 0 48px; gap: 36px; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-art img { width: 132px; height: 132px; border-radius: 30px; }
  h1 { font-size: 36px; letter-spacing: -1.1px; }
  .lead { font-size: 18px; }
  h2 { font-size: 26px; }
  section { padding: 54px 0; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
  .actions .btn { flex: 1; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════
   MOTION

   Everything here is opt-in via a data attribute in the markup and
   opt-out via the system setting. The default state of every element
   is visible, so a JavaScript failure leaves a readable page rather
   than a blank one.
   ═══════════════════════════════════════════════════════════════ */

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.will-reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

/* A softer variant for things appearing in place rather than arriving */
.will-reveal-soft { opacity: 0; }
.will-reveal-soft.is-in {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* ── Header ── */

header {
  transition: border-color 0.3s ease, background 0.3s ease;
  border-bottom-color: transparent;
}

header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(12, 14, 13, 0.96);
}

/* ── Cards lift on hover ──
   2px and a border change. Anything more and a grid of cards becomes a
   trampoline. */

.card {
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.26s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    border-color: var(--line-bright);
  }
  .band-light .card:hover { border-color: var(--hot-deep); }
}

/* ── Buttons ── */

.btn {
  transition:
    transform 0.14s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease,
    box-shadow 0.22s ease;
}

@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255, 107, 44, 0.28);
  }
  .btn-ghost:hover { transform: translateY(-1px); }
}

.btn:active { transform: translateY(1px) !important; box-shadow: none !important; }

/* ── Screenshots ── */

.shot img { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.shot-mid { transition: transform 0.1s linear; }

@media (hover: hover) {
  .shot:hover img { transform: translateY(-6px); }
}

/* ── Nav links get an underline that grows from the left ── */

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 0;
  background: var(--hot);
  transition: width 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .nav-links a:hover::after { width: 100%; }
}

/* ── The figure in the pull quote ── */

.pq-figure { font-variant-numeric: tabular-nums; }

/* ── Focus. Visible, and not only on hover devices. ──
   This was the worst accessibility gap on the site: two focus rules in
   the whole stylesheet meant keyboard users could not see where they
   were. */

:focus-visible {
  outline: 2px solid var(--hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.band-light :focus-visible { outline-color: var(--hot-deep); }
.band-hot   :focus-visible { outline-color: #FFFFFF; }

/* Skip link, hidden until focused */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--hot);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip:focus { top: 16px; }

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION

   Everything above is turned off here. The site still works, it just
   stops moving. This block has to exist before any animation ships,
   not after.
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .will-reveal,
  .will-reveal-soft {
    opacity: 1 !important;
    transform: none !important;
  }

  .card:hover,
  .btn:hover,
  .shot:hover img { transform: none !important; }

  .shot-mid { transform: none !important; }
}
