/* ===================================
   DuraEdgeAI - Notes Edition Theme
   Re-themes the purple medical palette to an
   enterprise blue / steel-teal palette.
   Loaded AFTER main/components/animations so it
   overrides the base variables and hardcoded hexes.
   =================================== */

:root {
    /* Notes Blue Palette */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #2563eb;
    --tertiary: #0ea5e9;
    --accent: #2dd4bf;

    /* Neutrals - Slate / Navy dark theme */
    --bg-primary: #0b1120;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border: #1e293b;

    /* Gradients - Blue light to dark */
    --gradient-primary: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #2563eb 0%, #93c5fd 100%);
    --gradient-tertiary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-title: linear-gradient(135deg, #1e3a8a 0%, #60a5fa 100%);
    --gradient-orb-1: radial-gradient(circle at center, rgba(37, 99, 235, 0.07) 0%, rgba(37, 99, 235, 0) 70%);
    --gradient-orb-2: radial-gradient(circle at center, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0) 70%);
    --gradient-orb-3: radial-gradient(circle at center, rgba(45, 212, 191, 0.05) 0%, rgba(45, 212, 191, 0) 70%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(37, 99, 235, 0.16) 0, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(59, 130, 246, 0.12) 0, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(45, 212, 191, 0.08) 0, transparent 50%);

    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.18), 0 0 15px rgba(59, 130, 246, 0.12);
    --shadow-glow-strong: 0 0 45px rgba(37, 99, 235, 0.22), 0 0 20px rgba(59, 130, 246, 0.16);
    --shadow-glow-secondary: 0 0 35px rgba(45, 212, 191, 0.2);
}

/* Background mesh - recolor to blue/teal */
body::before {
    background:
        radial-gradient(at 40% 20%, rgba(37, 99, 235, 0.09) 0, transparent 50%),
        radial-gradient(at 80% 0%, rgba(59, 130, 246, 0.07) 0, transparent 50%),
        radial-gradient(at 0% 50%, rgba(45, 212, 191, 0.05) 0, transparent 50%),
        radial-gradient(at 80% 80%, rgba(29, 78, 216, 0.05) 0, transparent 50%);
}

/* Navigation accents */
.nav { border-bottom: 1px solid rgba(96, 165, 250, 0.2); }
.nav.scrolled {
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    border-bottom: 1px solid rgba(96, 165, 250, 0.25);
}
.logo-text span {
    color: #60a5fa;
    -webkit-text-fill-color: #60a5fa;
}
.logo-icon {
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6)) drop-shadow(0 0 20px rgba(37, 99, 235, 0.3));
}

