/* CouchLight site. One stylesheet, no frameworks, no web fonts, no scripts. */

:root {
  --bg: #F7F9FD;          /* cool white page */
  --band: #EDF2FB;        /* alternating sections */
  --surface: #FFFFFF;     /* cards */
  --text: #0B1220;        /* near-black blue */
  --muted: #4A5568;       /* secondary text */
  --accent: #2D5BD3;      /* CouchLight blue, darkened for text on white */
  --accent-text: #FFFFFF; /* text on accent buttons */
  --accent-soft: #E3EBFD;
  --line: #D5DEEE;
  --gold: #FFB547;        /* lamp light: small marks only, never text */
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px rgba(11, 18, 32, .08);
  --radius: 14px;
  --serif: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0E13;
    --band: #10151D;
    --surface: #151B25;
    --text: #E8EDF6;
    --muted: #A3AEC2;
    --accent: #5B8CFF;
    --accent-text: #0B0E13;
    --accent-soft: #16213A;
    --line: #253046;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #0B0E13; --band: #10151D; --surface: #151B25; --text: #E8EDF6; --muted: #A3AEC2;
  --accent: #5B8CFF; --accent-text: #0B0E13; --accent-soft: #16213A; --line: #253046;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
p, li { max-width: 68ch; }
.lead { font-size: 1.2rem; color: var(--muted); }
.small { font-size: .92rem; color: var(--muted); }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 700px) { .wrap { padding-inline: 24px; } }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-text); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.3rem/1 var(--serif); }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .98rem; padding: 6px 0; display: inline-block; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

/* Sections */
main > section { padding-block: 56px; }
main > section.band { background: var(--band); }
.section-intro { margin-bottom: 28px; }
.page-head { padding-block: 48px 24px; }
.page-head + section { padding-top: 8px; }

/* Hero */
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1fr 1.1fr; } }
.hero .lead { max-width: 52ch; }
.hero .maker { max-width: 52ch; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 14px; }
.meta { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; }
.meta li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 12px; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* Screenshots and placeholders */
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.shot figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.draft-note { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--text); background: var(--accent-soft); border: 1px dashed var(--accent); border-radius: 6px; padding: 1px 7px; margin-left: 4px; }
.placeholder {
  aspect-ratio: 16 / 10; width: 100%;
  display: grid; place-items: center; text-align: center; padding: 20px;
  border: 2px dashed var(--accent); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--accent-soft) 0 14px, var(--surface) 14px 28px);
  color: var(--text); font-size: .95rem;
}
.placeholder strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.placeholder span { display: block; background: var(--surface); padding: 10px 14px; border-radius: 10px; max-width: 34ch; }

/* Audience */
.audience { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); list-style: none; padding: 0; margin: 0; }
.audience li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; max-width: none; }
.audience b { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps > li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: none; }
.steps > li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: 12px;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; }

/* Feature groups */
.groups { display: grid; gap: 18px; }
@media (min-width: 760px) { .groups { grid-template-columns: repeat(2, 1fr); } }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--accent); }
.group ul { padding-left: 1.2em; margin: 0; }
.group li { margin: .35em 0; }

/* Two-column text + image rows (How it works, Records requests) */
.row { display: grid; gap: 24px; align-items: start; margin-bottom: 48px; }
@media (min-width: 900px) { .row { grid-template-columns: 1fr 1.25fr; gap: 40px; } }
.row:last-child { margin-bottom: 0; }
.step-no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font: 700 1rem/1 var(--sans); margin-right: 10px; vertical-align: .15em; }

/* Answer chips (review choices) */
.chips { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; max-width: none; }
.chips b { color: var(--accent); }

/* Callouts */
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0; }

/* Price */
.price { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .price { grid-template-columns: 1.4fr 1fr; } }
.price-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.price-box .amount { font: 700 2.4rem/1 var(--serif); margin: 0 0 6px; }

/* Long text pages (privacy, support, FAQ) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.toc { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .btn, .site-nav a { transition: color .15s, filter .15s; }
}
@media print {
  .site-header nav, .skip, .actions { display: none; }
  body { background: #fff; color: #000; }
}
.more { margin-top: 20px; }

/* Other apps */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.tiles li { max-width: none; }
.tiles a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--text); text-decoration: none; }
.tiles a:hover { border-color: var(--accent); }
.tiles b { display: block; font: 700 1.2rem/1.3 var(--serif); margin: 4px 0 6px; color: var(--accent); }
.plat { display: block; font-size: .85rem; color: var(--muted); }

/* Devices strip and code-style links */
.devices { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.devices li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: .92rem; color: var(--muted); max-width: none; }
.copy { display: block; font: 500 1rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-wrap: anywhere; user-select: all; }
