/* ==========================================================================
   Design system on top of Bootstrap 5.3 (CSS variables only, no Sass build).
   Brand: deep teal + warm amber accent, slate neutrals, Inter.
   ========================================================================== */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../lib/inter/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../lib/inter/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
[data-bs-theme="light"] {
  /* Brand tokens */
  --brand-50: #effaf8;
  --brand-100: #d5f2ed;
  --brand-200: #a9e4da;
  --brand-500: #14a08f;
  --brand-600: #0f8475;
  --brand-700: #0f6f63;   /* primary: 5.9:1 on white */
  --brand-800: #0e5a51;
  --brand-900: #0b403a;
  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --accent-100: #fef3c7;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --ink-50: #f8fafc;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, .18);

  /* Bootstrap overrides */
  --bs-primary: var(--brand-700);
  --bs-primary-rgb: 15, 111, 99;
  --bs-primary-bg-subtle: var(--brand-50);
  --bs-primary-border-subtle: var(--brand-200);
  --bs-primary-text-emphasis: var(--brand-900);
  --bs-link-color: var(--brand-700);
  --bs-link-color-rgb: 15, 111, 99;
  --bs-link-hover-color: var(--brand-900);
  --bs-link-hover-color-rgb: 11, 64, 58;
  --bs-body-font-family: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink-700);
  --bs-body-color-rgb: 51, 65, 85;
  --bs-emphasis-color: var(--ink-900);
  --bs-heading-color: var(--ink-900);
  --bs-secondary-color: var(--ink-500);
  --bs-tertiary-bg: var(--ink-50);
  --bs-body-bg: #fff;
  --bs-border-color: var(--ink-200);
  --bs-border-color-translucent: rgba(15, 23, 42, .08);
  --bs-border-radius: .625rem;
  --bs-border-radius-sm: .5rem;
  --bs-border-radius-lg: .875rem;
  --bs-border-radius-xl: 1.25rem;
  --bs-focus-ring-color: rgba(15, 111, 99, .25);
  --bs-box-shadow-sm: var(--shadow-sm);
  --bs-box-shadow: var(--shadow-md);
  --bs-box-shadow-lg: var(--shadow-lg);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -.003em;
}
h1, h2, h3, .h1, .h2, .h3, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  letter-spacing: -.025em;
  font-weight: 700;
}
h4, h5, h6, .h4, .h5, .h6 { letter-spacing: -.015em; font-weight: 650; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.btn:hover, .nav-link:hover, .dropdown-item:hover, .app-nav a:hover, .brand:hover, .chip:hover, .card-hover:hover, a.card:hover, .stretched-link:hover, .breadcrumb-back:hover { text-decoration: none; }
.prose a, .form-check-label a, .small a.link { text-decoration: underline; text-underline-offset: 2px; }
::selection { background: var(--brand-100); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }

.text-ink { color: var(--ink-900) !important; }
.text-muted, .text-body-secondary { color: var(--ink-500) !important; }
.bg-soft { background: var(--ink-50) !important; }
.bg-brand { background: var(--brand-700) !important; }
.bg-brand-soft { background: var(--brand-50) !important; }
.text-brand { color: var(--brand-700) !important; }
.fw-650 { font-weight: 650 !important; }
.money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabular { font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-700);
}
.section-title { font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: .75rem; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .55rem; letter-spacing: -.005em; }
.btn-lg { --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .8rem; --bs-btn-font-size: 1.02rem; }
.btn-sm { --bs-btn-padding-x: .7rem; --bs-btn-padding-y: .35rem; }
.btn-primary {
  --bs-btn-bg: var(--brand-700); --bs-btn-border-color: var(--brand-700);
  --bs-btn-hover-bg: var(--brand-800); --bs-btn-hover-border-color: var(--brand-800);
  --bs-btn-active-bg: var(--brand-900); --bs-btn-active-border-color: var(--brand-900);
  --bs-btn-disabled-bg: var(--brand-700); --bs-btn-disabled-border-color: var(--brand-700);
  --bs-btn-focus-shadow-rgb: 15, 111, 99;
  box-shadow: 0 1px 2px rgba(15, 111, 99, .25), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand-700); --bs-btn-border-color: var(--brand-200);
  --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-800); --bs-btn-hover-border-color: var(--brand-500);
  --bs-btn-active-bg: var(--brand-100); --bs-btn-active-color: var(--brand-900); --bs-btn-active-border-color: var(--brand-500);
}
.btn-white {
  --bs-btn-bg: #fff; --bs-btn-color: var(--ink-900); --bs-btn-border-color: var(--ink-200);
  --bs-btn-hover-bg: var(--ink-50); --bs-btn-hover-color: var(--ink-900); --bs-btn-hover-border-color: var(--ink-300);
  --bs-btn-active-bg: var(--ink-100); --bs-btn-active-border-color: var(--ink-300);
  box-shadow: var(--shadow-xs);
}
.btn-accent {
  --bs-btn-bg: var(--accent-400); --bs-btn-color: var(--ink-900); --bs-btn-border-color: var(--accent-400);
  --bs-btn-hover-bg: var(--accent-500); --bs-btn-hover-color: var(--ink-900); --bs-btn-hover-border-color: var(--accent-500);
  --bs-btn-active-bg: var(--accent-500); --bs-btn-active-border-color: var(--accent-500);
}
.btn-ghost {
  --bs-btn-color: var(--ink-700); --bs-btn-hover-bg: var(--ink-100); --bs-btn-hover-color: var(--ink-900);
  --bs-btn-active-bg: var(--ink-200); --bs-btn-border-color: transparent; --bs-btn-hover-border-color: transparent;
}
.btn .bi { line-height: 1; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }

