/* =====================================================
   fireflyy — design system
   Brand: firefly amber + dark midnight, modern software co.
   ===================================================== */

:root {
  /* ===== Brand palette =====
     Primary:   #FF5802 (firefly orange)
     Secondary: #0A0023 (deep midnight)
  */
  --orange-50:  #FFF1E8;
  --orange-100: #FFD9C2;
  --orange-200: #FFBC95;
  --orange-300: #FF9E66;
  --orange-400: #FF7A3D;
  --orange-500: #FF5802;   /* PRIMARY */
  --orange-600: #E64C00;
  --orange-700: #B33B00;

  /* Legacy aliases (kept so existing utility classes work) */
  --amber-50:  var(--orange-50);
  --amber-100: var(--orange-100);
  --amber-300: var(--orange-300);
  --amber-400: var(--orange-500);
  --amber-500: var(--orange-600);
  --amber-600: var(--orange-700);

  --ink-900: #0A0023;     /* SECONDARY: deep midnight */
  --ink-800: #1A1238;
  --ink-700: #2D2453;
  --ink-500: #5B5274;
  --ink-400: #8A83A1;
  --ink-300: #C7C4D2;
  --ink-200: #E6E4ED;
  --ink-100: #F3F2F7;
  --ink-50:  #FAFAFC;
  --white:   #FFFFFF;

  /* Deep purple secondary + brand gradient backdrops */
  --purple-500: #5A3EA2;
  --purple-700: #3A2670;
  --purple-headline: #3E3873;  /* used for all bold display text on light bg */
  --bg-deep:        linear-gradient(135deg, #5A3EA2 0%, #0A0023 72%);
  --bg-deep-radial: radial-gradient(60% 80% at 0% 0%, #5A3EA2 0%, #0A0023 65%);
  --bg-deep-vert:   linear-gradient(180deg, #2B1A5E 0%, #0A0023 70%);

  /* Semantic */
  --bg:        var(--white);
  --bg-soft:   var(--ink-50);
  --bg-tint:   var(--orange-50);
  --bg-dark:   var(--ink-900);
  --text:      var(--ink-900);
  --text-muted:var(--ink-500);
  --border:    var(--ink-200);
  --accent:    var(--orange-500);
  --accent-strong: var(--orange-600);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10,0,35,.04), 0 1px 1px rgba(10,0,35,.03);
  --shadow-md: 0 8px 24px rgba(10,0,35,.06), 0 2px 6px rgba(10,0,35,.04);
  --shadow-lg: 0 24px 60px rgba(10,0,35,.10), 0 6px 18px rgba(10,0,35,.06);
  --shadow-glow: 0 20px 60px -10px rgba(255,88,2,.45);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 800;
  color: var(--purple-headline);
}
/* Keep headings white on dark surfaces */
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.cta-block h1, .cta-block h2, .cta-block h3,
.bento--a h1, .bento--a h2, .bento--a h3,
.price-card--featured h1, .price-card--featured h2, .price-card--featured h3,
.footer h1, .footer h2, .footer h3, .footer h4 { color: #fff; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--text); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--text-muted); max-width: 60ch; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.eyebrow--plain::before { display: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--dark {
  background: var(--bg-deep);
  color: var(--white);
}
.section--dark .lead,
.section--dark p,
.section--dark .text-muted { color: rgba(255,255,255,.72); }
.section--tint { background: var(--bg-tint); }
.section--soft { background: var(--bg-soft); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.92);
  border-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  color: var(--purple-headline);
  height: 36px;
}
.nav__logo svg,
.nav__logo img { height: 32px; width: auto; display: block; }
.footer .nav__logo img { height: 36px; }
.nav__links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav__links a:not(.btn) {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-700);
  transition: background .15s ease, color .15s ease;
}
.nav__links a:not(.btn):hover { background: var(--ink-100); color: var(--ink-900); }
.nav__links a:not(.btn).active { color: var(--ink-900); background: var(--ink-100); }
.nav__cta { margin-left: 8px; }

.nav__burger {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  width: 16px; height: 2px; background: var(--ink-900); position: relative;
}
.nav__burger span::before,
.nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: var(--ink-900);
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after { top: 5px; }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: 72px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px;
    gap: 2px;
  }
  .nav.open .nav__links a { padding: 14px 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink-900);
  color: var(--white);
}
.btn--primary:hover { background: #000; box-shadow: var(--shadow-md); }

.btn--accent {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn--accent:hover { background: var(--orange-600); }

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--ink-100); }

.btn--ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.2);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,.06); }

