/*
 * REVETTI & COMPANY — revetti-brand.css
 * Design system for revetti.co and all associated tools
 * Version: 1.0 — March 2026
 *
 * Import this file before any component CSS.
 * All HTML tools and pages reference these tokens.
 *
 * Usage:
 *   <link rel="stylesheet" href="revetti-brand.css">
 */

/* ════════════════════════════════════════════════════════
   GOOGLE FONTS — copy into <head> of every HTML file
════════════════════════════════════════════════════════ */
/*
<link href="https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
*/

/* ════════════════════════════════════════════════════════
   RESET
════════════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════════════════ */
:root {
    /* Core palette */
    --navy:       #0F172A;   /* page background */
    --deep-navy:  #1A2332;   /* card background, nav */
    --mid-navy:   #1E293B;   /* section alternates, table rows */

    /* Brand accents */
    --cyan:       #00D9FF;   /* primary CTA, GWS accent, score highlight */
    --teal:       #2ED4BF;   /* secondary CTA, M365 accent, gradient mid */
    --coral:      #FF6B6B;   /* warning CTA, value figures */

    /* Neutrals */
    --soft-gray:  #E8EEF2;   /* body text, option labels */
    --muted:      #64748B;   /* captions, descriptions, secondary text */
    --cloud:      #F1F5F9;   /* headings on dark backgrounds */
    --slate:      #334155;   /* footer disclaimer, deep muted */

    /* Borders — three levels of opacity */
    --border:          rgba(255, 255, 255, 0.07);  /* structural dividers, card edges */
    --border-mid:      rgba(255, 255, 255, 0.12);  /* hover states, section dividers */
    --border-visible:  rgba(255, 255, 255, 0.18);  /* buttons, inputs — actually visible on dark bg */

    /* Glows */
    --cyan-glow:  rgba(0, 217, 255, 0.08);
    --teal-glow:  rgba(46, 212, 191, 0.07);

    /* ── Typography ── */
    --font-display: 'Syne', sans-serif;       /* headers, CTAs, tier names */
    --font-mono:    'DM Mono', monospace;     /* labels, stats, eyebrows, badges */
    --font-body:    'DM Sans', sans-serif;    /* body copy, descriptions, inputs */

    /* Font weights */
    --fw-light:    300;
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;
    --fw-bold:     700;
    --fw-black:    800;

    /* ── Spacing scale ── */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  20px;
    --space-6:  24px;
    --space-8:  32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* ── Border radius ── */
    --radius-sm:   5px;
    --radius-md:   8px;
    --radius-lg:   10px;
    --radius-xl:   12px;
    --radius-pill: 20px;

    /* ── Transitions ── */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.2s ease;
    --transition-slow: all 0.3s ease;

    /* ── Shadows ── */
    --shadow-sm:   0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md:   0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg:   0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-cyan: 0 10px 30px rgba(0, 217, 255, 0.25);
    --shadow-teal: 0 10px 30px rgba(46, 212, 191, 0.25);
}

/* ════════════════════════════════════════════════════════
   BASE
════════════════════════════════════════════════════════ */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--soft-gray);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ════════════════════════════════════════════════════════
   TYPOGRAPHY — UTILITY CLASSES
════════════════════════════════════════════════════════ */

.t-display {
    font-family: var(--font-display);
    font-weight: var(--fw-black);
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--cloud);
}

.t-h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.t-h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.t-h3 { font-size: 1.2rem; }
.t-h4 { font-size: 1rem; }

.t-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
}

.t-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.t-stat {
    font-family: var(--font-display);
    font-weight: var(--fw-black);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

.t-body    { font-size: 1rem;    line-height: 1.65; }
.t-body-sm { font-size: 0.88rem; line-height: 1.55; }
.t-body-xs { font-size: 0.78rem; line-height: 1.5;  }

.c-cyan  { color: var(--cyan); }
.c-teal  { color: var(--teal); }
.c-coral { color: var(--coral); }
.c-muted { color: var(--muted); }
.c-cloud { color: var(--cloud); }
.c-soft  { color: var(--soft-gray); }

/* ════════════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════════════ */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

.section     { padding: 88px 0; }
.section-alt { background: var(--deep-navy); padding: 88px 0; }
.section-header { margin-bottom: 48px; }

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .section, .section-alt { padding: 56px 0; }
}

