/* Customer site on top of remote.css. Content sits on the page in sections; borders are kept
   for things that are objects (code, the example, forms, plan rows, tables). */

body.site { font-size: 17px; line-height: 1.6; }
body.site h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); line-height: 1.06; letter-spacing: -0.02em; font-weight: 800; }
body.site h2 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.01em; }
body.site h3 { font-family: var(--font-sans); font-size: 1.1rem; letter-spacing: 0; }
body.site p, body.site li { max-width: 68ch; }
body.site main { padding: 32px 0 72px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  border: 1px solid var(--ink);
  padding: 6px 10px;
  z-index: 10;
}

.skip:focus { left: 8px; }

.lede { font-size: 1.12rem; color: var(--ink-soft); }
.textlink { font-weight: 700; }
.block { margin-top: 72px; }
.block > h2 { margin-bottom: 10px; }
.narrow { max-width: 68ch; }
.model-note { margin-top: 18px; }

/* Header and footer: quiet, no decoration. */
body.site .topbar { background: var(--bg); }
body.site .topbar .wrap { min-height: 64px; }
body.site .brand { font-size: 1.15rem; }
body.site .brand span { font-weight: 500; color: var(--ink-soft); }
body.site .nav { gap: 22px; align-items: center; }
body.site .nav a { font-weight: 600; }
/* Account (or Sign in) is a button, so it stands apart from the page links beside it. */
body.site .nav a.account { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 4px; color: var(--ink); }
body.site .nav a.account:hover, body.site .nav a.account[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
body.site .nav a.account:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

body.site footer.site .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; }
body.site footer.site p { margin: 0; }
body.site footer.site nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }

/* Buttons: navy for the one main action, as on getloquela.com. Other actions are links. */
body.site .btn { border-radius: 4px; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); }
body.site .btn:hover { background: var(--surface-muted); color: var(--ink); }
body.site .btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
body.site .btn.primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: var(--bg); }
body.site .btn.danger { border-color: var(--bad); color: var(--bad); }
body.site .btn.small { min-height: 34px; padding: 0 12px; }
body.site .actions { gap: 12px 22px; }

/* Panels (account page, sign-in code, consent) become ruled sections rather than boxes. */
body.site .panel { background: none; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 18px 0 4px; clip-path: none; }
body.site .panel::after { content: none; }
body.site .panel.accent { border-top: 2px solid var(--ink); }
body.site .panel > h2 { font-size: 1.3rem; }

/* Labels in sentence case, in the text face. */
body.site .stat-label { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
body.site .stat-value { letter-spacing: -0.01em; }
body.site th { text-transform: none; letter-spacing: 0; font-size: 0.88rem; background: none; color: var(--ink-soft); border-bottom: 1.5px solid var(--line-strong); }
body.site .table-scroll { border: 0; border-top: 1.5px solid var(--ink); border-radius: 0; }
body.site .pill { font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }

/* Lists: ordinary bullets. */
body.site .check, .plain { list-style: disc; padding-left: 1.2em; margin: 0 0 1em; }
body.site .check li, .plain li { padding: 2px 0; border: 0; }
body.site .check li::before { content: none; }
body.site .check li::marker, .plain li::marker { color: var(--line-strong); }

/* Home: headline beside a real response. */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 28px 0 8px; }
.intro h1 { max-width: 14ch; }
.intro .actions { margin-top: 26px; }

.sample { margin: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
.sample-head { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-soft); }
.sample-head code { color: var(--ink); }
.sample-text { margin: 0; padding: 20px 18px 4px; font-size: 1.3rem; line-height: 1.5; max-width: none; }
.sample-text .w { border-radius: 2px; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.sample-text .w.on { background: var(--orange-wash); color: var(--orange-deep); box-shadow: 0 0 0 2px var(--orange-wash); }
.timeline { position: relative; margin: 14px 18px 0; height: 48px; border-top: 1px solid var(--line); }
.timeline .bar { position: absolute; top: 10px; height: 12px; background: var(--line-strong); border-left: 2px solid var(--surface); transition: background-color 0.15s; }
.timeline .bar.on { background: var(--orange-deep); }
.timeline .tick { position: absolute; top: 28px; font-size: 0.75rem; line-height: 1; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline .tick::before { content: ""; position: absolute; left: 0; top: -28px; height: 6px; border-left: 1px solid var(--line-strong); }
.sample figcaption { padding: 10px 18px 14px; font-size: 0.86rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* Code is framed plainly; the orange is kept for the example above. */
body.site pre { border-left-width: 1px; border-left-color: var(--line); border-radius: 6px; }

/* Two ways in, side by side. */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.ways pre { margin: 16px 0 12px; }

/* A real sequence, so it is numbered. */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 10px; }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink-soft); margin-bottom: 2px; }

/* Pricing: plans as rows that compare across. */
.plan-rows { margin-top: 32px; border-top: 2px solid var(--ink); }
.plan-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.7fr) 11rem; gap: 12px 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-strong); }
.plan-row h2 { margin: 0; font-size: 1.35rem; }
.plan-row p { margin: 2px 0 0; }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.plan-price span { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 400; color: var(--ink-soft); }
.plan-facts { list-style: none; margin: 0; padding: 0; color: var(--ink-soft); }
.plan-act { justify-self: end; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 700; font-size: 0.9rem; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; color: var(--ink-soft); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.tab-panel[hidden] { display: none; }

.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.doc nav { position: sticky; top: 16px; align-self: start; font-size: 0.92rem; }
.doc nav a { display: block; padding: 3px 0; color: var(--ink-soft); text-decoration: none; }
.doc nav a:hover { color: var(--ink); }
.doc section { margin-bottom: 40px; }
.doc h2 { padding-top: 8px; border-top: 1px solid var(--line); }

.legal { max-width: 760px; }
.legal h2 { margin-top: 32px; }
.legal details { margin: 12px 0 4px; }
.legal summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); }
.legal details[open] p { border-left: 2px solid var(--line); padding-left: 12px; font-size: 0.92rem; color: var(--ink-soft); }
.draft { border: 1px dashed var(--warn); color: var(--warn); background: var(--warn-wash); padding: 8px 12px; border-radius: var(--radius); font-size: 0.9rem; }

.login { max-width: 440px; }
.signin { border-top: 2px solid var(--ink); padding-top: 18px; }
.provider { width: 100%; justify-content: center; margin-bottom: 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.85rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .intro { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 8px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .plan-row { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-facts, .plan-act { grid-column: 1 / -1; }
  .plan-act { justify-self: start; }
}

@media (max-width: 760px) {
  .ways { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .block { margin-top: 56px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .sample-text { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sample-text .w, .timeline .bar { transition: none; }
}

/* Account page: copyable commands, key limits, and tables that stack into rows on phones. */
.cmd { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.cmd code { flex: 1; min-width: 0; display: block; padding: 8px 10px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; white-space: nowrap; }
.key-cap { display: flex; gap: 6px; align-items: center; }
.key-cap input { width: 96px; min-height: 32px; }

@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr { display: block; width: 100%; }
  table.stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td, .table-scroll table.stack td:first-child { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  table.stack td::before { content: attr(data-label); font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); text-align: left; }
  table.stack td:not([data-label]) { justify-content: flex-end; padding-top: 8px; }
  table.stack td:not([data-label])::before { content: none; }
}
