/* Launch Lantern: the homepage prototype's variant A "Call it now" (docs/spec/website.md#visual-direction).
   System fonts only, one wide column, full-width sections separated by a hairline. Works from 360px wide. */

:root {
  --bg: #0f1218;
  --panel: #171c25;
  --ink: #eef1f6;
  --mute: #9aa4b5;
  --line: #262d3a;
  --amber: #ffb340;
  --on-amber: #1a1205;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; }

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.bar { position: relative; display: flex; align-items: center; gap: 20px; min-height: 64px; }
.mark { font-weight: 800; letter-spacing: -.02em; font-size: 20px; text-decoration: none; white-space: nowrap; }
.mark span { color: var(--amber); }
.nav { display: flex; gap: 18px; margin-left: auto; color: var(--mute); font-size: 15px; }
.nav a, .menu nav a { text-decoration: none; }
.nav a:hover, .menu nav a:hover { color: var(--ink); text-decoration: underline; }
.tel { color: var(--amber); font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
.tel:hover { text-decoration: underline; }
.menu { display: none; }

.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--mute); }

/* Sections */
main section + section { border-top: 1px solid var(--line); }
.hero { padding: 88px 20px 72px; text-align: center; }
.band { padding: 64px 20px; }
h1 { font-size: clamp(32px, 6vw, 60px); line-height: 1.08; margin: 14px auto 18px; max-width: 18ch; letter-spacing: -.03em; }
h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; }
.band > p, .band > ul { max-width: 64ch; }
.mute, .lede { color: var(--mute); }
.lede { max-width: 52ch; margin: 0 auto; font-size: 19px; }
.eyebrow { color: var(--amber); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; margin: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: #3a2a0f; color: var(--amber); margin: 0 0 12px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.band .actions, .actions.start { justify-content: flex-start; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Home with the demo line on: the demo number in an outlined amber call button, the largest thing on the page */
.call {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--amber);
  border-radius: 14px;
  padding: 14px clamp(14px, 4vw, 28px);
  color: var(--amber);
  text-decoration: none;
}
.call span { font-size: 15px; font-weight: 600; color: var(--ink); }
/* Bigger than the h1 and the price (.amount) at every width, and still on one line at 360px. */
.call b { font-size: clamp(34px, 9.5vw, 72px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.call:hover { background: #2b1f0a; }
.under-call { color: var(--mute); font-size: 15px; max-width: 52ch; margin: 14px auto 0; }

/* Home: the evening timeline */
.clock { list-style: none; margin: 0; background: var(--panel); border-radius: 14px; padding: 22px; font-size: 15px; }
.clock li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.clock li:last-child { border: 0; }
.clock b { color: var(--amber); min-width: 70px; }

/* Home: how it works, numbered from the list's order */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 0; }
.step { background: var(--panel); border-radius: 14px; padding: 20px; font-size: 15px; counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); color: var(--amber); font-weight: 800; font-size: 13px; }
.step h3 { margin: 6px 0; font-size: 18px; }
.step p { margin: 0; color: var(--mute); }

/* Home: the fictional example, drawn as a phone (text only) */
.phone { background: #0a0d12; border: 1px solid var(--line); border-radius: 22px; padding: 18px; max-width: 380px; }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bub { padding: 9px 13px; border-radius: 14px; margin: 7px 0; max-width: 85%; font-size: 14.5px; line-height: 1.45; }
.bub.ai { background: #232a37; }
.bub.me { background: var(--amber); color: var(--on-amber); margin-left: auto; }
.sys { text-align: center; color: var(--mute); font-size: 12px; margin: 12px 0 4px; }

/* Cards: what's always true, what you get */
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 0; max-width: none; }
.facts li { border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 15px; }
.facts b { display: block; margin-bottom: 4px; }

/* The price */
.amount { font-size: clamp(30px, 8vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 6px; }
.terms { padding-left: 18px; color: var(--mute); margin: 0; }
.terms li + li { margin-top: 8px; }

/* Home: we're new */
.new { background: linear-gradient(135deg, #2b1f0a, var(--panel)); border-radius: 18px; padding: 40px; text-align: center; }
.new p { max-width: 56ch; margin: 10px auto 0; color: var(--mute); }

/* The legal pages: Markdown in one readable column */
.legal { max-width: 76ch; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 12px; max-width: none; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal h3 { font-size: 18px; margin: 24px 0 6px; }
.legal p, .legal li { color: #d5dae3; }
.legal li + li { margin-top: 6px; }
.legal .version { color: var(--amber); font-weight: 600; margin: 0 0 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--mute); font-size: 14px; }
.site-footer p { margin: 0 0 10px; max-width: 60ch; }
.identity { font-style: normal; margin: 0 0 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 14px; }

/* Mobile: the nav folds into a menu; the number and Get started stay visible. */
@media (max-width: 760px) {
  .bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "mark menu" "tel get-started";
    gap: 10px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .split, .steps, .facts { grid-template-columns: 1fr; }
  .new { padding: 28px 20px; }
  .mark { grid-area: mark; }
  .nav { display: none; }
  .menu { display: block; grid-area: menu; }
  .tel { grid-area: tel; }
  .bar > .btn { grid-area: get-started; }
  .menu summary {
    cursor: pointer;
    list-style: none;
    padding: 8px 12px;
    border: 1px solid var(--mute);
    border-radius: 8px;
    font-size: 15px;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::after { content: " \25BE"; }
  .menu[open] summary::after { content: " \25B4"; }
  .menu nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
  }
  .menu nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
}