/* ---------- Forms ---------- */
.form-label { font-weight: 550; color: var(--ink-900); font-size: .92rem; margin-bottom: .35rem; }
.form-text { color: var(--ink-500); font-size: .82rem; }
.form-control, .form-select {
  padding: .6rem .85rem; border-color: var(--ink-300); box-shadow: var(--shadow-xs);
  min-height: 44px;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .22rem rgba(15, 111, 99, .15); }
.form-control-lg { min-height: 52px; }
.form-check-input { width: 1.15em; height: 1.15em; border-color: var(--ink-300); }
.form-check-input:checked { background-color: var(--brand-700); border-color: var(--brand-700); }
.form-check-input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 .22rem rgba(15, 111, 99, .15); }
.form-switch .form-check-input { width: 2.4em; }
.form-switch .form-check-input:focus { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2314a08f'/%3e%3c/svg%3e"); }
.input-group-text { background: var(--ink-50); border-color: var(--ink-300); color: var(--ink-500); }
.input-validation-error, .form-control.is-invalid, .form-select.is-invalid { border-color: #dc2626 !important; }
.input-validation-error:focus { box-shadow: 0 0 0 .22rem rgba(220, 38, 38, .15) !important; }
.field-validation-error { display: block; color: #b91c1c; font-size: .82rem; margin-top: .3rem; }
.field-validation-valid { display: none; }
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }

/* Choice cards (radio as card) */
.choice { position: relative; display: block; cursor: pointer; border: 1.5px solid var(--ink-200); border-radius: var(--bs-border-radius-lg); padding: 1rem 1.1rem; transition: border-color .15s, background-color .15s, box-shadow .15s; background: #fff; }
.choice:hover { border-color: var(--ink-300); }
.choice:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(15, 111, 99, .12); }
.choice input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-dot { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid var(--ink-300); display: inline-grid; place-items: center; margin-top: .1rem; background: #fff; }
.choice:has(input:checked) .choice-dot { border-color: var(--brand-700); }
.choice:has(input:checked) .choice-dot::after { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--brand-700); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brand-600); outline-offset: 2px; }

/* ---------- Cards & surfaces ---------- */
.card { --bs-card-border-color: var(--ink-200); --bs-card-border-radius: var(--bs-border-radius-lg); --bs-card-cap-bg: transparent; box-shadow: var(--shadow-xs); }
.card-header { padding: 1rem 1.25rem; border-bottom-color: var(--ink-100); }
.card-body { padding: 1.25rem; }
@media (min-width: 768px) { .card-body-lg { padding: 1.75rem; } }
.card-hover { transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--ink-300); }
.surface { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--bs-border-radius-lg); box-shadow: var(--shadow-xs); }
.divider { height: 1px; background: var(--ink-200); }

