/* Home page. Five scenes, each with its own ground and its own light (PRODUCT.md):
   the desk at night (dark warm), Claude asks (light, amber), the panel (graphite, blue),
   privacy (light, green), get started (dark warm). Colour comes from the app itself:
   amber = Claude is asking, green = allowed / done, blue = system and media. */

.home {
  --night: #050608;            /* cool near-black of the blue-hour desk photo */
  --graphite: #0e0e10;         /* the panel scene: neutral, lets the blue light read */
  --light: #f5f5f7;            /* light scenes: neutral off-white, not cream */
  --ink-on-light: #1d1d1f;
  --ink-2-on-light: #57575c;   /* 6.6:1 on --light */
  --ink-on-dark: #f5f5f7;
  --ink-2-on-dark: #a1a1a6;    /* 8.0:1 on --night */
  --ink-2-graphite: #a6a6ab;   /* 7.7:1 on --graphite */
  --ask: #f5a624;
  --ok: #4dd978;
  --ice: #59c7fa;
  --ink: #f5f5f7;              /* nav and footer (site.css) go neutral on this page */
  --ink-2: #a1a1a6;
  background: var(--night);
}
.home .wrap { width: min(1180px, 100% - 2 * var(--m)); }

/* Type scale (ratio ~1.33): h1 88 / h2 64 / h3 21 / body 18-20 */
.home h1, .home h2 { font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
.home h1 { font-size: clamp(2.75rem, 1.55rem + 4.6vw, 5.5rem); line-height: 1.02; color: var(--ink-on-dark); }
.home h2 { font-size: clamp(2.25rem, 1.45rem + 3.2vw, 4rem); line-height: 1.04; }
.home h3 { font-size: 1.3125rem; line-height: 1.75rem; font-weight: 600; letter-spacing: -.01em; }

/* Light keycap: the app's key, inverted for the dark scenes. */
.key--light {
  background: linear-gradient(#ffffff, #e6e7ea) padding-box,
    linear-gradient(rgb(255 255 255 / .9), rgb(255 255 255 / 0) 60%) border-box;
  box-shadow: 0 4px 0 #6b6e75, 0 8px 18px rgb(0 0 0 / .5);
  color: #0b0c0e;
  font-size: 1.0625rem;
  padding-inline: 27px;
}
.key--light:hover {
  background: linear-gradient(#ffffff, #f0f1f3) padding-box,
    linear-gradient(rgb(255 255 255 / .9), rgb(255 255 255 / 0) 60%) border-box;
}
.key--light:active { box-shadow: 0 0 0 #6b6e75, 0 2px 6px rgb(0 0 0 / .5); }
.key--light:focus-visible { outline-color: var(--ink-on-dark); }

.pill {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22);
  color: #d2d2d7; font-size: 1rem; line-height: 1.5rem;
}

/* ---------- Scene 1: the desk at night ---------- */
.top { position: relative; padding-top: 40px; text-align: center; overflow: hidden; }
.top::before {               /* lamp light on the wall, from the photo's top left */
  content: ""; position: absolute; inset: -64px 0 auto; height: 900px; pointer-events: none; z-index: -1;
  background: radial-gradient(55% 65% at 80% 0%, rgb(89 150 220 / .20), rgb(89 150 220 / .07) 45%, transparent 75%);
}
.top__copy { position: relative; }
.top__lead {
  max-width: 38em; margin: 24px auto 0;
  color: var(--ink-2-on-dark); font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.55;
}
.top__dl { justify-content: center; margin-top: 36px; gap: 14px 16px; }
.top__note { margin-top: 18px; color: var(--ink-2-on-dark); }
.top__photo { display: block; margin-top: 48px; }
.top__photo img {
  width: min(1600px, 100%); margin-inline: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 82%, transparent);
  mask-composite: intersect;
}

/* ---------- Scene grounds ---------- */
.light { background: var(--light); color: var(--ink-2-on-light); }
.light h2, .light h3, .light dt, .light b, .light strong { color: var(--ink-on-light); }
.light a { color: var(--ink-on-light); }
.light :focus-visible { outline-color: var(--ink-on-light); }
.dark h2, .dark h3, .dark b { color: var(--ink-on-dark); }
.ask, .panel, .trust, .start { padding-block: clamp(80px, 6vw + 40px, 140px); }

.head { display: grid; gap: 20px 64px; align-items: end; }
.head p { max-width: 34em; font-size: clamp(1.125rem, 1rem + .3vw, 1.25rem); line-height: 1.55; }
.head--center { justify-items: center; text-align: center; }
.head--center p { margin-inline: auto; }
@media (min-width: 900px) {
  .head:not(.head--center) { grid-template-columns: 5fr 6fr; }
}

/* ---------- Scene 2: Claude asks (a real sequence, so it is numbered by its arrows) ---------- */
.flow { list-style: none; padding: 0; margin: 64px 0 0; display: grid; gap: 56px 32px; counter-reset: none; }
.flow__step { position: relative; }
.flow__step > .term, .flow__phone { height: 268px; }
.flow__step h3 { margin-top: 28px; }
.flow__step p { margin-top: 6px; font-size: 1.0625rem; line-height: 1.55; }
@media (min-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr) minmax(0, 1fr); }
  /* Connector between steps: a short line with a head, centred on the visuals. */
  .flow__step:not(:last-child)::after {
    content: ""; position: absolute; top: 134px; right: -26px; width: 20px; height: 20px;
    border-top: 2.5px solid #2aa9e6; border-right: 2.5px solid #2aa9e6;
    transform: translateY(-50%) rotate(45deg); z-index: 1;
  }
}

