/* Coffee-POS public website. Phone first, no web fonts, light and dark. */
:root {
  --bg: #fffaf4;
  --bg-alt: #f6ece0;
  --surface: #ffffff;
  --text: #2b1d14;
  --muted: #6d5a4c;
  --line: #eadccd;
  --brand: #6b3f24;
  --brand-ink: #ffffff;
  --accent: #c9772f;
  --ok: #1f7a4d;
  --info: #1d5fa8;
  --soon: #8a6d1f;
  --pending-bg: #fff1c2;
  --pending-ink: #6b4a00;
  --radius: 14px;
  --shadow: 0 10px 30px rgb(60 35 15 / 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110d;
    --bg-alt: #201812;
    --surface: #241b15;
    --text: #f5ece3;
    --muted: #c3b2a3;
    --line: #3a2d24;
    --brand: #e0a46a;
    --brand-ink: #1b120c;
    --accent: #f0b675;
    --ok: #5fd39a;
    --info: #7fb6f2;
    --soon: #e3c56b;
    --pending-bg: #4a3a10;
    --pending-ink: #ffe9a6;
    --shadow: 0 10px 30px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; margin-bottom: 0.75em; }
.lead { font-size: 1.12rem; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { border-radius: 7px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--accent); }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--brand); }
.btn:hover { color: var(--brand-ink); filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { color: var(--accent); }
.btn-small { padding: 6px 14px; font-size: 0.9rem; color: var(--brand-ink) !important; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

/* Hero */
.hero { padding: 48px 0 56px; background: radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 80px 0; } }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.mock-head { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; margin-bottom: 14px; }
.mock-head span:last-child { margin-left: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-video { aspect-ratio: 16 / 10; border-radius: 12px; background: linear-gradient(135deg, #8a5232, #d79a5b); color: #fff; display: grid; place-items: center; position: relative; font-size: 2rem; }
.mock-video small { position: absolute; left: 12px; bottom: 10px; font-size: 0.8rem; opacity: 0.9; }
.mock-caption { margin: 12px 0; font-size: 0.95rem; }
.mock-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock-channels li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem; }
.mock-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; vertical-align: middle; }
.tag.ok { color: var(--ok); }
.tag.info { color: var(--info); }
.tag.soon { color: var(--soon); }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.section.tight { padding-top: 16px; }
.section-title { text-align: center; margin-bottom: 32px; }
.two-col .section-title { text-align: left; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.ico { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.two-col { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.checks .ico { width: 22px; height: 22px; margin: 2px 0 0; stroke: var(--ok); flex: none; }

/* Features page */
.page-head { padding: 48px 0 16px; }
.feature-list { display: grid; gap: 18px; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.feature h2 { font-size: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.feature ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.feature li { margin-bottom: 6px; }
@media (max-width: 520px) { .feature { grid-template-columns: 1fr; } }

/* Legal pages */
.legal section { scroll-margin-top: 90px; margin-top: 32px; }
.legal h2 { font-size: 1.3rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.toc h2 { font-size: 1rem; margin-bottom: 6px; }
.toc ul { margin: 0; padding: 0; list-style: none; columns: 2 220px; }
.toc li { margin-bottom: 4px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); }
.pending { background: var(--pending-bg); color: var(--pending-ink); border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.draft { background: var(--pending-bg); color: var(--pending-ink); border-radius: 10px; padding: 10px 14px; font-size: 0.92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.footer-grid a { display: block; margin-bottom: 6px; }
.legal-row { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
