/* Weatherglass — styles
   One accent (amber). Dark, quiet, lots of space. Mobile first. */

:root {
  --bg: #0b0b0c;
  --bg-raised: #131315;
  --line: #222226;
  --text: #ece8e1;
  --muted: #9a958d;
  --faint: #6b675f;
  --accent: #f5a524;
  --accent-soft: rgba(245, 165, 36, 0.14);
  --error: #ff8a7a;

  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1120px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(236, 232, 225, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--accent); color: #111; padding: 8px 14px; border-radius: 8px; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Header / footer ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  width: 100%; margin: 0 auto;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; text-decoration: none; font-size: 16px;
}
.header-cta {
  font-size: 14px; color: var(--muted); text-decoration: none;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  transition: color .2s, border-color .2s;
}
.header-cta:hover { color: var(--text); border-color: var(--accent); }

.site-footer {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center;
  padding: 48px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  color: var(--faint); font-size: 14px;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Hero ---------- */
main { overflow-x: clip; } /* keep decorative glows from causing sideways scroll */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: 24px var(--gutter) 96px;
  text-align: center;
}
.hero__visual {
  position: relative;
  margin: 8px auto 56px;
  max-width: 920px;
}
/* warm glow behind the product */
.hero__visual::before {
  content: ""; position: absolute; inset: -12% -8%;
  background: radial-gradient(50% 55% at 50% 50%, rgba(245, 165, 36, .16), rgba(80, 140, 255, .06) 45%, transparent 72%);
  filter: blur(30px); z-index: 0; pointer-events: none;
}
.product {
  position: relative; z-index: 1;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(245, 165, 36, .12);
}
.hero__title {
  font-size: clamp(44px, 9vw, 84px);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.hero__tagline {
  margin: 14px 0 0;
  font-size: clamp(20px, 3.4vw, 28px);
  color: var(--accent);
  letter-spacing: -0.01em;
}
.hero__sub {
  margin: 18px auto 36px; max-width: 34em;
  color: var(--muted); font-size: clamp(16px, 2.2vw, 19px);
}
.hero__fine { margin: 14px 0 0; font-size: 13px; color: var(--faint); }

/* ---------- Signup form ---------- */
.signup { max-width: 480px; margin: 0 auto; text-align: left; }
.signup__row {
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 520px) {
  .signup__row {
    flex-direction: row; gap: 0;
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: 999px;
    padding: 5px; transition: border-color .2s, box-shadow .2s;
  }
  .signup__row:focus-within { border-color: rgba(245, 165, 36, .55); box-shadow: 0 0 0 4px var(--accent-soft); }
  .signup .signup__row input { background: transparent; border: 0; box-shadow: none; }
  .signup .signup__row input:focus-visible { outline: none; box-shadow: none; }
}
.signup input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 14px 20px;
}
.signup input::placeholder { color: var(--faint); }
.signup input:focus-visible { outline: none; border-color: rgba(245, 165, 36, .55); box-shadow: 0 0 0 4px var(--accent-soft); }
.signup input[aria-invalid="true"] { border-color: var(--error); }
.signup button {
  font: inherit; font-size: 16px; font-weight: 600; color: #17110a;
  background: var(--accent); border: 0; border-radius: 999px;
  padding: 14px 24px; cursor: pointer; white-space: nowrap;
  transition: filter .2s, transform .2s var(--ease);
}
.signup button:hover { filter: brightness(1.08); }
.signup button:active { transform: scale(.98); }
.signup button:disabled { cursor: progress; opacity: .7; }
.signup__msg { margin: 10px 4px 0; min-height: 1.5em; font-size: 14px; color: var(--error); }
.signup__msg:empty { min-height: 0; margin: 0; }

/* ---------- Sections ---------- */
.section-title {
  font-size: clamp(28px, 4.5vw, 40px);
  text-align: center; margin-bottom: 48px;
}

.features {
  max-width: var(--maxw); margin: 0 auto;
  padding: 48px var(--gutter) 112px;
  display: grid; gap: 48px;
}
@media (min-width: 860px) { .features { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.feature { border-top: 1px solid var(--line); padding-top: 28px; }
.feature__num { font: 13px var(--mono); color: var(--accent); letter-spacing: .08em; }
.feature h3 { font-size: 22px; margin: 14px 0 12px; }
.feature p { margin: 0; color: var(--muted); }

.gallery { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 120px; }
.gallery__grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .gallery__grid { grid-template-columns: 1fr 1fr; gap: 24px; } .slot--wide { grid-column: 1 / -1; } }
.slot { margin: 0; }
.slot img, .slot video {
  width: 100%; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-raised);
}
.slot:not(.slot--wide) img, .slot:not(.slot--wide) video { aspect-ratio: 4 / 3; }
.slot figcaption { margin-top: 12px; font-size: 14px; color: var(--faint); }

.join {
  text-align: center; padding: 120px var(--gutter);
  background: radial-gradient(60% 70% at 50% 0%, rgba(245, 165, 36, .07), transparent 70%);
  border-top: 1px solid var(--line);
}
.join h2 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.03em; }
.join__sub { color: var(--muted); max-width: 30em; margin: 18px auto 36px; font-size: clamp(16px, 2.2vw, 19px); }

