/* Roomlight — site styles. No external dependencies. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --text: #16181f;
  --muted: #5b6070;
  --line: #e4e1da;
  --accent: #1f5f5b;        /* deep teal */
  --accent-ink: #ffffff;
  --glow: #f2b544;          /* lamp gold, used sparingly */
  --todo-bg: #fff3c4;
  --todo-text: #6a4b00;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111318;
    --surface: #171a21;
    --surface-2: #1e222b;
    --text: #eceef3;
    --muted: #a3a9b8;
    --line: #2b303b;
    --accent: #5fb3ab;
    --accent-ink: #0d1114;
    --glow: #f2b544;
    --todo-bg: #3b3210;
    --todo-text: #ffe08a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111318; --surface: #171a21; --surface-2: #1e222b; --text: #eceef3;
  --muted: #a3a9b8; --line: #2b303b; --accent: #5fb3ab; --accent-ink: #0d1114;
  --todo-bg: #3b3210; --todo-text: #ffe08a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 40rem; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 12px; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 88px 0; } }
.hero { padding-top: 64px; }
.hero .glow { width: 12px; height: 12px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 6px color-mix(in srgb, var(--glow) 25%, transparent); display: inline-block; margin-right: 10px; vertical-align: middle; }
.alt { background: var(--surface-2); }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--accent); background: transparent; }
.btn:hover { filter: brightness(1.05); }

/* Pricing */
.price { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 4px; }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.card.featured { border: 2px solid var(--accent); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* Legal pages */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal ul { padding-left: 1.25em; }
.notice { background: var(--todo-bg); color: var(--todo-text); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 32px; font-size: 0.95rem; }
mark.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 4px; border-radius: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 0.9rem; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

.mt { margin-top: 24px; }
.muted { color: var(--muted); }
section.pt-sm { padding-top: 40px; }
