/* ==========================================================================
   Frequency to Note — marketing landing page.
   Recreated from the Claude Design handoff (ftn-landing.css + freqtonote.css)
   in the platform's stack. Loads on top of css/app.css + css/nav.css.

   The design CSS was written against auth-shared.css token names (--gold,
   --serif, --card …). Rather than rewrite every rule, we alias those names to
   the platform's real .lp-* tokens (which resolve to the unified amber accent
   #e8a838). Everything is scoped under .ftnl so it never leaks.
   ========================================================================== */

.ftnl {
    /* design-token aliases → platform tokens (amber accent, real surfaces) */
    --gold:        var(--lp-gold);
    --gold-bright: var(--lp-gold-bright);
    --bg:          var(--lp-bg);
    --card:        var(--lp-card);
    --elevated:    var(--lp-elevated);
    --field:       var(--lp-field);
    --border:      var(--lp-border);
    --border-soft: var(--lp-border-soft);
    --text:        var(--lp-text);
    --muted:       var(--lp-muted);
    --faint:       var(--lp-faint);
    --serif:       var(--lp-serif);
    --sans:        var(--lp-sans);
    --mono:        var(--lp-mono);

    position: relative;
    overflow-x: hidden;
}

/* ---------------- HERO ---------------- */
.ftnl .ftn-hero { position: relative; padding: 74px 0 64px; }
.ftnl .ftn-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 54px; align-items: center; }
.ftnl .ftn-hero-copy { position: relative; z-index: 2; }

.ftnl .ftn-tagrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.ftnl .ftn-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold); background: color-mix(in oklab, var(--gold) 11%, transparent);
    border: 1px solid color-mix(in oklab, var(--gold) 30%, transparent);
    padding: 6px 11px; border-radius: 999px;
}
.ftnl .ftn-pill svg { width: 13px; height: 13px; }
.ftnl .ftn-pill.free { color: var(--gold-bright); }
.ftnl .ftn-pill.muted { color: var(--muted); background: var(--field); border-color: var(--border-soft); }

.ftnl .ftn-h1 {
    font-family: var(--serif); font-weight: 600; color: var(--text);
    font-size: clamp(38px, 5.4vw, 62px); line-height: 1.02; letter-spacing: .3px; margin: 0;
    text-wrap: balance;
}
.ftnl .ftn-h1 .accent { color: var(--gold); }
.ftnl .ftn-lede { color: var(--muted); font-size: clamp(15.5px, 1.7vw, 18px); line-height: 1.62; max-width: 540px; margin: 22px 0 0; }
.ftnl .ftn-lede strong { color: #cfcabf; font-weight: 600; }

.ftnl .ftn-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.ftnl .ftn-trust { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; margin-top: 26px; }
.ftnl .ftn-trust span { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 13px; }
.ftnl .ftn-trust svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ---------- live demo device ---------- */
.ftnl .ftn-demo { position: relative; z-index: 2; }
.ftnl .ftn-demo-glow {
    position: absolute; inset: -12% -8% -16% -8%; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 55% at 60% 38%, color-mix(in oklab, var(--gold) 26%, transparent), transparent 70%);
    filter: blur(10px); opacity: .7;
}
.ftnl .ftn-device {
    position: relative; z-index: 1;
    background: linear-gradient(180deg, color-mix(in oklab, var(--gold) 5%, transparent), transparent 26%), var(--card);
    border: 1px solid var(--border-soft); border-radius: 20px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 44px 110px -50px rgba(0, 0, 0, .95);
    overflow: hidden;
}
.ftnl .ftn-device-bar {
    display: flex; align-items: center; gap: 9px;
    padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
    background: var(--elevated);
}
.ftnl .ftn-device-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.ftnl .ftn-device-bar .dot:nth-child(1) { background: #3a3934; }
.ftnl .ftn-device-bar .lbl { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.ftnl .ftn-device-bar .live {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ok);
}
.ftnl .ftn-device-bar .live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: ftn-pulse 1.6s ease-in-out infinite; }
@keyframes ftn-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }

.ftnl .ftn-device-body { padding: 24px 24px 26px; }

/* waveform strip */
.ftnl .ftn-wave { height: 54px; margin: 2px 0 18px; color: var(--gold); }
.ftnl .ftn-wave svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ftnl .ftn-wave path {
    fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
    filter: drop-shadow(0 0 6px color-mix(in oklab, var(--gold) 55%, transparent));
}