/* ════════════════════════════════════════════════════════
   GRADIENT RULE
════════════════════════════════════════════════════════ */
.grad-rule {
    height: 2px;
    border: none;
    background: linear-gradient(90deg, var(--cyan), var(--teal), transparent);
    margin-bottom: 40px;
}

/* ════════════════════════════════════════════════════════
   GRADIENT BAR — page footer stripe
════════════════════════════════════════════════════════ */
.gradient-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--teal), var(--coral));
}

/* ════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════ */

/* Primary — cyan fill */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 28px;
    background: var(--cyan);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: var(--fw-bold);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-base);
    white-space: nowrap;
}
.btn-primary:hover {
    background: #00c4e8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}

/* Secondary — teal fill */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 28px;
    background: var(--teal);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: var(--fw-bold);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-base);
    white-space: nowrap;
}
.btn-secondary:hover {
    background: #25bfab;
    transform: translateY(-2px);
    box-shadow: var(--shadow-teal);
}

/* Ghost — transparent with visible border
   FIXED Sprint Bravo: was var(--border) at 0.07 opacity — invisible on dark bg.
   Now uses --border-visible at 0.18 opacity. */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 24px;
    background: transparent;
    color: var(--soft-gray);
    border: 1.5px solid var(--border-visible);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: var(--fw-semibold);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-base);
}
.btn-ghost:hover {
    border-color: rgba(0, 217, 255, 0.5);
    color: var(--cyan);
    background: rgba(0, 217, 255, 0.04);
}

/* CTA — coral, high urgency */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--coral);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: var(--fw-bold);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-base);
    white-space: nowrap;
}
.btn-cta:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* Email submit — teal small */
.btn-email {
    padding: 12px 24px;
    background: var(--teal);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}
.btn-email:hover {
    background: #25bfab;
    transform: translateY(-1px);
}

/* Outline — mono label, cyan tint */
.btn-outline {
    padding: 8px 16px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--cyan);
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
}
.btn-outline:hover {
    background: rgba(0, 217, 255, 0.18);
    border-color: rgba(0, 217, 255, 0.5);
}

/* Back — quiz / scorecard navigation
   FIXED Sprint Bravo: same border visibility fix as btn-ghost */
.btn-back {
    padding: 14px 24px;
    background: transparent;
    color: var(--soft-gray);
    border: 2px solid var(--border-visible);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: var(--fw-bold);
    cursor: pointer;
    transition: var(--transition-base);
}
.btn-back:hover {
    border-color: var(--teal);
    color: var(--teal);
}
.btn-back:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Next — quiz / scorecard navigation */
.btn-next {
    flex: 1;
    padding: 14px 24px;
    background: var(--cyan);
    color: var(--navy);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: var(--fw-bold);
    cursor: pointer;
    min-width: 150px;
    transition: var(--transition-base);
}
.btn-next:hover {
    background: #00c4e8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}

/* ════════════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════════════ */
.card {
    background: var(--deep-navy);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
}

.card-sm {
    background: var(--deep-navy);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* ════════════════════════════════════════════════════════
   EMAIL CAPTURE BLOCK — all 4 tools
════════════════════════════════════════════════════════ */
.email-capture {
    background: linear-gradient(135deg, var(--deep-navy) 0%, rgba(0, 217, 255, 0.05) 100%);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    margin-bottom: 32px;
}
.email-capture h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: var(--fw-bold);
    color: var(--cloud);
    margin-bottom: 8px;
}
.email-capture p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.55;
}

.email-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.email-row input {
    flex: 1;
    min-width: 180px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--cloud);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.email-row input:focus {
    outline: none;
    border-color: rgba(0, 217, 255, 0.5);
}
.email-row input.invalid {
    border-color: rgba(255, 107, 107, 0.5);
}

