/* iziCast website – shared styles for all pages */

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-raised: #111114;
  --bg-card: #151518;
  --bg-inset: #0d0d10;
  --line: #24242a;
  --line-strong: #34343c;
  --text: #f4f2ee;
  --text-dim: #aeaab3;
  --text-faint: #75727c;
  --gold: #f2c418;
  --gold-light: #ffd84a;
  --gold-deep: #c99a06;
  --gold-soft: rgba(242, 196, 24, .12);
  --red: #ff3b30;
  --green: #34c759;
  --green-light: #6ee38a;
  --radius: 20px;
  --max: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* System fonts only: nothing is loaded from third-party servers */
  --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; margin: 0; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
code, kbd { font-family: var(--font-mono); font-size: .9em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font: 600 12.5px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.section { padding: 120px 0; scroll-margin-top: 40px; }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); }
.section-head p { margin-top: 18px; color: var(--text-dim); font-size: 19px; }
.muted { color: var(--text-dim); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--font-body); padding: 13px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text); background: transparent;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; border-color: var(--text-faint); background: rgba(255,255,255,.04); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #17130a; }
.btn.primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.badge-link { display: inline-block; border-radius: 10px; }
.badge-link img { height: 54px; width: auto; }
.badge-link:hover { opacity: .88; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 10, 12, .74);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled, .nav.solid { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 19px var(--font-head); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-dim); font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--gold); color: #17130a; font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.nav-cta:hover { text-decoration: none; background: var(--gold-light); }
.menu-btn {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer;
  place-items: center;
}
.menu-btn svg { width: 20px; height: 20px; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: min(100%, 320px); aspect-ratio: 554 / 1200;
  padding: 9px; border-radius: 52px; background: #0b0b0d;
  box-shadow: 0 0 0 2px #3d3c42, 0 0 0 4px #151518, 0 40px 120px -30px rgba(242,196,24,.35);
}
.phone img { width: 100%; height: 100%; border-radius: 43px; object-fit: cover; background: #555; }
.shot {
  width: 100%; height: auto; aspect-ratio: 554 / 1200; object-fit: cover; background: #555;
  border-radius: 34px; border: 6px solid #0b0b0d; box-shadow: 0 0 0 2px #3d3c42, 0 30px 80px -34px rgba(242,196,24,.35);
}
.tablet {
  position: relative; padding: 14px; border-radius: 36px; background: #0b0b0d;
  box-shadow: 0 0 0 2px #3d3c42, 0 0 0 4px #151518, 0 50px 120px -40px rgba(242,196,24,.35);
}
.tablet img { width: 100%; height: auto; border-radius: 22px; aspect-ratio: 1300 / 1736; object-fit: cover; background: #555; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
}
.card h3 { font-size: 22px; font-weight: 650; }
.card p { color: var(--text-dim); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--gold-soft); color: var(--gold); margin-bottom: 6px;
}
.icon svg { width: 23px; height: 23px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li, .chips span {
  font: 500 13px/1.2 var(--font-mono); padding: 7px 11px; border-radius: 9px;
  background: var(--bg-inset); border: 1px solid var(--line-strong); color: var(--text-dim);
}
.chips .on { color: var(--text); border-color: rgba(242,196,24,.55); background: rgba(242,196,24,.08); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font: 650 19px/1.35 var(--font-head); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 300 28px var(--font-body); color: var(--text-faint); transition: transform .2s, color .2s;
}
.faq summary:hover::after { color: var(--gold); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--gold); }
.faq .answer { padding: 0 0 26px; color: var(--text-dim); max-width: 740px; }
.faq .answer p + p, .faq .answer p + ul, .faq .answer ul + p { margin-top: 12px; }
.faq .answer strong { color: var(--text); font-weight: 600; }
.faq .answer ul { margin: 0; padding-left: 20px; }

/* ---------- Page header (sub pages) ---------- */
.page-head { position: relative; padding: 88px 0 56px; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: -60% -10% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(242,196,24,.13), transparent 70%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 820px; }
.page-head .lede { margin-top: 18px; color: var(--text-dim); font-size: 19px; max-width: 680px; }

/* ---------- Legal text ---------- */
.legal { padding-bottom: 120px; }
.legal .wrap { max-width: 840px; }
.legal section { margin-top: 56px; }
.legal h2 { font-size: 24px; margin-bottom: 14px; }
.legal section p, .legal section li { color: var(--text-dim); }
.legal section p + p { margin-top: 14px; }
.legal section p + h2, .legal section ul + h2 { margin-top: 38px; }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal strong { color: var(--text); font-weight: 600; }
.contact {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.contact > div { background: var(--bg-card); padding: 24px; }
.contact .label { font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; }
.contact p { color: var(--text); }

/* ---------- CTA band (sub pages) ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; justify-content: space-between;
  padding: 40px 44px; border-radius: 28px; border: 1px solid var(--line-strong);
  background: radial-gradient(600px 300px at 0% 0%, rgba(242,196,24,.14), transparent 70%), var(--bg-card);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); }
.cta-band p { margin-top: 8px; color: var(--text-dim); }
.cta-band .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: 14px; color: var(--text-faint); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .brand { font-size: 16px; }
footer .brand img { width: 24px; height: 24px; border-radius: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
footer a { color: var(--text-dim); }
footer a[aria-current="page"] { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
/* site.js staggers elements that appear together through --delay and drops the
   classes once the transition is done, so hover effects are not delayed. */
.reveal {
  opacity: 0; transform: translateY(28px) scale(.97);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (hover: hover) {
  .card { transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
  .card:hover {
    transform: translateY(-4px); border-color: var(--line-strong);
    box-shadow: 0 22px 50px -28px rgba(242,196,24,.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 64px; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  }
  .nav-links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav.open .nav-links { display: flex; }
  .menu-btn { display: grid; }
  .nav-cta { margin-left: auto; }
  .nav .wrap { gap: 16px; }
}
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 84px 0; }
  .card { padding: 24px; }
  .page-head { padding: 56px 0 40px; }
  .nav-links { padding: 8px 16px 18px; }
  .cta-band { padding: 30px 22px; }
  footer nav { margin-left: 0; }
}