.ftnl .ftn-demo-result { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 6px; }
.ftnl .ftn-demo-note .result-note { font-size: 60px; }
.ftnl .ftn-demo-meta { text-align: right; }
.ftnl .ftn-demo-meta .freq { font-family: var(--serif); font-weight: 600; color: var(--gold); font-size: 30px; line-height: 1; }
.ftnl .ftn-demo-meta .freq .u { font-family: var(--sans); font-size: .42em; color: var(--muted); margin-left: 5px; font-weight: 500; }
.ftnl .ftn-demo-meta .sub { color: var(--muted); font-size: 12.5px; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---------------- STAT STRIP ---------------- */
.ftnl .ftn-stats {
    border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
    background: color-mix(in oklab, var(--bg) 70%, #000);
}
.ftnl .ftn-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1120px; margin: 0 auto; }
.ftnl .ftn-stat { padding: 26px 28px; text-align: center; border-left: 1px solid var(--border-soft); }
.ftnl .ftn-stat:first-child { border-left: none; }
.ftnl .ftn-stat .big { font-family: var(--serif); font-weight: 600; color: var(--gold); font-size: 30px; line-height: 1; letter-spacing: .3px; }
.ftnl .ftn-stat .cap { color: var(--muted); font-size: 12.5px; margin-top: 10px; letter-spacing: .02em; }

/* ---------------- FEATURE CARDS ---------------- */
.ftnl .ftn-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.ftnl .ftn-fcard {
    background: var(--card); border: 1px solid var(--border-soft); border-radius: 15px; padding: 24px 22px;
    transition: border-color .18s, transform .18s;
}
.ftnl .ftn-fcard:hover { border-color: color-mix(in oklab, var(--gold) 36%, transparent); transform: translateY(-2px); }
.ftnl .ftn-fcard .ic {
    width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
    background: color-mix(in oklab, var(--gold) 12%, transparent); color: var(--gold);
    border: 1px solid color-mix(in oklab, var(--gold) 24%, transparent);
}
.ftnl .ftn-fcard .ic svg { width: 19px; height: 19px; }
.ftnl .ftn-fcard h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--text); margin: 0 0 9px; letter-spacing: .2px; }
.ftnl .ftn-fcard p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.ftnl .ftn-fcard p code { font-family: var(--mono); font-size: 12.5px; background: var(--field); border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 6px; color: var(--gold); }

/* ---------------- SHOWCASE ---------------- */
.ftnl .ftn-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 46px; align-items: start; }
.ftnl .ftn-show-block .ftn-show-cap {
    display: flex; align-items: center; gap: 9px; margin: 0 0 16px;
    font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.ftnl .ftn-show-cap .num { color: var(--faint); }
.ftnl .ftn-show-panel { background: var(--card); border: 1px solid var(--border-soft); border-radius: 16px; padding: 22px; }
.ftnl .ftn-show-panel .harm-grid { grid-template-columns: 1fr 1fr; }
.ftnl .ftn-show-note { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 14px 2px 0; }
.ftnl .ftn-show-panel .ref-table thead th { background: var(--card); }

/* ---------------- USE CASES ---------------- */
.ftnl .ftn-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.ftnl .ftn-use {
    background: color-mix(in oklab, var(--card) 60%, transparent);
    border: 1px solid var(--border-soft); border-left: 2px solid color-mix(in oklab, var(--gold) 40%, transparent);
    border-radius: 0 12px 12px 0; padding: 20px 22px;
}
.ftnl .ftn-use h4 { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--text); margin: 0 0 8px; }
.ftnl .ftn-use p { color: var(--muted); font-size: 13.5px; line-height: 1.58; margin: 0; }

/* ---------------- HOW IT WORKS ---------------- */
.ftnl .ftn-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.ftnl .ftn-step { text-align: center; padding: 8px; }
.ftnl .ftn-step .badge {
    width: 50px; height: 50px; border-radius: 14px; margin: 0 auto 18px; display: grid; place-items: center;
    font-family: var(--mono); font-size: 17px; color: var(--gold);
    background: color-mix(in oklab, var(--gold) 10%, transparent); border: 1px solid color-mix(in oklab, var(--gold) 26%, transparent);
}
.ftnl .ftn-step h4 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--text); margin: 0 0 10px; }
.ftnl .ftn-step p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 auto; max-width: 30ch; }