.faq { max-width: 760px; margin: 0 auto; padding: 96px var(--gutter) 120px; width: 100%; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 2px; font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); border-color: var(--accent); }
.faq details p { margin: 0 2px 24px; color: var(--muted); max-width: 40em; }

/* ---------- LED screen panels (pixel-art renders) ---------- */
.screen {
  position: relative;
  background: #040405;
  border: 1px solid #1c1c1f;
  border-radius: 12px;
  padding: 3.5%;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .95), 0 0 50px -18px rgba(245, 165, 36, .10);
}
.screen::after { /* smoked-glass sheen */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .05), transparent 38%);
}
.screen__px { position: relative; aspect-ratio: 2 / 1; overflow: hidden; border-radius: 2px; }
.screen__px img, .screen__px video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  image-rendering: crisp-edges; image-rendering: pixelated;
}
/* LED dot grid on the large panels (128 x 64 matrix) */
@media (min-width: 720px) {
  .screen--lg .screen__px::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 75%);
    background-size: calc(100% / 128) calc(100% / 64);
  }
}

.section-sub { text-align: center; color: var(--muted); max-width: 34em; margin: -32px auto 48px; }

/* features with visuals */
.feature { border-top: 1px solid var(--line); padding-top: 28px; }
.feature .screen, .feature .frame-shot { margin-bottom: 28px; }
.frame-shot img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; }
.feature__num { display: block; }

/* ---------- Screens showcase ---------- */
.modes { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 120px; }
.modes__wrap { display: grid; gap: 20px; }
.modes__tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter);
}
.modes__tabs::-webkit-scrollbar { display: none; }
.modes__tabs button {
  position: relative; flex: none; overflow: hidden;
  font: inherit; font-size: 14px; color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.modes__tabs button:hover { color: var(--text); }
.modes__tabs button[aria-selected="true"] { color: var(--text); border-color: rgba(245, 165, 36, .6); }
.modes__wrap.is-auto.is-running button[aria-selected="true"]::after { /* auto-advance progress */
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform-origin: left; animation: wg-progress 7s linear forwards;
}
@keyframes wg-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes wg-progress-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.modes__stage { display: grid; }
.mode { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.mode.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.mode__cap { margin: 18px 2px 0; color: var(--muted); }
html:not(.js) .modes__tabs { display: none; }
html:not(.js) .mode { grid-area: auto; opacity: 1; visibility: visible; margin-bottom: 32px; }

@media (min-width: 960px) {
  .modes__wrap { grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
  .modes__tabs { flex-direction: column; margin: 0; padding: 0; overflow: visible; gap: 4px; }
  .modes__tabs button {
    text-align: left; font-size: 16px; border: 0; border-radius: 0;
    border-left: 2px solid var(--line); padding: 12px 18px; overflow: visible;
  }
  .modes__tabs button[aria-selected="true"] { border-left-color: var(--accent); }
  .modes__wrap.is-auto.is-running button[aria-selected="true"]::after {
    left: -2px; top: 0; bottom: auto; width: 2px; height: 100%; transform-origin: top;
    animation-name: wg-progress-y; background: #fff1d6;
  }
}

/* ---------- A day on the wall ---------- */
.day { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) 120px; }
.day__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
@media (min-width: 720px) { .day__grid { grid-template-columns: repeat(3, 1fr); gap: 40px 28px; } }
.day figure { margin: 0; }
.day .screen { padding: 4%; border-radius: 10px; }
.day figcaption { margin-top: 12px; font-size: 14px; color: var(--faint); }
.day .gallery__grid { margin-top: 64px; }

/* ---------- Simple pages ---------- */
.thanks { max-width: 680px; margin: 0 auto; padding: 72px var(--gutter) 96px; text-align: center; width: 100%; }
.thanks__mark { display: flex; justify-content: center; margin-bottom: 28px; filter: drop-shadow(0 0 18px rgba(245, 165, 36, .45)); }
.thanks h1 { font-size: clamp(36px, 7vw, 56px); letter-spacing: -0.03em; }
.thanks__sub { color: var(--muted); font-size: clamp(17px, 2.4vw, 20px); margin: 16px 0 0; }
.thanks__back { margin-top: 48px; font-size: 15px; }
.thanks__back a { color: var(--muted); }

.survey { margin-top: 72px; text-align: left; }
.survey h2 { font-size: 22px; }
.survey__sub { color: var(--faint); margin: 6px 0 20px; font-size: 15px; }
/* Light "paper" card so the Tally form reads clearly whatever its theme */
.survey__card {
  background: #f3efe8; color: #1a1712;
  border-radius: var(--radius); padding: 20px 20px 4px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.survey__card iframe { display: block; border: 0; min-height: 200px; }

.prose { max-width: 680px; margin: 0 auto; padding: 56px var(--gutter) 96px; width: 100%; }
.prose h1 { font-size: clamp(36px, 6vw, 52px); letter-spacing: -0.03em; }
.prose__lede { font-size: 19px; color: var(--muted); margin: 18px 0 40px; }
.prose h2 { font-size: 19px; margin: 36px 0 8px; }
.prose p { color: var(--muted); margin: 0 0 12px; }
.prose a { color: var(--text); }
.prose__date { margin-top: 40px !important; font-size: 14px; color: var(--faint) !important; }

/* ---------- Motion (subtle, opt-out respected) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