/* KPI / stat tiles: values in ink, status shown with icon + label */
.stat { padding: 1.1rem 1.25rem; }
.stat-label { display: flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 550; color: var(--ink-500); }
.stat-label .bi { font-size: 1rem; color: var(--ink-500); }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--ink-900); letter-spacing: -.02em; margin-top: .25rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-note { font-size: .8rem; color: var(--ink-500); margin-top: .15rem; }
.stat-note.is-critical { color: #b91c1c; font-weight: 550; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 600; line-height: 1.3; white-space: nowrap; border: 1px solid transparent; }
.pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .85; }
.pill-good { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pill-info { background: var(--brand-50); color: var(--brand-800); border-color: var(--brand-200); }
.pill-warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.pill-bad { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.pill-neutral { background: var(--ink-100); color: var(--ink-700); border-color: var(--ink-200); }

/* ---------- Tables ---------- */
.table { --bs-table-color: var(--ink-700); --bs-table-hover-bg: var(--ink-50); margin-bottom: 0; }
.table > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; color: var(--ink-500); background: var(--ink-50); border-bottom-color: var(--ink-200); padding-top: .7rem; padding-bottom: .7rem; white-space: nowrap; }
.table > tbody td { padding-top: .85rem; padding-bottom: .85rem; border-color: var(--ink-100); }
.table-card { border-radius: var(--bs-border-radius-lg); overflow: hidden; }
.table > :not(caption) > * > *:first-child { padding-left: 1.25rem; }
.table > :not(caption) > * > *:last-child { padding-right: 1.25rem; }
.row-link { cursor: pointer; }

/* ---------- Navs ---------- */
.nav-tabs-line { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--ink-200); overflow-x: auto; scrollbar-width: none; }
.nav-tabs-line a { padding: .6rem 0; color: var(--ink-500); font-weight: 550; font-size: .92rem; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.nav-tabs-line a:hover { color: var(--ink-900); }
.nav-tabs-line a.active { color: var(--brand-700); border-bottom-color: var(--brand-700); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-700); font-size: .84rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--ink-300); color: var(--ink-900); }
.chip.active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.chip .count { font-size: .74rem; opacity: .7; }

