@font-face {
  font-family: 'Lora';
  src: url("/assets/lora/Lora-Regular-c8978b37.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url("/assets/lora/Lora-Italic-b47ea162.ttf") format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url("/assets/lora/Lora-Medium-fafc359f.ttf") format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url("/assets/lora/Lora-MediumItalic-57058366.ttf") format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url("/assets/lora/Lora-SemiBold-f1f8d504.ttf") format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url("/assets/lora/Lora-SemiBoldItalic-35113b97.ttf") format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url("/assets/lora/Lora-Bold-696a1365.ttf") format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lora';
  src: url("/assets/lora/Lora-BoldItalic-fdc5c9f9.ttf") format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    :root {
        color-scheme: light;
        --background: 0 0% 100%;
        --foreground: 240 3% 12%;
        --card: 0 0% 100%;
        --card-foreground: 240 3% 12%;
        --popover: 0 0% 100%;
        --popover-foreground: 240 3% 12%;
        --primary: 240 3% 12%;
        --primary-foreground: 0 0% 100%;
        --secondary: 240 6% 96%;
        --secondary-foreground: 240 3% 12%;
        --muted: 240 6% 96%;
        --muted-foreground: 240 2% 44%;
        --accent: 240 6% 96%;
        --accent-foreground: 240 3% 12%;
        --destructive: 356 100% 42%;
        --destructive-foreground: 0 0% 100%;
        --border: 240 6% 90%;
        --input: 240 6% 83%;
        --ring: 211 100% 50%;
        --gold: 38 72% 40%;
        --plan-accent: var(--gold);
        --plan-on-accent: 0 0% 100%;
        --plan-deep: 240 5% 12%;
        --att-present: #1baf7a; --att-late: #eda100; --att-excused: #2a78d6; --att-absent: #d94f45;
        --voice-1: #2a78d6; --voice-2: #eb6834; --voice-3: #1baf7a;
        --voice-4: #eda100; --voice-5: #e87ba4; --voice-6: #008300;
        --radius: 0.5rem;
    }

    .dark {
        color-scheme: dark;
        --background: 0 0% 0%;
        --foreground: 240 11% 96%;
        --card: 240 3% 11%;
        --card-foreground: 240 11% 96%;
        --popover: 240 3% 11%;
        --popover-foreground: 240 11% 96%;
        --primary: 240 11% 96%;
        --primary-foreground: 240 3% 11%;
        --secondary: 240 3% 18%;
        --secondary-foreground: 240 11% 96%;
        --muted: 240 3% 18%;
        --muted-foreground: 240 3% 60%;
        --accent: 240 3% 18%;
        --accent-foreground: 240 11% 96%;
        --destructive: 3 100% 61%;
        --destructive-foreground: 0 0% 100%;
        --border: 240 3% 20%;
        --input: 240 3% 26%;
        --ring: 211 100% 60%;
        --gold: 42 72% 58%;
        --att-present: #24c489; --att-late: #f0b021; --att-excused: #4a94ea; --att-absent: #e4655b;
        --voice-1: #3987e5; --voice-2: #d95926; --voice-3: #199e70;
        --voice-4: #c98500; --voice-5: #d55181; --voice-6: #008300;
    }

    * {
        @apply border-border;
    }

    body {
        @apply bg-background text-foreground font-sans;
        font-feature-settings: "rlig" 1, "calt" 1;
        letter-spacing: -0.006em;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    :focus-visible {
        outline: 2px solid hsl(var(--ring));
        outline-offset: 2px;
    }

    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ── Notification shrink animation ── */
@keyframes shrink {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ── Scrollbar hide ── */
*, .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
*::-webkit-scrollbar, .no-scrollbar::-webkit-scrollbar { display: none; }

@layer components {
    /* ── Page typography ── */
    .page-title {
        font-family: 'Lora', Georgia, serif;
        font-size: 2rem;
        font-weight: 600;
        letter-spacing: -0.02em;
        line-height: 1.15;
    }
    @media (min-width: 768px) {
        .page-title { font-size: 2.5rem; }
    }

    .page-eyebrow {
        font-size: 0.8125rem;
        font-weight: 500;
        color: hsl(var(--muted-foreground));
    }

    .section-dot {
        display: block;
        font-size: 0.8125rem;
        font-weight: 500;
        color: hsl(var(--muted-foreground));
    }

    .section-title {
        font-size: 1.125rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: hsl(var(--foreground));
    }

    .demo-badge {
        display: inline-flex; align-items: center; vertical-align: middle;
        padding: 0.25rem 0.625rem; border-radius: var(--radius);
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
        font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; line-height: 1.2;
        color: hsl(var(--gold)); background: hsl(var(--gold) / 0.12); box-shadow: inset 0 0 0 1px hsl(var(--gold) / 0.35);
    }

    .back-link {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.875rem;
        color: hsl(var(--muted-foreground));
        transition: color 150ms;
    }
    .back-link:hover { color: hsl(var(--foreground)); }

    /* ── Rows ── */
    .row-link {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.25rem;
        background: hsl(var(--card));
        transition: background-color 120ms ease;
        cursor: pointer;
    }
    .row-link:hover { background: hsl(var(--accent) / 0.5); }

    /* ── Forms ── */
    .field-label {
        display: block;
        font-size: 0.875rem;
        font-weight: 600;
        color: hsl(var(--foreground));
    }

    .field-hint {
        font-size: 0.8125rem;
        line-height: 1.45;
        color: hsl(var(--muted-foreground));
    }

    .field-input {
        display: flex;
        width: 100%;
        border-radius: 0.5rem;
        border: 1px solid hsl(var(--input));
        background: hsl(var(--card));
        padding: 0.5625rem 0.75rem;
        font-size: 1rem;
        font-family: inherit;
        color: hsl(var(--foreground));
        transition: border-color 150ms, box-shadow 150ms;
        outline: none;
        line-height: 1.5;
    }
    .field-input::placeholder { color: hsl(var(--muted-foreground) / 0.6); }
    .field-input:focus {
        border-color: hsl(var(--ring));
        box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
    }
    .field-input-sm { padding: 0.375rem 0.625rem; font-size: 0.875rem; }
    .field-input-lg { padding: 0.75rem 1rem; font-size: 1.0625rem; }

    .field-select {
        appearance: none;
        cursor: pointer;
        padding-right: 2rem;
        text-overflow: ellipsis;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.625rem center;
    }
    .field-select.is-set { border-color: hsl(var(--foreground) / 0.45); }

    .file-input {
        display: block;
        width: 100%;
        font-size: 0.875rem;
        color: hsl(var(--muted-foreground));
    }
    .file-input::file-selector-button {
        margin-right: 0.875rem;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        border: 1px solid hsl(var(--border));
        background: hsl(var(--background));
        color: hsl(var(--foreground));
        font-family: inherit;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 150ms;
    }
    .file-input::file-selector-button:hover { background: hsl(var(--accent)); }

    .form-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding-top: 1.5rem;
        border-top: 1px solid hsl(var(--border) / 0.6);
    }

    .form-footer.is-sticky {
        position: sticky;
        bottom: calc(max(env(safe-area-inset-bottom, 0px), 1.5rem) + 5rem);
        z-index: 30;
        margin-inline: -1.25rem;
        padding: 0.875rem 1.25rem;
        background: hsl(var(--background) / 0.9);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    @media (min-width: 768px) {
        .form-footer.is-sticky { bottom: 0; }
    }

    /* ── Filter chips ── */
    .chip-row {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        margin-inline: -1.25rem;
        padding: 0.125rem 1.25rem;
        scrollbar-width: none;
    }
    .chip-row::-webkit-scrollbar { display: none; }
    @media (min-width: 1024px) {
        .chip-row.lg-inline { margin-inline: 0; padding-inline: 0; }
    }

    .filter-chip {
        position: relative;
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        gap: 0.375rem;
        height: 2.125rem;
        padding: 0 0.75rem;
        border-radius: 0.5rem;
        border: 1px solid hsl(var(--border));
        background: hsl(var(--card));
        font-size: 0.875rem;
        color: hsl(var(--foreground) / 0.85);
        white-space: nowrap;
        transition: background-color 120ms, color 120ms, border-color 120ms;
    }
    .filter-chip:hover { background: hsl(var(--accent) / 0.6); }
    .filter-chip:focus-within { box-shadow: 0 0 0 3px hsl(var(--ring) / 0.35); }
    .filter-chip.is-set {
        background: hsl(var(--foreground));
        border-color: hsl(var(--foreground));
        color: hsl(var(--background));
    }
    .filter-chip-select {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
        font-size: 16px;
    }

    .invite-panel > summary::-webkit-details-marker { display: none; }
    .invite-panel > summary:hover { background: hsl(var(--accent) / 0.35); }
    .invite-panel[open] .invite-caret { transform: rotate(180deg); }
    .invite-caret { transition: transform 150ms; }

    .disclosure > summary,
    .disclosure-group > summary {
        cursor: pointer;
        list-style: none;
        user-select: none;
    }
    .disclosure > summary::-webkit-details-marker,
    .disclosure-group > summary::-webkit-details-marker { display: none; }
    .disclosure-caret { transition: transform 150ms ease; opacity: 0.55; }
    .disclosure[open] > summary .disclosure-caret,
    .disclosure-group[open] > summary .disclosure-caret { transform: rotate(90deg); opacity: 1; }

    .disclosure-head {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.125rem 0;
        border-radius: 0.5rem;
    }
    .disclosure-head:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; }

    .disclosure-row {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        padding: 0.8125rem 1rem;
        transition: background-color 120ms;
    }
    .disclosure-row:hover { background: hsl(var(--accent) / 0.4); }
    .disclosure-row:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: -2px; }
    .disclosure-group[open] > .disclosure-row { background: hsl(var(--accent) / 0.3); }
    .disclosure-name {
        flex: 1;
        min-width: 0;
        font-size: 0.9375rem;
        color: hsl(var(--foreground));
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .disclosure-count {
        font-size: 0.75rem;
        font-variant-numeric: tabular-nums;
        color: hsl(var(--muted-foreground));
        min-width: 1.25rem;
        text-align: right;
    }

    .disclosure-body {
        border-top: 1px solid hsl(var(--border) / 0.7);
        background: hsl(var(--muted) / 0.35);
    }
    .disclosure-body > * + * { border-top: 1px solid hsl(var(--border) / 0.6); }

    .list-scroll {
        max-height: min(70vh, 46rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    [data-nested-row][hidden] { display: none; }

    /* ── Choice chips (multi-select checkboxes) ── */
    .chip { display: inline-flex; cursor: pointer; }
    .chip[hidden] { display: none; }
    .chip-face {
        display: inline-flex;
        align-items: center;
        border: 1px solid hsl(var(--border));
        border-radius: 0.5rem;
        padding: 0.3125rem 0.8125rem;
        font-size: 0.875rem;
        line-height: 1.25rem;
        color: hsl(var(--foreground) / 0.8);
        background: hsl(var(--card));
        user-select: none;
        transition: background-color 120ms, color 120ms, border-color 120ms;
    }
    .chip:hover .chip-face { color: hsl(var(--foreground)); border-color: hsl(var(--foreground) / 0.35); }
    a.chip-face { gap: 0.375rem; }
    a.chip-face:hover { color: hsl(var(--foreground)); border-color: hsl(var(--foreground) / 0.35); }
    .peer:checked + .chip-face {
        background: hsl(var(--foreground));
        border-color: hsl(var(--foreground));
        color: hsl(var(--background));
    }
    .peer:focus-visible + .chip-face { box-shadow: 0 0 0 3px hsl(var(--ring) / 0.4); }

    /* ── Attendance charts ── */
    .chart-scroll {
        overflow-x: auto;
        scrollbar-width: none;
        margin-inline: -0.25rem;
        padding: 0 0.25rem 0.25rem;
    }
    .chart-scroll::-webkit-scrollbar { display: none; }
    .chart-columns { display: flex; align-items: flex-end; gap: 0.375rem; min-height: 11rem; }
    .chart-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.375rem;
        flex: 0 0 2.25rem;
        text-decoration: none;
    }
    .chart-track {
        display: flex;
        align-items: flex-end;
        width: 100%;
        height: 8rem;
        border-radius: 0.25rem;
        background: hsl(var(--secondary) / 0.8);
        overflow: hidden;
    }
    .chart-bar {
        display: block;
        width: 100%;
        border-radius: 0.25rem;
        background: var(--att-present);
        transition: background-color 120ms;
    }
    .chart-column:hover .chart-bar { filter: brightness(0.92); }
    .chart-value { font-size: 0.6875rem; font-variant-numeric: tabular-nums; color: hsl(var(--muted-foreground)); }
    .chart-tick { font-size: 0.625rem; color: hsl(var(--muted-foreground)); white-space: nowrap; }

    .chart-seg {
        position: relative;
        flex: 1 1 0;
        min-width: 0.5rem;
        height: 100%;
        border-radius: 0.1875rem;
        background: hsl(var(--foreground) / 0.06);
    }

    .activity-grid { display: flex; gap: 3px; padding-bottom: 0.25rem; }
    .activity-months { display: flex; gap: 3px; }
    .activity-month {
        width: 0.75rem;
        font-size: 0.625rem;
        line-height: 1;
        color: hsl(var(--muted-foreground));
        white-space: nowrap;
        overflow: visible;
    }
    .activity-week { display: grid; grid-template-rows: repeat(7, 0.75rem); gap: 3px; }
    .activity-cell {
        position: relative;
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 0.1875rem;
        background: hsl(var(--foreground) / 0.06);
    }
    .activity-cell.is-outside { background: none; }
    .activity-cell:hover { outline: 1px solid hsl(var(--foreground) / 0.35); outline-offset: 1px; }
    .activity-cell.is-outside:hover { outline: none; }

    .att-present { background: var(--att-present); }
    .att-late { background: var(--att-late); }
    .att-excused { background: var(--att-excused); }
    .att-absent { background: var(--att-absent); }
    .att-blank {
        background: repeating-linear-gradient(45deg, transparent, transparent 3px,
                    hsl(var(--foreground) / 0.10) 3px, hsl(var(--foreground) / 0.10) 4px);
    }

    .chart-key { width: 0.75rem; height: 0.75rem; border-radius: 0.1875rem; display: inline-block; }

    .chart-tip {
        position: absolute;
        bottom: calc(100% + 0.5rem);
        left: 50%;
        transform: translateX(-50%) translateY(0.25rem);
        z-index: 30;
        max-width: 16rem;
        width: max-content;
        padding: 0.375rem 0.625rem;
        border-radius: 0.375rem;
        background: hsl(var(--foreground));
        color: hsl(var(--background));
        font-size: 0.75rem;
        line-height: 1.25;
        white-space: normal;
        opacity: 0;
        pointer-events: none;
        transition: opacity 120ms, transform 120ms;
    }
    .chart-seg:hover .chart-tip,
    .chart-column:hover .chart-tip,
    .chart-cell:hover .chart-tip,
    .chart-seg:focus-visible .chart-tip {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    .chart-column { position: relative; }

    .chart-row { display: flex; align-items: center; gap: 0.75rem; }
    .chart-row-name { flex: 0 0 9rem; font-size: 0.8125rem; color: hsl(var(--foreground)); }
    .chart-row-track {
        display: flex;
        gap: 2px;
        flex: 1;
        height: 1.125rem;
        overflow: visible;
    }
    .chart-row-track .chart-bar { height: 100%; }
    .chart-row-value { flex: 0 0 2.75rem; text-align: right; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
    @media (max-width: 640px) {
        .chart-row-name { flex-basis: 6.5rem; }
    }

    /* ── Roll call ── */
    .roll-track {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        margin-inline: -0.25rem;
        padding: 0.125rem 0.25rem;
    }
    .roll-track::-webkit-scrollbar { display: none; }
    .roll-options {
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        gap: 0.125rem;
        padding: 0.125rem;
        border: 1px solid hsl(var(--border));
        border-radius: 0.5rem;
        background: hsl(var(--secondary) / 0.7);
    }
    .roll-options label { display: inline-flex; }
    .roll-option {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem 0.625rem;
        border-radius: 0.375rem;
        font-size: 0.8125rem;
        line-height: 1.25rem;
        white-space: nowrap;
        color: hsl(var(--muted-foreground));
        cursor: pointer;
        user-select: none;
        transition: background-color 120ms, color 120ms;
    }
    .roll-option:hover { color: hsl(var(--foreground)); }
    .peer:checked + .roll-option {
        background: hsl(var(--card));
        color: hsl(var(--foreground));
        box-shadow: 0 1px 2px hsl(var(--foreground) / 0.08);
    }
    .peer:checked + .roll-option.is-clear { background: none; box-shadow: none; color: hsl(var(--muted-foreground)); }
    .peer:focus-visible + .roll-option { box-shadow: 0 0 0 3px hsl(var(--ring) / 0.4); }

    /* ── Buttons ── */
    .btn-primary, .btn-outline, .btn-ghost, .btn-danger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        border: 1px solid transparent;
        font-size: 0.9375rem;
        font-weight: 500;
        line-height: 1.25rem;
        white-space: nowrap;
        cursor: pointer;
        transition: background-color 150ms, color 150ms, border-color 150ms;
    }
    .btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 500; }
    .btn-primary:hover { background: hsl(var(--primary) / 0.88); }
    .btn-outline { border-color: hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); }
    .btn-outline:hover { background: hsl(var(--accent) / 0.6); }
    .btn-ghost { color: hsl(var(--muted-foreground)); padding-left: 0.25rem; padding-right: 0.25rem; }
    .btn-ghost:hover { color: hsl(var(--foreground)); }
    .btn-danger { border-color: hsl(var(--destructive) / 0.4); color: hsl(var(--destructive)); background: transparent; }
    .btn-danger:hover { background: hsl(var(--destructive)); border-color: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
    .btn-block { width: 100%; padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .btn-ghost.btn-block { padding-left: 1.125rem; padding-right: 1.125rem; }

    .action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
    @media (max-width: 639px) {
        .action-row :where(.btn-primary, .btn-outline, .btn-danger) { width: 2.5rem; height: 2.5rem; padding: 0; gap: 0; }
        .action-row .btn-label {
            position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
            overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
        }
    }

    .icon-button {
        height: 2.25rem;
        width: 2.25rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
        color: hsl(var(--muted-foreground));
        transition: background-color 150ms, color 150ms;
    }
    .icon-button:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
    .icon-button.is-danger:hover { background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); }

    .danger-zone {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 0.5rem;
        border: 1px solid hsl(var(--destructive) / 0.25);
    }
    @media (min-width: 640px) {
        .danger-zone { flex-direction: row; align-items: center; justify-content: space-between; }
    }

    .divider {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.8125rem;
        color: hsl(var(--muted-foreground));
    }
    .divider::before, .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: hsl(var(--border));
    }

    /* ── Badges & pills ── */
    .badge-muted, .badge-outline, .badge-solid {
        display: inline-flex;
        align-items: center;
        border-radius: 0.5rem;
        padding: 0.125rem 0.5rem;
        font-size: 0.6875rem;
        font-weight: 500;
        line-height: 1rem;
        white-space: nowrap;
    }
    .badge-muted { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
    .badge-outline { border: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
    .badge-solid { background: hsl(var(--foreground)); color: hsl(var(--background)); min-width: 1.125rem; justify-content: center; padding: 0 0.3125rem; }

    .filter-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        border-radius: 0.5rem;
        border: 1px solid hsl(var(--foreground) / 0.25);
        padding: 0.25rem 0.625rem;
        font-size: 0.8125rem;
        color: hsl(var(--foreground));
        transition: background-color 120ms;
    }
    .filter-pill:hover { background: hsl(var(--accent)); }

    .tag-link {
        display: inline-flex;
        align-items: center;
        border-radius: 0.5rem;
        border: 1px solid hsl(var(--border));
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
        color: hsl(var(--foreground) / 0.85);
        transition: background-color 120ms, border-color 120ms;
    }
    .tag-link:hover { background: hsl(var(--accent) / 0.6); border-color: hsl(var(--foreground) / 0.3); }

    .detail-link {
        text-decoration: underline;
        text-decoration-color: hsl(var(--border));
        text-underline-offset: 4px;
        transition: text-decoration-color 150ms;
    }
    .detail-link:hover { text-decoration-color: hsl(var(--foreground)); }

    /* ── Voices ── */
    .voice-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 1.75rem;
        height: 1.5rem;
        padding: 0 0.375rem;
        border-radius: 0.5rem;
        border: 1px solid hsl(var(--border));
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        color: hsl(var(--foreground) / 0.8);
    }

    .voice-keys { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 0.75rem; }
    @media (min-width: 640px) {
        .voice-keys { flex-wrap: nowrap; gap: 2px; }
        .voice-keys > .voice-key { flex-basis: 0; justify-content: center; }
    }

    .voice-key {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.4375rem;
        flex: 0 1 auto;
        min-width: 0;
        padding-top: 0.375rem;
        font-size: 0.8125rem;
        line-height: 1.25rem;
        color: hsl(var(--muted-foreground));
        transition: color 120ms;
    }
    .voice-key:hover { color: hsl(var(--foreground)); }
    .voice-key.is-active { color: hsl(var(--foreground)); font-weight: 500; }
    .voice-key.is-active .voice-key-dot { box-shadow: 0 0 0 3px hsl(var(--foreground) / 0.12); }
    .voice-key-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; flex-shrink: 0; }
    .voice-key-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .voice-key-count { font-variant-numeric: tabular-nums; font-weight: 600; color: hsl(var(--foreground)); }

    .voice-name-0 { color: var(--voice-1); }
    .voice-name-1 { color: var(--voice-2); }
    .voice-name-2 { color: var(--voice-3); }
    .voice-name-3 { color: var(--voice-4); }
    .voice-name-4 { color: var(--voice-5); }
    .voice-name-5 { color: var(--voice-6); }

    .voice-tone-0 { background: var(--voice-1); }
    .voice-tone-1 { background: var(--voice-2); }
    .voice-tone-2 { background: var(--voice-3); }
    .voice-tone-3 { background: var(--voice-4); }
    .voice-tone-4 { background: var(--voice-5); }
    .voice-tone-5 { background: var(--voice-6); }

    .voice-bar { display: flex; gap: 2px; height: 0.625rem; }
    .voice-bar > span { border-radius: 2px; min-width: 4px; }
    .voice-bar > span:first-child { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
    .voice-bar > span:last-child { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }

    /* ── Grouped form rows ── */
    .form-card {
        border-radius: 0.5rem;
        border: 1px solid hsl(var(--border) / 0.8);
        background: hsl(var(--card));
        overflow: hidden;
    }
    .form-card > * + * { border-top: 1px solid hsl(var(--border) / 0.7); }

    .form-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-height: 3rem;
        padding: 0.5rem 1rem;
    }
    .form-row:focus-within { background: hsl(var(--accent) / 0.35); }
    .row-label {
        width: 6rem;
        flex-shrink: 0;
        font-size: 0.9375rem;
        color: hsl(var(--foreground));
    }
    @media (min-width: 640px) { .row-label { width: 8rem; } }

    .row-input {
        flex: 1;
        min-width: 0;
        border: 0;
        background: transparent;
        padding: 0.25rem 0;
        font-family: inherit;
        font-size: 0.9375rem;
        color: hsl(var(--foreground));
        text-align: right;
        outline: none;
    }
    .row-input::placeholder { color: hsl(var(--muted-foreground) / 0.7); }
    .row-input.is-title { text-align: left; font-size: 1.0625rem; font-weight: 600; }
    .row-input.is-select {
        appearance: none;
        cursor: pointer;
        text-align: right;
        direction: rtl;
        padding-right: 1.125rem;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right center;
    }
    .row-input.is-select > option { direction: ltr; }
    .row-stacked { display: block; padding: 0.75rem 1rem; }
    .row-stacked .row-input { text-align: left; }

    /* ── Segmented control (iOS) ── */
    .segmented {
        display: inline-grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 0.125rem;
        padding: 0.1875rem;
        border-radius: 0.5rem;
        background: hsl(var(--muted));
    }
    .segmented > a {
        padding: 0.375rem 1rem;
        border-radius: 0.375rem;
        font-size: 0.8125rem;
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
        color: hsl(var(--foreground) / 0.7);
        transition: background-color 150ms, color 150ms;
    }
    .segmented > a:hover { color: hsl(var(--foreground)); }
    .segmented > a[aria-current="page"] {
        background: hsl(var(--card));
        color: hsl(var(--foreground));
        box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 0 0 0.5px rgb(0 0 0 / 0.04);
    }

    /* ── Calendar leaf ── */
    .date-leaf {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.125rem;
        width: 3.5rem;
        height: 3.75rem;
        flex-shrink: 0;
        border-radius: 0.5rem;
        background: hsl(var(--card));
        border: 1px solid hsl(var(--border));
    }
    .date-leaf-month { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: hsl(var(--gold)); line-height: 1; }
    .date-leaf-day { font-family: 'Lora', Georgia, serif; font-size: 1.5rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: hsl(var(--foreground)); }
    .date-leaf-weekday { font-size: 0.625rem; color: hsl(var(--muted-foreground)); line-height: 1; }
    .date-leaf.is-lg { width: 4.5rem; height: 5rem; }
    .date-leaf.is-lg .date-leaf-day { font-size: 2rem; }
    .date-leaf.is-lg .date-leaf-month, .date-leaf.is-lg .date-leaf-weekday { font-size: 0.6875rem; }

    /* ── Event status ── */
    .status-badge {
        font-size: 0.75rem;
        font-weight: 500;
        line-height: 1.25rem;
        white-space: nowrap;
        color: hsl(var(--muted-foreground));
    }
    .status-next { color: hsl(var(--gold)); font-weight: 600; }
    .status-cancelled { color: hsl(var(--destructive) / 0.85); }

    /* ── Cards ── */
    .event-card {
        display: flex;
        gap: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        background: hsl(var(--card));
        border: 1px solid hsl(var(--border) / 0.8);
        transition: background-color 120ms, box-shadow 150ms;
    }
    .event-card:hover { box-shadow: 0 2px 10px rgb(0 0 0 / 0.06); }

    .public-shell {
        max-width: 72rem;
        margin-inline: auto;
        padding-inline: 1.25rem;
    }
    @media (min-width: 1536px) {
        .public-shell { max-width: 80rem; }
    }

    .month-board {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        max-height: min(72vh, 52rem);
        overflow: auto;
        overscroll-behavior: contain;
        scroll-snap-type: x proximity;
        margin-inline: -1.25rem;
        padding: 0 1.25rem 0.5rem;
    }
    .month-board > * {
        flex: 0 0 min(23rem, 86vw);
        scroll-snap-align: start;
    }
    @media (min-width: 768px) {
        .month-board { margin-inline: 0; padding-inline: 0.125rem; }
    }
    .month-head {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.375rem 0 0.5rem;
        background: hsl(var(--background));
    }
    .month-column { display: grid; gap: 0.75rem; align-content: start; }

    .event-card.is-cancelled .event-card-title { text-decoration: line-through; color: hsl(var(--muted-foreground)); }

    .program { counter-reset: program; }
    .program > [data-nested-row]:not([hidden]), .program > .program-row { counter-increment: program; }
    .program-number::before {
        content: counter(program);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 9999px;
        background: hsl(var(--muted));
        font-size: 0.75rem;
        font-weight: 600;
        font-variant-numeric: tabular-nums;
        color: hsl(var(--foreground) / 0.75);
    }

    /* ── Price table ── */
    .plan-switch { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.125rem; padding: 0.1875rem; border-radius: 0.5rem; background: hsl(var(--muted)); }
    .plan-switch > button {
        padding: 0.4375rem 1.125rem; border-radius: 0.375rem; font-size: 0.8125rem; font-weight: 500;
        white-space: nowrap; color: hsl(var(--foreground) / 0.7); transition: background-color 150ms, color 150ms;
    }
    .plan-switch > button:hover { color: hsl(var(--foreground)); }
    .plan-switch > button[aria-current="page"] {
        background: hsl(var(--card)); color: hsl(var(--foreground));
        box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 0 0 0.5px rgb(0 0 0 / 0.04);
    }

    .plan-grid { display: grid; gap: 1.25rem; align-items: stretch; padding-top: 0.75rem; }
    @media (min-width: 900px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    .plan-card {
        position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.25rem;
        padding: 1.75rem 1.5rem 1.5rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius);
        background: hsl(var(--card));
    }
    .plan-card.is-featured {
        background: hsl(var(--plan-deep)); border-color: hsl(var(--plan-deep)); color: #fff;
        box-shadow: 0 28px 56px -32px hsl(var(--plan-deep) / 0.8);
    }
    .dark .plan-card.is-featured { border-color: hsl(var(--plan-accent) / 0.5); }
    .plan-card.is-current { border-color: hsl(var(--foreground)); }
    .plan-ribbon {
        position: absolute; top: -0.75rem; left: 1.5rem; padding: 0.25rem 0.625rem; border-radius: 0.375rem;
        background: hsl(var(--plan-accent)); color: hsl(var(--plan-on-accent));
        font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    }
    .plan-name { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
    .plan-tagline { font-size: 0.875rem; line-height: 1.55; color: hsl(var(--muted-foreground)); }
    @media (min-width: 900px) { .plan-tagline { min-height: 2.7em; } }
    .plan-price { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.03em; color: hsl(var(--foreground)); white-space: nowrap; margin-top: 0.75rem; }
    .plan-per { font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; color: hsl(var(--muted-foreground)); margin-left: 0.25rem; }
    .plan-card.is-featured .plan-name { color: rgb(255 255 255 / 0.9); }
    .plan-card.is-featured .plan-tagline, .plan-card.is-featured .plan-per { color: rgb(255 255 255 / 0.66); }
    .plan-card.is-featured .plan-price { color: hsl(var(--plan-accent)); }
    .plan-features { display: grid; gap: 0.6875rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border)); }
    .plan-card.is-featured .plan-features { border-color: rgb(255 255 255 / 0.14); }
    .plan-feature { position: relative; padding-left: 1.625rem; font-size: 0.875rem; line-height: 1.5; color: hsl(var(--foreground) / 0.88); }
    .plan-feature::before {
        content: ""; position: absolute; left: 0.25rem; top: 0.25rem; width: 0.4375rem; height: 0.75rem;
        border: solid hsl(var(--plan-accent)); border-width: 0 2px 2px 0; transform: rotate(45deg);
    }
    .plan-card.is-featured .plan-feature { color: rgb(255 255 255 / 0.88); }
    .plan-foot { font-size: 0.8125rem; font-weight: 600; color: hsl(var(--foreground)); }
    .plan-card.is-featured .plan-foot { color: #fff; }

    .plan-custom {
        display: grid; gap: 1.5rem; padding: 1.75rem; border-radius: var(--radius);
        background: hsl(var(--plan-deep)); color: #fff;
    }
    @media (min-width: 900px) { .plan-custom { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3rem; padding: 2rem 2.25rem; } }
    .plan-custom-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
    .plan-custom-tagline { font-size: 0.875rem; color: rgb(255 255 255 / 0.66); margin-top: 0.25rem; }
    .plan-custom-features { display: grid; gap: 0.5rem 2rem; margin-top: 1.25rem; }
    @media (min-width: 640px) { .plan-custom-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    .plan-custom-features .plan-feature { color: rgb(255 255 255 / 0.88); }
    .plan-custom-side { display: grid; gap: 0.75rem; justify-items: start; }
    @media (min-width: 900px) { .plan-custom-side { justify-items: end; text-align: right; } }
    .plan-custom-price { font-size: 1.5rem; font-weight: 700; color: hsl(var(--plan-accent)); }
    .plan-custom-cta {
        display: inline-flex; align-items: center; justify-content: center; padding: 0.625rem 1.25rem; border-radius: var(--radius);
        background: hsl(var(--plan-accent)); color: hsl(var(--plan-on-accent)); font-size: 0.875rem; font-weight: 600;
        transition: filter 150ms;
    }
    .plan-custom-cta:hover { filter: brightness(1.06); }

    /* ── Landing ── */
    :root { --lp-gold: 40 70% 55%; --lp-gold-hi: 43 80% 66%; --lp-on-gold: 30 40% 10%; }
    .dark { --lp-gold: 40 50% 55%; --lp-gold-hi: 42 52% 66%; }
    body.landing {
        --lp-gold: 42 86% 56%;
        --lp-gold-hi: 46 92% 70%;
        --lp-gold-ink: 36 80% 32%;
        --lp-on-gold: 30 40% 10%;
        --lp-deep: 30 8% 8%;
        --plan-accent: var(--lp-gold);
        --plan-on-accent: var(--lp-on-gold);
        --plan-deep: var(--lp-deep);
        background-color: hsl(var(--background));
    }
    .dark body.landing { --lp-gold: 42 72% 56%; --lp-gold-hi: 45 80% 68%; --lp-gold-ink: 42 70% 64%; --lp-deep: 30 6% 10%; }
    .landing-page { overflow-x: clip; }
    html:has(body.landing) { scroll-behavior: smooth; interpolate-size: allow-keywords; }
    @media (prefers-reduced-motion: reduce) { html:has(body.landing) { scroll-behavior: auto; } }
    .landing-page section[id] { scroll-margin-top: 4rem; }

    .lp-shell { max-width: 96rem; margin-inline: auto; padding-inline: 1rem; }
    @media (min-width: 720px) { .lp-shell { padding-inline: 1.5rem; } }
    .lp-wrap, .lp-wrap-wide { margin-inline: auto; padding-inline: 1.25rem; }
    .lp-wrap { max-width: 72rem; }
    .lp-wrap-wide { max-width: 88rem; }
    @media (min-width: 640px) { .lp-wrap, .lp-wrap-wide { padding-inline: 2rem; } }
    .lp-section, .lp-section-pad { padding-block: 5rem; }
    @media (min-width: 640px) { .lp-section, .lp-section-pad { padding-block: 7rem; } }

    .is-blue { --tint: 214 82% 52%; --tint-ink: 214 72% 44%; }
    .is-green { --tint: 152 56% 40%; --tint-ink: 152 60% 30%; }
    .is-violet { --tint: 262 62% 58%; --tint-ink: 262 50% 46%; }
    .is-rose { --tint: 340 70% 56%; --tint-ink: 340 60% 44%; }
    .is-amber { --tint: 40 88% 52%; --tint-ink: 36 80% 32%; }
    .is-sky { --tint: 199 85% 48%; --tint-ink: 200 80% 34%; }
    .is-teal { --tint: 174 60% 38%; --tint-ink: 175 70% 26%; }
    .is-indigo { --tint: 234 70% 58%; --tint-ink: 234 55% 46%; }
    .is-slate { --tint: 215 25% 50%; --tint-ink: 215 25% 38%; }
    .dark :is(.is-blue, .is-green, .is-violet, .is-rose, .is-amber, .is-sky, .is-teal, .is-indigo, .is-slate) { --tint-ink: var(--tint); }
    .lp-chapter { overflow: clip; background: linear-gradient(180deg, hsl(var(--background)), hsl(var(--tint) / 0.07) 50%, hsl(var(--background))); }
    .dark .lp-chapter { --tint-ink: var(--tint); background: linear-gradient(180deg, hsl(var(--background)), hsl(var(--tint) / 0.035) 50%, hsl(var(--background))); }
    .dark .lp-chapter .lp-kicker.is-tone { color: hsl(var(--tint) / 0.85); }
    .dark .lp-visual { background: radial-gradient(80% 60% at 50% 0%, hsl(var(--tint) / 0.12), transparent 75%), hsl(0 0% 100% / 0.025); box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.06); }
    .dark .lp-quote-lead { background: radial-gradient(70% 90% at 100% 0%, hsl(var(--tint) / 0.22), transparent 70%), hsl(0 0% 100% / 0.04); box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.07); }
    .dark .lp-quote { border-top-color: hsl(0 0% 100% / 0.1); }
    .dark .lp-final { background: radial-gradient(70% 90% at 100% 100%, hsl(var(--tint) / 0.2), transparent 70%), hsl(0 0% 100% / 0.04); box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.07); }
    .lp-chapter-grid { display: grid; gap: 3rem; align-items: center; padding-block: 5rem; }
    @media (min-width: 640px) { .lp-chapter-grid { padding-block: 7rem; } }
    @media (min-width: 1024px) { .lp-chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; } }

    .lp-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--lp-gold-ink)); }
    .lp-kicker.is-tone { color: hsl(var(--tint-ink)); }
    .lp-display {
        max-width: 56rem; margin-inline: auto; font-size: clamp(2.75rem, 1.4rem + 5.2vw, 4.75rem); font-weight: 700;
        line-height: 1.02; letter-spacing: -0.035em; color: hsl(var(--foreground)); text-wrap: balance;
    }
    .lp-display mark {
        display: block; white-space: nowrap; color: transparent; background-color: transparent; -webkit-background-clip: text; background-clip: text;
        background-image: linear-gradient(90deg, hsl(36 80% 34%), hsl(42 86% 46%) 50%, hsl(36 80% 34%));
    }
    .dark .lp-display mark {
        background-image: linear-gradient(90deg, hsl(var(--lp-gold-hi)), #fff 50%, hsl(var(--lp-gold-hi)));
    }
    .dark .lp-display mark {
        background-image: linear-gradient(90deg, hsl(var(--lp-gold-hi)), #fff 50%, hsl(var(--lp-gold-hi)));
    }
    .lp-h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: hsl(var(--foreground)); text-wrap: balance; }
    .lp-lead { max-width: 32rem; font-size: 1.125rem; line-height: 1.65; color: hsl(var(--muted-foreground)); text-wrap: pretty; }
    .lp-inline-link { font-weight: 600; color: hsl(var(--foreground)); text-decoration: underline; text-decoration-color: hsl(var(--foreground) / 0.3); text-underline-offset: 3px; }
    .lp-inline-link:hover { text-decoration-color: hsl(var(--foreground)); }
    .lp-note { font-size: 0.8125rem; line-height: 1.55; color: hsl(var(--muted-foreground)); }
    .lp-sung { font-family: 'Lora', Georgia, serif; font-style: italic; font-weight: 500; }

    .lp-anchor { color: inherit; text-decoration: none; }
    .lp-anchor-icon {
        display: inline-block; width: 0.45em; height: 0.45em; margin-left: 0.25em; vertical-align: 0.15em;
        color: hsl(var(--muted-foreground)); opacity: 0; transition: opacity 150ms;
    }
    .lp-anchor:hover .lp-anchor-icon, .lp-anchor:focus-visible .lp-anchor-icon { opacity: 1; }
    .lp-anchor:focus-visible { outline: 2px solid hsl(var(--foreground)); outline-offset: 4px; border-radius: var(--radius); }

    .lp-cta, .lp-second, .lp-ghost-light {
        display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: fit-content;
        padding: 0.75rem 1.375rem; border-radius: var(--radius); font-size: 1rem; font-weight: 700; letter-spacing: -0.01em;
        white-space: nowrap; transition: transform 150ms, filter 150ms, background-color 150ms, color 150ms;
    }
    .lp-cta {
        color: hsl(var(--lp-on-gold)); background: linear-gradient(180deg, hsl(var(--lp-gold-hi)), hsl(var(--lp-gold)));
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 1px 2px rgb(0 0 0 / 0.12), 0 10px 24px -12px hsl(var(--lp-gold) / 0.9);
    }
    .lp-cta:hover { filter: brightness(1.04) saturate(1.05); }
    .lp-cta > svg { transition: transform 200ms; }
    .lp-cta:hover > svg { transform: translateX(3px); }
    .lp-cta:active, .lp-second:active, .lp-ghost-light:active { transform: scale(0.98); }
    .lp-second { color: hsl(var(--foreground)); background: hsl(var(--foreground) / 0.06); }
    .lp-second:hover { background: hsl(var(--foreground) / 0.1); }
    .lp-ghost-light { color: #fff; background: rgb(255 255 255 / 0.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
    .lp-ghost-light:hover { background: rgb(255 255 255 / 0.22); }
    .lp-buttons { display: flex; align-items: center; justify-content: center; gap: 0.75em; width: fit-content; max-width: 100%; margin-inline: auto; font-size: 1rem; }
    .lp-buttons > a { flex-shrink: 0; padding: 0.75em 1.375em; font-size: 1em; }
    @media (max-width: 639px) { .lp-buttons { gap: 0.625em; } .lp-buttons > a { gap: 0.375em; padding: 0.75em 1.125em; } }
    .lp-cta.is-sm, .lp-second.is-sm { padding: 0.4375rem 0.9375rem; font-size: 0.875rem; }
    .lp-cta:focus-visible, .lp-second:focus-visible, .lp-ghost-light:focus-visible, .lp-seg > button:focus-visible, .lp-faq-item > summary:focus-visible {
        outline: 2px solid hsl(var(--foreground)); outline-offset: 3px;
    }

    .lp-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 300ms, border-color 300ms; }
    .lp-header.is-scrolled { background: hsl(var(--background) / 0.85); border-color: hsl(var(--border)); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
    .lp-header-bar { height: 4rem; }
    .lp-nav-links { display: none; }
    @media (min-width: 1040px) { .lp-nav-links { display: flex; gap: 1.75rem; } }
    .lp-nav-link { font-size: 0.875rem; font-weight: 700; color: hsl(var(--muted-foreground)); transition: color 150ms; }
    .lp-header .lp-header-bar > a:first-child { gap: 0.75rem; }
    .lp-header .lp-header-bar > a:first-child > span:first-child { width: 40px; height: 40px; }
    .lp-header .lp-header-bar > a:first-child > span:last-child > span:first-child { font-size: 18px; font-weight: 700; }
    .lp-header .lp-header-bar > a:first-child > span:last-child > span:last-child { font-size: 11px; }
    .lp-header .lp-nav-link { font-size: 14px; }
    .lp-header .lp-header-bar { height: 64px; }
    .lp-header :is(.lp-cta, .lp-second).is-sm { height: 36px; padding: 0 0.875rem; font-size: 14px; }
    .lp-header :is([data-controller="dropdown"] > button, a.size-9) { width: 40px; height: 40px; }
    .lp-header :is([data-controller="dropdown"] > button, a.size-9) svg { width: 18px; height: 18px; }
    .lp-nav-link:hover { color: hsl(var(--foreground)); }
    .lp-header.lp-header [data-dropdown-target="menu"][data-dropdown-target="menu"] { color: hsl(var(--foreground)); }
    .lp-header.lp-header [data-dropdown-target="menu"][data-dropdown-target="menu"] .text-foreground { color: hsl(var(--foreground)); }
    .lp-header.lp-header [data-dropdown-target="menu"][data-dropdown-target="menu"] .text-muted-foreground { color: hsl(var(--muted-foreground)); }

    .lp-hero {
        position: relative; isolation: isolate; overflow: hidden; padding: 7.5rem 0 4rem;
        background:
            radial-gradient(55% 45% at 50% 78%, hsl(var(--lp-gold) / 0.16), transparent 70%),
            linear-gradient(180deg, hsl(40 45% 96%), hsl(var(--background)) 85%);
    }
    .dark .lp-hero {
        background:
            radial-gradient(55% 45% at 50% 78%, hsl(var(--lp-gold) / 0.1), transparent 70%),
            linear-gradient(180deg, hsl(30 8% 9%), hsl(var(--background)) 85%);
    }
    @media (min-width: 640px) { .lp-hero { padding-top: 9rem; padding-bottom: 5rem; } }
    .lp-hero-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0.75rem; max-width: 56rem; margin: 2.5rem auto 0; }
    @media (min-width: 640px) { .lp-hero-stage { gap: 2rem; margin-top: 3rem; } }
    .lp-hero-stage > .lp-device { width: 29%; transform: translateY(1rem); }
    .lp-hero-stage > .lp-device.is-center { position: relative; z-index: 1; width: 34%; transform: translateY(-0.5rem); }
    @media (min-width: 640px) {
        .lp-hero-stage > .lp-device.is-left { transform: translateY(1.75rem) rotate(-6deg); }
        .lp-hero-stage > .lp-device.is-right { transform: translateY(1.75rem) rotate(6deg); }
        .lp-hero-stage > .lp-device.is-center { transform: translateY(-0.75rem); }
    }
    .lp-hero-link {
        display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 1.5rem; font-weight: 700; color: hsl(var(--foreground));
        text-decoration: underline; text-decoration-color: hsl(var(--foreground) / 0.3); text-underline-offset: 5px; transition: text-decoration-color 150ms;
    }
    .lp-hero-link:hover { text-decoration-color: hsl(var(--foreground)); }

    .lp-device { container-type: inline-size; }
    .lp-device-frame { padding: 2cqw; border-radius: 14cqw; background: #0a0a0a; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 40px 80px -20px rgb(0 0 0 / 0.45); }
    .lp-device-frame img { display: block; width: 100%; height: auto; border-radius: 12cqw; }
    html:not(.dark) .shot-dark { display: none !important; }
    .dark .shot-light { display: none !important; }
    .dark .shot-dark { display: block; }

    .lp-tiles-section { position: relative; z-index: 1; padding: 7rem 0 1rem; background: hsl(var(--background)); }
    @media (min-width: 640px) { .lp-tiles-section { padding-top: 9rem; } }
    .lp-tiles {
        display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin: 2.5rem -1.25rem 0; padding: 0 1.25rem 1rem;
    }
    .lp-tiles::-webkit-scrollbar { display: none; }
    @media (min-width: 640px) { .lp-tiles { margin-inline: -2rem; padding-inline: 2rem; } }
    @media (min-width: 1024px) { .lp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; overflow: visible; margin: 2.5rem 0 0; padding: 0; } }
    .lp-tile { position: relative; flex: 0 0 72%; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); scroll-snap-align: start; background: hsl(var(--muted)); }
    @media (min-width: 640px) { .lp-tile { flex-basis: 44%; } }
    .lp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
    .lp-tile:hover img { transform: scale(1.05); }
    .lp-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / 0.8), rgb(0 0 0 / 0.2) 45%, transparent); }
    .lp-tile-text { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; display: grid; gap: 0.25rem; padding: 1.25rem; color: #fff; }
    .lp-tile-was { font-size: 0.8125rem; color: rgb(255 255 255 / 0.7); text-decoration: line-through; text-decoration-color: rgb(255 255 255 / 0.5); }
    .lp-tile-label { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }

    .lp-points { display: grid; gap: 1.5rem; margin-top: 2rem; }
    .lp-points > div { padding-left: 1rem; border-left: 2px solid hsl(var(--foreground) / 0.12); }
    .lp-points dt { font-weight: 700; color: hsl(var(--foreground)); }
    .lp-points dd { margin-top: 0.25rem; font-size: 0.875rem; line-height: 1.65; color: hsl(var(--muted-foreground)); }
    .lp-visual {
        position: relative; width: 100%; max-width: 28rem; margin-inline: auto; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
        background: radial-gradient(80% 60% at 50% 0%, hsl(var(--tint) / 0.35), transparent 75%), linear-gradient(180deg, hsl(var(--tint) / 0.16), hsl(var(--tint) / 0.06));
        box-shadow: inset 0 0 0 1px hsl(var(--tint) / 0.12);
    }
    @media (min-width: 640px) and (max-width: 1023px) { .lp-visual { aspect-ratio: 1; } }
    .lp-visual.is-text { aspect-ratio: auto; display: flex; flex-direction: column; justify-content: center; padding: 2.5rem 2rem; }
    .lp-visual-phone { position: absolute; left: 50%; top: 50%; width: 50%; transform: translate(-50%, -50%); }
    @media (min-width: 640px) and (max-width: 1023px) { .lp-visual-phone { width: 40%; } }
    .lp-quotes { display: grid; gap: 3rem 2.5rem; margin-top: 3rem; }
    @media (min-width: 640px) { .lp-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    .lp-quote-lead {
        position: relative; isolation: isolate; overflow: hidden; padding: 3rem 1.75rem; border-radius: var(--radius); color: #fff;
        background: linear-gradient(135deg, hsl(var(--tint)), hsl(var(--tint-ink)) 70%, hsl(234 50% 30%));
        box-shadow: 0 30px 60px -25px hsl(var(--tint) / 0.6);
    }
    @media (min-width: 640px) { .lp-quote-lead { grid-column: 1 / -1; padding: 4rem 3.5rem; } }
    .lp-quote-lead::before { content: "\201D"; position: absolute; z-index: -1; top: -2.5rem; right: 2rem; font-size: 18rem; font-weight: 700; line-height: 1; color: rgb(255 255 255 / 0.08); }
    .lp-quote-lead blockquote { max-width: 48rem; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
    .lp-quote-lead figcaption { margin-top: 2rem; color: rgb(255 255 255 / 0.75); }
    .lp-quote-lead figcaption strong { color: #fff; }
    .lp-quote { display: flex; flex-direction: column; padding-top: 1.5rem; border-top: 2px solid hsl(var(--tint) / 0.3); }
    .lp-quote blockquote { flex: 1; font-size: 1.125rem; line-height: 1.6; color: hsl(var(--foreground)); }
    .lp-quote figcaption { margin-top: 1.25rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
    .lp-quote figcaption strong { color: hsl(var(--foreground)); }
    @media (max-width: 639px) {
        .landing-page .plan-grid { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1.25rem; padding: 0.25rem 1.25rem 1.5rem; }
        .landing-page .plan-grid > .plan-card { flex: 0 0 82%; scroll-snap-align: start; }
    }
    .lp-steps { display: grid; gap: 1.5rem; margin-top: 2rem; }
    .lp-steps > li { display: flex; gap: 1rem; }
    .lp-step-num { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--radius); font-weight: 700; color: hsl(var(--background)); background: hsl(var(--foreground)); }

    .mini { border-radius: var(--radius); background: hsl(var(--card)); box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.06); overflow: hidden; }
    .q-field {
        display: flex; align-items: center; gap: 0.5rem; padding: 0.5625rem 0.75rem; border-radius: var(--radius);
        background: hsl(var(--card)); box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.1); font-size: 0.8125rem; color: hsl(var(--muted-foreground));
    }
    .q-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.625rem; }
    .q-chip { padding: 0.25rem 0.625rem; border-radius: var(--radius); background: hsl(var(--card)); box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.1); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
    .q-chip.is-on { box-shadow: none; background: hsl(var(--foreground)); color: hsl(var(--background)); font-weight: 600; }
    .leaflet-choir { display: block; font-size: 0.875rem; font-weight: 600; color: hsl(var(--foreground)); }
    .leaflet-when { display: block; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
    .leaflet-cue { display: block; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--tint-ink, var(--lp-gold-ink))); }
    .leaflet-song { display: block; font-size: 1rem; line-height: 1.35; color: hsl(var(--foreground)); margin-top: 0.125rem; }
    .staff-0 { color: var(--voice-1); } .staff-1 { color: var(--voice-2); } .staff-2 { color: var(--voice-3); }
    .staff-3 { color: var(--voice-4); } .staff-4 { color: var(--voice-5); } .staff-5 { color: var(--voice-6); }

    .lp-showcase { margin-top: 3rem; }
    .lp-seg {
        display: flex; gap: 0.125rem; max-width: 100%; margin: 0 auto 1.5rem; width: max-content;
        padding: 0.25rem; border-radius: var(--radius); background: hsl(var(--foreground) / 0.06); overflow-x: auto; scrollbar-width: none;
    }
    .lp-seg > button {
        position: relative; overflow: hidden; padding: 0.4375rem 1rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; white-space: nowrap;
        color: hsl(var(--foreground) / 0.65); transition: background-color 150ms, color 150ms;
    }
    .lp-seg > button:hover { color: hsl(var(--foreground)); }
    .lp-seg > button[aria-selected="true"] { background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
    .lp-seg-bar {
        position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.25rem; height: 2px; border-radius: var(--radius);
        background: hsl(var(--foreground) / 0.5); transform: scaleX(0); transform-origin: left; opacity: 0;
    }
    .lp-showcase.is-playing .lp-seg > [aria-selected="true"] .lp-seg-bar { opacity: 1; animation: lp-progress var(--tab-interval, 6s) linear forwards; }
    @keyframes lp-progress { to { transform: scaleX(1); } }
    .lp-window { overflow: hidden; border-radius: var(--radius); background: hsl(var(--card)); box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.08), 0 50px 100px -50px rgb(0 0 0 / 0.4); }
    .lp-window-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.625rem 0.875rem; background: hsl(var(--muted) / 0.6); border-bottom: 1px solid hsl(var(--border)); }
    .lp-window-dots { display: flex; gap: 0.375rem; }
    .lp-window-dots > i { width: 0.6875rem; height: 0.6875rem; border-radius: var(--radius); background: #FF5F57; }
    .lp-window-dots > i:nth-child(2) { background: #FEBC2E; }
    .lp-window-dots > i:nth-child(3) { background: #28C840; }
    .lp-window-dots.is-ghost { visibility: hidden; }
    .lp-window-url {
        display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; min-width: 40%; padding: 0.3125rem 0.875rem;
        border-radius: var(--radius); font-size: 0.75rem; color: hsl(var(--muted-foreground)); background: hsl(var(--card)); box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.06);
    }
    .lp-window-view { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
    .dark .lp-window-view { background: #000; }
    .lp-window-view :where(img) { display: block; position: relative; left: 50%; transform: translateX(-50%); width: min(1799px, 170%); max-width: none; height: auto; }
    .lp-phone-row { display: none; }
    @media (max-width: 639px) {
        .lp-showcase { display: none; }
        .lp-phone-row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 2.5rem -1.25rem 0; padding: 0 1.25rem 1rem; }
        .lp-phone-row > figure { flex: 0 0 62%; margin: 0; scroll-snap-align: center; }
        .lp-phone-row figcaption { margin-top: 0.75rem; text-align: center; font-size: 0.8125rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
    }

    .landing-page [data-controller="plan-period"] > .plan-switch { display: flex; width: max-content; background: hsl(var(--foreground) / 0.06); }
    .landing-page .plan-switch, .landing-page .plan-switch > button { border-radius: var(--radius); }
    .lp-wrap-prices { max-width: 84rem; }
    .landing-page .plan-grid { gap: 1.25rem; padding-top: 0; }
    @media (min-width: 640px) { .landing-page .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    @media (min-width: 1100px) { .landing-page .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
    .landing-page .plan-card {
        gap: 1.75rem; padding: 2.25rem 2rem 2rem; border: 0; border-radius: var(--radius); background: hsl(var(--card));
        box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.07), 0 30px 60px -45px rgb(40 30 10 / 0.35);
    }
    .landing-page .plan-card.is-featured { background: hsl(var(--lp-deep)); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.45); }
    .dark .landing-page .plan-card.is-featured { background: hsl(0 0% 100% / 0.045); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08); }
    .landing-page .plan-ribbon { top: -0.75rem; left: 2rem; right: auto; padding: 0.25rem 0.625rem; border-radius: var(--radius); color: hsl(var(--lp-on-gold)); background: linear-gradient(180deg, hsl(var(--lp-gold-hi)), hsl(var(--lp-gold))); letter-spacing: 0.06em; }
    .landing-page .plan-price { font-size: 2rem; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; }
    @media (min-width: 1100px) { .landing-page .plan-price { font-size: clamp(1.375rem, 0.5rem + 1.2vw, 1.75rem); } }
    .landing-page .plan-card.is-featured .plan-price { color: #fff; }
    .landing-page .plan-features { gap: 0.875rem; padding-top: 1.75rem; border-color: hsl(var(--foreground) / 0.07); }
    .landing-page .plan-tagline { min-height: 0; }
    @media (min-width: 640px) { .landing-page .plan-tagline { min-height: 3.1em; } }
    @media (min-width: 1100px) and (max-width: 1299px) { .landing-page .plan-tagline { min-height: 4.65em; } }
    .landing-page .plan-card > .space-y-1\.5 { display: grid; gap: 0.5rem; }
    .landing-page .plan-feature::before { border-color: hsl(var(--foreground) / 0.5); }
    .landing-page .plan-card.is-featured .plan-feature::before { border-color: rgb(255 255 255 / 0.6); }
    .landing-page .plan-custom { color: hsl(var(--foreground)); background: hsl(var(--card)); box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.07); }
    .landing-page .plan-custom-tagline { color: hsl(var(--muted-foreground)); }
    .landing-page .plan-custom-features .plan-feature { color: hsl(var(--foreground) / 0.88); }
    .landing-page .plan-custom-price { font-size: 1.25rem; font-weight: 700; color: hsl(var(--foreground)); }
    .landing-page .plan-custom-cta { color: hsl(var(--background)); background: hsl(var(--foreground)); }

    .lp-faq-grid { display: grid; gap: 3rem; }
    @media (min-width: 1024px) { .lp-faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; } .lp-faq-head { position: sticky; top: 6rem; } }
    .lp-ask { margin-top: 2rem; padding: 1.25rem; border-radius: var(--radius); background: hsl(var(--muted) / 0.6); }
    .lp-whatsapp { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 700; color: #fff; background: #25D366; transition: background-color 150ms; }
    .lp-whatsapp:hover { background: #1EBE5A; }
    .lp-whatsapp svg path { fill: currentColor; }
    .lp-faq-group + .lp-faq-group { margin-top: 2.5rem; }
    .lp-faq-label { margin-bottom: 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
    .lp-faq-item { border-bottom: 1px solid hsl(var(--foreground) / 0.1); }
    .lp-faq-item > summary {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.125rem; cursor: pointer; list-style: none;
        font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; color: hsl(var(--foreground));
    }
    .lp-faq-item > summary::-webkit-details-marker { display: none; }
    .lp-faq-item > summary > svg { flex: none; color: hsl(var(--muted-foreground)); transition: transform 250ms; }
    .lp-faq-item[open] > summary > svg { transform: rotate(45deg); }
    .lp-faq-item > p { padding: 0 2rem 1.25rem 0; font-size: 0.9375rem; line-height: 1.65; color: hsl(var(--muted-foreground)); }
    .lp-faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 300ms ease, content-visibility 300ms allow-discrete; }
    .lp-faq-item[open]::details-content { block-size: auto; }

    .lp-final-wrap { padding: 0 1.25rem 5rem; }
    @media (min-width: 640px) { .lp-final-wrap { padding: 0 2rem 6rem; } }
    .lp-final { position: relative; isolation: isolate; overflow: hidden; max-width: 72rem; margin-inline: auto; padding: 5rem 1.5rem; border-radius: var(--radius); text-align: center; color: #fff; }
    @media (min-width: 640px) { .lp-final { padding-block: 6rem; } }
    .lp-final { background: radial-gradient(70% 90% at 100% 100%, hsl(var(--tint) / 0.55), transparent 70%), linear-gradient(135deg, hsl(236 45% 12%), hsl(234 45% 22%)); }
    .dark .lp-final { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }

    .lp-footer { border-top: 1px solid hsl(var(--border)); background: hsl(var(--muted) / 0.3); }
    .lp-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 2rem; white-space: nowrap; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
    .lp-footer-end { display: flex; align-items: center; gap: 0.5rem; }
    .lp-footer-name { font-size: 0.9375rem; font-weight: 700; color: hsl(var(--foreground)); }
    .lp-foot-link { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); transition: color 150ms; }
    .lp-footer-row .lp-foot-link { font-size: inherit; }
    .lp-foot-link:hover { color: hsl(var(--foreground)); }
    .lp-foot-link.is-author { font-weight: 500; color: hsl(var(--foreground)); }
    .lp-credits { position: relative; }
    .lp-credits > summary { white-space: nowrap; cursor: pointer; list-style: none; }
    .lp-credits > summary::-webkit-details-marker { display: none; }
    .lp-credits > summary:hover { color: hsl(var(--foreground)); }
    .lp-credits ul {
        position: absolute; right: 0; bottom: calc(100% + 0.75rem); z-index: 10; width: min(28rem, calc(100vw - 2rem));
        display: grid; gap: 0.25rem; padding: 0.875rem 1rem; white-space: normal;
        border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card));
        box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.25); font-size: 0.75rem; line-height: 1.5;
    }
    .lp-credits a { text-decoration: underline; text-underline-offset: 2px; }

    @media (prefers-reduced-motion: no-preference) {
        .reveal { opacity: 0; transform: translateY(2rem); transition: opacity 1000ms ease-out, transform 1000ms ease-out; }
        .reveal.is-in { opacity: 1; transform: none; }
    }
}