/* Hero highlight words */
.hero-glow { color: #60a5fa; -webkit-text-fill-color: #60a5fa; }
.hero-flicker { color: #93c5fd; -webkit-text-fill-color: #93c5fd; }
@keyframes heroGlow {
    0%, 100% { text-shadow: none; }
    50% { text-shadow: 0 0 12px rgba(59, 130, 246, 0.35); }
}
/* main.css animates .hero-flicker via privacyBlur, hardcoding purple #c4b5fd
   at each step. Override the keyframe so it stays Notes blue. */
@keyframes privacyBlur {
    0%, 100% { filter: blur(0px); color: #93c5fd; -webkit-text-fill-color: #93c5fd; }
    40% { filter: blur(0px); color: #93c5fd; -webkit-text-fill-color: #93c5fd; }
    50% { filter: blur(3.5px); color: #93c5fd; -webkit-text-fill-color: #93c5fd; }
    60% { filter: blur(0px); color: #93c5fd; -webkit-text-fill-color: #93c5fd; }
}

/* Section labels / headings accents */
.section-label { color: #2563eb; }
.faq-dark .section-label,
#specs .section-label { color: #60a5fa; }
.section-heading .heading-purple,
.heading-purple { color: #2563eb; -webkit-text-fill-color: #2563eb; }

/* "Why different" icon tiles */
.why-apple-icon {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.07);
}
.why-apple-item:hover .why-apple-icon {
    background: rgba(37, 99, 235, 0.13);
}

/* Light sections - swap purple accent for Notes blue */
:is(.section-light-1, .section-light-2) {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --bg-tertiary: #eef2fb;
    --border: #dbe3f1;
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.08);
}
/* main.css sets these with !important, so we must match it */
.section-light-1 { background: #eef3fb !important; }
.section-light-2 { background: #ffffff !important; }

/* Deploy + footnote accents */
.deploy-card:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
}
.deploy-footnote {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

/* CTA band */
.cta-section { background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%); }

/* Mission banner - mirror the healthcare glow layout but declined to Notes
   blue (blur + drift animation are inherited from main.css .mission-bg). */
.mission-bg {
    background:
        radial-gradient(circle at 18% 28%, rgba(37, 99, 235, 0.55) 0%, transparent 38%),
        radial-gradient(circle at 82% 26%, rgba(96, 165, 250, 0.42) 0%, transparent 40%),
        radial-gradient(circle at 26% 80%, rgba(14, 165, 233, 0.34) 0%, transparent 42%),
        radial-gradient(circle at 78% 76%, rgba(59, 130, 246, 0.48) 0%, transparent 42%),
        radial-gradient(circle at 52% 50%, rgba(45, 212, 191, 0.20) 0%, transparent 50%);
}
.mission-text { color: #cbd5e1; }
.mission-text strong { color: #eef2f8; }
.mission-accent { color: #cbd5e1; }
/* Only the key words are colored + bold; the rest of the line stays neutral */
.mission-accent strong { color: #60a5fa; -webkit-text-fill-color: #60a5fa; font-weight: 800; }
/* Widen the mission banner a touch so the accent line keeps its last word */
.mission-content { max-width: 620px; }

/* FAQ (dark) - recolor purple text/hover/toggle/divider to Notes blue */
.faq-dark .faq-item + .faq-item { border-top: 1px solid rgba(96, 165, 250, 0.12) !important; }
.faq-dark .faq-question h3 { color: #dbe4f3; -webkit-text-fill-color: #dbe4f3; }
.faq-dark .faq-item:hover .faq-question h3 { color: #60a5fa; -webkit-text-fill-color: #60a5fa; }
.faq-dark .faq-toggle { color: #60a5fa; }
.faq-dark .faq-answer p { color: #aeb6c4; }

/* ===================================
   Notes-specific components
   =================================== */

/* Output / use-case cards (Meeting, Lecture, GitHub) */
.output-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
}
.output-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.output-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}
.output-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}
/* Category label sitting beside the icon ("For Corporate" etc.), blue + bold */
.output-card { position: relative; }
.output-label {
    position: absolute;
    top: 1.75rem;
    left: calc(1.75rem + 46px + 0.75rem);
    height: 46px;
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.output-card h3 {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.output-card .output-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.output-flow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.output-tag {
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-tertiary);
    white-space: nowrap;
}
.output-tag.out {
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}
.output-arrow { color: var(--text-tertiary); font-weight: 700; }

/* Sample output snippet inside cards */
.output-sample {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, monospace;
    font-size: 0.74rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-x: auto;
}
.output-sample .s-key { color: #60a5fa; font-weight: 600; }
.output-sample .s-accent { color: #5eead4; }
.output-sample .s-muted { color: var(--text-tertiary); }

/* Brainstorming Mode - standalone dark spotlight section */
.brainstorm-section { background: var(--bg-primary); }
.brainstorm-section .section-label { color: #60a5fa; }
.brainstorm-section .section-heading {
    color: #f8fafc;
    -webkit-text-fill-color: #f8fafc;
}
.brainstorm-section .section-intro { color: var(--text-secondary); }

/* Brainstorming banner illustration */
.brainstorm-banner {
    display: block;
    width: 100%;
    max-width: 440px;
    margin: 1.75rem 0 0;
    border-radius: 22px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 16px 44px rgba(2, 8, 23, 0.5);
}

/* Brainstorm copy: blue accent words in the title, asterisk + footnote */
.brainstorm-copy h3 .hl { color: #60a5fa; -webkit-text-fill-color: #60a5fa; }
.bs-star { color: #60a5fa; font-weight: 700; }
.brainstorm-note {
    margin: 1.4rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-tertiary);
}

.brainstorm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}
.brainstorm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    color: #5eead4;
    font-size: 0.72rem;
    font-weight: 600;
}
.brainstorm-chip svg { flex-shrink: 0; }

/* Link from the homepage panel to the dedicated Brainstorming page */
.brainstorm-link {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 600;
    color: #60a5fa;
    transition: color 0.2s ease, transform 0.2s ease;
}
.brainstorm-link:hover {
    color: #93c5fd;
    transform: translateX(3px);
}

/* AI Brainstorming feature panel */
.brainstorm {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(45, 212, 191, 0.07) 100%);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 22px;
    padding: 2.75rem;
}
.brainstorm-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #2563eb;
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.brainstorm h3 {
    font-family: var(--font-primary);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: #f8fafc;
    -webkit-text-fill-color: #f8fafc;
    background: none;
    margin: 0 0 0.85rem;
    letter-spacing: -0.01em;
}
.brainstorm-copy p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 0.85rem;
}
.brainstorm-copy p:last-child { margin-bottom: 0; }
.brainstorm-steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.brainstorm-step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    transition: all 0.3s ease;
}
.brainstorm-step:hover {
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(37, 99, 235, 0.08);
}
.brainstorm-step .bs-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--gradient-primary);
}
.brainstorm-step h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.15rem;
}
.brainstorm-step div p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 768px) {
    .brainstorm {
        grid-template-columns: 1fr;
        padding: 1.75rem;
        gap: 1.75rem;
    }
}

/* Workflow steps (3-stage vertical/horizontal) */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
    counter-reset: wf;
}
.workflow-step {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.25rem 1.75rem 1.75rem;
    transition: all 0.3s ease;
}
.workflow-step:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}
.workflow-step::before {
    counter-increment: wf;
    content: counter(wf, decimal-leading-zero);
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-family: var(--font-primary);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(96, 165, 250, 0.18);
}
.workflow-step .wf-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: var(--gradient-primary);
    margin-bottom: 1.25rem;
}
.workflow-step h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
}
.workflow-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 0.85rem;
}
.workflow-step ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.workflow-step ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}
.workflow-step ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2dd4bf;
    font-weight: 700;
}

@media (max-width: 968px) {
    .output-grid,
    .workflow-grid { grid-template-columns: 1fr; }
}

/* Integration strip (OS + system audio) */
.integration-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem auto 0;
    max-width: 760px;
}
.integration-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.25);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.integration-chip svg { color: #60a5fa; flex-shrink: 0; }

/* Recolor chrome injected by shared main.js (scroll-progress bar +
   back-to-top button) from purple to Notes blue, Notes page only */
body > div[style*="z-index: 9999"] {
    background: linear-gradient(90deg, #2563eb 0%, #1e3a8a 100%) !important;
}
body > button[style*="border-radius: 50%"] {
    background: var(--gradient-primary) !important;
}

/* ===================================
   Markup utilities
   These replace inline style="" attributes that used to be repeated
   throughout notes/index.html and notes/brainstorming.html, so the
   markup stays declarative and the styling lives in one place.
   =================================== */

/* Section vertical rhythm */
.section-pad    { padding: 6rem 0; }
.section-pad-sm { padding: 5rem 0; }

/* Narrow, centered content column */
.container.narrow { max-width: 880px; }

/* Highlighted word inside a heading (inherits the section's accent) */
.section-heading .hl { color: #2563eb; -webkit-text-fill-color: #2563eb; }
.brainstorm-section .section-heading .hl { color: #60a5fa; -webkit-text-fill-color: #60a5fa; }

/* Bold accent words in the hero paragraph (was `.hero-description span[style]`) */
.hero-description .hl-text { color: #60a5fa; font-weight: 700; }

/* Hero integration strip, left-aligned variant */
.integration-strip.is-start { justify-content: flex-start; }

/* "Why DuraEdgeAI Notes" intro band */
.why-different-section { padding: 6rem 0; background: #eef2fb; }
.why-different-section .container { max-width: 960px; }

/* FAQ heading spacing + answer links */
.faq-section .section-header .section-heading { margin-bottom: 3rem; }
.faq-dark .faq-answer a { color: #60a5fa; }

/* "Notes" sub-label next to the footer logo */
.footer-logo .notes-tag { font-size: 0.8rem; color: #60a5fa; }

/* Top-bar logo (Notes edition): show the "Notes" tag next to the wordmark,
   centred beside the icon (default logo layout). */
.nav-logo .notes-tag { font-size: 0.8rem; font-weight: 700; color: #60a5fa; }

/* Footer accents: recolor the purple top hairline + ambient glow to Notes blue */
.footer::before {
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.45), transparent);
}
.footer::after {
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

/* Notes hero headline: widen the text column + ease the size so the longer
   "...keep a secret." headline wraps on fewer lines. */
.hero-split { grid-template-columns: 1.2fr 0.8fr; }
.hero-split .hero-title { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
/* Keep the subtitle narrower than the headline so it wraps earlier. */
.hero-split .hero-description { max-width: 25rem; }

/* "secret" — blue accent word that softly blurs out and fades, as if the
   secret vanishes, then comes back into focus. */
.hero-secret {
    display: inline-block;
    color: #60a5fa;
    -webkit-text-fill-color: #60a5fa;
    will-change: filter, opacity;
    animation: secretBlur 4.5s ease-in-out infinite;
}
@keyframes secretBlur {
    0%, 45%, 100% { filter: blur(0); opacity: 1; }
    62%           { filter: blur(7px); opacity: 0.12; }
    80%           { filter: blur(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-secret { animation: none; }
}

/* --- Brainstorming page --- */
.nav-logo a { display: flex; align-items: center; gap: 0.75rem; }

.brainstorm-hero { padding: 9rem 0 4rem; }
.brainstorm-hero .container { max-width: 820px; text-align: center; }
.brainstorm-hero .section-heading { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.brainstorm-hero .section-intro { max-width: 640px; }
.brainstorm-chips.is-center { justify-content: center; }

/* Output grid column-count variants (default is 3) */
.output-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Output card / icon state variants used on the compare grid */
.output-icon.is-muted { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }
.output-card.is-highlight { border-color: rgba(96, 165, 250, 0.35); }
.output-card .feature-list { margin-top: 0.5rem; }

/* Centered closing CTA + "back" link */
.bs-cta  { text-align: center; margin-top: 3rem; }
.bs-back { margin-top: 1rem; font-size: 0.85rem; color: var(--text-tertiary); }
.bs-back a { color: #60a5fa; }

/* ===================================
   Plans / pricing cards
   Two-card layout (Free + DuraCloud) that replaces the old 4-card
   deployment grid. Mirrors .deploy-card theming, plus price, feature
   checklist, a featured highlight and full-width CTAs.
   =================================== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 880px;
    margin: 3rem auto 0;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.25rem 2rem;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
}
/* Keep both plan cards visually identical (same border + resting shadow). */
.plan-card--featured {
    border-color: var(--border);
    box-shadow: none;
}

.plan-badge {
    position: absolute;
    top: -0.8rem;
    right: 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
}

.plan-icon { width: 40px; height: 40px; color: #60a5fa; margin-bottom: 1rem; }

.plan-name {
    /* main.css forces .plan-name purple with !important for the checkout
       pricing table; that class name collides with the Notes plan cards, so
       we must re-assert the Notes text colour with !important too. */
    font-size: 1.2rem !important;
    font-weight: 700;
    color: var(--text-primary) !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    margin: 0 0 0.3rem;
}
.plan-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 1.25rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 1.4rem;
}
.plan-amount { font-size: 2.4rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.plan-period { font-size: 0.9rem; color: var(--text-tertiary); }

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.plan-features li {
    position: relative;
    padding-left: 1.7rem;
    font-size: 0.88rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.45;
}
.plan-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12rem;
    width: 1.05rem;
    height: 1.05rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.plan-card .btn { margin-top: auto; width: 100%; justify-content: center; }

/* Outline CTA for the free plan (sits on the dark card) */
.plan-btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid rgba(96, 165, 250, 0.5);
    box-shadow: none;
}
.plan-btn-outline:hover { background: rgba(96, 165, 250, 0.12); transform: translateY(-2px); }

.plan-note { margin-top: 0.9rem; font-size: 0.75rem; color: var(--text-tertiary); text-align: center; }

@media (max-width: 720px) {
    .plans-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ===================================
   Free signup form (signup-notes.html)
   =================================== */
.signup-card {
    max-width: 520px;
    margin: 2.5rem auto 0;
    text-align: left;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.25rem 2rem;
}
.signup-form .form-field { margin-bottom: 1.1rem; }
.signup-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.signup-form input[type="text"],
.signup-form input[type="email"] {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s ease;
}
.signup-form input:focus { outline: none; border-color: var(--primary-light); }
.signup-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: 0.5rem 0 1.25rem;
}
.signup-consent input { margin-top: 0.2rem; flex-shrink: 0; }
.signup-consent a { color: var(--primary-light); }
.signup-form .cf-turnstile { margin-bottom: 1.25rem; }
.signup-form .btn { width: 100%; justify-content: center; }
.signup-error { color: #f87171; font-size: 0.85rem; margin-top: 0.9rem; text-align: center; }
.signup-success { text-align: center; }
.signup-success .ok-icon { width: 56px; height: 56px; color: #34d399; margin: 0 auto 1rem; display: block; }

/* Signup hero — two-column layout (copy + form), benefits list, success text */
.signup-hero { align-items: center; }
.signup-copy .section-label { text-align: left; margin-left: 0; }
.signup-copy .hero-title { text-align: left; margin-bottom: 1.25rem; }
.signup-lead { text-align: left; max-width: 460px; margin: 0 0 1.5rem; }
.signup-benefits {
    list-style: none; padding: 0; margin: 0 0 1.75rem;
    display: flex; flex-direction: column; gap: 0.7rem;
}
.signup-benefits li {
    position: relative; padding-left: 1.8rem;
    color: var(--text-secondary); font-size: 0.95rem; line-height: 1.45;
}
.signup-benefits li::before {
    content: ""; position: absolute; left: 0; top: 0.15rem; width: 1.1rem; height: 1.1rem;
    background-repeat: no-repeat; background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.signup-copy .integration-strip { justify-content: flex-start; }
.signup-form-col { width: 100%; max-width: 460px; }
.signup-form-col .signup-card { margin: 0; max-width: none; width: 100%; }
.signup-success-title { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.5rem; }
.signup-success-body { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; margin: 0 0 1.5rem; }
.signup-success .btn { width: 100%; justify-content: center; }
/* .btn sets `display`, which overrides the HTML `hidden` attribute — restore it so
   only the OS-appropriate download button shows (.btn[hidden] outranks .btn). */
.btn[hidden] { display: none; }
.signup-success .btn + .btn { margin-top: 0.75rem; }

/* Language switcher — recolor the purple accents to Notes blue */
.lang-switcher { border-left-color: rgba(96, 165, 250, 0.2); }
.lang-switcher .lang-link:hover { background: rgba(96, 165, 250, 0.08); }
html[lang="en"] .lang-switcher .lang-link[data-lang="en"],
html[lang="de"] .lang-switcher .lang-link[data-lang="de"],
html[lang="it"] .lang-switcher .lang-link[data-lang="it"],
html[lang="fr"] .lang-switcher .lang-link[data-lang="fr"] { background: rgba(96, 165, 250, 0.12); }

@media (max-width: 968px) {
    .signup-copy { text-align: center; }
    .signup-copy .section-label, .signup-copy .hero-title, .signup-lead { text-align: center; }
    .signup-lead, .signup-benefits { margin-left: auto; margin-right: auto; }
    .signup-benefits { max-width: 360px; }
    .signup-copy .integration-strip { justify-content: center; }
    .signup-form-col { margin: 2rem auto 0; }
}

/* Headings placed directly on the dark page background (e.g. checkout-notes hero)
   need light text — the base .section-heading is dark, for light sections. */
.hero-on-dark .section-heading { color: var(--text-primary); -webkit-text-fill-color: var(--text-primary); }
