/* Nexocide Event Manager — landing page
   Design tokens mirror the product (maroon / marigold / ivory, Fraunces + Inter). */

:root {
  --maroon: #7a1f3d;
  --maroon-700: #651932;
  --maroon-800: #4d1226;
  --maroon-900: #3a0e1d;
  --gold: #e8a317;
  --gold-600: #c98a0a;
  --gold-soft: #fdf1d8;
  --ivory: #faf7f2;
  --ivory-2: #f3ede3;
  --ink: #1f2937;
  --ink-900: #151b25;
  --muted: #6b7280;
  --line: #e7e1d8;
  --surface: #fff;
  --brand: var(--maroon);

  --green-bg: #e3f4ea; --green: #1e6b43;
  --blue-bg: #e4eefb; --blue: #1d4f91;
  --amber-bg: #fdf1d8; --amber: #8a5a00;
  --purple-bg: #ede7f6; --purple: #5b3a99;
  --red-bg: #fbe4e4; --red: #9b1c1c;
  --stone-bg: #eceae6; --stone: #44403c;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, .06), 0 1px 3px rgba(31, 41, 55, .06);
  --shadow: 0 10px 30px -12px rgba(58, 14, 29, .25), 0 2px 6px rgba(31, 41, 55, .05);
  --shadow-lg: 0 40px 80px -30px rgba(20, 5, 12, .6), 0 12px 24px -12px rgba(20, 5, 12, .35);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--font-mono); font-size: .86em; }