/* ── Softer dark, softer gold, smaller type (2026-09-26) ── */
.dark {
    --background: 0 0% 4%;
    --foreground: 0 0% 94%;
    --card: 0 0% 8%;
    --card-foreground: 0 0% 94%;
    --popover: 0 0% 9%;
    --popover-foreground: 0 0% 94%;
    --primary: 0 0% 94%;
    --primary-foreground: 0 0% 9%;
    --secondary: 0 0% 15%;
    --secondary-foreground: 0 0% 94%;
    --muted: 0 0% 15%;
    --muted-foreground: 0 0% 64%;
    --accent: 0 0% 15%;
    --accent-foreground: 0 0% 94%;
    --border: 0 0% 15%;
    --input: 0 0% 21%;
    --gold: 40 48% 56%;
}

:root { --type-scale: 0.9; --type-scale-phone: 0.9375; }
.text-\[10px\] { font-size: 0.625rem; }
.text-\[11px\] { font-size: 0.6875rem; }
.text-\[12px\] { font-size: 0.75rem; }
.text-\[13px\] { font-size: 0.8125rem; }
.text-\[14px\] { font-size: 0.875rem; }
.text-\[15px\] { font-size: 0.9375rem; }
.text-\[16px\] { font-size: 1rem; }
.text-\[17px\] { font-size: 1.0625rem; }
.text-\[18px\] { font-size: 1.125rem; }
.text-\[26px\] { font-size: 1.625rem; }
.text-\[28px\] { font-size: 1.75rem; }
@media (min-width: 768px) {
    html { font-size: calc(100% * var(--type-scale)); }
}
@media (max-width: 767px) {
    html { font-size: calc(100% * var(--type-scale-phone)); }
    .page-title { font-size: 1.75rem; }
    /* iOS zooms into fields under 16px */
    input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}
