/* home-sections.css -- everything below the landing page's navy opening. Split from
   home.css by responsibility (hero vs sections); same tokens, same rules. */

/* Shared section furniture. */
.sec { padding-top: 112px; }
.sec-head { max-width: 760px; }
.sec h2 { font-weight: 700; font-size: clamp(2.2rem, 4.8vw, 3.75rem); line-height: .98; letter-spacing: -.02em; }
.sec-head p { margin: 18px 0 0; max-width: 58ch; font-size: 17px; color: var(--ink-85); }

/* Feature rows: copy on one side, a working-looking specimen on the other,
   sides alternating. Separated by rules, not boxed into cards. */
.feat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.sec-head + .feat { margin-top: 56px; }
.feat-copy { grid-column: 1 / span 5; }
.feat-spec { grid-column: 7 / span 6; }
.feat.flip .feat-copy { grid-column: 8 / span 5; order: 2; }
.feat.flip .feat-spec { grid-column: 1 / span 6; order: 1; }
.feat h3 { font-size: clamp(1.7rem, 2.9vw, 2.35rem); line-height: 1.04; letter-spacing: -.015em; }
.feat-copy p { margin: 16px 0 0; max-width: 48ch; font-size: 16.5px; color: var(--ink-85); }
.spec { margin: 0; border: 1px solid var(--line); background: var(--bg); }
.spec .live-bar { min-height: 36px; }

/* Conversation timeline. Outbound entries carry the accent-300 border the
   product's own timeline uses, and sit inset from the right. */
.tl { padding: 16px 14px 18px; display: grid; gap: 10px; }
.tl-item { max-width: 86%; padding: 9px 12px 10px; border: 1px solid var(--line); }
.tl-item.out { justify-self: end; border-color: #94bce3; background: var(--sel); }
.tl-item.note { max-width: 100%; border-style: dashed; background: var(--surface); }
.tl-k { display: flex; flex-wrap: wrap; gap: 4px 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-70); }
.tl-k b { font-weight: 600; color: var(--navy-2); }
.tl-item p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); }

/* Shadow-mode log. */
.modes { display: inline-flex; margin-left: auto; border: 1px solid var(--line); }
.modes span { padding: 2px 9px; font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: .05em; color: var(--ink-74); border-left: 1px solid var(--line); }
.modes span:first-child { border-left: 0; }
.modes .on { background: var(--fill); color: var(--bg); }
.log { margin: 0; padding: 0; list-style: none; }
.log li { display: grid; grid-template-columns: 46px 86px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; margin: 0; padding: 11px 14px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink); }
.log li:first-child { border-top: 0; }
.log time, .log .held { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-70); font-variant-numeric: tabular-nums; }
.log .ws { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .03em; color: #7d520f; }
.log .what { min-width: 0; }
.log.run li { grid-template-columns: 70px 96px minmax(0, 1fr) auto; }
.log .what small { display: block; font-size: 12.5px; color: var(--ink-74); }

/* A feature that is not built yet: dashed, labelled, no specimen. */
.soon { margin-top: 8px; padding: 22px 24px; border: 1px dashed var(--ink-70); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 24px; align-items: baseline; }
.soon b { font-family: var(--mono); font-size: 12px; font-weight: 600; color: #7d520f; white-space: nowrap; }
.soon p { margin: 0; max-width: 70ch; font-size: 16.5px; color: var(--ink-85); }
.soon strong { font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--ink); }

/* Ledger: a plain list of what is in the app, or which devices it runs on. */
.ledger { margin: 44px 0 0; border-top: 1px solid var(--ink); }
.ledger div { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-family: var(--head); font-weight: 600; font-size: 20px; }
.ledger dd { margin: 0; font-size: 16px; color: var(--ink-85); }
.ledger .st { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-74); text-align: right; }
.ledger .st.ok { color: #2f5439; }
/* A second navy band (safety) sits between light sections and needs their gap. */
.band { margin-top: 112px; }
.ledger + .soon { margin-top: 44px; }
.after { margin: 22px 0 0; max-width: 60ch; font-size: 17px; color: var(--ink-85); }

/* Whose accounts, whose decisions: two statements split by one rule. */
.own { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; border-top: 1px solid var(--ink); }
.own > div { padding: 34px 44px 0 0; }
.own > div + div { padding: 34px 0 0 44px; border-left: 1px solid var(--line); }
.own h3 { font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -.02em; }
.own p { margin: 14px 0 0; max-width: 46ch; font-size: 16.5px; color: var(--ink-85); }

/* Closing: the ask on the left, plain facts about it on the right. The beta
   notice (verbatim) follows full-width, as the start of the footer. */
.close { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.close-ask { grid-column: 1 / span 6; }
.close-ask p { margin: 18px 0 0; max-width: 48ch; font-size: 17px; color: var(--ink-85); }
.close-ask .btn { margin-top: 28px; height: 50px; padding: 0 26px; font-size: 17.5px; }
.facts { grid-column: 8 / span 5; margin: 10px 0 0; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top-color: var(--ink); }
.facts dt { font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-74); }
.facts dd { margin: 4px 0 0; font-size: 17px; color: var(--ink); }
.facts a { font-family: var(--mono); font-size: 15.5px; font-weight: 500; user-select: all; }
.foot-notice { max-width: none; margin-top: 96px; }
.foot-notice p { max-width: 76ch; }
.plate { margin-top: 40px; }
.plate-k { font-size: 11px; }
.colophon { max-width: 76ch; }

@media (max-width: 1040px) {
  /* A 12-track grid's gaps alone are wider than a phone; collapse to one track. */
  .feat, .close { grid-template-columns: minmax(0, 1fr); }
  .feat-copy, .feat.flip .feat-copy { grid-column: 1 / -1; order: 1; }
  .feat-spec, .feat.flip .feat-spec { grid-column: 1 / -1; order: 2; margin-top: 28px; }
  .feat { padding: 48px 0; }
  .close-ask, .facts { grid-column: 1 / -1; }
  .facts { margin-top: 40px; }
}
@media (max-width: 720px) {
  .sec { padding-top: 80px; }
  .band { margin-top: 80px; }
  .soon { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .ledger div { grid-template-columns: minmax(0, 1fr); }
  .ledger .st { text-align: left; }
  .log li { grid-template-columns: 46px minmax(0, 1fr); }
  .log.run li { grid-template-columns: 70px minmax(0, 1fr); }
  .log .ws { grid-column: 2; grid-row: 1; }
  .log .what, .log .held { grid-column: 1 / -1; }
  .own { grid-template-columns: 1fr; }
  .own > div, .own > div + div { padding: 28px 0 0; border-left: 0; }
  .own > div + div { margin-top: 28px; border-top: 1px solid var(--line); }
  /* site.css's plate assumes one row of cells; on a phone make it a 2x2 with
     top rules so no cell is indented behind a stray vertical rule. */
  .plate-grid { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .plate-cell, .plate-cell:first-child { border-left: 0; padding: 12px 0; border-top: 1px solid var(--rule); }
  .plate-cell:nth-child(-n+2) { border-top: 0; }
  .colophon-links { gap: 0 20px; }
  .colophon-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
