/* ───────── Tokens (mirrors the OrbiSignage CMS palette) ───────── */
:root {
  --bg: #f0f4f9;
  --bg-alt: #e8eef6;
  --shell: #ffffff;          /* card / surface */
  --ink: #1a2133;
  --ink-2: #3d4a5c;
  --muted: #7a8799;
  --line: #e1e8f0;
  --line-soft: #edf1f7;
  --accent: #ff5a1f;
  --accent-hover: #e54a10;
  --accent-soft: rgb(255 90 31 / 10%);
  --accent-glow: 0 0 0 3px rgb(255 90 31 / 18%);

  /* inverted ("dark band") surfaces — stats, footer, free callout */
  --invert-bg: #1a2133;
  --invert-fg: #ffffff;
  --invert-fg-soft: rgb(255 255 255 / 60%);
  --invert-line: rgb(255 255 255 / 10%);

  --nav-bg: rgb(255 255 255 / 82%);

  --shadow: 0 4px 24px rgb(15 25 50 / 8%), 0 1px 4px rgb(15 25 50 / 5%);
  --shadow-sm: 0 2px 8px rgb(15 25 50 / 6%);
  --shadow-lg: 0 8px 40px rgb(15 25 50 / 12%), 0 2px 8px rgb(15 25 50 / 6%);
  --shadow-accent: 0 20px 50px rgb(255 90 31 / 18%);

  --radius: 16px;
  --radius-lg: 24px;
  --max: 1140px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0e1626;
  --shell: #131c2e;
  --ink: #eaf0f9;
  --ink-2: #b3c0d4;
  --muted: #7e8ca3;
  --line: #243248;
  --line-soft: #1c2738;
  --accent: #ff6a33;
  --accent-hover: #ff7d4d;
  --accent-soft: rgb(255 106 51 / 16%);
  --accent-glow: 0 0 0 3px rgb(255 106 51 / 25%);

  --invert-bg: #0e1626;
  --invert-fg: #eaf0f9;
  --invert-fg-soft: #7e8ca3;
  --invert-line: #243248;

  --nav-bg: rgb(19 28 46 / 82%);

  --shadow: 0 4px 24px rgb(0 0 0 / 40%), 0 1px 4px rgb(0 0 0 / 30%);
  --shadow-sm: 0 2px 8px rgb(0 0 0 / 30%);
  --shadow-lg: 0 8px 40px rgb(0 0 0 / 50%), 0 2px 8px rgb(0 0 0 / 35%);
  --shadow-accent: 0 20px 50px rgb(0 0 0 / 50%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 16px;
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgb(255 90 31 / 28%); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 26px rgb(255 90 31 / 36%); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-outline { background: var(--shell); color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ───────── Theme switch (matches CMS) ───────── */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; }
.theme-opt { width: 32px; height: 32px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 999px; cursor: pointer; color: var(--muted); transition: background .15s, color .15s; }
.theme-opt svg { width: 17px; height: 17px; }
.theme-opt:hover { color: var(--ink); }
.theme-opt.is-active { background: var(--shell); color: var(--accent); box-shadow: var(--shadow-sm); }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .25s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 38px; width: auto; display: block; }
/* Theme-aware nav logo: black artwork by day, white at night. */
.logo-night { display: none; }
html[data-theme="dark"] .logo-day { display: none; }
html[data-theme="dark"] .logo-night { display: block; }
/* (Footer sits on a dark band in both themes, so it uses the white logo directly.) */
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-weight: 500; color: var(--ink-2); font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ───────── Hero ───────── */
.hero { padding: 72px 0 80px; background:
  radial-gradient(1100px 460px at 80% -10%, var(--accent-soft), transparent 60%),
  radial-gradient(700px 360px at 0% 10%, var(--accent-soft), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
.hero-copy .lead { margin-top: 18px; font-size: 1.12rem; color: var(--ink-2); max-width: 36ch; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.hero-trust strong { color: var(--ink); }

/* Hero visual */
.hero-visual { position: relative; min-height: 360px; }
.screen-mock { position: absolute; width: 300px; border-radius: 18px; background: #1b1612; box-shadow: var(--shadow-accent); overflow: hidden; border: 1px solid rgb(255 255 255 / 8%); }
.screen-mock-1 { top: 10px; left: 8%; transform: rotate(-4deg); z-index: 2; }
.screen-mock-2 { bottom: 6px; right: 4%; transform: rotate(5deg); width: 240px; z-index: 1; }
.screen-bar { display: flex; gap: 6px; padding: 10px 12px; background: rgb(255 255 255 / 5%); }
.screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / 25%); }
.screen-body { aspect-ratio: 16/10; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; color: #fff; }
.screen-body strong { font-size: 1.25rem; line-height: 1.2; }
.screen-tag { align-self: flex-start; font-size: .65rem; font-weight: 700; letter-spacing: .1em; background: rgb(0 0 0 / 35%); padding: 4px 9px; border-radius: 999px; }
.screen-grad-1 { background: linear-gradient(135deg, #ff7a45, #e0490f); }
.screen-grad-2 { background: linear-gradient(135deg, #2b2723, #16110d); }
.floating-stat { position: absolute; background: var(--shell); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--line); }
.floating-stat strong { font-size: 1.2rem; color: var(--accent); }
.floating-stat span { font-size: .72rem; color: var(--muted); }
.floating-stat-1 { top: 0; right: 2%; animation: float 5s ease-in-out infinite; }
.floating-stat-2 { bottom: 14%; left: 0; animation: float 6s ease-in-out infinite .5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ───────── Logos ───────── */
.logos { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.logos-label { text-align: center; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.logos-row { display: flex; flex-wrap: wrap; gap: 22px 40px; justify-content: space-between; align-items: center; }
.logos-row span { font-weight: 700; color: var(--muted); opacity: .7; font-size: 1.05rem; letter-spacing: -.01em; }
/* Monochrome partner logos: render each source image as a flat silhouette in the
   muted text colour via CSS mask, so they stay on-brand with the theme (and adapt
   to light/dark) regardless of the original logo colours. Needs transparent PNG/SVG. */
.logos-row .logo-mark {
  flex: 0 0 auto;
  width: 130px;
  height: 26px;
  opacity: .7;
  background-color: var(--muted);
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  transition: opacity .18s ease;
}
.logos-row .logo-mark:hover { opacity: 1; }

/* ───────── Sections ───────── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.06rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.feature-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1.4rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: .97rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; }
.step-num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .97rem; }

/* Stats */
.stats { padding: 56px 0; background: var(--invert-bg); color: var(--invert-fg); border-top: 1px solid var(--invert-line); border-bottom: 1px solid var(--invert-line); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--invert-fg); }
.stat span { font-size: .9rem; color: var(--invert-fg-soft); }

/* Pricing */
.cycle-toggle { display: inline-flex; gap: 4px; padding: 5px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; margin-top: 26px; }
.cycle-opt { border: 0; background: transparent; font-family: var(--font); font-weight: 600; font-size: .92rem; padding: 9px 18px; border-radius: 999px; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.cycle-opt.is-active { background: var(--shell); color: var(--ink); box-shadow: var(--shadow-sm); }
.cycle-save { font-size: .7rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; position: relative; }
.plan.popular { border-color: var(--accent); box-shadow: var(--shadow-accent); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 14px; border-radius: 999px; }
.plan-name { font-size: 1.1rem; font-weight: 800; }
.plan-tag { color: var(--muted); font-size: .85rem; margin-top: 4px; min-height: 2.4em; }
.plan-price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .amt { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.plan-price .per { color: var(--muted); font-size: .85rem; }
.plan-sub { font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.plan-feats { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.plan-feats li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--ink-2); }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .7rem; font-weight: 800; }
.plan .btn { margin-top: auto; }

.free-callout { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--invert-bg); color: var(--invert-fg); border: 1px solid var(--invert-line); border-radius: var(--radius-lg); padding: 28px 32px; flex-wrap: wrap; }
.free-callout h3 { font-size: 1.3rem; margin-bottom: 6px; }
.free-callout p { color: var(--invert-fg-soft); max-width: 60ch; font-size: .95rem; }
.free-callout .btn { background: var(--accent); color: #fff; border: 0; }
.free-callout .btn:hover { background: var(--accent-hover); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.quote p { color: var(--ink); font-size: 1rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.quote figcaption strong { display: block; font-size: .92rem; }
.quote figcaption span { font-size: .8rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: .96rem; }

/* Signup */
.signup-section { background: transparent; }
.signup-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); }
.signup-copy h2 { font-size: 1.8rem; font-weight: 800; }
.signup-copy p { margin-top: 12px; color: var(--ink-2); }
.signup-perks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.signup-perks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.signup-perks li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; }
.signup-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select { font-family: var(--font); font-size: .98rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: var(--accent-glow); }
.field input.invalid { border-color: #e23b3b; }
.signup-fineprint { font-size: .78rem; color: var(--muted); text-align: center; }
.signup-result { border-radius: 12px; padding: 16px 18px; font-size: .95rem; }
.signup-result.ok { background: rgb(22 163 74 / 12%); border: 1px solid rgb(22 163 74 / 35%); color: #16a34a; }
.signup-result.err { background: rgb(220 38 38 / 12%); border: 1px solid rgb(220 38 38 / 35%); color: #dc2626; }
.signup-result a { color: var(--accent); font-weight: 700; }

/* Footer */
.footer { background: var(--invert-bg); color: var(--invert-fg); border-top: 1px solid var(--invert-line); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 44px; }
.footer-brand p { color: var(--invert-fg-soft); margin-top: 12px; max-width: 32ch; font-size: .92rem; }
.footer-col h4 { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--invert-fg-soft); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--invert-fg); opacity: .8; font-size: .92rem; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--invert-line); color: var(--invert-fg-soft); font-size: .85rem; }

/* ───────── Responsive ───────── */
@media (max-width: 1024px) {
  .hero-grid { gap: 36px; }
  .feature-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--shell); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; transform: translateY(-120%); transition: transform .28s ease; box-shadow: var(--shadow); }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .signup-card { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .feature-grid, .quotes, .plans { grid-template-columns: 1fr; }
  .free-callout { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy .lead { max-width: none; }
  .nav-actions .btn-primary { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