.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(255,88,2,.18) 0%, rgba(255,88,2,0) 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(255,88,2,.12) 0%, rgba(255,88,2,0) 60%),
    var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
}
.hero__title { margin-bottom: 18px; }
.hero__title .hl {
  background: linear-gradient(120deg, var(--orange-500), var(--orange-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero__stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--purple-headline);
}
.hero__stat span { font-size: .9rem; color: var(--text-muted); }

/* Hero device mock */
.device {
  position: relative;
  margin-inline: auto;
  width: min(360px, 86%);
  aspect-ratio: 9 / 18.5;
  background: var(--ink-900);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(10,0,35,.06), 0 60px 100px -40px rgba(255,88,2,.35);
}
.device::before {
  content: "";
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; border-radius: var(--r-pill);
  background: #000;
}
.device__screen {
  width: 100%; height: 100%;
  border-radius: 32px;
  background: linear-gradient(160deg, #fff 0%, var(--orange-50) 100%);
  overflow: hidden;
  position: relative;
  padding: 56px 18px 22px;
}
.device__chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 8px 12px;
  font-size: 12px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.device__chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #16C172; box-shadow: 0 0 8px #16C172; }
.device__order {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.device__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px;
  border-bottom: 1px dashed var(--ink-200);
}
.device__row:last-child { border: 0; font-weight: 700; }
.device__cta {
  display: block; text-align: center;
  margin-top: 10px; padding: 12px;
  border-radius: var(--r-pill);
  background: var(--orange-500); color: var(--white);
  font-weight: 700; font-size: 13px;
}
.device__badge {
  position: absolute; left: -18px; top: 60%;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 10px 12px;
  box-shadow: var(--shadow-md);
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--ink-700);
}
.device__badge .pulse {
  width: 10px; height: 10px; border-radius: 50%; background: var(--amber-400);
  box-shadow: 0 0 0 6px rgba(255,88,2,.25);
}
.device__badge2 {
  position: absolute; right: -10px; top: 18%;
  background: var(--ink-900); color: #fff;
  border-radius: var(--r-md); padding: 10px 12px;
  font-size: 12px; box-shadow: var(--shadow-md);
}

/* ---------- Logo bar ---------- */
.logobar { padding: 28px 0; border-bottom: 1px solid var(--border); }
.logobar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.logobar__label { color: var(--text-muted); font-size: .85rem; font-weight: 500; }
.logobar__items {
  display: flex; gap: 32px; flex-wrap: wrap;
  color: var(--ink-400); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
}

/* ---------- Audience split (Trucks vs Venues) ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .audience { grid-template-columns: 1fr; } }
.audience__card {
  position: relative;
  padding: 36px;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.audience__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.audience__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--bg-tint);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.audience__card h3 { margin-bottom: 8px; }
.audience__card p { color: var(--text-muted); }
.audience__list { margin: 20px 0 24px; }
.audience__list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 6px 0; font-size: .95rem;
}
.audience__list li::before {
  content: "";
  flex: 0 0 18px; height: 18px; margin-top: 3px;
  background: var(--amber-400);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23000' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.4 7.4a1 1 0 0 1-1.4 0L3.3 9.5a1 1 0 1 1 1.4-1.4l3.9 3.9 6.7-6.7a1 1 0 0 1 1.4 0z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23000' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.4 7.4a1 1 0 0 1-1.4 0L3.3 9.5a1 1 0 1 1 1.4-1.4l3.9 3.9 6.7-6.7a1 1 0 0 1 1.4 0z'/></svg>") center/contain no-repeat;
}

/* ---------- Section header ---------- */
.s-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.s-head .eyebrow { justify-content: center; }
.s-head--left { text-align: left; margin-inline: 0; }
.s-head--left .eyebrow { justify-content: flex-start; }

/* ---------- Bento feature grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 18px;
}
.bento__card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bento__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento__card h3 { margin-bottom: 8px; }
.bento__card p { color: var(--text-muted); margin: 0; }
.bento__card .pill {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  padding: 5px 10px; border-radius: var(--r-pill);
  background: var(--bg-tint); color: var(--amber-600);
  margin-bottom: 16px;
}
.bento--a { grid-column: span 3; grid-row: span 2; background: var(--bg-deep); color: var(--white); border-color: transparent; }
.bento--a p { color: rgba(255,255,255,.7); }
.bento--b { grid-column: span 3; }
.bento--c { grid-column: span 2; }
.bento--d { grid-column: span 4; }
.bento--e { grid-column: span 2; }
.bento--f { grid-column: span 2; background: var(--bg-tint); border-color: transparent; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card { grid-column: span 2 !important; grid-row: auto !important; }
}

.viz { position: relative; height: 160px; margin-top: 20px; border-radius: var(--r-md); overflow: hidden; }
.viz--chart {
  background: linear-gradient(180deg, transparent 0%, rgba(255,88,2,.1) 100%);
  display: flex; align-items: flex-end; gap: 6px; padding: 10px;
}
.viz--chart i {
  display: block; flex: 1;
  background: linear-gradient(180deg, var(--amber-300), var(--amber-500));
  border-radius: 4px 4px 0 0;
}
.viz--qr {
  display: grid; place-items: center;
  background: var(--bg-soft);
}
.viz--qr svg { width: 80px; height: 80px; }
.viz--list {
  background: var(--bg-soft); padding: 12px; display: grid; gap: 6px;
}
.viz--list .row {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 8px 12px; border-radius: var(--r-md);
  font-size: 12px; border: 1px solid var(--border);
}
.viz--list .row .tag {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px;
  background: var(--bg-tint); color: var(--amber-600);
}

/* ---------- How it works ---------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: 0; }
.step__num {
  counter-increment: step;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink-900); color: var(--white);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em;
  position: relative;
}
.step__num::before {
  content: counter(step, decimal-leading-zero);
}
.step__num::after {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%; border: 1px dashed var(--ink-300);
  pointer-events: none;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--text-muted); margin: 0; max-width: 64ch; }

/* ---------- Comparison table ---------- */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare th, .compare td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  vertical-align: top;
}
.compare thead th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.check::before {
  content: "✓"; color: var(--amber-500); font-weight: 800; margin-right: 6px;
}
.compare td.x { color: var(--ink-400); }

