/* The front page's own parts (14 Nov 2026). The shared look is in base.css, loaded before this. */

/* Opening: the headline, one line and the button come first, with room around them. The demonstration follows:
   beside the words on a computer, under them on a phone, where its top shows on the first screen. */
.hero { --hx: clamp(20px, 5vw, 72px); --hy: clamp(32px, 6svh, 56px); box-sizing: border-box; max-width: calc(1240px + 2 * var(--hx)); margin: 0 auto; display: grid; gap: 36px; padding: var(--hy) var(--hx) 48px; }
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.hero h1 { font-size: clamp(42px, 12vw, 56px); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--slate); max-width: 34ch; }
.acts { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 6px; }

.demo { background: #fff; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(17, 21, 32, .35), 0 0 0 1px rgba(17, 21, 32, .06); overflow: hidden; display: flex; flex-direction: column; width: 100%; max-width: 560px; }
.demo-top { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid #ECE7DF; font-size: 15px; color: var(--mist); }
.demo-body { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.chat { display: grid; gap: 16px; }
.q { justify-self: end; background: var(--navy); color: var(--paper); padding: 10px 14px; border-radius: 18px 18px 4px 18px; font-size: 16px; max-width: 85%; }
.a { position: relative; overflow: hidden; background: #F6F3EE; border-radius: 18px 18px 18px 4px; padding: 12px 14px; font-size: 17px; line-height: 1.45; }
.who { display: block; font-size: 14px; font-weight: 700; color: var(--mist); margin-bottom: 4px; }
mark.fig { background: #FDE68A; color: inherit; font-weight: 700; border-radius: 6px; padding: 0 3px; }
.scan { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(252, 211, 77, .35), transparent); transform: translateX(-110%); pointer-events: none; }
.flag { justify-self: start; font-size: 16px; color: var(--slate); background: #FFF6DA; border: 1px solid #F3DB8E; padding: 6px 12px; border-radius: 999px; }
.verdict { width: calc(100% + 28px); margin: 0 -14px -14px; }
.ls { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--slate); margin-bottom: 10px; }
.ls .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(252, 211, 77, .25); }
/* Where the verdict lands: until it does, the space says LiveScope is reading, so the chat never shows an empty gap. */
.shot { display: block; position: relative; overflow: hidden; background: #F6F3EE; }
.shot::before { content: "LiveScope is reading the answer"; position: absolute; inset: 0; display: grid; place-items: center; padding: 0 20px; text-align: center; font-size: 16px; font-weight: 600; color: var(--mist); }
.shot img { position: relative; width: 100%; height: auto; }

/* Computer: words on the left, the demonstration on the right, the pair centred in the first screen. The
   demonstration narrows on a short window so the verdict at its foot is never cut off. */
@media (min-width: 900px) {
  .hero { --hy: clamp(36px, 6svh, 72px); --chat: 400px; min-height: calc(100svh - var(--sp-top)); grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; column-gap: clamp(40px, 6vw, 96px); padding-bottom: var(--hy); }
  .hero-copy { gap: 22px; }
  .hero h1 { font-size: clamp(48px, 5.6vw, 84px); }
  .lede { font-size: 21px; }
  .acts { margin-top: 10px; }
  .demo { justify-self: end; width: min(100%, 560px, max(360px, calc(44px + (100svh - var(--sp-top) - 2 * var(--hy) - var(--chat)) * 1.586))); }
  .demo-top { padding: 13px 20px; }
  .demo-body { gap: 16px; padding: 22px; }
  .q { font-size: 17px; padding: 12px 18px; }
  .a { font-size: 20px; padding: 16px 18px 18px; }
  .flag { padding: 8px 14px; }
  .verdict { width: 100%; margin: 4px 0 0; }
  .ls { display: flex; }
  .shot { border-radius: 16px; }
  .shot::before { content: "Reading the answer"; font-size: 17px; }
  .shot img { border-radius: 16px; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .hero { --hy: 32px; --chat: 350px; }
  .demo { width: min(100%, 560px, max(360px, calc(32px + (100svh - var(--sp-top) - 2 * var(--hy) - var(--chat)) * 1.586))); }
  .demo-top { padding: 9px 16px; }
  .demo-body { gap: 12px; padding: 16px; }
  .chat { gap: 12px; }
  .q { font-size: 15px; padding: 8px 14px; }
  .a { font-size: 17px; padding: 12px 14px 14px; }
  .flag { font-size: 14px; padding: 5px 12px; }
  .ls { font-size: 14px; margin-bottom: 8px; }
}

/* The loop: the answer writes, LiveScope scans, flags the figure, the verdict rises over the line that says it is reading.
   It starts on the finished verdict, plays three times and then rests there (nothing loops forever at the top). */
@media (prefers-reduced-motion: no-preference) {
  .w { opacity: 0; animation: wIn 11s 2.94 forwards; }
  .w2 { animation-name: wIn2; } .w3 { animation-name: wIn3; } .w4 { animation-name: wIn4; }
  .fig { animation: wIn2 11s 2.94 forwards, figHi 11s 2.94 forwards; }
  .scan { animation: scan 11s 2.94 forwards var(--ease); }
  .flag { animation: flagIn 11s 2.94 forwards var(--ease); }
  .shot img { animation: vIn 11s 2.94 forwards var(--ease); }
  .ls .dot { animation: pulse 1.6s 16; }
  .w, .fig, .scan, .flag, .shot img { animation-delay: -6.9s; }
}
@keyframes wIn  { 0%, 3% { opacity: 0 } 7%, 94% { opacity: 1 } 100% { opacity: 0 } }
@keyframes wIn2 { 0%, 9% { opacity: 0 } 13%, 94% { opacity: 1 } 100% { opacity: 0 } }
@keyframes wIn3 { 0%, 15% { opacity: 0 } 19%, 94% { opacity: 1 } 100% { opacity: 0 } }
@keyframes wIn4 { 0%, 21% { opacity: 0 } 25%, 94% { opacity: 1 } 100% { opacity: 0 } }
@keyframes figHi { 0%, 40% { background: transparent } 46%, 94% { background: #FDE68A } 100% { background: transparent } }
@keyframes scan { 0%, 28% { transform: translateX(-110%) } 44% { transform: translateX(310%) } 100% { transform: translateX(310%) } }
@keyframes flagIn { 0%, 44% { opacity: 0; transform: translateY(8px) } 50%, 94% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes vIn { 0%, 52% { opacity: 0; transform: translateY(26px) } 60%, 94% { opacity: 1; transform: none } 100% { opacity: 0; transform: none } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(252, 211, 77, 0) } }

/* Every AI response leaves a pattern: the real panel, and three examples to pick from */
.pattern { display: grid; gap: 48px; max-width: 1200px; margin: 0 auto; align-items: center; }
@media (min-width: 900px) { .pattern { grid-template-columns: 1.1fr .9fr; gap: 80px; } }
.pattern-copy > p { margin-top: 20px; font-size: 20px; color: var(--slate); max-width: 32ch; }
.names { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }
.pattern-copy .small-line { margin-top: 14px; font-size: 17px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.pick-b { min-height: 46px; padding: 0 17px; border: 1.5px solid rgba(17, 21, 32, .28); border-radius: 999px; background: transparent; color: var(--navy); font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pick-b:hover { border-color: var(--navy); }
.pick-b.is-on { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.pattern-copy .pick-note { margin-top: 12px; font-size: 16px; }
.pick-ex { margin-top: 18px; display: grid; gap: 8px; max-width: 420px; }
.pattern-copy .pick-ex p { margin: 0; max-width: none; font-size: 16px; line-height: 1.45; }
.pattern-copy .pick-ex .pick-q { justify-self: end; background: var(--navy); color: var(--paper); padding: 9px 14px; border-radius: 16px 16px 4px 16px; }
.pattern-copy .pick-ex .pick-a { background: #fff; color: var(--navy); padding: 11px 14px; border-radius: 16px 16px 16px 4px; box-shadow: 0 0 0 1px rgba(17, 21, 32, .06); }
.panel { position: relative; margin: 0; justify-self: center; width: min(100%, 380px); aspect-ratio: 952 / 1824; }
.panel img { position: absolute; left: 0; top: 0; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 40px 80px -36px rgba(17, 21, 32, .5); opacity: 0; transition: opacity .4s ease; }
.panel[data-k="amber"] img[data-k="amber"], .panel[data-k="red"] img[data-k="red"], .panel[data-k="green"] img[data-k="green"] { opacity: 1; }

/* Held: three reads */
.reads { background: var(--band); }
.reads .as-line { margin: 16px 0 26px; color: var(--slate); max-width: 34ch; }
.reads .sp-as-steps b { font-size: 20px; }
.reads .sp-as-steps span { font-size: 17px; }
.reads .sp-as-frame { --sp-site-ground: #fff; background: #fff; border-radius: 20px; }
.reads .sp-as-site { gap: 14px; padding: clamp(16px, 2.4vw, 30px); }
.pc-answer { background: #F6F3EE; border-radius: 16px; padding: 16px 18px; font-size: 18px; }
.pc-who { font-size: 14px; font-weight: 700; color: var(--mist); }
.pc-verdicts { display: flex; flex-wrap: wrap; gap: 8px; background: var(--navy); border-radius: 16px; padding: 16px; }
.v { font-weight: 800; font-size: 17px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.v-g { color: var(--green); } .v-a { color: var(--amber); box-shadow: inset 0 0 0 1.5px rgba(252, 211, 77, .7); } .v-r { color: var(--red); }
.pc-tool { display: grid; gap: 2px; border-radius: 16px; padding: 16px 20px; background: var(--navy); }
.pc-tool b { font-size: 20px; }
.pc-tool span { color: #A6AEBC; font-size: 17px; }
.pc-num b { color: var(--amber); } .pc-coach b { color: var(--green); }

/* Ways to keep going */
.deeper { max-width: 1240px; margin: 0 auto; }
.deeper .head p { margin-top: 16px; color: var(--slate); font-size: 20px; }
.cards { margin-top: 36px; display: grid; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: 1.15fr 1fr 1fr; grid-template-rows: auto auto; } .card-book { grid-row: span 2; } }
.card-book { background: var(--navy); color: var(--paper); padding: 0; overflow: hidden; }
.card-book img { width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #0B0E17; padding: 32px 0 0; box-sizing: border-box; }
.card-book .card-text { display: grid; gap: 6px; padding: 24px 28px 30px; }
.card-book .card-text span { color: #C9CED8; }
.card-news .field-row { margin-top: auto; padding-top: 8px; }
.card-news .quiet { padding: 4px 0 0; font-size: 16px; align-self: start; }

/* Mission */
.mission { max-width: 1100px; margin: 0 auto; }
.mis-quote { margin: 0; }
.mis-quote blockquote { margin: 0; }
.mis-quote p { font-size: clamp(38px, 5.6vw, 76px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
.points { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 0; }
@media (min-width: 800px) { .points { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.points li { padding: 22px 0; border-top: 1px solid var(--line); font-size: 20px; font-weight: 600; }

/* Close */
.close { text-align: center; background: var(--card); }
.close > div { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: 22px; }
.close p { font-size: 20px; color: var(--slate); }
.close .note { font-size: 17px; }

/* The held scene: no made-up browser bar, no 01-04 numbering (these are four things LiveScope shows, not steps
   to follow), a shorter hold, and the two tools side by side so the finished frame is short enough to see whole. */
.reads .sp-as-bar { display: none; }
.reads .sp-as-steps li { grid-template-columns: 1fr; }
.reads .sp-as-steps li::before { content: none; }
section.reads.sp-on { padding-top: 0; padding-bottom: 0; height: calc((var(--sp-n, 4) * 46 + 40) * 1svh); }
.reads .sp-as-site { grid-template-columns: 1fr 1fr; }
.reads .pc-answer, .reads .pc-verdicts { grid-column: 1 / -1; }
.reads .pc-tool b { white-space: nowrap; }

/* Computer: the frame in the held scene is big enough to fill its side of the screen. */
@media (min-width: 900px) {
  .reads .sp-as-site { gap: 16px; padding: 30px; }
  .pc-answer { font-size: 21px; padding: 20px 24px; }
  .pc-verdicts { gap: 10px; padding: 20px; }
  .v { font-size: 19px; padding: 10px 18px; }
  .pc-tool { padding: 20px 24px; }
  .pc-tool b { font-size: 23px; }
  .pc-tool span { font-size: 18px; }
}

/* Phone: the held scene fits between the top bar and the docked button. */
@media (max-width: 899px) {
  section.reads.sp-on { padding-left: 4px; padding-right: 4px; }
  section.reads.sp-on .sp-as-stage { padding-top: 14px; padding-bottom: 132px; gap: 14px; }
  /* The scene's script narrows the frame when it is too tall, which on a phone only makes it taller. */
  section.reads .sp-as-frame { max-width: none !important; }
  .reads .as-line { margin: 8px 0 10px; font-size: 16px; line-height: 1.45; }
  .reads.sp-on .sp-as-steps { min-height: 4.2em; }
  .reads .sp-as-steps b { font-size: 18px; }
  .reads .sp-as-steps span { font-size: 15px; }
  .reads .sp-as-site { gap: 10px; padding: 14px; }
  .pc-answer { padding: 12px 14px; font-size: 15px; }
  .pc-who { font-size: 13px; }
  .pc-verdicts { gap: 6px; padding: 12px; }
  .v { font-size: 14px; padding: 6px 11px; }
  .pc-tool { padding: 12px 14px; }
  .pc-tool b { font-size: 15px; }
  .pc-tool span { font-size: 14px; }
  .close .btn { font-size: 17px; padding: 0 20px; white-space: nowrap; }
}
/* Short phones: one line fewer above the frame, and the tools keep their names only. */
@media (max-width: 899px) and (max-height: 700px) {
  .reads.sp-on .as-line { display: none; }
  .reads.sp-on .pc-tool span { display: none; }
  .reads.sp-on .sp-as-steps { min-height: 3.8em; }
}
/* Too short to hold anything (a phone on its side): the scene is shown whole and still. */
@media (max-width: 899px) and (max-height: 579px) {
  section.reads.sp-on { height: auto; padding: 56px 4px; }
  section.reads.sp-on .sp-as-stage { position: static; min-height: 0; padding-top: 0; padding-bottom: 0; }
  .reads.sp-on .as-line { display: block; }
  .reads.sp-on .sp-as-steps { display: grid; min-height: 0; }
  .reads.sp-on .sp-as-steps li { position: static; visibility: visible; opacity: 1; padding: 10px 0; border-top: 1px solid var(--p-line); }
  .reads.sp-on .sp-as-piece { opacity: 1 !important; transform: none !important; }
  .reads.sp-on .pc-tool span { display: block; }
  .reads.sp-on .sp-as-site::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .panel img { transition: none; } }