.muted { color: var(--muted); } .center { text-align: center; } .right { text-align: right; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 40px); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1.5px solid transparent; border-radius: 999px; padding: 11px 22px;
  font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.2;
  transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 8px 16px; font-size: .88rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--primary { background: var(--maroon); color: #fff; box-shadow: 0 6px 16px -6px rgba(122, 31, 61, .55); }
.btn--primary:hover { background: var(--maroon-700); }
.btn--gold { background: var(--gold); color: #2a1a00; box-shadow: 0 8px 22px -8px rgba(232, 163, 23, .7); }
.btn--gold:hover { background: #f2b32c; }
.btn--ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(31, 41, 55, .35); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { height: 34px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; }
.brand__text span { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--maroon); margin-top: 3px; }
.brand--light { color: #fff; } .brand--light .brand__text span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { text-decoration: none; font-size: .92rem; font-weight: 500; color: #3b4452; padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:not(.btn):hover, .nav a.active { background: #efe7db; color: var(--maroon); }
.nav__cta { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; border-radius: 10px; }
.menu-btn .icon { width: 26px; height: 26px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 76px 0 110px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(232, 163, 23, .22), transparent 60%),
    radial-gradient(700px 500px at -5% 110%, rgba(122, 31, 61, .9), transparent 60%),
    linear-gradient(160deg, var(--maroon-800), var(--maroon-900) 70%);
}
.hero__watermark { position: absolute; right: -4%; top: 8%; height: min(118%, 820px); opacity: .04; pointer-events: none; filter: blur(.3px); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--maroon); margin-bottom: 16px; }
.eyebrow--gold { color: var(--gold); }
.hero h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.lead { margin-top: 22px; font-size: 1.14rem; line-height: 1.65; color: rgba(255, 255, 255, .82); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: .92rem; color: rgba(255, 255, 255, .78); }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .icon { color: var(--gold); }

.hero__visual { position: relative; }
.hero__note { position: absolute; right: 8px; bottom: -34px; font-size: .74rem; color: rgba(255, 255, 255, .5); letter-spacing: .04em; }

/* product mockup */
.app {
  display: grid; grid-template-columns: 150px 1fr; background: var(--ivory); color: var(--ink);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px; line-height: 1.4; transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transform-origin: left center;
}
.app__side { background: var(--ink); color: #cbd2dc; padding: 14px 10px; }
.app__logo { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; padding: 4px 6px 14px; font-family: var(--font-display); font-size: 13px; }
.app__side ul { display: grid; gap: 2px; }
.app__side li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; }
.app__side li.on { background: var(--maroon); color: #fff; }
.app__side .icon { width: 14px; height: 14px; }
.app__main { padding: 14px; min-width: 0; }
.app__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; font-family: var(--font-display); }
.app__bell { position: relative; display: grid; place-items: center; width: 28px; height: 28px; background: #fff; border: 1px solid var(--line); border-radius: 50%; }
.app__bell i { position: absolute; top: -4px; right: -4px; background: var(--maroon); color: #fff; font-style: normal; font-size: 9px; font-weight: 700; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.kpi span { display: block; color: var(--muted); font-size: 10px; }
.kpi b { display: block; margin-top: 3px; font-size: 13.5px; font-variant-numeric: tabular-nums; font-weight: 600; }
.kpi--warn b { color: var(--amber); } .kpi--bad b { color: var(--red); }
.app__cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; margin-top: 8px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.panel h4 { font-family: var(--font-body); font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.today { display: grid; gap: 7px; }
.today li { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: center; }
.today li .icon { width: 14px; height: 14px; color: var(--maroon); grid-row: span 2; }
.today li span { font-size: 11px; color: #3b4452; } .today li b { color: var(--ink); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; }
.bars i { flex: 1; height: var(--h); background: linear-gradient(var(--maroon), #a43a5e); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.bars i:nth-child(6) { background: linear-gradient(var(--gold), #f0bd54); }
.bars i:nth-child(2) { animation-delay: .06s } .bars i:nth-child(3) { animation-delay: .12s } .bars i:nth-child(4) { animation-delay: .18s } .bars i:nth-child(5) { animation-delay: .24s } .bars i:nth-child(6) { animation-delay: .3s }
@keyframes grow { from { transform: scaleY(0); } }
.chip { display: inline-block; font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.chip--green { background: var(--green-bg); color: var(--green); } .chip--blue { background: var(--blue-bg); color: var(--blue); }
.chip--amber { background: var(--amber-bg); color: var(--amber); } .chip--red { background: var(--red-bg); color: var(--red); }
.today .chip { justify-self: start; }

.float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-lg); font-size: 12px; line-height: 1.3; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font-size: 12.5px; } .float small { color: var(--muted); font-size: 11px; }
.float__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.float__ic--green { background: var(--green-bg); color: var(--green); } .float__ic--gold { background: var(--gold-soft); color: var(--amber); }
.float--a { left: -34px; bottom: 56px; } .float--b { right: -18px; top: -26px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- facts strip ---------- */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); margin-top: -1px; position: relative; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__grid > div { padding: 30px 24px; border-left: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.facts__grid > div:first-child { border-left: 0; padding-left: 0; }
.facts b { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--maroon); line-height: 1.15; }
.facts span { font-size: .88rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 104px 0; position: relative; }
.section--tint { background: var(--ivory-2); }
.section--ink { background: linear-gradient(180deg, var(--ink-900), #1b2230); color: #e5e9f0; }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head h2, .split__copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.015em; }
.section__head p:not(.eyebrow), .split__copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.06rem; color: #4b5563; }
.section--ink .section__head p:not(.eyebrow), .section--ink .split__copy > p:not(.eyebrow) { color: #b8c0cc; }
.section--ink h2, .section--ink h3 { color: #fff; }
.hint { margin-top: 26px !important; font-size: .9rem !important; font-weight: 600; color: var(--maroon) !important; display: flex; align-items: center; gap: 8px; }
.hint::before { content: ""; width: 26px; height: 2px; background: var(--gold); }

.split { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: center; }
.split--rev { grid-template-columns: 1.08fr 1fr; }
.split--rev .split__copy { order: 2; }
.ticks { display: grid; gap: 14px; margin-top: 26px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #374151; }
.ticks .icon { color: var(--maroon); margin-top: 3px; width: 1.25em; height: 1.25em; }
.ticks--light li { color: #d6dce6; } .ticks--light .icon { color: var(--gold); }
.ticks b { font-weight: 600; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
.pillar::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--maroon), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dccfbf; }
.pillar:hover::after { transform: scaleX(1); }
.pillar__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: #f6e7ec; color: var(--maroon); margin-bottom: 22px; }
.pillar__ic .icon { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.4rem; margin-bottom: 10px; }
.pillar p { color: #4b5563; font-size: .98rem; }

/* ---------- lifecycle ---------- */
.cycle__steps { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.cstep { flex: 1 0 auto; min-width: 118px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: transparent; border: 0; padding: 4px 6px; position: relative; scroll-snap-align: center; color: #6b7280; font-weight: 600; font-size: .85rem; }
.cstep::before { content: ""; position: absolute; top: 28px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; transition: background .3s; }
.cstep:first-child::before { display: none; }
.cstep.done::before, .cstep.on::before { background: var(--maroon); }
.cstep__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--line); transition: all .25s; }
.cstep__dot .icon { width: 22px; height: 22px; }
.cstep:hover .cstep__dot { border-color: var(--maroon); color: var(--maroon); }
.cstep.done .cstep__dot { border-color: var(--maroon); color: var(--maroon); }
.cstep.on .cstep__dot { background: var(--maroon); border-color: var(--maroon); color: #fff; box-shadow: 0 0 0 6px rgba(122, 31, 61, .14); }
.cstep.on { color: var(--maroon); }
.cycle__panel { margin-top: 18px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.cp__main { padding: 34px 36px; }
.cp__num { font-family: var(--font-display); color: var(--gold-600); font-size: .95rem; font-weight: 600; letter-spacing: .04em; }
.cp__main h3 { font-size: 1.75rem; margin: 6px 0 12px; }
.cp__main p { color: #4b5563; }
.cp__main ul { display: grid; gap: 9px; margin-top: 18px; }
.cp__main li { display: flex; gap: 10px; font-size: .95rem; color: #374151; }
.cp__main li .icon { color: var(--maroon); margin-top: 3px; }
.cp__effect { background: linear-gradient(160deg, var(--maroon-800), var(--maroon-900)); color: #fff; padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cp__effect small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.cp__effect .eff { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-size: .93rem; }
.cp__effect .eff b { font-family: var(--font-mono); font-weight: 500; font-size: .85rem; color: var(--gold); white-space: nowrap; }
.cycle__panel.swap .cp__main, .cycle__panel.swap .cp__effect { animation: fadeUp .35s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---------- availability demo ---------- */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.demo__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--ivory-2); border-bottom: 1px solid var(--line); font-size: .85rem; }
.demo__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #d9cfc0; }
.demo__bar b { margin-left: 8px; font-weight: 600; }
.demo__bar em { margin-left: auto; font-style: normal; font-size: .72rem; color: var(--muted); }
.demo__body { padding: 22px; display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo label, .brand-ctl label, .form label { display: grid; gap: 6px; font-size: .78rem; font-weight: 600; color: #4b5563; letter-spacing: .02em; }
.demo input, .demo select, .brand-ctl input, .form input, .form textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .95rem; font-weight: 500; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.demo input:focus, .demo select:focus, .brand-ctl input:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(122, 31, 61, .12); }
.av-result { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 14px 16px; font-size: .95rem; line-height: 1.45; transition: background .2s; }
.av-result .icon { width: 22px; height: 22px; margin-top: 1px; }
.av-result b { display: block; font-size: 1.02rem; }
.av-result--ok { background: var(--green-bg); color: var(--green); }
.av-result--bad { background: var(--red-bg); color: var(--red); }
.av-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.av-stats div { background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.av-stats dt { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.av-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.av-chart { display: flex; align-items: flex-end; gap: 4px; height: 118px; padding: 8px 4px 0; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.av-day { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; border-radius: 6px 6px 0 0; }
.av-day.sel { background: rgba(232, 163, 23, .16); outline: 1.5px solid rgba(232, 163, 23, .7); outline-offset: 0; }
.av-day i { display: block; width: 100%; transition: height .35s cubic-bezier(.2, .8, .2, 1); }
.av-day .free { background: #6fb98f; border-radius: 4px 4px 0 0; } .av-day .used { background: #d9a4b4; }
.av-day.sel .free { background: #2f9461; } .av-day.sel .used { background: var(--maroon); }
.av-day.short .free { background: #e07a7a; }
.av-day span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: .6rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.av-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: .74rem; color: var(--muted); }
.av-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg--free { background: #2f9461; } .lg--used { background: var(--maroon); } .lg--sel { background: rgba(232, 163, 23, .5); }
.av-res { display: grid; gap: 6px; font-size: .82rem; }
.av-res li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--ivory); border-radius: 8px; color: #4b5563; }
.av-res li b { color: var(--ink); font-weight: 600; } .av-res li.hit { background: #f6e7ec; }
.av-res .mono { color: var(--maroon); }

/* ---------- stock section ---------- */
.stock__card { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-lg); }
.stock__head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.stock__head small { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
.stock__head h3 { color: var(--ink); font-size: 1.35rem; margin-top: 2px; }
.stock__head .mono { background: var(--ivory-2); padding: 4px 10px; border-radius: 999px; color: #4b5563; white-space: nowrap; }
.stack { display: flex; height: 18px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stack i { display: block; }
.s-av { background: #3f9d6b; } .s-on { background: #e8a317; } .s-dm { background: #d94f4f; } .s-rp { background: #7c5cc4; } .s-ls { background: #78716c; }
.states { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 8px 14px; margin: 18px 0 24px; }
.states li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: #4b5563; }
.states li i { width: 10px; height: 10px; border-radius: 3px; }
.states li b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.stock__card h4 { font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.ledger { width: 100%; border-collapse: collapse; font-size: .84rem; }
.ledger td { padding: 9px 6px; border-top: 1px solid var(--line); color: #4b5563; }
.ledger td:first-child { color: var(--muted); width: 54px; }
.ledger td:nth-child(3) { font-weight: 700; font-variant-numeric: tabular-nums; width: 50px; }
.ledger td:last-child { text-align: right; }
.pos { color: var(--green) !important; } .neg { color: var(--red) !important; }

/* ---------- features ---------- */
.tabs__list { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 16px; justify-content: center; flex-wrap: wrap; }
.tabs__list button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 20px; font-weight: 600; font-size: .9rem; color: #4b5563; white-space: nowrap; transition: all .2s; }
.tabs__list button:hover { border-color: var(--maroon); color: var(--maroon); }
.tabs__list button[aria-selected="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; box-shadow: 0 6px 16px -8px rgba(122, 31, 61, .6); }
.tabs__panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 18px; animation: fadeUp .4s both; }
.tabs__panel[hidden] { display: none; }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.fcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.fcard--wide { grid-column: 1 / -1; }
.fnum { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f6e7ec; color: var(--maroon); font-weight: 700; font-size: .85rem; margin-bottom: 14px; }
.fcard h3 { font-size: 1.4rem; }
.fcard > p { color: var(--muted); font-size: .94rem; margin: 6px 0 16px; }
.fcard ul { display: grid; gap: 10px; }
.fcard ul.cols { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.fcard li { position: relative; padding-left: 20px; font-size: .94rem; color: #374151; }
.fcard li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.fcard li b { font-weight: 600; color: var(--ink); }

/* ---------- invoice demo ---------- */
.switches { margin-top: 28px; display: grid; gap: 14px; justify-items: start; }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: #4b5563; transition: all .2s; }
.seg button.on { background: var(--maroon); color: #fff; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: #374151; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--maroon); }
.invoice { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 30px 30px 22px; position: relative; }
.invoice::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--maroon), var(--gold)); border-radius: var(--r) var(--r) 0 0; }
.invoice__top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.invoice__co { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--maroon); display: block; }
.invoice small { color: var(--muted); font-size: .76rem; }
.invoice__tag { display: block; font-size: .7rem; letter-spacing: .16em; font-weight: 700; color: var(--maroon); }
.invoice__table { width: 100%; border-collapse: collapse; font-size: .84rem; font-variant-numeric: tabular-nums; }
.invoice__table th { text-align: left; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 4px; font-weight: 700; }
.invoice__table td { padding: 9px 4px; border-top: 1px solid #f0ebe3; vertical-align: top; }
.invoice__table .num { text-align: right; white-space: nowrap; }
.invoice__table tr.dmg td { background: #fdf4f4; }
.invoice__table td small { display: block; }
.invoice__table .col-rate small { display: inline; margin-left: 2px; }
.tag-dmg { display: inline-block; font-size: .65rem; font-weight: 700; color: var(--red); background: var(--red-bg); border-radius: 4px; padding: 1px 6px; margin-left: 6px; letter-spacing: .04em; }
.invoice__totals { margin: 12px 0 0 auto; width: min(290px, 100%); font-size: .86rem; font-variant-numeric: tabular-nums; }
.invoice__totals div { display: flex; justify-content: space-between; padding: 5px 0; color: #4b5563; }
.invoice__totals dt, .invoice__totals dd { margin: 0; }
.invoice__totals .grand { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--ink); color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.invoice__totals .grand dd { color: var(--maroon); font-family: var(--font-display); font-size: 1.3rem; }
.invoice__totals .flash dd { animation: flash .6s; }
@keyframes flash { 0% { background: var(--gold-soft); } }
.invoice__words { margin-top: 12px; font-size: .78rem; color: #4b5563; font-style: italic; }
.invoice__note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .72rem; color: var(--muted); }

/* ---------- alerts ---------- */
.alerts { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.notif { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.notif__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.notif__head .icon { color: var(--maroon); } .notif__head .chip { margin-left: auto; }
.n { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid #f0ebe3; align-items: flex-start; }
.notif li:first-child { border-top: 0; }
.n .icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
.n--bad .icon { background: var(--red-bg); color: var(--red); } .n--warn .icon { background: var(--amber-bg); color: var(--amber); } .n--info .icon { background: var(--blue-bg); color: var(--blue); }
.n b { display: block; font-size: .92rem; } .n small { color: var(--muted); font-size: .82rem; }
.alerts__side { display: grid; gap: 26px; }
.mini { display: flex; gap: 16px; }
.mini__ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--maroon); color: #fff; }
.mini h3 { font-size: 1.15rem; margin-bottom: 4px; } .mini p { color: #4b5563; font-size: .94rem; }

/* ---------- roles ---------- */
.roles { display: grid; grid-template-columns: 250px 1fr; gap: 20px; }
.roles__pick { display: grid; gap: 8px; align-content: start; }
.rbtn { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 600; transition: all .2s; display: flex; align-items: center; gap: 10px; }
.rbtn:hover { border-color: var(--maroon); }
.rbtn.on { background: var(--maroon); border-color: var(--maroon); color: #fff; box-shadow: 0 10px 20px -12px rgba(122, 31, 61, .7); }
.rbtn .icon { opacity: .7; }
.roles__view { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 30px; }
.roles__desc h3 { font-size: 1.5rem; }
.roles__desc p { color: var(--muted); margin-top: 4px; font-size: .95rem; }
.roles__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; margin-top: 22px; }
.roles__list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0ebe3; font-size: .92rem; transition: opacity .25s, color .25s; }
.roles__list li .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; }
.roles__list li.yes .icon { background: var(--green-bg); color: var(--green); }
.roles__list li.no { color: #a8a29e; } .roles__list li.no .icon { background: #f1eeea; color: #b8b2aa; }
.roles__list li.no span { text-decoration: line-through; text-decoration-color: #d6d0c7; }
.secure { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.secure > div { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.secure .icon { grid-row: span 2; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #f6e7ec; color: var(--maroon); }
.secure b { font-size: 1rem; } .secure span { grid-column: 2; font-size: .88rem; color: #4b5563; }

/* ---------- branding demo ---------- */
.brand-demo { background: linear-gradient(135deg, var(--ivory-2), #ece2d2); border-radius: var(--r-lg); padding: 40px; border: 1px solid var(--line); display: grid; place-items: center; min-height: 380px; }
.bd__app { --brand: #7a1f3d; width: min(380px, 100%); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(-1.5deg); transition: transform .3s; }
.bd__app:hover { transform: rotate(0); }
.bd__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--brand); color: #fff; transition: background .35s; }
.bd__bar b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd__logo { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #fff; color: var(--brand); font-family: var(--font-display); font-weight: 600; transition: color .35s; }
.bd__doc { padding: 22px 20px; display: grid; gap: 14px; }
.bd__row { display: flex; justify-content: space-between; align-items: baseline; }
.bd__title { font-family: var(--font-display); font-size: 1.4rem; color: var(--brand); transition: color .35s; }
.bd__row .mono { color: var(--muted); }
.bd__lines { display: grid; gap: 8px; } .bd__lines i { height: 10px; border-radius: 5px; background: #eee8de; } .bd__lines i.short { width: 55%; }
.bd__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--ink); }
.bd__total b { font-family: var(--font-display); font-size: 1.4rem; color: var(--brand); transition: color .35s; }
.bd__btn { border: 0; background: var(--brand); color: #fff; padding: 11px; border-radius: 10px; font-weight: 600; transition: background .35s; pointer-events: none; }
.brand-ctl { margin-top: 26px; display: grid; gap: 18px; max-width: 420px; }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.sw { width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); transition: transform .15s, box-shadow .2s; }
.sw:hover { transform: scale(1.1); } .sw.on { box-shadow: 0 0 0 3px var(--c); }

/* ---------- setup steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.steps li span { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 18px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { color: #b8c0cc; font-size: .94rem; }

/* ---------- FAQ ---------- */
.faqs { display: grid; gap: 12px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s, border-color .2s; }
.faq[open] { border-color: #d8c6b2; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--maroon); transition: transform .25s; width: 1.3em; height: 1.3em; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq__body { padding: 0 24px 22px; color: #4b5563; max-width: 68ch; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: #fff; padding: 100px 0; background: radial-gradient(800px 500px at 90% 0%, rgba(232, 163, 23, .2), transparent 60%), linear-gradient(160deg, var(--maroon-800), var(--maroon-900)); }
.cta__watermark { position: absolute; left: -3%; bottom: -25%; height: 130%; opacity: .04; pointer-events: none; }
.cta__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta h2 { font-size: clamp(2rem, 3.8vw, 3rem); } .cta__copy > p:not(.eyebrow) { margin-top: 18px; color: rgba(255, 255, 255, .8); font-size: 1.06rem; max-width: 480px; }
.contact { display: grid; gap: 14px; margin-top: 30px; }
.contact li { display: flex; align-items: center; gap: 12px; }
.contact .icon { color: var(--gold); width: 22px; height: 22px; }
.contact a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 1px; transition: border-color .2s; }
.contact a:hover { border-color: var(--gold); }
.form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 16px; box-shadow: var(--shadow-lg); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(122, 31, 61, .12); }
.form textarea { resize: vertical; min-height: 80px; }
.form input.bad { border-color: var(--red); }
.form__err { background: var(--red-bg); color: var(--red); font-size: .88rem; padding: 10px 14px; border-radius: 10px; font-weight: 500; }
.form__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .btn--ghost-light { background: #fff; color: var(--maroon); border-color: var(--maroon); }
.form .btn--ghost-light:hover { background: #f6e7ec; }
.form .btn--gold { box-shadow: none; }
.form__note { font-size: .78rem; color: var(--muted); }

/* ---------- footer ---------- */
.footer { background: var(--ink-900); color: #aeb6c3; padding-top: 64px; font-size: .92rem; }
.footer__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 44px; }
.footer__brand p { margin-top: 18px; max-width: 360px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer__in > div:not(.footer__brand) { display: grid; gap: 9px; align-content: start; }
.footer a { text-decoration: none; transition: color .2s; } .footer a:hover { color: var(--gold); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }
.footer__base a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .pillars .reveal:nth-child(2), .js .steps .reveal:nth-child(2) { transition-delay: .08s; }
.js .pillars .reveal:nth-child(3), .js .steps .reveal:nth-child(3) { transition-delay: .16s; }
.js .steps .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .hero__grid, .split, .split--rev, .cta__grid, .alerts { grid-template-columns: 1fr; gap: 48px; }
  .split--rev .split__copy { order: 0; }
  .hero { padding-bottom: 96px; }
  .app { transform: none; }
  .float--a { left: 8px; } .float--b { right: 8px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: 1fr; }
  .roles__pick { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ivory); padding: 12px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -20px rgba(31, 41, 55, .4); display: none; gap: 2px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 12px; font-size: 1rem; }
  .nav__cta { margin: 10px 0 0; padding: 13px; }
  .section { padding: 76px 0; }
  .pillars, .secure { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__grid > div { border-left: 0; padding: 22px 8px; border-top: 1px solid var(--line); }
  .facts__grid > div:nth-child(-n+2) { border-top: 0; }
  .facts__grid > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 24px; }
  .cycle__panel { grid-template-columns: 1fr; }
  .tabs__panel { grid-template-columns: 1fr; }
  .fcard ul.cols { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .hero { padding: 48px 0 84px; }
  .app { grid-template-columns: 1fr; font-size: 11px; }
  .app__side { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .app__cols { grid-template-columns: 1fr; }
  .float { display: none; }
  .hero__watermark { height: 520px; right: -34%; top: 4%; opacity: .035; }
  .hero__note { bottom: -30px; }
  .form-row, .form__btns { grid-template-columns: 1fr; }
  .roles__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cp__main, .cp__effect { padding: 26px 22px; }
  .invoice { padding: 24px 16px 18px; }
  .invoice__top { flex-direction: column; }
  .invoice__top .right { text-align: left; }
  .invoice__table .col-rate, .invoice__table .col-days { display: none; }
  .brand-demo { padding: 24px 14px; }
  .av-stats dd { font-size: 1.15rem; }
  .av-day span:nth-child(odd) { visibility: hidden; }
  .footer__in { grid-template-columns: 1fr; gap: 32px; }
  .footer__base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