.email-success {
    display: none;
    padding: 12px 16px;
    background: rgba(46, 212, 191, 0.1);
    border: 1px solid rgba(46, 212, 191, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--teal);
    margin-top: 12px;
}
.email-success.show { display: block; }

/* ════════════════════════════════════════════════════════
   PROGRESS BAR — quiz / scorecard
════════════════════════════════════════════════════════ */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    width: 0%;
    transition: width 0.3s ease;
}

/* ════════════════════════════════════════════════════════
   OPTION / RADIO ITEM — quiz / scorecard
════════════════════════════════════════════════════════ */
.option {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    gap: 12px;
}
.option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.3);
}
.option.selected {
    background: rgba(0, 217, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.4);
}
.option input[type="radio"] {
    accent-color: var(--cyan);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}
.option label {
    flex: 1;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--soft-gray);
}

/* ════════════════════════════════════════════════════════
   TIER BADGE
════════════════════════════════════════════════════════ */
.tier-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 24px;
}

/* ════════════════════════════════════════════════════════
   HEADER BLOCK — shared across all tools
════════════════════════════════════════════════════════ */
.header {
    background: var(--deep-navy);
    border-bottom: 1px solid rgba(0, 217, 255, 0.15);
    padding: 48px 40px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 200px;
    background: radial-gradient(ellipse, rgba(0, 217, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
}
.header .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}
.header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: var(--fw-black);
    color: var(--cloud);
    line-height: 1.15;
    margin-bottom: 14px;
}
.header h1 span { color: var(--cyan); }
.header p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════════
   FOOTER BAR — shared across all tools
════════════════════════════════════════════════════════ */
.footer-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--teal), var(--coral));
    margin-top: 60px;
}

/* ════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ════════════════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ════════════════════════════════════════════════════════
   MOBILE
════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }
    .email-row { flex-direction: column; }
    .header { padding: 36px 24px 32px; }
}

/* ════════════════════════════════════════════════════════
   SPRINT CHARLIE ADDITIONS
   All components below added 02-25-2026
════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────
   TOOL NAV — back-link bar, appears at top of every tool
   Usage:
     <div class="tool-nav">
       <a href="index.html" class="tool-nav__back">← Revetti</a>
       <span class="tool-nav__name">SaaS Consolidation Report</span>
     </div>
──────────────────────────────────────────────────────── */
.tool-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 40px;
    background: var(--deep-navy);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tool-nav__back {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.tool-nav__back:hover {
    color: var(--cyan);
}

.tool-nav__divider {
    width: 1px;
    height: 14px;
    background: var(--border-visible);
    flex-shrink: 0;
}

.tool-nav__name {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.6;
}

@media (max-width: 640px) {
    .tool-nav { padding: 10px 20px; }
    .tool-nav__name { display: none; }
}

/* ────────────────────────────────────────────────────────
   BUY CARD — Stripe T1/T2 purchase block
   Usage:
     <div class="buy-card-grid">
       <div class="buy-card buy-card--t1">
         <div class="buy-card__eyebrow">T1 · Workspace Audit</div>
         <div class="buy-card__price">$1,497</div>
         <div class="buy-card__desc">14-day workspace audit + custom roadmap</div>
         <div class="tag-strip">
           <span class="tag">14 days</span>
           <span class="tag">PDF report</span>
           <span class="tag">Strategy session</span>
         </div>
         <stripe-buy-button
           buy-button-id="buy_btn_1T4soPBVRlR0h83EvYXHI2sR"
           publishable-key="pk_live_51PDecKBVRlR0h83ENebkYnZSMVFwUsRoDblrdt7n74gpyQYrndHxkDDNVktSYmFVmEqbzDM8nXPk52OwnEecFhr8A00OxDd3Ce2">
         </stripe-buy-button>
       </div>
       <div class="buy-card buy-card--t2"> ... </div>
     </div>

   See stripe-buy-button section below for full credentials.
──────────────────────────────────────────────────────── */
.buy-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}
@media (max-width: 640px) {
    .buy-card-grid { grid-template-columns: 1fr; }
}

