/* =========================================================
   BRIFLI MARKETING WEBSITE STYLESHEET (site_style.css)
   For: about/app/enterprise/education/privacy/terms/site_index
   This is NOT the app's stylesheet -- it has no .modal, no
   .topic-history-list, no .btn-delete. If you're looking for
   the app's style.css instead, this is the wrong file.
   ========================================================= */

/* =========================================================
   Brifli — design tokensh
   ========================================================= */
:root {
    --bg: #F5F6F2;
    --bg-alt: #ECEEE8;
    --bg-alt-hover: #DFE2D8;
    --card-bg: #FFFFFF;
    --ink: #14171B;
    --ink-soft: #5B6169;
    --ink-faint: #8B9198;
    --line: #E2E5DE;
    --line-strong: #CFD3CA;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-soft: #EFF6FF;
    --accent-border: #BFDBFE;
    --signal: #1DB954;
    --signal-soft: #E3F8EA;
    --danger: #E24C4C;
    --dot-color: rgba(20, 23, 27, 0.05);
    --nav-bg: rgba(245, 246, 242, 0.82);
    --store-btn-bg: #14171B;
    --store-btn-bg-hover: #2A2F36;

    --radius-lg: 22px;
    --radius: 16px;
    --radius-sm: 12px;

    --shadow-sm: 0 1px 2px rgba(20, 23, 27, 0.05);
    --shadow-md: 0 10px 30px -14px rgba(20, 23, 27, 0.25);
    --shadow-lg: 0 24px 60px -20px rgba(20, 23, 27, 0.28);

    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-logo: 'Sansita Swashed', cursive, sans-serif;

    --transition: all 0.2s ease-in-out;
    --nav-h: 84px;
}

/* Dark palette, applied two ways:
   1) automatically when the OS prefers dark AND the visitor hasn't
      explicitly chosen light on this site (the :not(.theme-light) guard)
   2) whenever .theme-dark is set explicitly (see the inline script near
      the top of <head>), regardless of the OS setting -- this is what
      lets someone force dark while their OS is in light mode, or force
      light while it's in dark mode via .theme-light overriding this
      block entirely.
   Store-badge colors (--store-btn-bg*) are deliberately NOT overridden
   here -- those buttons stay dark regardless of site theme, matching
   how app store badges conventionally look. */
@media (prefers-color-scheme: dark) {
    :root:not(.theme-light) {
        --bg: #0F1115;
        --bg-alt: #1A1D23;
        --bg-alt-hover: #242830;
        --card-bg: #181B20;
        --ink: #F1F2ED;
        --ink-soft: #A8AEB8;
        --ink-faint: #6B7178;
        --line: #2A2F36;
        --line-strong: #3A4048;
        --accent: #5B8DEF;
        --accent-hover: #7BA3F5;
        --accent-soft: rgba(91, 141, 239, 0.15);
        --accent-border: rgba(91, 141, 239, 0.4);
        --signal: #22C55E;
        --signal-soft: rgba(34, 197, 94, 0.15);
        --danger: #F87171;
        --dot-color: rgba(255, 255, 255, 0.06);
        --nav-bg: rgba(15, 17, 21, 0.82);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
    }
}

:root.theme-dark {
    --bg: #0F1115;
    --bg-alt: #1A1D23;
    --bg-alt-hover: #242830;
    --card-bg: #181B20;
    --ink: #F1F2ED;
    --ink-soft: #A8AEB8;
    --ink-faint: #6B7178;
    --line: #2A2F36;
    --line-strong: #3A4048;
    --accent: #5B8DEF;
    --accent-hover: #7BA3F5;
    --accent-soft: rgba(91, 141, 239, 0.15);
    --accent-border: rgba(91, 141, 239, 0.4);
    --signal: #22C55E;
    --signal-soft: rgba(34, 197, 94, 0.15);
    --danger: #F87171;
    --dot-color: rgba(255, 255, 255, 0.06);
    --nav-bg: rgba(15, 17, 21, 0.82);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   Reset / base
   ========================================================= */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 1px 1px, var(--dot-color) 1px, transparent 0);
    background-size: 28px 28px;
    color: var(--ink);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; }

a { color: inherit; }

.container {
    width: 100%;
    max-width: 1080px;
    padding: 0 24px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =========================================================
   Nav
   ========================================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
}

.brifli-logo {
    font-family: var(--font-logo);
    font-weight: 500;
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
}

.logo-enterprise-tag {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    color: var(--ink);
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.nav-link:hover { color: var(--ink); }

.nav-link.active { color: var(--ink); }

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--signal);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Profile nav (logged-in state)
   ========================================================= */
.profile-nav {
    /* Hidden by default -- shown only when the login-hint cookie is
       present (see the inline script near the bottom of each page).
       Logged-out visitors should never see an empty icon button. */
    display: none;
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--card-bg);
    color: var(--ink-soft);
    cursor: pointer;
    transition: var(--transition);
}

.profile-btn:hover,
.profile-btn[aria-expanded="true"] {
    border-color: var(--accent);
    color: var(--accent);
}