/* ---------------- FAQ ---------------- */
.ftnl .ftn-faq {
    max-width: 780px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 0;
    border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; background: var(--card);
}
.ftnl .ftn-q { border-bottom: 1px solid var(--border-soft); }
.ftnl .ftn-q:last-child { border-bottom: none; }
.ftnl .ftn-q summary {
    list-style: none; cursor: pointer; padding: 22px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--text); transition: color .15s;
}
.ftnl .ftn-q summary::-webkit-details-marker { display: none; }
.ftnl .ftn-q summary:hover { color: var(--gold); }
.ftnl .ftn-q summary .chev, .ftnl .ftn-q summary svg { flex: none; color: var(--faint); transition: transform .22s; width: 18px; height: 18px; }
.ftnl .ftn-q[open] summary svg { transform: rotate(180deg); color: var(--gold); }
.ftnl .ftn-q .ans { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.66; margin: 0; }
.ftnl .ftn-q .ans strong { color: #cfcabf; font-weight: 600; }
.ftnl .ftn-q .ans code { font-family: var(--mono); font-size: 12.5px; background: var(--field); border: 1px solid var(--border-soft); border-radius: 5px; padding: 1px 6px; color: var(--gold); }

/* ---------------- CLOSING ---------------- */
.ftnl .ftn-closing { position: relative; text-align: center; padding: 84px 0; }
.ftnl .ftn-closing .glow {
    position: absolute; left: 50%; top: 0; width: 600px; height: 300px; transform: translateX(-50%);
    background: radial-gradient(ellipse 50% 60% at 50% 30%, color-mix(in oklab, var(--gold) 16%, transparent), transparent 70%); pointer-events: none;
}
.ftnl .ftn-closing h2 { position: relative; font-family: var(--serif); font-weight: 600; color: var(--text); font-size: clamp(30px, 4.6vw, 46px); margin: 0; letter-spacing: .3px; }
.ftnl .ftn-closing h2 .accent { color: var(--gold); }
.ftnl .ftn-closing p { position: relative; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 540px; margin: 18px auto 30px; }
.ftnl .ftn-closing .ftn-cta { justify-content: center; }

/* ==========================================================================
   Tool component styles (ported from freqtonote.css) used by the live demo
   and showcase. Scoped under .ftnl.
   ========================================================================== */

/* play button */
.ftnl .play-btn {
    flex: none; width: 46px; height: 46px; border-radius: 11px;
    display: grid; place-items: center; cursor: pointer;
    background: transparent; border: 1px solid var(--border); color: var(--gold);
    transition: all .15s;
}
.ftnl .play-btn svg { width: 18px; height: 18px; margin-left: 1px; }
.ftnl .play-btn:hover { background: var(--gold); border-color: var(--gold); color: #15130c; }
.ftnl .play-btn:active { transform: translateY(1px); }
.ftnl .play-btn.playing { background: var(--gold); border-color: var(--gold); color: #15130c; }
.ftnl .play-btn.sm { width: 34px; height: 34px; border-radius: 9px; }
.ftnl .play-btn.sm svg { width: 14px; height: 14px; }
.ftnl .play-btn.tiny { width: 30px; height: 30px; border-radius: 8px; border-color: var(--border-soft); }
.ftnl .play-btn.tiny svg { width: 13px; height: 13px; }

/* input row */
.ftnl .card-lab { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.ftnl .io-row { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.ftnl .io-field { position: relative; flex: 1; display: flex; align-items: center; }
.ftnl .io-field input {
    width: 100%; background: var(--field); border: 1px solid var(--border); border-radius: 10px;
    color: var(--text); font-family: var(--sans); font-size: 17px; font-weight: 500;
    padding: 13px 52px 13px 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.ftnl .io-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 16%, transparent); }
.ftnl .io-field .unit { position: absolute; right: 15px; color: var(--faint); font-size: 13px; font-weight: 500; pointer-events: none; }

/* big results */
.ftnl .result-note { font-family: var(--serif); font-weight: 600; color: var(--gold); line-height: 1; font-size: 68px; letter-spacing: .5px; }
.ftnl .result-note sup { font-size: .42em; font-weight: 600; vertical-align: super; margin-left: 2px; opacity: .92; }
.ftnl .result-note .sharp { font-size: .7em; }

/* cents gauge */
.ftnl .gauge { margin-top: 24px; }
.ftnl .gauge-track { position: relative; height: 8px; border-radius: 6px; background: var(--field); border: 1px solid var(--border-soft); }
.ftnl .gauge-center { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: color-mix(in oklab, var(--gold) 45%, transparent); transform: translateX(-50%); }
.ftnl .gauge-needle { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); transform: translate(-50%, -50%); transition: left .25s cubic-bezier(.2, .7, .2, 1), background .2s; box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold) 16%, transparent); }
.ftnl .gauge-needle.intune { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 18%, transparent); }
.ftnl .gauge-ticks { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); letter-spacing: .02em; }
.ftnl .gauge-status { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 14px; font-weight: 600; white-space: nowrap; flex-wrap: wrap; }
.ftnl .gauge-status.intune { color: var(--ok); }
.ftnl .gauge-status.off { color: var(--gold); }
.ftnl .gauge-status svg { width: 15px; height: 15px; }
.ftnl .gauge-status .cents { font-variant-numeric: tabular-nums; }

