/* EZ Board site. Tokens mirror lib/theme.ts ("stream" theme). */

@font-face {
  font-family: "Inter";
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  src: url("fonts/inter-400-800.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
  src: url("fonts/rubik-800-900.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ground: #0e0e10;
  --surface: #18181b;
  --raised: #26262c;
  --border: #3a3a44;
  --ink: #efeff1;
  --muted: #adadb8;
  --brand: #ff7a2e;
  --brand-deep: #d94a12;
  --brand-tint: #2e1a0f;
  --brand-soft: #ffb07a;
  --hot: #ff2e93;
  --pink: #ff6ab5;
  --cyan: #35dceb;
  --go: #3ddc84;
  --gold: #ffd43b;
  --on-brand: #1a0f05;
  --on-accent: #0e0e10;
  --cta-shadow: 0 4px 0 var(--brand-deep), 0 0 28px rgba(255, 122, 46, 0.5);
  --glow: 0 0 0 3px rgba(255, 122, 46, 0.35), 0 0 24px rgba(255, 122, 46, 0.4);
  --display: "Rubik", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #fff8f1;
    --brand: #f26a1b;
    --brand-deep: #c2410c;
    --surface: #ffffff;
    --raised: #f6e9dd;
    --border: #e8d3c0;
    --ink: #18181b;
    --muted: #5c5c68;
    --brand-tint: #ffebdb;
    --brand-soft: #b2450a;
    --hot: #e01a7f;
    --pink: #f0589f;
    --cyan: #1fbccb;
    --go: #1fae62;
    --gold: #f2b800;
  }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 500 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }

/* Display type: Rubik 800/900, uppercase */
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.96; }
.label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 3; padding-block: 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.brand img { width: 40px; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--on-brand);
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--cta-shadow);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
@media (hover: hover) { .btn:hover { filter: brightness(1.08); } }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brand-deep), 0 0 20px rgba(255, 122, 46, 0.45); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 13px; box-shadow: 0 3px 0 var(--brand-deep); }
.btn-sm:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--brand-deep); }

.fine { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Sparkles ---------- */
.sparkle { position: absolute; width: var(--s, 28px); height: var(--s, 28px); color: var(--c, var(--cyan)); pointer-events: none; animation: twinkle 3.6s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 50% { transform: scale(0.72) rotate(14deg); opacity: 0.7; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; text-align: center; padding-top: clamp(24px, 6vw, 56px); }
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -20vw auto;
  height: 780px;
  z-index: -1;
  background:
    radial-gradient(520px 360px at 50% 18%, rgba(255, 122, 46, 0.34), transparent 70%),
    radial-gradient(360px 260px at 18% 40%, rgba(255, 46, 147, 0.14), transparent 70%),
    radial-gradient(360px 260px at 84% 34%, rgba(53, 220, 235, 0.12), transparent 70%);
}
.hero-icon { width: clamp(132px, 22vw, 168px); height: auto; margin: 0 auto 20px; filter: drop-shadow(0 18px 36px rgba(255, 122, 46, 0.35)); }
.hero h1 { font-size: clamp(42px, 9.4vw, 92px); }
.hero h1 .tag {
  display: inline-block;
  margin-top: 0.06em;
  padding: 0.04em 0.2em 0.1em;
  border-radius: 0.18em;
  background: var(--hot);
  color: var(--on-accent);
  transform: rotate(-2deg);
  box-shadow: 0.06em 0.07em 0 rgba(0, 0, 0, 0.35);
}
.lead { max-width: 36ch; margin: 28px auto 34px; font-size: clamp(17px, 2.4vw, 20px); font-weight: 500; color: var(--muted); }

.hero-phone {
  position: relative;
  width: min(340px, 78vw);
  margin: clamp(44px, 8vw, 72px) auto 0;
  border: 2px solid var(--border);
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
  overflow: hidden;
  background: var(--ground);
  box-shadow: 0 -10px 80px rgba(255, 122, 46, 0.3);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.hero-phone img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; object-position: top; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 128px) 0; }