.progress { --bs-progress-bar-bg: var(--brand-600); --bs-progress-bg: var(--ink-100); --bs-progress-height: .5rem; border-radius: 999px; }
.accordion { --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--ink-900); --bs-accordion-btn-focus-box-shadow: 0 0 0 .22rem rgba(15, 111, 99, .15); --bs-accordion-border-color: var(--ink-200); }
.accordion-button { font-weight: 600; color: var(--ink-900); padding: 1.1rem 1.25rem; }
.dropdown-menu { --bs-dropdown-border-color: var(--ink-200); --bs-dropdown-box-shadow: var(--shadow-md); --bs-dropdown-link-active-bg: var(--brand-700); --bs-dropdown-item-padding-y: .5rem; box-shadow: var(--shadow-md); padding: .4rem; }
.dropdown-item { border-radius: .45rem; font-size: .92rem; }
.alert { border-radius: var(--bs-border-radius-lg); }
.alert-soft { background: var(--ink-50); border-color: var(--ink-200); color: var(--ink-700); }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.12rem; color: var(--ink-900); text-decoration: none; letter-spacing: -.03em; }
.brand:hover { color: var(--ink-900); }
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-light, .brand-light:hover { color: #fff; }

/* ---------- Marketing / public header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--ink-200); box-shadow: var(--shadow-xs); }
.site-header .nav-link { color: var(--ink-700); font-weight: 550; font-size: .95rem; padding: .5rem .85rem !important; }
.site-header .nav-link:hover { color: var(--ink-900); }
.site-header .btn { --bs-btn-font-size: .95rem; }

.hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(20, 160, 143, .14), transparent 60%),
  radial-gradient(800px 400px at -10% 10%, rgba(20, 160, 143, .07), transparent 60%),
  linear-gradient(180deg, #fff 0%, var(--ink-50) 100%); }
@media (min-width: 992px) { .hero { padding: 6rem 0 5.5rem; } }
.hero-title { font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; color: var(--ink-900); }
.hero-title .hl { background: linear-gradient(90deg, var(--brand-700), var(--brand-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-500); max-width: 36rem; line-height: 1.6; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; background: #fff; border: 1px solid var(--ink-200); font-size: .85rem; font-weight: 550; color: var(--ink-700); box-shadow: var(--shadow-xs); }
.hero-badge .tag { background: var(--brand-700); color: #fff; padding: .1rem .5rem; border-radius: 999px; font-size: .74rem; font-weight: 650; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .88rem; color: var(--ink-500); }
.trust-row .bi { color: var(--brand-600); margin-right: .3rem; }

/* Phone mockup (pure CSS) */
.mock-wrap { position: relative; max-width: 310px; margin-inline: auto; }
.mock-phone { position: relative; border-radius: 2.4rem; background: var(--ink-900); padding: .65rem; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .1); }
.mock-screen { border-radius: 1.9rem; overflow: hidden; background: #fff; }
.mock-cover { height: 170px; background: radial-gradient(120% 90% at 85% 0%, rgba(94,234,212,.55), transparent 60%), linear-gradient(160deg, #0b403a 0%, #0f6f63 50%, #14a08f 100%); position: relative; }
.mock-cover::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background:
  radial-gradient(60% 120% at 20% 100%, rgba(255,255,255,.35), transparent 70%),
  radial-gradient(50% 140% at 75% 100%, rgba(15,23,42,.25), transparent 70%); }
.mock-body { padding: 1rem 1.1rem 1.2rem; }
.mock-floating { position: absolute; background: #fff; border-radius: 1rem; box-shadow: var(--shadow-md); border: 1px solid var(--ink-200); padding: .7rem .9rem; font-size: .8rem; }
.mock-floating.one { left: -6.5rem; top: 2.2rem; }
.mock-floating.two { right: -5rem; bottom: -1.6rem; }
@media (max-width: 767.98px) { .mock-floating.one { left: -1rem; top: 1rem; } .mock-floating.two { right: -1rem; bottom: -1.5rem; } }
.mock-chip { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 600; color: var(--ink-700); background: var(--ink-100); border-radius: 999px; padding: .2rem .55rem; }
.mock-notch { position: absolute; top: .65rem; left: 50%; transform: translateX(-50%); width: 34%; height: 1.35rem; background: var(--ink-900); border-radius: 0 0 .9rem .9rem; z-index: 2; }
.icon-dot { width: 2rem; height: 2rem; border-radius: .6rem; display: inline-grid; place-items: center; flex: 0 0 auto; }

/* Sections */
.section { padding: 4.5rem 0; }
@media (min-width: 992px) { .section { padding: 6rem 0; } }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.12; }
.section-head p { color: var(--ink-500); font-size: 1.08rem; }
.feature-icon { width: 2.9rem; height: 2.9rem; border-radius: .8rem; display: grid; place-items: center; font-size: 1.3rem; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.feature h3 { font-size: 1.08rem; margin: 1rem 0 .4rem; }
.feature p { color: var(--ink-500); margin: 0; font-size: .96rem; line-height: 1.6; }
.step-num { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--ink-900); color: #fff; font-size: .95rem; }
.audience { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .6rem; padding: .35rem 0; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--brand-600); font-size: 1.05rem; line-height: 1.5; }
.price-card { position: relative; border: 2px solid var(--brand-700); border-radius: 1.25rem; box-shadow: var(--shadow-lg); background: #fff; }
.price-amount { font-size: clamp(2.8rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.04em; color: var(--ink-900); line-height: 1; }
.calc { background: var(--ink-50); border: 1px solid var(--ink-200); border-radius: 1rem; }
.cta-band { background: radial-gradient(800px 300px at 90% 0%, rgba(94,234,212,.22), transparent 60%), linear-gradient(135deg, var(--brand-800), var(--brand-700) 60%, var(--brand-600)); color: #fff; border-radius: 1.5rem; }
.cta-band h2 { color: #fff; }
.site-footer { background: var(--ink-900); color: #94a3b8; padding: 3.5rem 0 2rem; font-size: .92rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }

/* ---------- App shell (organizer / admin) ---------- */
.app { min-height: 100vh; background: var(--ink-50); }
.app-sidebar { width: 260px; background: #fff; border-right: 1px solid var(--ink-200); }
@media (min-width: 992px) {
  .app-sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; }
  .app-main { margin-left: 260px; }
}
.app-topbar { position: sticky; top: 0; z-index: 1020; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-200); height: 60px; }
.app-nav { list-style: none; padding: 0; margin: 0; }
.app-nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: .6rem; color: var(--ink-700); font-weight: 550; font-size: .94rem; text-decoration: none; }
.app-nav a .bi { font-size: 1.1rem; color: var(--ink-500); }
.app-nav a:hover { background: var(--ink-50); color: var(--ink-900); }
.app-nav a.active { background: var(--brand-50); color: var(--brand-800); }
.app-nav a.active .bi { color: var(--brand-700); }
.app-nav-label { font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; padding: 1rem .8rem .4rem; }
.app-content { padding: 1.5rem 1rem 3rem; max-width: 1240px; }
@media (min-width: 768px) { .app-content { padding: 2rem 2rem 4rem; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.55rem; margin: 0; }
.page-head .sub { color: var(--ink-500); margin-top: .25rem; font-size: .95rem; }
.breadcrumb-back { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; color: var(--ink-500); text-decoration: none; margin-bottom: .4rem; }
.breadcrumb-back:hover { color: var(--ink-900); }
.avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 650; font-size: .85rem; background: var(--brand-100); color: var(--brand-800); flex: 0 0 auto; }
.empty { text-align: center; padding: 3.5rem 1.5rem; }
.empty .empty-icon { width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: inline-grid; place-items: center; font-size: 1.6rem; background: var(--brand-50); color: var(--brand-700); margin-bottom: 1rem; }
.checklist-item { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 0; border-top: 1px solid var(--ink-100); }
.checklist-item:first-child { border-top: 0; }
.check-circle { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; border: 1.5px solid var(--ink-300); color: transparent; font-size: .9rem; }
.check-circle.done { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.sticky-actions { position: sticky; bottom: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--ink-200); padding: .75rem 0; margin-top: 1.5rem; }

/* Timeline (installments) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline > li { position: relative; padding: 0 0 1.25rem 2.2rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: .7rem; top: 1.6rem; bottom: -.1rem; width: 2px; background: var(--ink-200); }
.timeline > li:last-child::before { display: none; }
.tl-dot { position: absolute; left: 0; top: .1rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: #fff; border: 2px solid var(--ink-300); color: var(--ink-500); }
.tl-dot.done { background: #059669; border-color: #059669; color: #fff; }
.tl-dot.next { border-color: var(--brand-600); color: var(--brand-700); box-shadow: 0 0 0 4px var(--brand-50); }
.tl-dot.bad { background: #dc2626; border-color: #dc2626; color: #fff; }
.tl-dot.off { background: var(--ink-100); border-color: var(--ink-200); color: #94a3b8; }

/* ---------- Trip (participant-facing) ---------- */
.trip-hero { position: relative; min-height: 320px; display: flex; align-items: flex-end; color: #fff; background: radial-gradient(900px 400px at 85% 0%, rgba(94,234,212,.28), transparent 60%), linear-gradient(160deg, var(--brand-900), var(--brand-700) 55%, var(--brand-500)); }
@media (min-width: 992px) { .trip-hero { min-height: 440px; } }
.trip-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.05) 20%, rgba(15,23,42,.72) 100%); }
.trip-hero .container { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 2rem; }
.trip-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.trip-hero .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 550; opacity: .95; }
.fact { display: flex; gap: .75rem; align-items: center; }
.fact .bi { font-size: 1.25rem; color: var(--brand-700); width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: grid; place-items: center; background: var(--brand-50); flex: 0 0 auto; }
.fact .label { font-size: .78rem; color: var(--ink-500); font-weight: 550; }
.fact .value { font-weight: 650; color: var(--ink-900); }
.prose { font-size: 1.05rem; line-height: 1.75; color: var(--ink-700); }
.prose p { margin-bottom: 1.1rem; }
.price-box { border-radius: 1.1rem; box-shadow: var(--shadow-md); }
.mobile-cta { position: fixed; z-index: 1030; left: 0; right: 0; bottom: 0; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--ink-200); box-shadow: 0 -8px 24px -12px rgba(15,23,42,.18); }
.powered { font-size: .82rem; color: var(--ink-500); }
.powered a { color: var(--ink-700); font-weight: 600; text-decoration: none; }
.stepper { display: flex; gap: .5rem; align-items: center; font-size: .82rem; font-weight: 600; color: var(--ink-500); }
.stepper .s { display: inline-flex; align-items: center; gap: .4rem; }
.stepper .n { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink-200); color: var(--ink-700); font-size: .75rem; }
.stepper .s.on .n { background: var(--brand-700); color: #fff; }
.stepper .s.on { color: var(--ink-900); }
.stepper .line { flex: 1 1 1.5rem; max-width: 3rem; height: 1px; background: var(--ink-300); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: #fff; }
@media (min-width: 992px) { .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.auth-side { display: none; position: relative; overflow: hidden; color: #fff; padding: 3rem; background: radial-gradient(700px 400px at 100% 0%, rgba(94,234,212,.22), transparent 60%), linear-gradient(150deg, var(--brand-900), var(--brand-700) 60%, var(--brand-600)); }
@media (min-width: 992px) { .auth-side { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-side h2 { color: #fff; font-size: 2rem; line-height: 1.2; }
.auth-main { display: flex; flex-direction: column; padding: 1.5rem; }
.auth-card { width: 100%; max-width: 410px; margin: auto; padding: 2rem 0; }
.auth-card h1 { font-size: 1.65rem; }

/* ---------- Toasts ---------- */
.toast-container { z-index: 1090; }
.toast { --bs-toast-border-color: var(--ink-200); --bs-toast-box-shadow: var(--shadow-lg); border-radius: .9rem; }

/* ---------- Print ---------- */
@media print {
  .no-print, .site-header, .site-footer, .app-sidebar, .app-topbar, .mobile-cta, .toast-container { display: none !important; }
  body, .app, .bg-soft { background: #fff !important; }
  .app-main { margin: 0 !important; }
  .card, .surface { box-shadow: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-hover, .card-hover:hover { transition: none; transform: none; }
}
.min-w-0 { min-width: 0 !important; }

/* Trip cards (vertical) */
.trip-card .cover { position: relative; height: 128px; background: radial-gradient(120% 90% at 85% 0%, rgba(94,234,212,.45), transparent 60%), linear-gradient(160deg, var(--brand-900), var(--brand-700) 55%, var(--brand-500)); }
.trip-card .cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-card .cover .bi-placeholder { position: absolute; right: 1rem; bottom: .6rem; font-size: 2.2rem; color: rgba(255,255,255,.35); }
.trip-card .cover .pill { position: absolute; left: .8rem; top: .8rem; background: rgba(255,255,255,.95); }
.trip-card .title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) {
  .stat { padding: .9rem 1rem; }
  .stat-value { font-size: 1.2rem; }
  .trip-card .cover { height: 96px; }
  .page-head h1 { font-size: 1.35rem; }
}

/* ---------- Trip builder ---------- */
.wizard-steps { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding: .35rem; background: #fff; border: 1px solid var(--ink-200); border-radius: 999px; box-shadow: var(--shadow-xs); }
.wizard-steps a, .wizard-steps span { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-500); white-space: nowrap; text-decoration: none; }
.wizard-steps a:hover { background: var(--ink-50); color: var(--ink-900); }
.wizard-steps .n { width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--ink-100); color: var(--ink-700); }
.wizard-steps .done .n { background: var(--brand-100); color: var(--brand-800); }
.wizard-steps .active { background: var(--brand-700); color: #fff; }
.wizard-steps .active .n { background: rgba(255,255,255,.2); color: #fff; }
.wizard-steps .disabled { opacity: .5; }
.builder-section { scroll-margin-top: 80px; }
.builder-section .card-body { padding: 1.5rem; }
.builder-head { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.builder-head .feature-icon { width: 2.5rem; height: 2.5rem; font-size: 1.1rem; flex: 0 0 auto; }
.builder-head h2 { font-size: 1.05rem; margin: 0; }
.builder-head p { margin: .15rem 0 0; color: var(--ink-500); font-size: .88rem; }
.rep-item { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; }
.rep-item .rep-body { flex: 1 1 auto; min-width: 0; }
.rep-tools { display: flex; gap: .15rem; flex: 0 0 auto; }
.rep-tools .btn { --bs-btn-padding-x: .45rem; --bs-btn-padding-y: .35rem; min-height: 0; }
.rep-card { border: 1px solid var(--ink-200); border-radius: var(--bs-border-radius-lg); padding: .9rem; background: #fff; }
.rep-index { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--ink-900); color: #fff; flex: 0 0 auto; margin-top: .55rem; }
.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.gallery-edit [data-gallery-item] { position: relative; border-radius: .6rem; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--ink-200); }
.gallery-edit img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s, filter .15s; }
.gallery-edit .is-removed img { opacity: .3; filter: grayscale(1); }
.gallery-edit .form-check { position: absolute; top: .35rem; left: .45rem; background: rgba(255,255,255,.92); border-radius: .4rem; padding: .1rem .4rem .1rem 1.8rem; font-size: .75rem; }
.check-row { display: flex; gap: .6rem; align-items: center; padding: .45rem 0; font-size: .9rem; }
.check-row .bi { font-size: 1.05rem; }
.format-hint code { background: var(--ink-100); color: var(--ink-700); padding: .05rem .3rem; border-radius: .25rem; font-size: .8rem; }

/* ---------- Trip page sections ---------- */
.trip-subnav { position: sticky; top: 0; scroll-padding: 0; z-index: 1020; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-200); }
.trip-subnav a { display: inline-block; padding: .85rem .1rem; margin-right: 1.4rem; font-weight: 600; font-size: .92rem; color: var(--ink-500); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.trip-subnav a:hover { color: var(--ink-900); }
.highlight-chip { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem .9rem; border-radius: .8rem; background: var(--brand-50); color: var(--ink-900); font-weight: 550; }
.highlight-chip .bi { color: var(--brand-700); font-size: 1.1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: .5rem; }
.gallery-grid button { border: 0; padding: 0; border-radius: .7rem; overflow: hidden; background: var(--ink-100); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-grid button:hover img { transform: scale(1.04); }
.gallery-grid button:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 767.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; } }
.day { position: relative; padding-left: 3.4rem; padding-bottom: 1.5rem; }
.day:last-child { padding-bottom: 0; }
.day::before { content: ""; position: absolute; left: 1.15rem; top: 2.6rem; bottom: 0; width: 2px; background: var(--brand-100); }
.day:last-child::before { display: none; }
.day .day-n { position: absolute; left: 0; top: 0; width: 2.35rem; height: 2.35rem; border-radius: .7rem; display: grid; place-items: center; background: var(--brand-700); color: #fff; font-weight: 700; font-size: .9rem; }
.day h3 { font-size: 1.05rem; margin: .45rem 0 .35rem; }
.day .prose { font-size: .98rem; }
.incl li { display: flex; gap: .6rem; padding: .35rem 0; }
.incl .bi { flex: 0 0 auto; margin-top: .15rem; }
.addon-row { display: flex; gap: 1rem; align-items: flex-start; padding: .9rem 0; border-top: 1px solid var(--ink-100); }
.addon-row:first-child { border-top: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink-300); border-radius: .6rem; overflow: hidden; }
.qty button { border: 0; background: #fff; width: 2.4rem; height: 2.4rem; font-size: 1.1rem; color: var(--ink-700); }
.qty button:hover { background: var(--ink-50); }
.qty input { width: 2.6rem; border: 0; text-align: center; font-weight: 650; color: var(--ink-900); background: #fff; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rep-body { flex: 1 1 auto; min-width: 0; }
.btn-ghost { --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-bg: transparent; --bs-btn-disabled-opacity: .3; }
.wizard-steps .n, .wizard-steps .n .bi { line-height: 1; }

/* Legal pages */
.legal ol { padding-left: 1.3rem; }
.legal ol ol { margin-top: .4rem; }
.legal li { margin-bottom: .45rem; }
.legal h2 { scroll-margin-top: 90px; }
.legal table { font-size: .85rem; }
.brand-accent { color: var(--brand-600); }
.brand-light .brand-accent { color: #5eead4; }
