:root { color-scheme: light; }
html, body { background: #FFFFFF; }
body { font-family: 'Inter', system-ui, sans-serif; color: #0F172A; -webkit-font-smoothing: antialiased; }

/* Subtle hero gradient — soft, modern, not heavy */
.hero-bg {
  background:
    radial-gradient(60% 50% at 75% 25%, rgba(234,88,12,.06) 0%, transparent 60%),
    radial-gradient(60% 50% at 18% 35%, rgba(30,64,175,.07) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #FAFAF7 100%);
}

/* Background grid pattern on hero — very subtle */
.grid-overlay {
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 70%);
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* Buttons */
.btn-primary {
  background: #C2410C; color: #FFFFFF;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 1px 2px rgba(124,45,18,.3), 0 6px 16px -4px rgba(194,65,12,.3);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-primary:hover { background: #9A3412; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 1px 2px rgba(124,45,18,.3), 0 10px 22px -4px rgba(194,65,12,.4); }
.btn-secondary {
  background: #FFFFFF; color: #0F172A; border: 1px solid #E2E8F0;
  transition: border-color .15s, background .15s, transform .15s;
}
.btn-secondary:hover { border-color: #CBD5E1; background: #F8FAFC; }

/* Keyboard focus visibility (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, summary:focus-visible,
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-custom:focus-visible,
.user-selector .ctrl:focus-visible {
  outline: 3px solid #1E40AF;
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---- Nav + mega menu ---- */
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #475569;
  background: none; border: 0; cursor: pointer;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: #0F172A; background: #F1F5F9; }
.mega { position: relative; }
.mega-chevron { transition: transform .2s; opacity: .7; }
.mega:hover .mega-chevron, .mega:focus-within .mega-chevron { transform: rotate(180deg); }
.mega:hover .mega-trigger, .mega:focus-within .mega-trigger { color: #0F172A; background: #F1F5F9; }
.mega-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 600px; max-width: 92vw;
  background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 50px -20px rgba(15,23,42,.22);
  padding: 14px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.mega-panel::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.mega:hover .mega-panel, .mega:focus-within .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.mega-heading { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; padding: 6px 10px; }
.mega-link { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 10px; transition: background .15s; }
.mega-link:hover { background: #F8FAFC; }
.mega-ic { flex: none; width: 34px; height: 34px; border-radius: 8px; background: #FFF7ED; color: #C2410C; display: inline-flex; align-items: center; justify-content: center; }
.mega-ic svg { width: 18px; height: 18px; }
.mega-t { display: block; font-size: 14px; font-weight: 600; color: #0F172A; }
.mega-d { display: block; font-size: 12px; color: #64748B; margin-top: 1px; }
.nav-burger { color: #334155; padding: 6px; border-radius: 8px; }
.nav-burger:hover { background: #F1F5F9; }
.mob-link { display: block; padding: 10px; border-radius: 8px; font-size: 15px; font-weight: 500; color: #334155; }
.mob-link:hover { background: #F1F5F9; }

/* Mobile slide-in drawer */
.nav-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.nav-drawer.open { visibility: visible; }
.nav-drawer-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); opacity: 0; transition: opacity .25s ease; }
.nav-drawer.open .nav-drawer-backdrop { opacity: 1; }
.nav-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(86vw, 360px); background: #FFFFFF;
  box-shadow: -12px 0 40px rgba(15,23,42,.22);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #E2E8F0; }
.nav-drawer-close { padding: 6px; border-radius: 8px; color: #334155; }
.nav-drawer-close:hover { background: #F1F5F9; }
.nav-drawer-body { padding: 16px 14px; overflow-y: auto; flex: 1; }
.drawer-link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #0F172A; }
.drawer-link:hover, .drawer-link:active { background: #F8FAFC; }
@media (prefers-reduced-motion: reduce) { .nav-drawer-panel { transition: none; } }

/* Pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(234,88,12,.08); border: 1px solid rgba(234,88,12,.18);
  color: #9A3412; font-size: 13px; font-weight: 500;
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: #EA580C; animation: pulse 2.2s ease-in-out infinite; }

/* Section eyebrow */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: #EA580C; letter-spacing: .04em; text-transform: uppercase;
}

/* Gradient text accent */
.grad-text {
  background: linear-gradient(135deg, #EA580C 0%, #C2410C 50%, #1E40AF 100%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent;
}

/* Product screenshot frame — clean, no fake browser chrome */
.screen-frame {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 40px 80px -30px rgba(15,23,42,.25), 0 0 0 8px rgba(15,23,42,.02);
}
.screen-frame > img { display: block; width: 100%; }

/* Device frames for floor (tablet) + driver (phone) */
.tablet-frame {
  background: #0F172A; padding: 14px; border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.25);
}
.tablet-frame > img { display: block; width: 100%; border-radius: 10px; }
.tablet-frame .mock { display: block; width: 100%; border-radius: 10px; overflow: hidden; }

.phone-frame {
  background: #0F172A; padding: 10px 10px 12px;
  border-radius: 38px; position: relative;
  max-width: 280px; margin: 0 auto;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.3);
}
.phone-frame::before {
  content: ""; position: absolute; top: 18px; left: 50%;
  transform: translateX(-50%); width: 80px; height: 22px;
  background: #000; border-radius: 99px; z-index: 2;
}
.phone-frame > img { display: block; width: 100%; border-radius: 28px; position: relative; }
.phone-frame .mock { display: block; width: 100%; border-radius: 28px; overflow: hidden; position: relative; }

/* Feature card */
.feature-card {
  background: #FFFFFF; border: 1px solid #E2E8F0;
  border-radius: 16px; padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature-card:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 30px -10px rgba(15,23,42,.1);
}

/* Stage card */
.stage-card {
  background: #FFFFFF; border: 1px solid #E2E8F0;
  border-radius: 16px; padding: 24px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.stage-card:hover { border-color: #EA580C; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 30px -10px rgba(234,88,12,.15); transform: translateY(-2px); }

/* Pricing card */
.price-card {
  background: #FFFFFF; border: 1px solid #E2E8F0;
  border-radius: 20px; padding: 32px;
  transition: border-color .25s, box-shadow .25s;
}
.price-card.featured {
  border: 2px solid #EA580C;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 60px -20px rgba(234,88,12,.25);
  position: relative;
}
.price-card.featured::before {
  content: 'Most popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #EA580C; color: white;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}

/* Custom dark tier card */
.price-card.custom-dark {
  background: #0F172A;
  color: #F8FAFC;
  border: 1px solid #0F172A;
}
.price-card.custom-dark h3 { color: #FFFFFF; }
.price-card.custom-dark p { color: rgba(248,250,252,.7); }
.price-card.custom-dark .price-amount { color: #FFFFFF; }
.price-card.custom-dark .feature-divider { border-top: 1px solid rgba(255,255,255,.1); }
.price-card.custom-dark .feature-heading { color: rgba(248,250,252,.55); }
.price-card.custom-dark ul li { color: rgba(248,250,252,.85); }
.price-card.custom-dark .btn-custom {
  background: #FFFFFF; color: #0F172A;
  transition: background .15s, transform .15s;
}
.price-card.custom-dark .btn-custom:hover { background: #F1F5F9; transform: translateY(-1px); }

/* User count selector */
.user-selector {
  display: inline-flex; align-items: center; gap: 16px;
  background: #FFFFFF; border: 1px solid #E2E8F0;
  border-radius: 999px; padding: 10px 18px;
}
.user-selector .label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: #64748B;
}
.user-selector .count {
  font-size: 22px; font-weight: 700; color: #0F172A;
  min-width: 28px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.user-selector .ctrl {
  width: 32px; height: 32px; border-radius: 999px;
  background: #F1F5F9; color: #0F172A;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  font-size: 18px; font-weight: 600;
}
.user-selector .ctrl:hover:not(:disabled) { background: #EA580C; color: white; }
.user-selector .ctrl:disabled { opacity: 0.35; cursor: not-allowed; }

/* Duration block — each pricing option as its own distinct card */
.duration-block {
  padding: 14px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
  transition: border-color .2s, background .2s;
}
.duration-block + .duration-block { margin-top: 10px; }
.duration-block.best {
  background: linear-gradient(180deg, #ECFDF5 0%, #F0FDF4 100%);
  border-color: #6EE7B7;
  box-shadow: 0 0 0 3px rgba(110,231,183,.12);
}
.duration-block .duration-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.duration-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #475569;
}
.duration-block.best .duration-label { color: #047857; }
.savings-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  background: #FFFFFF; color: #059669;
  border: 1px solid #A7F3D0;
}
.duration-block.best .savings-badge { background: #059669; color: white; border-color: #059669; }
.duration-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-top: 2px;
}
.duration-price .amount {
  font-size: 30px; font-weight: 800; color: #0F172A;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.duration-price .unit {
  font-size: 13px; font-weight: 500; color: #64748B;
}
.duration-total {
  font-size: 12px; color: #475569;
  margin-top: 6px;
}
.duration-total strong { color: #0F172A; font-weight: 700; }
/* Best-deal label */
.best-marker {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #047857;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.best-marker::before, .best-marker::after {
  content: ''; flex: 1; height: 1px; background: #A7F3D0;
}

/* Compare features table */
.compare-wrap {
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #FFFFFF;
}
.compare-table {
  width: 100%; min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table thead th {
  padding: 22px 16px;
  text-align: center;
  vertical-align: middle;
  background: #FAFAF7;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 64px; /* sits just below the 64px sticky nav */
  z-index: 3;
}
.compare-table thead th:first-child { z-index: 4; }
.compare-table thead th .tier-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 600; color: #0F172A;
  line-height: 1.1;
}
.compare-table thead th.tier-featured .tier-name { color: #EA580C; }
.compare-table thead th:first-child {
  text-align: left;
  background: #FAFAF7;
}
.compare-table thead th:first-child .label {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #94A3B8;
}
.compare-table tbody tr.category-row td {
  background: #F8FAFC; padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #475569;
  border-bottom: 1px solid #E2E8F0;
  border-top: 1px solid #E2E8F0;
}
.compare-table tbody td {
  padding: 14px 16px;
  text-align: center;
  color: #475569;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: top;
}
.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 600; color: #0F172A;
}
.compare-table .yes {
  color: #059669; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: #ECFDF5;
}
.compare-table .no { color: #94A3B8; font-size: 18px; }
.compare-table .note {
  font-size: 12px; color: #64748B;
  display: block; font-weight: 400; margin-top: 2px;
}

/* Mobile: horizontal scroll + sticky first column (feature names stay while you swipe) */
@media (max-width: 768px) {
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table thead th { position: static; }
  .compare-table tbody td:first-child {
    position: sticky; left: 0; z-index: 2;
    background: #FFFFFF;
    box-shadow: 1px 0 0 rgba(15,23,42,.06);
  }
  .compare-table thead th:first-child { position: sticky; left: 0; background: #FAFAF7; z-index: 4; }
  .compare-table tbody tr.category-row td:first-child { background: #F8FAFC; }
}

/* FAQ */
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; color: #0F172A;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .25s; flex-shrink: 0; color: #94A3B8; }
.faq[open] summary .chev { transform: rotate(180deg); color: #EA580C; }
.faq .answer { padding: 0 0 22px; color: #475569; line-height: 1.65; }
.faq + .faq { border-top: 1px solid #E2E8F0; }

/* Comparison cells */
.check-yes  { color: #059669; font-weight: 600; }
.check-no   { color: #DC2626; }
.check-mid  { color: #D97706; }

/* Prose for legal / content pages */
.prose-page { color: #334155; line-height: 1.7; }
.prose-page h2 { font-size: 22px; font-weight: 800; color: #0F172A; margin: 36px 0 12px; }
.prose-page h3 { font-size: 17px; font-weight: 700; color: #0F172A; margin: 24px 0 8px; }
.prose-page p { margin: 12px 0; }
.prose-page ul { margin: 12px 0; padding-left: 22px; list-style: disc; }
.prose-page li { margin: 6px 0; }
.prose-page a { color: #C2410C; text-decoration: underline; }

/* Marquee */
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee-track { animation: scroll-x 42s linear infinite; display: flex; gap: 48px; padding-right: 48px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-float, .animate-pulse, .marquee-track { animation: none; }
}