.profile-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 14px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 60;
}

.profile-popup.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-popup-label {
    font-size: 0.75rem;
    color: var(--ink-faint);
    margin-bottom: 2px;
}

.profile-popup-email {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 10px;
    word-break: break-all;
}

.profile-popup-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}

.profile-popup-link:hover { color: var(--accent-hover); }

/* =========================================================
   Theme toggle (System / Light / Dark)
   ========================================================= */
.theme-nav {
    position: relative;
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--card-bg);
    color: var(--ink-soft);
    cursor: pointer;
    transition: var(--transition);
}

.theme-btn:hover,
.theme-btn[aria-expanded="true"] {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 172px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 60;
}

.theme-popup.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
}

.theme-option:hover { background: var(--bg-alt); }

.theme-option svg:first-child { flex-shrink: 0; }

.theme-option-check {
    margin-left: auto;
    opacity: 0;
    color: var(--accent);
    flex-shrink: 0;
}

.theme-option.active { color: var(--ink); }
.theme-option.active .theme-option-check { opacity: 1; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--ink);
    border: 1.5px solid var(--line);
}

.btn-secondary:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-store {
    background-color: var(--store-btn-bg);
    color: #fff;
    padding: 16px 30px;
    min-width: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-store svg { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }

.btn-store:hover { background-color: var(--store-btn-bg-hover); transform: translateY(-2px); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    text-align: center;
    padding: 64px 20px 32px 20px;
    width: 100%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--signal);
    background: var(--signal-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.5);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(29, 185, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
    line-height: 1.15;
}

.hero p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 580px;
    margin: 0 auto 32px auto;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   Ticker (signature element)
   ========================================================= */
.ticker {
    width: 100%;
    max-width: 900px;
    margin: 8px auto 64px auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    gap: 12px;
    animation: scroll-left 32s linear infinite;
}

@keyframes scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.ticker-item strong { color: var(--ink); font-weight: 700; }

.ticker-item .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal);
    flex-shrink: 0;
}

/* =========================================================
   Sections / cards
   ========================================================= */
.section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 64px auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--ink);
}

.section-subtitle {
    text-align: center;
    color: var(--ink-soft);
    margin: 0 auto 36px auto;
    max-width: 520px;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    text-align: left;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

.card h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon svg { width: 22px; height: 22px; }

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 700px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Homepage "Why Choose Brifli" -- deliberately NOT .card/.card-grid.
   That boxed treatment is what the pricing section below it already
   uses; repeating the same white-bordered-box look twice on one page
   read as two identical rows of cards. This keeps the same icon
   language but drops the box, so it reads as a distinct feature row
   rather than a second, competing set of "islands". */
.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

@media (min-width: 700px) {
    .feature-row {
        grid-template-columns: repeat(3, 1fr);
        column-gap: 48px;
    }

    .feature-item {
        position: relative;
    }

    .feature-item:not(:first-child)::before {
        content: '';
        position: absolute;
        left: -24px;
        top: 6px;
        bottom: 6px;
        width: 1px;
        background: var(--line);
    }
}

.feature-item h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 10px; }
.feature-item p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* Step list ("how it works") */
.step-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
}

.step {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-left: 44px;
    height: 26px;
    color: var(--accent);
}

.step-connector svg { width: 16px; height: 16px; }

.step-num {
    background: var(--accent-soft);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--font-display);
    flex-shrink: 0;
    border: 2px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.step h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--ink); }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 60px;
    width: 100%;
}

.pricing-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--line);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most popular';
    position: absolute;
    top: -12px;
    left: 28px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
}

.pricing-card h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }

.price-tag { font-size: 2.3rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; font-family: var(--font-display); }

.price-subtitle { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 22px; font-weight: 500; }

.target-audience {
    font-size: 0.88rem;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 22px;
    line-height: 1.5;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.feature-list { list-style: none; padding: 0; margin: 0; flex-grow: 1; }

.feature-list li {
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin-bottom: 14px;
    position: relative;
    padding-left: 26px;
    line-height: 1.4;
}

.feature-list li::before {
    content: '✓';
    color: var(--signal);
    font-weight: bold;
    font-size: 1rem;
    position: absolute;
    left: 0;
    top: 0;
}

.feature-list li.missing { color: var(--ink-faint); }
.feature-list li.missing::before { content: '✕'; color: var(--danger); }
.feature-list strong { color: var(--ink); }

.enterprise-callout {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    display: inline-block;
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.enterprise-callout h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.enterprise-callout p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 20px; }

.billing-toggle {
    display: inline-flex;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    margin: 0 auto 36px;
    gap: 4px;
}

.billing-toggle-option {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.billing-toggle-option.active {
    background: var(--accent);
    color: #fff;
}

.billing-toggle-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--signal-soft);
    color: var(--signal);
    padding: 2px 8px;
    border-radius: 999px;
}

.billing-toggle-option.active .billing-toggle-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.price-permo-note {
    font-size: 0.78rem;
    color: var(--ink-faint);
    margin-top: 4px;
}