/* Stacked cards on narrow screens — a 4-column table can't fit a phone,
   so each row becomes its own card and every cell shows its column name.
   The column label rides on ::after (::before is taken by the ✓/— mark). */
@media (max-width: 720px) {
  .compare {
    border: 0; background: transparent; border-radius: 0; overflow: visible;
  }
  /* Keep the header for assistive tech, hide it visually */
  .compare thead {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .compare tbody tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 4px 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
  }
  .compare tbody tr:last-child td { border-bottom: 1px solid var(--border); }
  .compare td {
    display: flex; align-items: baseline; gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
  }
  .compare tbody td:last-child { border-bottom: 0; }
  .compare td::after {
    content: attr(data-label);
    order: -1; margin-right: auto;
    color: var(--text-muted); font-weight: 600;
  }
  /* First cell is the row's feature name — promote it to a card heading */
  .compare tbody td:first-child {
    font-weight: 700; font-size: 1rem;
    color: var(--purple-headline);
    padding-top: 14px;
    border-bottom: 2px solid var(--border);
  }
  .compare tbody td:first-child::after { content: none; }
}

/* ---------- Testimonial / Big quote ---------- */
.quote {
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  color: var(--purple-headline);
}
.quote__author {
  margin-top: 24px;
  display: flex; gap: 14px; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.quote__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-400), var(--orange-600));
  display: grid; place-items: center; color: var(--white); font-weight: 800;
}

/* ---------- CTA block ---------- */
.cta-block {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255,88,2,.32) 0%, rgba(255,88,2,0) 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(90,62,162,.55) 0%, rgba(90,62,162,0) 65%),
    linear-gradient(135deg, #2B1A5E 0%, #0A0023 70%);
  color: var(--white);
  overflow: hidden;
}
.cta-block h2 { color: var(--white); }
.cta-block p { color: rgba(255,255,255,.72); max-width: 56ch; }
.cta-block__row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Form ---------- */
.form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-700); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--white);
  font: inherit; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(255,88,2,.18);
}
.field textarea { min-height: 120px; resize: vertical; }
.field--row { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }

