/* Selfie Kiosk -- public homepage and Privacy page (v1.12.00).
   Plain CSS, no external fonts or resources (standard-footer rule 3, no third-party requests). */
/* Day mode is the original palette. Night mode (v1.12.00) follows the visitor's system setting
   until they use the header toggle; home.js/theme.js store that choice as data-theme on <html>. */
:root {
  --bg: #f6f3ef;
  --bg-alt: #fff;
  --ink: #1a1a1e;
  --muted: #55555c;
  --line: #e6e1da;
  --accent: #c73a22;       /* buttons: white text on this is AA (5.3:1) */
  --accent-hover: #a92f1a;
  --accent-soft: #fde9e3;
  --link: #c73a22;
  --eyebrow-ink: #8f2512;
  --focus: #1a4fb3;
  --header-bg: rgba(246, 243, 239, .92);
  --band-bg: #1a1a1e;
  --band-line: #1a1a1e;
  --doc-ink: #3a3a40;
  --footer-ink: #5f5f66;
  --screen-edge: transparent;
  --shadow: rgba(26, 26, 30, .22);
  --icon-filter: none;       /* the shared camera.svg is drawn in dark ink */
  --sb-track: var(--bg);     /* standard scrollbars (convention #20) */
  --sb-thumb: #8c857d;       /* 3.3:1 on --bg, 3.6:1 on --bg-alt */
  --sb-thumb-hover: var(--accent);
  --pill-bg: #ece6de;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141317;
    --bg-alt: #1c1a20;
    --ink: #f2eff4;
    --muted: #b3afb8;
    --line: #2e2b33;
    --accent: #c73a22;
    --accent-hover: #a92f1a;
    --accent-soft: #3a1f1a;
    --link: #ff8a70;
    --eyebrow-ink: #ffb7a6;
    --focus: #8ab4ff;
    --header-bg: rgba(20, 19, 23, .9);
    --band-bg: #26201f;
    --band-line: #3a2d2a;
    --doc-ink: #d6d3d9;
    --footer-ink: #a9a6ae;
    --screen-edge: #3a3640;
    --shadow: rgba(0, 0, 0, .5);
    --icon-filter: invert(1);
    --sb-thumb: #76717d;     /* 3.9:1 on --bg, 3.6:1 on --bg-alt */
    --pill-bg: #232028;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141317;
  --bg-alt: #1c1a20;
  --ink: #f2eff4;
  --muted: #b3afb8;
  --line: #2e2b33;
  --accent: #c73a22;
  --accent-hover: #a92f1a;
  --accent-soft: #3a1f1a;
  --link: #ff8a70;
  --eyebrow-ink: #ffb7a6;
  --focus: #8ab4ff;
  --header-bg: rgba(20, 19, 23, .9);
  --band-bg: #26201f;
  --band-line: #3a2d2a;
  --doc-ink: #d6d3d9;
  --footer-ink: #a9a6ae;
  --screen-edge: #3a3640;
  --shadow: rgba(0, 0, 0, .5);
  --icon-filter: invert(1);
  --sb-thumb: #76717d;
  --pill-bg: #232028;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- Standard scrollbars (convention #20, cross-app/standard-scrollbars.md) ----
   Colours come from the variables above, so day and night are both covered. */
html { scrollbar-color: var(--sb-thumb) var(--sb-track); }
* { scrollbar-width: thin; }
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: var(--sb-track); }
  ::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 999px; border: 2px solid var(--sb-track); }
  ::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 650; font-size: 16px;
  text-decoration: none; border: 2px solid transparent; transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---- Header ---- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand img { filter: var(--icon-filter); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 18px; }
.header-nav { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--ink); font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.brand, .header-nav .btn { white-space: nowrap; }
.show-sm { display: none; }
.nav-link:hover { text-decoration: underline; }

/* Day/night toggle (hidden until home.js runs, since it needs JavaScript) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); cursor: pointer; padding: 0;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme-active="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme-active="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle[hidden] { display: none; }

/* ---- Hero ---- */
.hero { padding: 64px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--eyebrow-ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 18px; }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; }
/* Hero visual: the venue screen (a live Photowall of guests' captures) with a guest's phone in
   front. Built from real <img> elements so the photos stay crisp and responsive. */