.price-permo-note:empty { display: none; }

/* =========================================================
   Enterprise page extras
   ========================================================= */
.why-brifli {
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.why-brifli summary {
    padding: 24px;
    font-size: 1.2rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.why-brifli summary::-webkit-details-marker { display: none; }

.why-brifli summary::after {
    content: '+';
    font-size: 1.6rem;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    margin-left: 16px;
}

.why-brifli[open] summary::after { content: '−'; }

.why-brifli-content { padding: 0 24px 24px 24px; color: var(--ink-soft); font-size: 0.98rem; }
.why-brifli-content strong { color: var(--ink); }
.why-brifli-content p { margin-bottom: 16px; }
.why-brifli-content p:last-child { margin-bottom: 0; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.faq-list .why-brifli { margin-bottom: 0; }

.faq-list .why-brifli summary { font-size: 1rem; padding: 20px 22px; }
.faq-list .why-brifli-content { padding: 0 22px 20px 22px; font-size: 0.92rem; }

.trial-banner {
    background-color: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

.trial-banner h2 { color: var(--accent-hover); margin-bottom: 16px; font-size: 1.4rem; }

.trial-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.trial-details li {
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 600;
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.trial-note {
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--ink-soft);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* =========================================================
   ROI calculator
   ========================================================= */
.roi-calculator {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 36px 32px;
    width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

.roi-calculator h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 6px;
}

.roi-subtitle {
    color: var(--ink-faint);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.roi-inputs {
    max-width: 480px;
    margin: 0 auto 32px auto;
    text-align: left;
}

.roi-input-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.roi-input-label:not(:first-child) { margin-top: 22px; }

.roi-input-readout {
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
    min-width: 92px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.roi-inputs input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--accent-soft);
    outline: none;
}

.roi-inputs input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.roi-inputs input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}

.roi-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.roi-result-box {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px 26px;
    min-width: 180px;
}

.roi-result-highlight {
    background: var(--accent-soft);
    border-color: var(--accent-border);
}

.roi-result-label {
    font-size: 0.78rem;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 6px;
}

.roi-result-value {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
}

.roi-result-highlight .roi-result-value { color: var(--accent-hover); }

.roi-result-unit {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-faint);
}

.roi-vs {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-faint);
}

.roi-savings {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--signal);
}

/* =========================================================
   Education page — audience split
   ========================================================= */
.audience-split {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.audience-panel {
    padding: 36px 32px;
}

.audience-panel + .audience-panel {
    border-top: 1px solid var(--line);
}

.audience-panel-students {
    background: var(--signal-soft);
}

.audience-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.audience-icon svg { width: 24px; height: 24px; }

.audience-icon-teachers { background: var(--accent-soft); color: var(--accent); }
.audience-icon-students { background: var(--card-bg); color: var(--signal); }

.audience-panel h3 { font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }

.audience-intro {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.audience-reasons {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.audience-reasons li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.audience-reasons strong { color: var(--ink); }

.audience-reason-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    background: var(--accent-soft);
    color: var(--accent);
}

.audience-reason-icon svg { width: 12px; height: 12px; }

.audience-panel-students .audience-reason-icon { background: var(--card-bg); color: var(--signal); }

@media (min-width: 700px) {
    .audience-split { grid-template-columns: 1fr 1fr; }
    .audience-panel + .audience-panel { border-top: none; border-left: 1px solid var(--line); }
}

/* =========================================================
   About page
   ========================================================= */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    margin-bottom: 56px;
    width: 100%;
    max-width: 800px;
}

.about-image {
    width: 200px;
    height: 200px;
    background-color: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid white;
}

.about-image img { width: 100%; height: 100%; object-fit: cover; }

.about-quote {
    font-size: 1.1rem;
    color: var(--ink-soft);
    line-height: 1.8;
    font-style: italic;
}

.about-signature { margin-top: 14px; font-style: normal; font-weight: 700; color: var(--ink); font-size: 0.95rem; }

/* =========================================================
   Footer
   ========================================================= */
footer {
    text-align: center;
    padding: 48px 20px 40px 20px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    border-top: 1px solid var(--line);
    width: 100%;
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.footer-links a:hover { color: var(--ink); }

.contact-btn {
    display: inline-block;
    margin-bottom: 22px;
    padding: 10px 24px;
    background-color: var(--bg-alt);
    color: var(--ink);
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn:hover { background-color: var(--bg-alt-hover); }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
    .hero h1 { font-size: 3.4rem; }
    .about-container { flex-direction: row; text-align: left; }
}

@media (max-width: 680px) {
    .nav-toggle { display: flex; }

    .nav-right { gap: 10px; }

    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--card-bg);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }

    .nav-links.open {
        max-height: 400px;
        opacity: 1;
    }

    .nav-links .nav-link {
        padding: 16px 24px;
        border-bottom: 1px solid var(--line);
        width: 100%;
    }

    .nav-link.active::after { display: none; }
    .nav-link.active { color: var(--accent); }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1rem; }
    .btn-store { padding: 14px 22px; font-size: 0.92rem; }
}