.term {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 12px; background: #121214;
  box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 24px 48px -24px rgb(0 0 0 / .55);
}
.term__bar, .code__bar {
  position: relative; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; flex: none;
  background: #1c1c1f; color: #8b8b90; font: 500 .75rem / 1 var(--sans);
}
.term__bar i, .code__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3d; }
.term__bar span, .code__bar span { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.term__body {
  margin: 0; padding: 14px 16px; flex: 1;
  color: #e6e6e6; font: 400 .8125rem / 1.6 var(--mono); white-space: pre-wrap; overflow: hidden;
}
.term__body b { color: #fff; font-weight: 600; }
.t-dim { color: #8c8c8c; }
.t-ask { color: var(--ask); }
.t-ok { color: var(--ok); }
.t-rule { display: block; height: 2px; margin: 2px 0 8px; background: var(--ask); }

.flow__phone { display: flex; align-items: center; justify-content: center; }
.flow__phone img {
  width: calc(100% - 16px); border-radius: 4.4% / 9.6%; background: #000;
  box-shadow: 0 0 0 7px #0b0b0c, 0 0 0 8px #2a2a2d, 0 30px 70px -18px rgb(245 166 36 / .6);
}

.facts {
  display: grid; gap: 28px 40px; margin: 80px 0 0;
  padding-top: 36px; box-shadow: inset 0 1px 0 #d2d2d7;
}
.facts dd { margin: 6px 0 0; font-size: 1.0625rem; line-height: 1.55; }
.facts dt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.dot--ask { background: var(--ask); }
.dot--ok { background: #2fbf63; }
.dot--ice { background: #2aa9e6; }

/* ---------- Scene 3: the panel (graphite with the screen's blue light) ---------- */
.panel {
  background:
    radial-gradient(55% 38% at 50% 34%, rgb(89 199 250 / .16), transparent 70%),
    radial-gradient(40% 30% at 80% 80%, rgb(77 217 120 / .07), transparent 70%),
    var(--graphite);
  color: var(--ink-2-graphite);
}
.panel h2, .panel h3 { color: #f5f5f7; }
.panel__shot { max-width: 980px; margin: 64px auto 0; }
.panel__shot img {
  width: 100%; border-radius: 4.4% / 9.6%; background: #000;
  box-shadow: 0 0 0 10px #050506, 0 0 0 11px #2c2c30, 0 50px 120px -30px rgb(89 199 250 / .45);
}

.bento { list-style: none; padding: 0; margin: 96px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.b {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  grid-column: span 6; padding: 26px 26px 0; border-radius: 16px;
  background: #17171a; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
  isolation: isolate;
}
.b::before {                 /* each tile carries the colour of what it shows */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 60% at 50% 0%, var(--tint, rgb(89 199 250 / .12)), transparent 70%);
}
.b h3 { font-size: 1.1875rem; line-height: 1.5rem; }
.b p { margin-top: 6px; font-size: 1rem; line-height: 1.5; max-width: 32em; }
.b picture { margin-top: auto; padding-top: 24px; }
.b img { width: 100%; border-radius: 12px 12px 0 0; }
.b--chat { --tint: rgb(89 199 250 / .14); }
.b--todo { --tint: rgb(77 217 120 / .14); }
.b--gallery { --tint: rgb(255 255 255 / .07); }
@media (min-width: 640px) {
  .b { grid-column: span 3; }
  .b--chat, .b--gallery { grid-column: span 6; }
}
@media (min-width: 1000px) {
  .b--chat { grid-column: span 4; }
  .b--todo, .b--dial, .b--sys, .b--media { grid-column: span 2; }
  .b--gallery { grid-column: span 6; }
}

/* ---------- Scene 4: privacy and the exact change to Claude Code ---------- */
.trust__grid { display: grid; gap: 56px 72px; align-items: center; }
@media (min-width: 980px) { .trust__grid { grid-template-columns: 5fr 7fr; } }
.trust__lead { margin-top: 24px; color: var(--ink-on-light); font-size: clamp(1.1875rem, 1.05rem + .4vw, 1.375rem); line-height: 1.5; }
.checks { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; font-size: 1.0625rem; line-height: 1.55; }
.checks li::before {         /* green check, drawn */
  content: ""; position: absolute; left: 4px; top: .3em; width: 7px; height: 13px;
  border-right: 2.5px solid #1f9d55; border-bottom: 2.5px solid #1f9d55; transform: rotate(45deg);
}

.code { margin: 0; }
.code > div, .code pre { background: #141416; }
.code__bar { border-radius: 14px 14px 0 0; }
.code__body {
  margin: 0; padding: 22px 24px 26px; border-radius: 0 0 14px 14px;
  color: #dcdcdc; font: 400 .875rem / 1.7 var(--mono);
  white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: 0 40px 80px -36px rgb(0 0 0 / .5);
}
.c-k { color: #8fd3ff; }
.c-s { color: #f5c46b; }
.c-n { color: #7ee2a1; }
.code figcaption { margin-top: 18px; font-size: 1rem; line-height: 1.55; }

/* ---------- Scene 5: get started ---------- */
.start {
  background: radial-gradient(50% 60% at 85% 0%, rgb(89 150 220 / .16), transparent 70%), var(--night);
  color: var(--ink-2-on-dark);
}
.steps3 { list-style: none; padding: 0; margin: 56px 0 0; display: grid; gap: 40px 40px; counter-reset: s; }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps3 li { counter-increment: s; padding-top: 28px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .14); }
.steps3 li::before {
  content: counter(s); display: block; margin-bottom: 14px;
  color: var(--ice); font: 700 2.5rem / 1 var(--sans); font-variant-numeric: tabular-nums;
}
.steps3 p { margin-top: 8px; font-size: 1.0625rem; line-height: 1.55; }
.start__dl { margin-top: 64px; }

.home .foot { margin-top: 0; padding-top: 40px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }
