/* 1Venda — page layout and site-level components.
   Load order: tokens.css → components.css → layout.css */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--surface); padding: 8px 16px; border-radius: var(--radius-pill); }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-muted); }
.ink { color: var(--ink); }

/* ---------- Containers & sections ---------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container-s { max-width: 880px; }
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-8) 0; }
.section-flush-top { padding-top: 0; }
.band-soft { background: var(--surface-soft); }
.band-cool { background: var(--surface-cool); }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-tight { padding: 48px 0; } }

.sec-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head > p { margin: 0; color: var(--ink-muted); max-width: 460px; justify-self: end; }
.sec-head .v1-heading { margin-top: 8px; }
.sec-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sec-head.center > p { justify-self: center; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; } .sec-head > p { justify-self: start; } }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 0 20px; pointer-events: none; }
.site-header .v1-nav { pointer-events: auto; max-width: 1240px; margin: 0 auto; }
.v1-nav .nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.v1-nav nav { flex: 1; display: flex; }
.v1-nav .text-link { font: 600 14px/24px var(--font-sans); color: var(--ink-body); text-decoration: none; padding: 6px 12px; border-radius: var(--radius-pill); }
.v1-nav .text-link:hover { color: var(--tenant-primary); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: currentColor; margin: 4px auto; transition: transform var(--v1-dur) var(--v1-ease-out), opacity var(--v1-dur); }
.is-open .nav-toggle span:nth-child(1) { transform: translateY(9.6px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-9.6px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .v1-nav { flex-wrap: wrap; }
  .v1-nav nav { order: 3; flex-basis: 100%; display: none; }
  .v1-nav.is-open nav { display: block; }
  .v1-nav.is-open ul { display: grid; gap: 4px; padding: 16px 0 8px; margin: 0; }
  .v1-nav .nav-actions .hide-m { display: none; }
  .v1-nav.is-open { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero .lede { max-width: 580px; margin: 28px 0 36px; font-size: 18px; line-height: 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font: 500 14px/24px var(--font-sans); color: var(--ink-muted); }
.hero-trust span::before { content: "✓"; color: var(--success); margin-right: 8px; font-weight: 700; }
@media (max-width: 860px) { .hero-row { grid-template-columns: 1fr; } .hero-row .v1-orbit { display: none; } .hero { padding: 40px 0 48px; } }

.bento { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: var(--space-5); margin-top: 56px; }
.bento > * { min-width: 0; }
@media (max-width: 1024px) { .bento { grid-template-columns: 1fr 1fr; } .bento > :nth-child(2) { grid-column: 1 / -1; order: -1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } }

/* gradient stat card */
.stat-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px; min-height: 340px; padding: 40px; border-radius: var(--radius-lg); background: var(--v1-grad); color: var(--on-tenant); isolation: isolate; }
.stat-card .rings { position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid var(--on-tenant); opacity: .35; z-index: -1; }
.stat-card .rings::after { content: ""; position: absolute; inset: 44px; border-radius: 50%; border: 1px solid var(--on-tenant); }
.stat-card .v1-counter .num { -webkit-text-stroke-color: var(--on-tenant); }
.stat-card .v1-counter .cap { color: var(--on-tenant); }

/* ---------- Event card extras ---------- */
.v1-card { text-decoration: none; }
.v1-card .art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.v1-card .art i { position: absolute; border-radius: 50%; border: 1px solid currentColor; opacity: .28; }
.v1-card .art i:nth-child(1) { width: 260px; height: 260px; right: -70px; top: -70px; }
.v1-card .art i:nth-child(2) { width: 180px; height: 180px; right: -30px; top: -30px; }
.v1-card .art i:nth-child(3) { width: 140px; height: 210px; right: 40px; top: 30px; border-radius: 65% 45%; transform: rotate(-20deg); }
.v1-card .date-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--surface); color: var(--ink); text-align: center; line-height: 1; }
.v1-card .date-badge b { font: 400 25px/1 var(--font-display); display: block; }
.v1-card .date-badge small { font: 700 11px/1 var(--font-sans); letter-spacing: .8px; text-transform: uppercase; }
.v1-card .top { justify-content: space-between; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.v1-card .corner { z-index: 2; }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row button { font: 600 14px/24px var(--font-sans); padding: 8px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--ink-body); cursor: pointer; transition: background-color var(--v1-dur), color var(--v1-dur), border-color var(--v1-dur); }
.filter-row button:hover { border-color: var(--ink); }
.filter-row button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.filter-row button:focus-visible, .segmented button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.search { position: relative; min-width: 280px; }
.search input { width: 100%; height: 48px; padding: 0 20px 0 46px; border-radius: var(--radius-pill); border: 1px solid var(--ink-muted); background: var(--surface); color: var(--ink); font: 500 15px/24px var(--font-sans); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-muted); }
.search input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.empty { text-align: center; padding: 64px 16px; color: var(--ink-muted); }

.segmented { display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-soft); gap: 4px; }
.segmented button { border: 0; background: transparent; padding: 8px 18px; border-radius: var(--radius-pill); font: 600 14px/24px var(--font-sans); color: var(--ink-body); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.step { border-top: 1px solid var(--line-strong); padding-top: 24px; }
.step .n { font: 400 45px/52px var(--font-display); letter-spacing: -2px; color: var(--ink); }
.step h3 { font: 600 20px/35px var(--font-sans); color: var(--ink); margin: 16px 0 4px; }
.step p { color: var(--ink-muted); margin: 0; font-size: 14px; line-height: 24px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Feature tiles ---------- */
.feature { padding: 40px; border-radius: var(--radius-lg); background: var(--surface-soft); display: flex; flex-direction: column; gap: 12px; min-height: 260px; transition: transform var(--v1-dur-slow) var(--v1-ease-out), box-shadow var(--v1-dur-slow) var(--v1-ease-out); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature h3 { font: 600 20px/35px var(--font-sans); color: var(--ink); margin: auto 0 0; }
.feature p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 26px; }
.feature .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.feature.dark { background: var(--surface-inverse); }
.feature.dark h3, .feature.dark .ic { color: var(--on-inverse); }
.feature.dark .ic { background: transparent; border-color: #4a4a4d; }
.feature.dark p { color: var(--on-inverse-muted); }
.feature.wide { grid-column: span 2; }
@media (max-width: 680px) { .feature.wide { grid-column: auto; } }

/* ---------- Dark split block ---------- */
.dark-block { background: var(--surface-inverse); color: var(--on-inverse-muted); border-radius: var(--radius-xl); padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.dark-block .v1-heading, .dark-block .v1-eyebrow { color: var(--on-inverse); }
.dark-block .v1-counter .num { -webkit-text-stroke-color: var(--on-inverse); }
.dark-block .v1-counter .cap { color: var(--on-inverse-muted); }
@media (max-width: 960px) { .dark-block { grid-template-columns: 1fr; padding: 40px 24px; } }

.panel { background: var(--surface); color: var(--ink-body); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 12px; border: 1px solid var(--line); }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px; }
.sum-row b { font: 600 20px/35px var(--font-sans); color: var(--ink); }

/* ---------- Testimonials / quotes ---------- */
.quote { padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; background: var(--surface); }
.quote blockquote { margin: 0; font: 400 22px/34px var(--font-display); letter-spacing: -0.5px; color: var(--ink); }
.quote .who { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 20px; }
.quote .who b { display: block; color: var(--ink); font-weight: 600; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--v1-grad); color: var(--on-tenant); display: grid; place-items: center; font: 700 15px/1 var(--font-sans); flex: none; }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip span { font: 600 20px/1 var(--font-display); letter-spacing: -0.5px; color: var(--ink-muted); }

/* ---------- Accordion (FAQ) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 400 22px/32px var(--font-display); letter-spacing: -0.5px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font: 400 22px/1 var(--font-sans); transition: transform var(--v1-dur) var(--v1-ease-out), background-color var(--v1-dur); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--surface); }
.faq summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.faq .a { padding: 0 64px 24px 0; color: var(--ink-muted); }

/* ---------- Pricing ---------- */
.plan { position: relative; padding: 40px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--v1-grad) border-box; padding: 39px; }
.plan .tag { position: absolute; top: 24px; right: 24px; }
.plan h3 { margin: 0; font: 600 20px/35px var(--font-sans); color: var(--ink); }
.plan .price { font: 400 60px/64px var(--font-display); letter-spacing: -3px; color: var(--ink); }
.plan .price small { font: 500 16px/24px var(--font-sans); letter-spacing: 0; color: var(--ink-muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; line-height: 24px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--v1-grad); -webkit-mask: radial-gradient(circle, #000 0 3px, transparent 3.5px); mask: radial-gradient(circle, #000 0 3px, transparent 3.5px); }
.plan .v1-btn { justify-content: center; margin-top: auto; }

.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.calc label { display: flex; justify-content: space-between; font: 600 16px/30px var(--font-sans); color: var(--ink); margin-top: 24px; }
.calc label output { color: var(--tenant-primary); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--tenant-primary) 0 var(--fill, 50%), var(--line) var(--fill, 50%)); margin: 12px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); cursor: pointer; }
input[type=range]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 6px; }
.calc .result { display: grid; gap: 4px; }
.calc .result .sum-row { border-bottom: 1px solid #3a3a3d; padding: 12px 0; color: var(--on-inverse-muted); }
.calc .result .sum-row b { color: var(--on-inverse); }
.calc .result .net b { font: 400 45px/52px var(--font-display); letter-spacing: -2px; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
table.cmp th, table.cmp td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp th { font-weight: 600; color: var(--ink); }
table.cmp td:not(:first-child), table.cmp th:not(:first-child) { text-align: center; }
table.cmp .yes { color: var(--success); font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }

/* ---------- Event detail ---------- */
.event-hero { border-radius: var(--radius-xl); min-height: 420px; position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; background: var(--v1-grad); color: var(--on-tenant); isolation: isolate; }
.event-hero .art { position: absolute; inset: 0; z-index: -1; }
.event-hero .art i { position: absolute; border: 1px solid var(--on-tenant); border-radius: 50%; opacity: .3; }
.event-hero .art i:nth-child(1) { width: 640px; height: 640px; right: -160px; top: -260px; }
.event-hero .art i:nth-child(2) { width: 440px; height: 440px; right: -60px; top: -160px; }
.event-hero .art i:nth-child(3) { width: 260px; height: 380px; right: 120px; top: 20px; border-radius: 65% 45%; transform: rotate(-20deg); }
.event-hero h1 { color: var(--on-tenant); max-width: 760px; }
.event-hero .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.event-layout { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: start; margin-top: 48px; }
.event-layout .sticky { position: sticky; top: 112px; }
@media (max-width: 1024px) { .event-layout { grid-template-columns: 1fr; } .event-layout .sticky { position: static; } }
@media (max-width: 640px) { .event-hero { padding: 28px; min-height: 360px; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 40px; }
.fact { padding: 20px 24px; border-radius: var(--radius-md); background: var(--surface-soft); }
.fact .k { font: 700 12px/16px var(--font-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--ink-muted); }
.fact .v { font: 600 16px/26px var(--font-sans); color: var(--ink); margin-top: 6px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.prose h2 { font: 400 35px/40px var(--font-display); letter-spacing: -1px; color: var(--ink); margin: 48px 0 16px; }
.prose h3 { font: 600 18px/30px var(--font-sans); color: var(--ink); margin: 32px 0 8px; }
.prose ul { padding-left: 20px; }
.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.artist { border-radius: var(--radius-md); padding: 20px; background: var(--surface-soft); display: flex; gap: 12px; align-items: center; }
.artist b { display: block; color: var(--ink); font-weight: 600; line-height: 22px; }
.artist small { color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px 28px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--tenant-primary); }
.timeline time { font: 700 13px/24px var(--font-sans); color: var(--ink); margin-right: 12px; }
.map { height: 260px; border-radius: var(--radius-lg); background: var(--surface-cool); position: relative; overflow: hidden; display: grid; place-items: center; }
.map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; opacity: .7; }
.map .pin { position: relative; width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--tenant-primary); box-shadow: 0 0 0 10px color-mix(in srgb, var(--tenant-primary) 18%, transparent); }
.map .pin::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--surface); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { text-align: center; padding: 12px 4px; border-radius: var(--radius-md); background: var(--surface-soft); }
.countdown b { display: block; font: 400 35px/40px var(--font-display); letter-spacing: -1px; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown small { font: 700 11px/16px var(--font-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 14px/24px var(--font-sans); color: var(--ink-muted); margin: 24px 0; padding: 0; list-style: none; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--tenant-primary); }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }
@media (max-width: 1024px) { .checkout { grid-template-columns: 1fr; } }
.stepper-nav { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 40px; flex-wrap: wrap; }
.stepper-nav li { display: flex; align-items: center; gap: 10px; font: 600 14px/24px var(--font-sans); color: var(--ink-muted); }
.stepper-nav li + li::before { content: ""; width: 32px; height: 1px; background: var(--line); }
.stepper-nav .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 13px; }
.stepper-nav .done .n { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.stepper-nav .current { color: var(--ink); }
.stepper-nav .current .n { background: var(--tenant-primary); color: var(--on-tenant); border-color: transparent; }
.form-card { padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.form-card h2 { font: 400 25px/35px var(--font-display); letter-spacing: -0.75px; color: var(--ink); margin: 0 0 24px; }
.form-card + .form-card { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 24px; } }
.v1-field select, .v1-field textarea { width: 100%; padding: 24px 20px 8px; border-radius: var(--radius-sm); border: 1px solid var(--ink-muted); background: var(--surface); color: var(--ink); font: 500 16px/24px var(--font-sans); }
.v1-field select { height: 60px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 24px) 28px, calc(100% - 18px) 28px; background-size: 6px 6px; background-repeat: no-repeat; }
.v1-field textarea { min-height: 150px; resize: vertical; padding-top: 30px; }
.v1-field textarea + label, .v1-field select + label { transform: translateY(-11px) scale(0.75); }
.v1-field select:focus-visible, .v1-field textarea:focus-visible, .v1-field input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.v1-field.invalid select, .v1-field.invalid textarea { border-color: var(--danger); }
.v1-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 22px; cursor: pointer; }
.v1-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tenant-primary); flex: none; }
.v1-check.invalid { color: var(--danger); }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.pay-option { position: relative; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option span { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius-md); border: 1px solid var(--line); cursor: pointer; font: 600 15px/24px var(--font-sans); color: var(--ink); transition: border-color var(--v1-dur); }
.pay-option small { font-weight: 500; color: var(--ink-muted); font-size: 13px; line-height: 18px; }
.pay-option input:checked + span { border: 2px solid transparent; padding: 15px 17px; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--v1-grad) border-box; }
.pay-option input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (max-width: 640px) { .pay-options { grid-template-columns: 1fr; } }
.summary { padding: 32px; border-radius: var(--radius-lg); background: var(--surface-soft); position: sticky; top: 112px; }
.summary h2 { font: 400 25px/35px var(--font-display); letter-spacing: -0.75px; color: var(--ink); margin: 0 0 4px; }
.summary ul { list-style: none; padding: 16px 0; margin: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.summary li { display: flex; justify-content: space-between; gap: 16px; }
.summary .v1-btn { width: 100%; justify-content: center; margin-top: 16px; }
.hold { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-md); background: var(--surface); font-size: 14px; line-height: 22px; margin-top: 16px; }
.hold b { color: var(--ink); font-variant-numeric: tabular-nums; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--ink-muted); }

/* ---------- Ticket / confirmation ---------- */
.confirm { text-align: center; }
.tick { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: var(--v1-grad); color: var(--on-tenant); }
.tick svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: v1-draw .8s .3s var(--v1-ease-out) forwards; }
@keyframes v1-draw { to { stroke-dashoffset: 0; } }
.v1-pass .qr svg { width: 104px; height: 104px; fill: var(--ink); }
.v1-pass .qr .qr-bg { fill: var(--surface-soft); }
.v1-pass { margin: 0 auto; text-align: left; }
.pass-wrap { padding: 48px 24px; border-radius: var(--radius-xl); }
.pass-wrap + .pass-wrap { margin-top: 24px; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 0px); }
.auth .side { position: relative; overflow: hidden; background: var(--surface-inverse); color: var(--on-inverse); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.auth .side .v1-heading { color: var(--on-inverse); }
.auth .side p { color: var(--on-inverse-muted); }
.auth .side .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .45; z-index: -1; }
.auth .side .glow.a { background: var(--tenant-primary); right: -180px; top: -120px; }
.auth .side .glow.b { background: var(--tenant-highlight); left: -200px; bottom: -220px; opacity: .3; }
.auth .form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth .form > div { width: 100%; max-width: 420px; }
.auth h1 { margin: 16px 0 8px; }
.divider { display: flex; align-items: center; gap: 16px; color: var(--ink-muted); font-size: 13px; margin: 24px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .side { min-height: 280px; } }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.dash aside { background: var(--surface-inverse); color: var(--on-inverse-muted); padding: 28px 20px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.dash aside img { height: 26px; width: auto; margin-left: 8px; }
.dash aside nav { display: grid; gap: 4px; }
.dash aside a { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--radius-pill); color: var(--on-inverse-muted); text-decoration: none; font: 600 14px/24px var(--font-sans); }
.dash aside a:hover { color: var(--on-inverse); background: rgba(255,255,255,.06); }
.dash aside a[aria-current="page"] { background: var(--on-inverse); color: #111111; }
.dash aside .tenant { margin-top: auto; padding: 16px; border-radius: var(--radius-md); background: rgba(255,255,255,.06); font-size: 13px; line-height: 20px; }
.dash aside .tenant b { color: var(--on-inverse); display: block; }
.dash .content { padding: 32px 40px 64px; background: var(--surface-soft); min-width: 0; }
.dash-top { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); }
.kpi .k { font: 500 14px/24px var(--font-sans); color: var(--ink-muted); }
.kpi .v { font: 400 35px/44px var(--font-display); letter-spacing: -1px; color: var(--ink); margin: 6px 0; }
.kpi .d { font: 600 13px/20px var(--font-sans); color: var(--success); }
.kpi.grad { background: var(--v1-grad); }
.kpi.grad .k, .kpi.grad .v, .kpi.grad .d { color: var(--on-tenant); }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); }
.card h2 { font: 400 25px/35px var(--font-display); letter-spacing: -0.75px; color: var(--ink); margin: 0 0 20px; display: flex; justify-content: space-between; align-items: center; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 12px; height: 240px; padding-top: 24px; }
.bars .bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bars .fill { width: 100%; max-width: 44px; height: var(--h); border-radius: 12px 12px 4px 4px; background: var(--v1-grad); transform-origin: bottom; animation: v1-grow .9s calc(var(--i) * 60ms) var(--v1-ease-out) both; }
.bars .val { font: 600 12px/16px var(--font-sans); color: var(--ink-muted); }
.bars .lbl { font: 600 12px/16px var(--font-sans); color: var(--ink-muted); }
@keyframes v1-grow { from { transform: scaleY(0); } }
.progress { height: 8px; border-radius: var(--radius-pill); background: var(--surface-soft); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--v1-grad); }
.tier-progress { display: grid; gap: 18px; }
.tier-progress .row { display: grid; gap: 8px; }
.tier-progress .row div:first-child { display: flex; justify-content: space-between; font-size: 14px; line-height: 22px; }
.tier-progress b { color: var(--ink); font-weight: 600; }
table.orders { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
table.orders th { text-align: left; font: 700 12px/16px var(--font-sans); letter-spacing: .8px; text-transform: uppercase; color: var(--ink-muted); padding: 0 12px 12px; }
table.orders td { padding: 14px 12px; border-top: 1px solid var(--line); color: var(--ink-body); }
table.orders td:first-child { color: var(--ink); font-weight: 600; }
.brand-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.brand-swatches button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.brand-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .dash aside { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; } .dash aside nav { grid-auto-flow: column; overflow-x: auto; } .dash aside .tenant { display: none; } .dash .content { padding: 24px 16px 48px; } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; padding: 120px 40px; border-radius: var(--radius-xl); }
.cta .btn-row { justify-content: center; margin-top: 32px; }
.cta p { max-width: 520px; margin: 20px auto 0; }
@media (max-width: 640px) { .cta { padding: 72px 20px; } }
.site-footer { background: var(--surface-inverse); color: var(--on-inverse-muted); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 72px 0 32px; margin-top: var(--space-9); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: var(--on-inverse); font: 600 16px/30px var(--font-sans); margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--on-inverse-muted); text-decoration: none; font-size: 14px; line-height: 32px; }
.site-footer a:hover { color: var(--on-inverse); }
.site-footer .brand img { height: 32px; width: auto; }
.site-footer .brand p { max-width: 340px; font-size: 14px; line-height: 24px; margin-top: 20px; }
.site-footer .news { display: flex; gap: 8px; margin-top: 20px; max-width: 380px; }
.site-footer .news input { flex: 1; min-width: 0; height: 48px; padding: 0 20px; border-radius: var(--radius-pill); border: 1px solid #4a4a4d; background: transparent; color: var(--on-inverse); font: 500 14px/24px var(--font-sans); }
.site-footer .news input::placeholder { color: var(--on-inverse-muted); }
.site-footer .news .v1-btn { background: var(--on-inverse); color: #111111; }
.site-footer .legal { border-top: 1px solid #3a3a3d; margin-top: 56px; padding-top: 24px; font-size: 14px; line-height: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.theme-switch { display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,.06); gap: 2px; }
.theme-switch button { border: 0; background: transparent; color: var(--on-inverse-muted); padding: 4px 12px; border-radius: var(--radius-pill); font: 600 12px/22px var(--font-sans); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: var(--on-inverse); color: #111111; }
.theme-switch button:focus-visible, .site-footer a:focus-visible, .site-footer input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.powered { display: inline-flex; align-items: center; gap: 8px; }
.powered img { height: 16px; width: auto; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .brand { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.nf .big { font: 800 220px/1 var(--font-sans); color: transparent; -webkit-text-stroke: 1px var(--line-strong); letter-spacing: -6px; }
@media (max-width: 640px) { .nf .big { font-size: 120px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface-soft); }
.contact-card h3 { margin: 0 0 4px; font: 600 18px/30px var(--font-sans); color: var(--ink); }
.contact-card a { color: var(--ink); font-weight: 600; }
.success-box { padding: 24px; border-radius: var(--radius-md); background: var(--surface-soft); color: var(--ink); display: flex; gap: 12px; align-items: flex-start; }
.success-box b { color: var(--success); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* utility spacing */
.mt-0 { margin-top: 0; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 40px; } .mt-8 { margin-top: 80px; }
.mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: 16px; }
.center { text-align: center; }
.v1-btn.is-disabled { opacity: .45; pointer-events: none; }
.dash-grid > *, .dash-top > * { min-width: 0; }
.v1-orbit { text-decoration: none; }
figure.quote { margin: 0; }
.dark-block .grid .v1-counter .num { font-size: 96px; line-height: 100px; }
@media (max-width: 760px) { .dark-block .grid .v1-counter .num { font-size: 64px; line-height: 68px; } }
.dark-block.calc label { color: var(--on-inverse); }
.dark-block.calc label output { color: var(--on-inverse); }
.dark-block.calc input[type=range] { background: linear-gradient(90deg, var(--tenant-highlight) 0 var(--fill, 50%), #4a4a4d var(--fill, 50%)); }
@media (max-width: 860px) { .dash { grid-template-columns: minmax(0, 1fr); } .dash aside { min-width: 0; } .dash aside nav { width: 100%; overflow-x: auto; scrollbar-width: none; } .dash aside a { white-space: nowrap; } }
.card { min-width: 0; }
.bars .bar { min-width: 0; }
@media (max-width: 520px) { .bars { gap: 4px; } .bars .val { font-size: 10px; } .card { padding: 20px; } }