.hero-visual { padding: 0 0 8% 14%; }
.tv-screen { background: #1a1a1e; border-radius: 14px; padding: 10px; box-shadow: 0 0 0 1px var(--screen-edge), 0 24px 60px var(--shadow); }
.wall { position: relative; display: grid; grid-template-columns: 2.3fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 6px; aspect-ratio: 16 / 9; background: #0e0e10; border-radius: 6px; overflow: hidden; }
.wall picture, .phone-screen picture { display: block; min-height: 0; }
.wall img, .phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.w-main { grid-row: 1 / span 3; }
.wall-sig { position: absolute; right: calc(30.3% + 10px); bottom: 10px; max-width: 48%; background: rgba(0, 0, 0, .58); color: #fff; font-size: clamp(10px, 1.2vw, 13px); font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-stand { width: 26%; height: 14px; margin: 0 auto; background: #1a1a1e; border-radius: 0 0 6px 6px; position: relative; }
.tv-stand::after { content: ""; position: absolute; left: -30%; right: -30%; bottom: -6px; height: 6px; background: #1a1a1e; border-radius: 3px; }
.phone { position: absolute; left: 0; bottom: 0; width: 34%; max-width: 200px; background: #1a1a1e; border-radius: 26px; padding: 9px; transform: rotate(-6deg); box-shadow: 0 0 0 1px var(--screen-edge), 0 20px 44px var(--shadow); }
.phone-screen { position: relative; aspect-ratio: 9 / 17; background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.phone-photo { flex: 1; margin: 12px 8px 0; border-radius: 10px; overflow: hidden; border: 5px solid var(--accent); }
.phone-sig { margin: 8px 10px 0; font-size: 11px; font-weight: 650; color: #1a1a1e; background: #f1ece6; border-radius: 999px; padding: 4px 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-shutter { width: 30px; height: 30px; margin: 8px auto 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px var(--accent); }

.band { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.band img { display: block; width: 100%; height: auto; }

/* ---- Guest note ---- */
.guest-note { background: var(--band-bg); color: #fff; border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.guest-inner { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.guest-inner p { margin: 0; font-size: 15px; }
.guest-inner svg { flex-shrink: 0; color: #ffb199; }

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 10px; }
.section-sub { color: var(--muted); margin: 0 0 36px; font-size: 17px; }
h3 { font-size: 18px; margin: 0 0 6px; line-height: 1.3; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step p { margin: 0; color: var(--muted); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 750; margin-bottom: 14px; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.feature h3 { font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.usecases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usecase { padding: 24px 22px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); border-top: 5px solid var(--accent); }
.usecase:nth-child(2) { border-top-color: #f29f3d; }
.usecase:nth-child(3) { border-top-color: #3f9c8f; }
.usecase:nth-child(4) { border-top-color: #6f5bd0; }
.usecase p { margin: 0; color: var(--muted); font-size: 15px; }

.need { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.need-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.need-list li { padding: 18px 20px 18px 52px; position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.need-list li strong { color: var(--ink); }
.need-list li::before { content: ""; position: absolute; left: 20px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 5px var(--accent-soft); }

.privacy-band { max-width: 760px; text-align: center; }
.privacy-band p { color: var(--muted); font-size: 17px; margin: 0 0 10px; }
.text-link { color: var(--link); font-weight: 600; }

.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 650; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 24px; font-weight: 400; color: var(--link); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

.cta { position: relative; padding: 96px 0; background: #1d1020; color: #fff; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 10, 22, .72), rgba(20, 10, 22, .82)); }
.cta-inner { position: relative; text-align: center; max-width: 720px; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -.015em; }
.cta p { color: #f3e6ee; margin: 0 0 26px; font-size: 17px; }

/* ---- Privacy page ---- */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); margin: 0 0 8px; letter-spacing: -.015em; }
.doc .updated { color: var(--muted); margin: 0 0 32px; font-size: 14px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--doc-ink); }
.doc ul { padding-left: 22px; }

/* ---- Standard footer (convention #16) ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
/* v2 (L38): declaration, Contact and Privacy left-aligned; version pill on the right. */
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 22px; padding-bottom: 30px; font-size: 14px; color: var(--footer-ink); }
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; text-align: left; }
.footer-inner .version { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--footer-ink); background: var(--pill-bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.site-footer a { color: var(--doc-ink); text-underline-offset: 2px; }
.site-footer a:hover { color: var(--ink); }
.version:empty { display: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 40px 0 44px; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .need { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .nav-link { font-size: 13px; }
  .header-nav { gap: 10px; }
  .brand span { font-size: 16px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
}
.show-xs { display: none; }
@media (max-width: 480px) {
  .header-nav { gap: 8px; }
  .header-nav .btn-sm { padding: 8px 12px; }
  .theme-toggle { width: 34px; height: 34px; }
  .hide-xs { display: none; }
  .show-xs { display: inline; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
  .header-nav { gap: 8px; }
  .header-nav .btn-sm { padding: 8px 12px; }
}