.toggle {
  display: flex; gap: 6px; padding: 6px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r-pill);
  width: fit-content;
  margin-bottom: 24px;
}
.toggle button {
  border: 0; background: transparent;
  padding: 10px 18px; border-radius: var(--r-pill);
  font-weight: 600; color: var(--ink-700);
  transition: background .15s ease, color .15s ease;
}
.toggle button[aria-pressed="true"] {
  background: var(--ink-900); color: var(--white);
}

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 980px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.price-card--featured {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255,88,2,.22) 0%, rgba(255,88,2,0) 60%),
    linear-gradient(160deg, #3A2670 0%, #0A0023 72%);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.price-card--featured p,
.price-card--featured .price__period,
.price-card--featured .price__fine { color: rgba(255,255,255,.72); }
.price-card--featured .price__list li { color: rgba(255,255,255,.85); }
.price-card__badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--orange-500); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
}
.price-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.price-card .price__tag {
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 18px;
}
.price-card--featured .price__tag { color: rgba(255,255,255,.6); }
.price__amount {
  display: flex; align-items: baseline; gap: 6px;
  margin: 0 0 6px;
}
.price__amount .num {
  font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  color: var(--purple-headline);
}
.price-card--featured .price__amount .num { color: #fff; }
.price__period { font-size: .95rem; color: var(--text-muted); }
.price__fine { font-size: .85rem; color: var(--text-muted); margin: 0 0 22px; }
.price__list { margin: 4px 0 28px; }
.price__list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; font-size: .95rem;
}
.price__list li::before {
  content: "";
  flex: 0 0 18px; height: 18px; margin-top: 3px;
  background: var(--orange-500);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23000' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.4 7.4a1 1 0 0 1-1.4 0L3.3 9.5a1 1 0 1 1 1.4-1.4l3.9 3.9 6.7-6.7a1 1 0 0 1 1.4 0z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23000' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.4 7.4a1 1 0 0 1-1.4 0L3.3 9.5a1 1 0 1 1 1.4-1.4l3.9 3.9 6.7-6.7a1 1 0 0 1 1.4 0z'/></svg>") center/contain no-repeat;
}
.price-card .btn { margin-top: auto; width: 100%; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--text-muted);
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin: 12px 0 0; color: var(--text-muted); max-width: 64ch; }

/* Form feedback states */
.form__status {
  display: none;
  margin-top: 18px; padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: .95rem;
}
.form__status.is-visible { display: block; }
.form__status--success {
  background: #ECFDF3; color: #066B3F;
  border: 1px solid #B6E7CB;
}
.form__status--error {
  background: #FEF2F2; color: #B42318;
  border: 1px solid #FECDCA;
}

/* ---------- Footer ---------- */
.footer {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(90,62,162,.45) 0%, rgba(90,62,162,0) 65%),
    linear-gradient(180deg, #1A1240 0%, #0A0023 60%);
  color: rgba(255,255,255,.7);
  padding: 72px 0 32px;
}
.footer a { color: rgba(255,255,255,.8); }
.footer a:hover { color: var(--white); }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 820px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
}
.footer__brand p { color: rgba(255,255,255,.6); max-width: 32ch; }
.footer__brand .nav__logo { color: #fff; }
.footer__col h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer__col li { margin: 8px 0; font-size: .95rem; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: rgba(255,255,255,.55);
}
.footer__bottom a { color: rgba(255,255,255,.7); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 600;
  background: var(--bg-tint); color: var(--amber-600);
}

/* Subtle entrance */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}