.buy-card {
    background: var(--deep-navy);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}
.buy-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* T1 — cyan accent */
.buy-card--t1 {
    border-top: 3px solid var(--cyan);
}
.buy-card--t1::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(0,217,255,0.06) 0%, transparent 100%);
    pointer-events: none;
}

/* T2 — teal accent */
.buy-card--t2 {
    border-top: 3px solid var(--teal);
}
.buy-card--t2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(46,212,191,0.06) 0%, transparent 100%);
    pointer-events: none;
}

.buy-card__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.buy-card--t1 .buy-card__eyebrow { color: var(--cyan); }
.buy-card--t2 .buy-card__eyebrow { color: var(--teal); }

.buy-card__price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: var(--fw-black);
    color: var(--cloud);
    line-height: 1;
    letter-spacing: -0.02em;
}

.buy-card__desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    flex: 1;
}

.buy-card__btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    text-align: center;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: var(--fw-bold);
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    margin-top: 4px;
}
.buy-card--t1 .buy-card__btn {
    background: var(--cyan);
    color: var(--navy);
}
.buy-card--t1 .buy-card__btn:hover {
    background: #00c4e8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-cyan);
}
.buy-card--t2 .buy-card__btn {
    background: var(--teal);
    color: var(--navy);
}
.buy-card--t2 .buy-card__btn:hover {
    background: #25bfab;
    transform: translateY(-1px);
    box-shadow: var(--shadow-teal);
}

/* ────────────────────────────────────────────────────────
   TAG STRIP — feature/benefit tags inside buy cards
   Usage: <div class="tag-strip"><span class="tag">14 days</span></div>
──────────────────────────────────────────────────────── */
.tag-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    white-space: nowrap;
}

/* ────────────────────────────────────────────────────────
   OUTPUT SUMMARY — persistent results block shown post-submit
   Replaces screen-only output that disappears on tab close.
   Usage:
     <div class="output-summary" id="outputSummary">
       <div class="output-summary__title">Your Results</div>
       <div class="output-row">
         <span class="output-row__label">Annual Savings</span>
         <span class="output-row__value c-cyan">$24,600</span>
       </div>
     </div>
──────────────────────────────────────────────────────── */
.output-summary {
    background: var(--deep-navy);
    border: 1px solid rgba(0,217,255,0.15);
    border-top: 3px solid var(--cyan);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin: 24px 0;
    animation: slideUp 0.4s ease;
}

.output-summary__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: var(--fw-bold);
    color: var(--cloud);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.output-summary__subtitle {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 20px;
}

.output-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.output-row:last-child { border-bottom: none; }

.output-row__label {
    font-size: 0.88rem;
    color: var(--muted);
}

.output-row__value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: var(--fw-bold);
    color: var(--cloud);
    text-align: right;
}

.output-row--total {
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1.5px solid var(--border-mid);
    border-bottom: none;
}
.output-row--total .output-row__label {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    color: var(--cloud);
    font-size: 0.95rem;
}
.output-row--total .output-row__value {
    font-size: 1.3rem;
    color: var(--cyan);
}

/* ────────────────────────────────────────────────────────
   SCORE DISPLAY — 0–100 score output block
   Usage:
     <div class="score-display score-band--mid">
       <div class="score-display__number">67</div>
       <div class="score-display__label">Workspace Efficiency Score</div>
       <div class="score-display__band">Mid — Room to Grow</div>
     </div>
──────────────────────────────────────────────────────── */
.score-display {
    text-align: center;
    padding: 36px 28px;
    background: var(--deep-navy);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}
.score-display::before {
    content: '';
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 150px;
    background: radial-gradient(ellipse, var(--score-glow, rgba(0,217,255,0.08)) 0%, transparent 70%);
    pointer-events: none;
}

.score-display__number {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    font-weight: var(--fw-black);
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--score-color, var(--cyan));
    margin-bottom: 8px;
}