/* harmonics */
.ftnl .harm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ftnl .harm-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: 13px; padding: 18px 18px 16px; text-align: center; transition: border-color .15s, transform .15s; }
.ftnl .harm-card:hover { border-color: color-mix(in oklab, var(--gold) 35%, transparent); }
.ftnl .harm-card.fund { border-color: color-mix(in oklab, var(--gold) 32%, transparent); background: color-mix(in oklab, var(--gold) 6%, var(--card)); }
.ftnl .harm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ftnl .harm-ord { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.ftnl .harm-ratio { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.ftnl .harm-freq { font-family: var(--serif); font-weight: 600; font-size: 27px; color: var(--gold); line-height: 1; letter-spacing: .3px; }
.ftnl .harm-note { margin-top: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ftnl .harm-note .cents { color: var(--faint); margin-left: 5px; }
.ftnl .harm-card .play-btn { margin: 13px auto 0; }

/* reference table */
.ftnl .ref-table { width: 100%; border-collapse: collapse; }
.ftnl .ref-table thead th {
    text-align: left; background: var(--elevated);
    font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
    padding: 13px 18px; border-bottom: 1px solid var(--border-soft);
}
.ftnl .ref-table thead th.r { text-align: right; }
.ftnl .ref-table tbody td { padding: 11px 18px; border-bottom: 1px solid var(--border-soft); font-size: 14px; color: var(--muted); }
.ftnl .ref-table tbody tr:last-child td { border-bottom: none; }
.ftnl .ref-table tbody tr:hover { background: color-mix(in oklab, var(--gold) 6%, transparent); }
.ftnl .ref-table tbody tr.is-a4 { background: color-mix(in oklab, var(--gold) 9%, transparent); }
.ftnl .ref-note { color: var(--text); font-weight: 600; font-family: var(--serif); font-size: 16px; }
.ftnl .ref-note .sharp { color: var(--muted); }
.ftnl .ref-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; color: #bdb8ad; }
.ftnl .ref-freq { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--gold); text-align: right; }
.ftnl .ref-act { text-align: right; width: 54px; }

/* ---------------- responsive ---------------- */
@media (max-width: 920px) {
    .ftnl .ftn-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .ftnl .ftn-demo { max-width: 520px; margin: 0 auto; width: 100%; }
    .ftnl .ftn-features, .ftnl .ftn-uses, .ftnl .ftn-steps { grid-template-columns: 1fr 1fr; }
    .ftnl .ftn-showcase { grid-template-columns: 1fr; }
    .ftnl .ftn-stats-inner { grid-template-columns: 1fr 1fr; }
    .ftnl .ftn-stat:nth-child(3) { border-left: none; }
    .ftnl .ftn-stat:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
}
@media (max-width: 600px) {
    .ftnl .ftn-hero { padding: 48px 0 44px; }
    .ftnl .ftn-features, .ftnl .ftn-uses, .ftnl .ftn-steps, .ftnl .ftn-stats-inner { grid-template-columns: 1fr; }
    .ftnl .ftn-stat { border-left: none; border-top: 1px solid var(--border-soft); }
    .ftnl .ftn-stat:first-child { border-top: none; }
    .ftnl .ftn-demo-note .result-note { font-size: 50px; }
    .ftnl .harm-grid, .ftnl .ftn-show-panel .harm-grid { grid-template-columns: 1fr 1fr; }
}
