/* ChowChow Labs home page. Colours match the G1 site; dark mode follows the device. */
:root {
  --bg: #eef4fa;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --text: #0f1d33;
  --muted: #55667d;
  --border: #e1e9f2;
  --shadow: 0 1px 2px rgb(16 40 74 / 0.06), 0 6px 20px rgb(16 40 74 / 0.06);
  --accent: #1d5fbf;
  --accent-strong: #184f9e;
  --accent-text: #1a5bb8;
  --bad: #c2373b;
  --focus: #1a73e8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08182b;
    --surface: #0e223a;
    --surface-2: #122a46;
    --text: #eaf2fb;
    --muted: #a3b5ca;
    --border: #1d3857;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    --accent: #3b82e0;
    --accent-strong: #2f6fc7;
    --accent-text: #8cc0ff;
    --bad: #ff8f8a;
    --focus: #6fb0ff;
    color-scheme: dark;
  }
  .company-head img { background: #fff; border-radius: 999px; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

.company { max-width: 960px; margin: 0 auto; padding: 40px 20px 32px; display: flex; flex-direction: column; gap: 32px; }
.company-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.company-head img { width: min(320px, 80%); height: auto; }
.company-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -0.6px; line-height: 1.2; }
.company-head p { font-size: 18px; color: var(--muted); }
.company-head .head-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-outline { margin-top: 4px; padding: 9px 20px; border-radius: 999px; border: 2px solid var(--accent); color: var(--accent-text); font-weight: 800; text-decoration: none; }
.btn-outline:hover { background: var(--accent); color: #fff; }
section h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.sub { margin: -6px 0 14px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.sites { grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); }
.art { width: 56px; height: 56px; flex: none; }
.site { display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: inherit; text-decoration: none; transition: transform 0.15s; }
.site:hover { transform: translateY(-2px); }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.art { stroke: none; }
.site-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.site h3 { font-size: 17px; font-weight: 800; line-height: 1.3; }
.site p { color: var(--muted); font-size: 14px; line-height: 1.4; }
.go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.go svg { width: 16px; height: 16px; }

.apps { list-style: none; padding: 0; margin: 0; gap: 12px; }
.apps li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.apps .art { width: 40px; height: 40px; }
.app-name { font-weight: 800; flex: 1; line-height: 1.3; }
.soon { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--border); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

.contact-form { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
input, textarea { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); min-height: 44px; }
textarea { resize: vertical; min-height: 140px; }
button { font: inherit; font-weight: 700; font-size: 16px; padding: 11px 22px; border-radius: 12px; border: 1px solid transparent; background: var(--accent); color: #fff; cursor: pointer; align-self: flex-start; }
button:hover { background: var(--accent-strong); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); font-size: 14px; padding: 8px 14px; border-radius: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-error { color: var(--bad); font-size: 14px; }
.contact-done { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-width: 720px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); padding-top: 18px; }

@media (max-width: 480px) {
  .sites { grid-template-columns: 1fr; }
  .site { gap: 12px; padding: 14px 16px; }
  .site .go { display: none; }
}

/* Top bar, shared by every page. */
.topbar { max-width: 960px; margin: 0 auto; padding: 16px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar .brand img { display: block; width: 150px; height: auto; }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav a { color: var(--text); font-weight: 700; text-decoration: none; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--accent-text); }
@media (prefers-color-scheme: dark) { .topbar .brand img { background: #fff; border-radius: 999px; } }

/* Product details and guide links on the home page. */
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 14px; }
.details .card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.details .card p + p, .details .card ul { margin-top: 8px; }
.details .card ul { padding-left: 20px; }
.guide-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.guide-list a { font-weight: 800; }
.guide-list p { color: var(--muted); font-size: 15px; }

/* Long-form pages: About, policies and guides. */
.page { max-width: 760px; margin: 0 auto; padding: 32px 20px 32px; display: flex; flex-direction: column; gap: 28px; }
.page article { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; }
.page h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; letter-spacing: -0.5px; line-height: 1.2; }
.page .lede { font-size: 19px; color: var(--muted); }
.page .meta { font-size: 14px; color: var(--muted); }
.page article h2 { font-size: 23px; font-weight: 800; margin-top: 14px; }
.page article h3 { font-size: 19px; font-weight: 800; margin-top: 6px; }
.page article ul, .page article ol { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.page .note { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; font-size: 16px; }
.table-wrap { overflow-x: auto; }
.page table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); border-radius: 12px; overflow: hidden; }
.page th, .page td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.page th { background: var(--surface-2); font-weight: 800; }
.page .foot { margin-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }

@media (max-width: 480px) {
  .details { grid-template-columns: 1fr; }
  .topbar nav { gap: 14px; }
}

.page figure.shot { margin: 6px 0; display: flex; flex-direction: column; gap: 8px; }
.page figure.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.page figure.shot figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.details .card.has-shot { display: flex; flex-direction: column; overflow: hidden; }
.shot-thumb { display: block; margin: -20px -22px 14px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .35s ease; }
.card.has-shot:hover .shot-thumb img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .shot-thumb img { transition: none; } }
.company .guide-list { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.company .guide-list .card { border-top: 4px solid var(--accent); transition: transform .2s ease, box-shadow .2s ease; }
.company .guide-list .card:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .company .guide-list .card { transition: none; } }