.score-display__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.score-display__band {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-visible);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--score-color, var(--cyan));
}

/* Band modifiers — set --score-color and --score-glow */
.score-band--low {
    --score-color: var(--coral);
    --score-glow:  rgba(255,107,107,0.08);
}
.score-band--mid {
    --score-color: var(--teal);
    --score-glow:  rgba(46,212,191,0.08);
}
.score-band--high {
    --score-color: var(--cyan);
    --score-glow:  rgba(0,217,255,0.08);
}

/* ────────────────────────────────────────────────────────
   INSIGHT GRID — post-submit insight cards (2×2 or 4-col)
   Usage:
     <div class="insight-grid">
       <div class="insight-item">
         <div class="insight-item__label">Primary Platform</div>
         <div class="insight-item__value">Google Workspace</div>
       </div>
     </div>
──────────────────────────────────────────────────────── */
.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.insight-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
}

.insight-item__label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.insight-item__value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: var(--fw-bold);
    color: var(--cloud);
    line-height: 1.2;
}

/* ────────────────────────────────────────────────────────
   STRIPE BUY BUTTON — web component integration
   The <stripe-buy-button> renders inside a Stripe iframe
   and cannot be styled with external CSS. These rules
   control its container behaviour inside .buy-card.

   Script required in <head> of every tool with a buy card:
     <script async src="https://js.stripe.com/v3/buy-button.js"></script>

   LIVE CREDENTIALS (Sprint Charlie — 02-25-2026):
   ─────────────────────────────────────────────────
   Publishable key (both products):
     pk_live_51PDecKBVRlR0h83ENebkYnZSMVFwUsRoDblrdt7n74gpyQYrndHxkDDNVktSYmFVmEqbzDM8nXPk52OwnEcFhr8A00OxDd3Ce2

   T1 · Workspace Audit — $1,497
     buy-button-id: buy_btn_1T4soPBVRlR0h83EvYXHI2sR
     payment-link:  https://buy.stripe.com/9B66oG8hA5nL1ZY3UGafS08

   T2 · Workspace Activation — $4,997
     buy-button-id: buy_btn_1T4stVBVRlR0h83EDyh614St
     payment-link:  https://buy.stripe.com/fZueVcgO64jHgUS76SafS09

   HTML pattern inside .buy-card:
     <stripe-buy-button
       buy-button-id="buy_btn_1T4soPBVRlR0h83EvYXHI2sR"
       publishable-key="pk_live_51PDecKBVRlR0h83ENebkYnZSMVFwUsRoDblrdt7n74gpyQYrndHxkDDNVktSYmFVmEqbzDM8nXPk52OwnEcFhr8A00OxDd3Ce2">
     </stripe-buy-button>
──────────────────────────────────────────────────────── */
stripe-buy-button {
    display: block;
    width: 100%;
    margin-top: 4px;
}

/* Force Stripe button iframe to fill card width */
stripe-buy-button iframe {
    width: 100% !important;
    border-radius: var(--radius-md);
}

/* Payment link fallback — used in emails and direct sends */
.buy-link {
    display: block;
    padding: 13px 20px;
    text-align: center;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: var(--fw-bold);
    text-decoration: none;
    transition: var(--transition-base);
    margin-top: 4px;
}
.buy-link--t1 {
    background: var(--cyan);
    color: var(--navy);
}
.buy-link--t1:hover {
    background: #00c4e8;
    transform: translateY(-1px);
    box-shadow: var(--shadow-cyan);
}
.buy-link--t2 {
    background: var(--teal);
    color: var(--navy);
}
.buy-link--t2:hover {
    background: #25bfab;
    transform: translateY(-1px);
    box-shadow: var(--shadow-teal);
}

/*
 * END OF REVETTI BRAND SYSTEM — March 2026
 *
 * NOT included here (intentional):
 * — Navbar (website-specific, inline in index.html)
 * — Component layouts (quiz, ROI table, bloat grid)
 * — Page-specific sections (hero, tier grid, services)
 * — PDF styles (Python/ReportLab build system)
 */