.section-head { max-width: 560px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 { margin-top: 14px; font-size: clamp(30px, 5.4vw, 52px); }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; }
.step { position: relative; display: flex; flex-direction: column; border: 2px solid var(--border); border-radius: 20px; background: var(--surface); overflow: hidden; }
.step-copy { padding: 24px 24px 20px; }
.step-num { font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: 0.1em; color: var(--brand-soft); }
.step h3 { margin-top: 6px; font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; text-transform: uppercase; }
.step p { margin-top: 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.step-shot { margin: auto 24px 0; border: 2px solid var(--border); border-bottom: 0; border-radius: 22px 22px 0 0; overflow: hidden; background: var(--ground); }
.step-shot img { width: 100%; aspect-ratio: 1 / 1.12; object-fit: cover; object-position: top; }

/* Feature grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.card { display: flex; gap: 16px; padding: 24px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.card .sparkle { position: static; --s: 26px; flex: none; margin-top: 2px; animation: none; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.1; text-transform: uppercase; }
.card p { margin-top: 8px; font-size: 15px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 6px; background: var(--raised); font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chip.on { background: var(--brand); color: var(--on-brand); }

/* Final CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(72px, 11vw, 128px); padding: clamp(48px, 9vw, 96px) 24px; text-align: center; border: 2px solid var(--brand); border-radius: 28px; background: var(--brand-tint); box-shadow: var(--glow); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 280px at 50% 0%, rgba(255, 122, 46, 0.4), transparent 70%); }
.cta h2 { font-size: clamp(34px, 7vw, 68px); }
.cta p { margin: 20px auto 32px; max-width: 32ch; font-size: 18px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 48px 56px; margin-top: clamp(56px, 8vw, 96px); border-top: 2px solid var(--border); }
.site-footer .wrap { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.foot-links a { text-decoration: none; color: var(--ink); }
.foot-links a:hover { color: var(--brand-soft); }
.legal { max-width: 70ch; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ---------- Entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(16px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: var(--i, 0s); }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; }
  .btn { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 40px); }
  .btn:not(.btn-sm) { width: 100%; padding: 0 16px; font-size: 15px; letter-spacing: 0.02em; white-space: nowrap; }
  .brand span { display: none; }
}

/* ---------- Policy page ---------- */
.doc { max-width: 720px; padding-block: clamp(32px, 7vw, 72px) 0; }
.doc h1 { margin-top: 14px; font-size: clamp(40px, 8vw, 72px); }
.doc .meta { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.doc .intro { margin-top: 28px; font-size: 17px; color: var(--muted); }
.doc .intro strong, .doc p strong { color: var(--ink); font-weight: 700; }
.doc section { margin-top: 56px; }
.doc h2 { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.doc h2::before { content: ""; flex: none; width: 4px; height: 18px; border-radius: 2px; background: var(--brand); }
.doc h3 { margin-top: 28px; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.2; text-transform: uppercase; }
.doc p, .doc li { margin-top: 12px; color: var(--muted); }
.doc li { margin-top: 8px; }
.doc ul { padding-left: 22px; }
.doc li::marker { color: var(--brand); }
.doc a { color: var(--brand-soft); text-underline-offset: 3px; }
.doc a:hover { text-decoration-thickness: 2px; }
.doc code { padding: 2px 6px; border-radius: 4px; background: var(--raised); font-size: 0.9em; color: var(--ink); }

.summary { margin-top: 40px; padding: 24px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.summary ul { list-style: none; padding: 0; }
.summary li { position: relative; padding-left: 32px; margin-top: 12px; color: var(--ink); }
.summary li:first-child { margin-top: 0; }
.summary li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230e0e10' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") center / 20px no-repeat; }

.who { margin-top: 16px; display: grid; gap: 12px; }
.who > div { padding: 18px 20px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.who h3 { margin: 0; font-size: 16px; }
.who p { margin-top: 6px; font-size: 15px; }

/* ---------- EZ Board additions: screenshots are tall (about 9:20); steps crop to the top, the gallery shows them whole ---------- */
.hero-icon { border-radius: 28%; }
.step-shot img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.shot img { width: 100%; aspect-ratio: 720 / 1601; object-fit: cover; object-position: top; }
.shots { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 40px auto 0; }
.shot { border: 2px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); }
@media (max-width: 520px) { .shots { grid-template-columns: 1fr; max-width: 320px; } }
