/* ============================================================
   QuickSignage landing pages — design tokens and layout system
   Shared by every theme. Brand colours and type are taken from
   the live QuickSignage page and are not changed here.
   ============================================================ */

:root {
  /* --- Brand ink --- */
  --ink: #1c1008;
  --body: #4a3828;
  --muted: #9a8070;

  /* --- Surfaces --- */
  --bg: #faf8f5;
  --bg1: #f2ede7;
  --card: #ffffff;
  --dark: #0a0a0a;
  --dark2: #101716;
  --dark3: #16211f;

  /* --- Accent --- */
  --accent: #4ecdc4;
  --acch: #3ab8b0;
  --teal-bright: #3fd5cb;
  --teal-deep: #1d8f88;
  --teal-ink: #0c1f1d;

  /* --- Support --- */
  --gold: #d4920f;
  --star: #e8a020;
  --success: #1d9b5e;
  --danger: #c0392b;
  --wa: #25d366;

  /* --- Lines --- */
  --line: rgba(100, 65, 35, 0.09);
  --line2: rgba(100, 65, 35, 0.16);
  --line-dark: rgba(255, 255, 255, 0.1);
  --line-teal: rgba(78, 205, 196, 0.26);

  /* --- Type --- */
  --f-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --f-body: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-ui: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-cond: 'Fjalla One', 'Inter Tight', Impact, sans-serif;

  --t-xs: 0.75rem;
  --t-sm: 0.845rem;
  --t-base: 0.95rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.15rem, 1.6vw, 1.3rem);
  --t-xl: clamp(1.45rem, 2.4vw, 1.85rem);
  --t-2xl: clamp(1.85rem, 3.4vw, 2.6rem);
  --t-3xl: clamp(2.2rem, 4.6vw, 3.4rem);

  /* --- Space scale (4px base) --- */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;
  --s9: 48px;
  --s10: 64px;
  --s11: 80px;
  --s12: 96px;

  /* --- Shape --- */
  --r-sm: 8px;
  --r: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-full: 999px;

  /* --- Elevation --- */
  --e1: 0 1px 2px rgba(28, 16, 8, 0.05), 0 2px 8px rgba(28, 16, 8, 0.04);
  --e2: 0 2px 6px rgba(28, 16, 8, 0.06), 0 10px 26px rgba(28, 16, 8, 0.08);
  --e3: 0 4px 10px rgba(28, 16, 8, 0.07), 0 20px 48px rgba(28, 16, 8, 0.12);
  --e-teal: 0 8px 28px rgba(29, 143, 136, 0.28);
  --e-dark: 0 20px 56px rgba(0, 0, 0, 0.45);

  /* --- Motion --- */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Layout --- */
  --gutter: 20px;
  --maxw: 1240px;
  --maxw-narrow: 980px;
  --nav-h: 62px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --nav-h: 68px; }
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100dvh;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Layout primitives — every theme lays out with these, so
   gutters and rhythm stay identical across designs.
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--maxw-narrow); }

.band { padding-block: clamp(56px, 7vw, 96px); }
.band--tight { padding-block: clamp(40px, 5vw, 64px); }
.band--cream { background: var(--bg1); }
.band--white { background: var(--card); }
.band--dark { background: var(--dark); color: #fff; }

.stack > * + * { margin-top: var(--flow, var(--s4)); }

/* ============================================================
   Section heads
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--f-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}
.band--dark .eyebrow { color: var(--teal-bright); }

.sec-head { max-width: 640px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head > * + * { margin-top: var(--s3); }

.h-sec {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-2xl);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.band--dark .h-sec { color: #fff; }
.h-sec em { font-style: italic; color: var(--teal-deep); }
.band--dark .h-sec em { color: var(--teal-bright); }

.sub {
  font-size: var(--t-md);
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}
.band--dark .sub { color: rgba(255, 255, 255, 0.72); }

/* ============================================================
   Buttons — sized by padding only, never fixed width, so they
   stay correct whatever font actually loads.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s6);
  border-radius: var(--r);
  font-family: var(--f-ui);
  font-size: var(--t-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.14s var(--spring), box-shadow 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary { background: var(--accent); color: var(--teal-ink); box-shadow: var(--e-teal); }
.btn--primary:hover { background: var(--teal-bright); transform: translateY(-1px); }

.btn--dark { background: var(--teal-ink); color: #fff; }
.btn--dark:hover { background: #163330; }

.btn--ghost { border: 1px solid var(--line2); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--accent); color: var(--teal-deep); }
.band--dark .btn--ghost { border-color: var(--line-dark); color: #fff; background: rgba(255, 255, 255, 0.05); }
.band--dark .btn--ghost:hover { border-color: var(--line-teal); background: rgba(78, 205, 196, 0.1); }

.btn--block { width: 100%; }
.btn--lg { min-height: 56px; padding-inline: var(--s7); font-size: var(--t-md); }

/* ============================================================
   Small shared pieces
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 34px;
  padding: 0 var(--s3);
  border-radius: var(--r-full);
  border: 1px solid var(--line2);
  background: var(--card);
  font-family: var(--f-ui);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.band--dark .chip, .chip--dark {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
}
.band--dark .chip svg, .chip--dark svg { stroke: var(--teal-bright); }

.stars { color: var(--star); letter-spacing: 0.08em; font-size: var(--t-sm); line-height: 1; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex: 0 0 8px;
  box-shadow: 0 0 0 0 rgba(29, 155, 94, 0.55);
  animation: livePulse 2.4s ease-out infinite;
}
@keyframes livePulse {
  70%, 100% { box-shadow: 0 0 0 7px rgba(29, 155, 94, 0); }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Reveal on scroll */
/* Scoped to .js so the page is still readable if scripting fails. */
.js .r { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .r.in { opacity: 1; transform: none; }
.r-d1 { transition-delay: 0.06s; }
.r-d2 { transition-delay: 0.12s; }
.r-d3 { transition-delay: 0.18s; }
@media (prefers-reduced-motion: reduce) { .js .r { opacity: 1; transform: none; } }