/* ===== Fireflyy website rebuild alt v1 ===== */
.hero--visual { background: radial-gradient(circle at 15% 20%, rgba(90,62,162,.10), transparent 36%), linear-gradient(180deg,#fff 0%,#fafafc 100%); }
.hero--compact { padding: clamp(72px,8vw,120px) 0; background: linear-gradient(180deg,#fff 0%,#fafafc 100%); }
.hero__inner--wide { grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(36px,6vw,72px); }
.hero-copy { padding: 24px 0; }
.hero-shot { border-radius: 28px; overflow: hidden; box-shadow: 0 30px 90px rgba(10,0,35,.18); border: 1px solid rgba(10,0,35,.08); background: #fff; }
.hero-shot img { width:100%; height:100%; object-fit:cover; }
.sign-card { padding: 24px; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.sign-card img { max-height: 560px; margin: 0 auto; object-fit: contain; }
.benefit-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 42px; }
.benefit-card { background:#fff; border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-sm); }
.benefit-card span { display:inline-flex; width:34px; height:34px; border-radius:50%; align-items:center; justify-content:center; background: var(--orange-500); color:#fff; font-weight:800; margin-bottom:18px; }
.feature-split { display:grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items:center; }
.check-list { margin-top: 24px; display:grid; gap:12px; }
.check-list li { position:relative; padding-left: 28px; color: var(--ink-700); }
.check-list li::before { content:'✓'; position:absolute; left:0; top:0; color: var(--orange-500); font-weight:900; }
.screen-stack { display:grid; gap:18px; }
.screen-stack img, .screen-gallery figure img { border-radius: 18px; border: 2px solid #d7d3e4; box-shadow: 0 20px 54px rgba(10,0,35,.14); background:#fff; }
.screen-stack img:first-child { transform: translateX(-12px); }
.screen-stack img:last-child { transform: translateX(28px); }
.screen-gallery { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; margin-top: 42px; }
.screen-gallery--wide { margin-top:0; }
.screen-gallery figure { margin:0; background:#fff; border: 1px solid var(--border); border-radius:24px; padding:14px; box-shadow: var(--shadow-md); }
.screen-gallery figcaption { display:grid; gap:4px; padding: 14px 6px 4px; }
.screen-gallery figcaption strong { color: var(--purple-headline); font-size: 1.05rem; }
.screen-gallery figcaption span { color: var(--text-muted); font-size:.94rem; }
.bento--simple { grid-template-columns: repeat(3, 1fr); grid-auto-rows:auto; }
.bento--simple .bento__card { grid-column: auto !important; min-height: 170px; }
.feature-list { display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.feature-list article { background:#fff; padding:28px; border-radius:24px; border:1px solid var(--border); box-shadow: var(--shadow-sm); }
.pricing--two { grid-template-columns: 1.1fr .9fr; }
.pricing--single { grid-template-columns: 1fr; }

/* Full-width horizontal variant of the featured pricing card */
.price-card--wide {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5vw, 56px);
}
.price-card--wide .price-card__intro { display: flex; flex-direction: column; align-items: flex-start; }
.price-card--wide .price__list { margin: 0; }
.price-card--wide .btn { align-self: flex-start; margin-top: 24px; }
@media (max-width: 900px) {
  .price-card--wide { grid-template-columns: 1fr; gap: 24px; }
}
.price-sign { border-radius: 20px; border: 1px solid rgba(10,0,35,.08); box-shadow: var(--shadow-md); margin-top: 18px; }
.contact-grid { align-items:start; }
.contact-callout { margin-top: 28px; padding: 22px; border-radius: 20px; background: var(--ink-50); border:1px solid var(--border); color: var(--ink-700); }
.form__hint { color: var(--text-muted); font-size: .85rem; margin-top: 14px; }
.cta-block--clean { display:flex; justify-content:space-between; align-items:center; gap:24px; }
.footer__bottom {
  color: rgba(255,255,255,.55);
  padding-top: 24px;
  padding-bottom: 34px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__legal a { color: rgba(255,255,255,.7); }
.footer__legal a:hover { color: #fff; }
.footer__legal span { color: rgba(255,255,255,.35); margin: 0 8px; }
@media (max-width:900px){ .hero__inner--wide,.feature-split,.pricing--two{grid-template-columns:1fr}.benefit-grid,.feature-list{grid-template-columns:1fr}.screen-gallery{grid-template-columns:1fr}.screen-stack img{transform:none!important}.cta-block--clean{flex-direction:column;align-items:flex-start}}

/* 9-card icon feature grid (Fireflyy Features) */
.feature-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
  margin-top: 56px;
}
.feature-icons__item h3 {
  color: var(--purple-headline);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 22px 0 12px;
}
.feature-icons__item p {
  color: var(--ink-500);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 34ch;
}
.feature-icons__icon {
  width: 56px; height: 56px;
  color: var(--orange-500);
  display: block;
}
@media (max-width: 900px) {
  .feature-icons { grid-template-columns: repeat(2, 1fr); gap: 48px 36px; }
}
@media (max-width: 620px) {
  .feature-icons { grid-template-columns: 1fr; gap: 36px; }
}

/* Section anchor offset — accounts for sticky nav when scrolling to #anchor */
section[id] { scroll-margin-top: 88px; }

/* Consecutive feature-splits in the same section: subtle divider + spacing */
.feature-split + .feature-split {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--border);
}

/* Alternating single-image block variant of .feature-split (image on left) */
.feature-split--reverse .feature-split__copy { order: 2; }
.feature-split--reverse .feature-split__media { order: 1; }
@media (max-width: 900px) {
  .feature-split--reverse .feature-split__copy,
  .feature-split--reverse .feature-split__media { order: unset; }
}
/* Single-image media panel (works for phone-shot mobile screens or wide desktop screens) */
.feature-split__media { display: grid; place-items: center; }
.feature-split__media img {
  border-radius: 18px;
  border: 2px solid #d7d3e4;
  box-shadow: 0 20px 54px rgba(10,0,35,.14);
  background: #fff;
  max-width: 100%;
  height: auto;
}
.feature-split__media--mobile img { max-width: 320px; width: 100%; }
@media (max-width: 900px) {
  .feature-split__media--mobile img { max-width: 280px; }
}
