/* lydianlabs.ai: page-specific styles for the product overview (/) and the
   argument page (/platform).
   Colours, type, buttons, header, footer and cards come from shared/theme.css. */

h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: 0; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--text-dim); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.site-footer { margin-top: 88px; }
/* The shared footer caps columns at 400px, which is a few pixels short of the
   one-line note here and pushed its last word onto a second line. */
.footer-row > .footer-notes { align-items: flex-end; text-align: right; max-width: none; }

/* ---------- Overview (/) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; padding: 64px 0 72px; }
.hero .eyebrow { margin-bottom: 14px; }
.hero .lede { margin: 22px 0 30px; }

/* The example exchange */
.answer { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--accent-dim); font-size: 15px; }
.answer > * { padding: 16px 20px; }
.answer .asked { background: var(--accent-dim); border-radius: 9px 9px 0 0; font-weight: 500; }
.answer .choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); color: var(--text-dim); }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 12px; color: var(--text-dim); }
.chip.on { border-color: var(--btn-bg); color: var(--on-accent); background: var(--btn-bg); font-weight: 600; }
.answer .said strong { font-weight: 700; color: var(--accent-2); }
.method { border-top: 1px solid var(--line); }
.method p { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.method dl { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 7px 14px; font-size: 14px; }
.method dt { color: var(--text-dim); }
.method dd { margin: 0; }
.method code { font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; color: var(--accent-2); }
.cap { margin: 18px 0 0; font-size: 13px; color: var(--text-dim); }

.three { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 64px; padding: 56px 0; border-top: 1px solid var(--line); }
.three p { margin: 10px 0 0; color: var(--text-dim); }
.fits { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.fits p { color: var(--text-dim); margin: 14px 0 0; max-width: 30em; }
.fits dl { margin: 0; }
.fits dl div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fits dl div:first-child { padding-top: 0; }
.fits dt { font-weight: 600; }
.fits dd { margin: 0; color: var(--text-dim); }
.close { padding: 56px 0 0; border-top: 1px solid var(--line); }
.close p { color: var(--text-dim); max-width: 38em; margin: 14px 0 26px; }

/* ---------- Argument page (/platform) ---------- */
.col { max-width: 44rem; }
.intro { padding: 64px 0 8px; }
.intro h1 { max-width: 15em; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.72; margin: 0 0 1.05em; color: var(--text-soft); }
.prose .lede { margin: 26px 0 30px; color: var(--text-dim); }
.ask { font-family: var(--font-display); font-size: 1.32rem; font-weight: 500; line-height: 1.4; border-left: 3px solid var(--accent-2); padding: 4px 0 4px 20px; margin: 30px 0; max-width: 30em; }
main > section { padding-top: 64px; }
main > section > h2 { margin-bottom: 22px; max-width: 22em; }

/* Seven decisions, made two ways */
.ledger { margin: 34px 0 26px; border-top: 2px solid var(--accent); }
.ledger .head, .ledger .row { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) minmax(0, 1fr); }
.ledger .head > * { padding: 12px 18px 12px 0; font-weight: 600; font-size: 15px; }
.ledger .head > :last-child, .ledger .row > :last-child { background: var(--accent-dim); padding-left: 18px; }
.ledger .head > :last-child { color: var(--accent); }
.ledger .row { border-top: 1px solid var(--line); }
.ledger .row > * { padding: 16px 18px 16px 0; margin: 0; font-size: 15.5px; line-height: 1.5; }
.ledger .q { font-weight: 600; }
.ledger .a { color: var(--text-dim); }
.ledger .mob { display: none; }
.after { font-family: var(--font-display); font-size: 1.22rem; font-weight: 500; max-width: 30em; }

/* How a question becomes an answer */
/* On a phone the diagram would shrink until its labels are unreadable, so it
   keeps a readable size and scrolls sideways inside its own box instead. */
.flow-scroll { margin: 30px 0 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flow { width: 100%; min-width: 720px; height: auto; display: block; }
.flow text { font-family: var(--font-display); fill: var(--text); }
.flow .sub { fill: var(--text-dim); }
.flow .box { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.flow .box-on { fill: var(--btn-bg); stroke: var(--btn-bg); stroke-width: 1.5; }
.flow .arrow { fill: none; stroke: var(--text-dim); stroke-width: 1.5; }
.flow .library { fill: var(--panel); stroke: var(--line); stroke-width: 1; }
.flow .on-accent { fill: var(--on-accent); }
.flow .on-accent-dim { fill: var(--on-accent); opacity: 0.75; }

.problem { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 40px; }
.problem:last-child { border-bottom: 1px solid var(--line); }
.problem h3 { font-size: 1.3rem; }
.problem p { font-size: 1.02rem; line-height: 1.66; margin: 0 0 0.9em; color: var(--text-soft); }
.problem p:last-child { margin: 0; }
.problem .now { color: var(--text-dim); }
.cost { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cost li { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.5; margin: 0; }
.cost b { font-weight: 600; color: var(--text); }
.cost span { color: var(--text-dim); }
.alts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 48px; margin-top: 8px; }
.alts p { margin: 8px 0 0; color: var(--text-dim); font-size: 1rem; }
.end { margin-top: 72px; padding: 40px 36px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.end h2 { max-width: 18em; }
.end p { max-width: 38em; margin: 16px 0 26px; color: var(--text-dim); }

/* ---------- Demo access (/access) ---------- */
.access { max-width: 34rem; padding: 64px 0 0; }
.access h1 { font-size: clamp(32px, 3.6vw, 44px); }
.access .lede { margin: 18px 0 28px; font-size: 1.1rem; }
.access-card { display: flex; flex-direction: column; gap: 18px; }
.access-card[hidden] { display: none; }
.access-card form { display: flex; flex-direction: column; gap: 18px; }
.access-card .btn { align-self: flex-start; }
.access-card .btn:disabled { opacity: 0.6; cursor: default; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--text-dim); }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: inherit;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field .code-input { font-family: var(--font-mono); font-size: 1.6rem; letter-spacing: 0.18em; max-width: 12rem; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 14px; color: var(--text-dim); min-height: 1.4em; }
.form-note.is-error { color: var(--accent); font-weight: 500; }
.privacy { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-dim); }
.sent { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.ideas { margin: 28px 0 0; color: var(--text-dim); }
.quiet-actions { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.link-btn { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 14px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:disabled { color: var(--text-dim); text-decoration: none; cursor: default; }

@media (max-width: 860px) {
  .hero, .fits { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .three { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { padding-top: 40px; }
  .fits dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .answer { box-shadow: 5px 5px 0 var(--accent-dim); }
  .ledger .head { display: none; }
  .ledger .row { grid-template-columns: minmax(0, 1fr); padding: 14px 0; }
  .ledger .row > * { padding: 4px 0; }
  .ledger .row > :last-child { padding: 10px 14px; margin-top: 6px; border-radius: 6px; }
  .ledger .mob { display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
  .problem, .cost li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .alts { grid-template-columns: minmax(0, 1fr); }
  .end { padding: 30px 22px; }
  .intro { padding-top: 40px; }
}

@media (max-width: 760px) {
  .actions .btn { flex: 1 1 auto; }
  .access { padding-top: 40px; }
  .access-card .btn { align-self: stretch; }
  .footer-row > .footer-notes { align-items: flex-start; text-align: left; }
}

.form-note:empty { display: none; }
