/* BaseNotes homepage. Builds on site.css tokens. */

.section { padding-block: var(--section); position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto var(--space-8); text-align: center; }
.section-head h2 { font-size: var(--step-3); font-weight: 750; }
.section-head p { margin-top: var(--space-4); font-size: var(--step-1); color: var(--text-2); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand);
    margin-bottom: var(--space-3);
}
.tag {
    display: inline-flex; align-items: center; padding: 0.15rem 0.55rem; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.02em; text-transform: none;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 1rem + 5vw, 5.5rem) 0 var(--section); overflow: hidden; isolation: isolate; }
.hero::before {
    content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
    background:
        radial-gradient(40% 45% at 78% 30%, var(--glow-1), transparent 70%),
        radial-gradient(35% 40% at 15% 20%, var(--glow-2), transparent 70%);
}
.hero::after { /* fine grain */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.05; pointer-events: none; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-7); align-items: center; }
.hero-copy .pill {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem 0.35rem 0.5rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
    font-size: 0.85rem; font-weight: 550; color: var(--text-2); margin-bottom: var(--space-5);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--record); box-shadow: 0 0 0 4px color-mix(in srgb, var(--record) 18%, transparent); }
.hero h1 { font-size: var(--step-4); font-weight: 780; letter-spacing: -0.04em; line-height: 1.02; }
.hero h1 .soft { color: var(--text-2); }
.hero-sub { margin-top: var(--space-5); font-size: var(--step-1); color: var(--text-2); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-6); }
.cta-note { margin-top: var(--space-3); font-size: var(--step--1); color: var(--text-2); }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.hero-visual .phone-front { z-index: 2; }
.hero-visual .phone-back { position: absolute; right: 2%; top: 9%; z-index: 1; transform: rotate(6deg) scale(0.86); opacity: 0.96; }
.hero-visual .phone-front { transform: translateX(-18%) rotate(-2deg); }
.float-card {
    position: absolute; z-index: 3; left: -2%; bottom: 7%; width: min(300px, 72%);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
    animation: float 7s ease-in-out infinite;
}
.float-card img { width: 100%; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Device frame ---------- */
.phone {
    --pw: 300px;
    position: relative; width: var(--pw); max-width: 100%; flex: none;
    padding: calc(var(--pw) * 0.034); border-radius: calc(var(--pw) * 0.16);
    background: linear-gradient(145deg, #3a404b, #14171c 45%, #262a31);
    box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 3px #0a0c0f;
}
.phone::before, .phone::after { /* side buttons */
    content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2a2f37;
}
.phone::before { left: -3px; top: 20%; height: 9%; }
.phone::after { right: -3px; top: 26%; height: 14%; }
.phone img { width: 100%; border-radius: calc(var(--pw) * 0.13); background: #000; }
.phone-sm { --pw: 270px; }

/* ---------- Works where you meet ---------- */
.venues { padding-block: var(--space-6) var(--space-7); }
.venues p { text-align: center; font-size: var(--step--1); color: var(--text-2); font-weight: 550; letter-spacing: 0.02em; margin-bottom: var(--space-5); }
.venue-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }
.venue-list li {
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.1rem;
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    font-weight: 600; font-size: 0.95rem; box-shadow: var(--shadow-1);
}
.venue-list svg { width: 20px; height: 20px; color: var(--brand); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); counter-reset: step; }
.step {
    position: relative; padding: var(--space-6); border-radius: var(--r-sheet);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.step-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: var(--space-5); }
.step-icon svg { width: 24px; height: 24px; }
.step-num { position: absolute; top: var(--space-6); right: var(--space-6); font-size: 0.8rem; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.step h3 { font-size: var(--step-2); font-weight: 700; margin-bottom: var(--space-3); }
.step p { color: var(--text-2); }
.step ul { margin-top: var(--space-4); padding: 0; list-style: none; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.step li { display: flex; gap: 0.5rem; }
.step li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.6em; border-radius: 50%; background: var(--brand); }

/* ---------- Feature rows ---------- */
.features { display: grid; gap: clamp(4rem, 2rem + 6vw, 8rem); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.feature:nth-child(even) .feature-media { order: -1; }
.feature-copy h3 { font-size: var(--step-3); font-weight: 750; margin-bottom: var(--space-4); }
.feature-copy > p { font-size: var(--step-1); color: var(--text-2); max-width: 44ch; }
.checks { list-style: none; padding: 0; margin-top: var(--space-5); display: grid; gap: 0.7rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 0.1em; }
.feature-media {
    position: relative; display: grid; place-items: center; padding: clamp(2rem, 1rem + 3vw, 3.5rem) var(--space-4);
    border-radius: 32px; overflow: hidden; isolation: isolate;
    background: linear-gradient(160deg, var(--brand-soft), var(--bg-alt) 70%);
    border: 1px solid var(--line);
}
.feature-media::before {
    content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; z-index: -1;
    background: radial-gradient(50% 50% at 50% 50%, var(--glow-1), transparent 70%);
}
.feature-media .float-card { left: 50%; bottom: 10%; transform: translateX(-50%); width: min(300px, 80%); animation: none; }
.feature-note { margin-top: var(--space-4); font-size: var(--step--1); color: var(--text-2); }

/* ---------- Privacy ---------- */
.trust { background: #0B0D11; color: #F2F4F7; border: 0; }
.trust .section-head p { color: #A3ACB9; }
.trust .eyebrow { color: #5E9EF0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.trust-card { padding: var(--space-6); border-radius: var(--r-card); background: #161A21; border: 1px solid #262B34; }
.trust-card svg { width: 28px; height: 28px; color: #5E9EF0; margin-bottom: var(--space-4); }
.trust-card h3 { font-size: var(--step-1); font-weight: 650; margin-bottom: var(--space-2); letter-spacing: -0.015em; }
.trust-card p { color: #A3ACB9; font-size: 0.97rem; }
.trust-link { text-align: center; margin-top: var(--space-6); }
.trust a { color: #7DB2F4; }
.trust a:hover { color: #A9CCF8; }
.trust :focus-visible { outline-color: #7DB2F4; }

/* ---------- Pricing ---------- */
.pricing-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.segmented { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.segmented button {
    min-height: 40px; padding: 0 1rem; border: 0; border-radius: 10px; background: transparent;
    font: 600 0.92rem var(--font); color: var(--text-2); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.segmented button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.segmented .save { color: var(--success-text); font-weight: 700; margin-left: 0.3rem; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column; padding: var(--space-6); border-radius: var(--r-sheet);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-2), 0 0 0 1px var(--brand); }
.plan-badge { position: absolute; top: -12px; left: var(--space-6); background: var(--brand); color: var(--on-brand); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px; }
.plan h3 { font-size: var(--step-1); font-weight: 700; }
.plan-desc { color: var(--text-2); font-size: 0.95rem; margin-top: var(--space-1); min-height: 3em; }
.price { margin: var(--space-5) 0 var(--space-1); display: flex; align-items: baseline; gap: 0.3rem; }
.price strong { font-size: clamp(2.2rem, 1.8rem + 1.2vw, 2.8rem); font-weight: 750; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.price span { color: var(--text-2); font-weight: 500; }
.price-note { font-size: var(--step--1); color: var(--text-2); min-height: 1.5em; }
.plan .checks { margin: var(--space-5) 0 var(--space-6); gap: 0.6rem; font-size: 0.97rem; }
.plan .btn { margin-top: auto; width: 100%; }
.pricing-foot { margin-top: var(--space-6); text-align: center; color: var(--text-2); font-size: var(--step--1); max-width: 62ch; margin-inline: auto; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-more { text-align: center; margin-top: var(--space-6); color: var(--text-2); }

/* ---------- Final CTA ---------- */
.cta-band { padding-block: var(--section); }
.cta-panel {
    position: relative; overflow: hidden; isolation: isolate; text-align: center;
    padding: clamp(3rem, 2rem + 5vw, 6rem) var(--gutter); border-radius: 36px;
    background: linear-gradient(150deg, #0F2F5C, #0B0D11 65%); color: #F2F4F7;
}
.cta-panel::before {
    content: ""; position: absolute; inset: -30% -10% auto auto; width: 70%; height: 120%; z-index: -1;
    background: radial-gradient(50% 50% at 50% 50%, rgba(94, 158, 240, 0.35), transparent 70%);
}
.cta-panel h2 { font-size: var(--step-3); font-weight: 750; max-width: 20ch; margin-inline: auto; }
.cta-panel p { color: #C3CAD4; margin: var(--space-4) auto 0; max-width: 46ch; font-size: var(--step-1); }
.cta-panel .hero-cta { justify-content: center; }
.cta-panel .btn-store { background: #F2F4F7; color: #0B0D11; }
.cta-panel .cta-note { color: #A3ACB9; }
.cta-panel :focus-visible { outline-color: #7DB2F4; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; }
    .float-card { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero-cta { justify-content: center; }
    .hero-visual { min-height: 0; margin-top: var(--space-5); }
    .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
    .feature:nth-child(even) .feature-media { order: 0; }
    .steps, .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .phone { --pw: 240px; }
    .phone-sm { --pw: 230px; }
    .hero-visual .phone-front { transform: translateX(-12%) rotate(-2deg); }
    .hero-visual .phone-back { right: -4%; }
    .float-card { width: 230px; left: 0; }
    .trust-grid { grid-template-columns: 1fr; }
    .btn-store { width: 100%; justify-content: center; }
}
