/* ============================================================
   Forwarding guide — shared stylesheet
   ------------------------------------------------------------
   Used by both the marketing page (/call-forwarding-guide) and
   the in-app page (/app/call-forwarding-guide). One stylesheet,
   two themes via the --fwd-* token bridge below.

   Edit only here — both contexts pick up changes automatically.
   Local class prefix: cf-* (page chrome), cfm-* (mockup hero).
   ============================================================ */

/* ── Token bridge ────────────────────────────────────────────
   Marketing context (.cf-page outside .v2-content) aliases to
   PageKit --pk-* tokens. App context (.v2-content .cf-page)
   aliases to V2 portal tokens. Layout primitives below the
   bridge reference --fwd-* only — never raw --pk-* / --v2-*. */
.cf-page {
    --fwd-fg:              var(--pk-fg);
    --fwd-fg-muted:        var(--pk-fg-muted);
    --fwd-bg-elevated:     var(--pk-bg-elevated);
    --fwd-surface-hover:   var(--pk-surface-hover, var(--pk-bg-elevated));
    --fwd-accent:          var(--pk-accent);
    --fwd-border:          var(--pk-border);
    --fwd-border-muted:    var(--pk-border-muted);
    --fwd-success-bright:  var(--pk-success-bright, #34d399);
    --fwd-error:           var(--pk-error, #ef4444);
    --fwd-font-mono:       var(--pk-font-mono);
}

/* In-app context — V2 portal tokens. Where the V2 system has
   undefined-but-conventional aliases (--v2-text, --v2-bg-hover),
   we resolve to the canonical token so hover/text stay correct. */
.v2-content .cf-page {
    --fwd-fg:              var(--v2-text, var(--v2-fg));
    --fwd-fg-muted:        var(--v2-fg-muted);
    --fwd-bg-elevated:     var(--v2-bg-hover, var(--v2-bg-elevated));
    --fwd-surface-hover:   var(--v2-bg-hover, var(--v2-bg-elevated));
    --fwd-accent:          var(--v2-accent);
    --fwd-border:          var(--v2-border);
    --fwd-border-muted:    var(--v2-border);
    --fwd-success-bright:  #34d399;
    --fwd-error:           var(--v2-error, #ef4444);
    --fwd-font-mono:       'JetBrains Mono', ui-monospace, monospace;
}

/* ============================================================
   Page layout — token-agnostic primitives below this line.
   Reference --fwd-* only.
   ============================================================ */

/* Page width matches /for/dental's content area (~1100px). */
.cf-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 48px 120px;
}

/* In-app context: V2 SPA shell already provides the topbar +
   inner content padding, so suppress the marketing top padding
   that exists to clear the floating site nav. */
.v2-content .cf-page {
    padding: 0;
    max-width: none;
}

/* ── Hero ────────────────────────────────────────────────── */
.cf-hero {
    margin-bottom: 56px;
}
.cf-hero-kicker {
    display: inline-block;
    font-family: var(--fwd-font-mono);
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--fwd-accent);
    margin-bottom: 14px;
}
.cf-hero h1 {
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--fwd-fg);
}
.cf-hero-sub {
    font-size: 17px; color: var(--fwd-fg-muted);
    line-height: 1.55;
    max-width: 580px;
    margin-bottom: 28px;
}

/* ── Section scaffolding (numbered chapters) ─────────────── */
.cf-sect { margin-bottom: 56px; scroll-margin-top: 100px; }
.cf-sect-head { margin-bottom: 24px; }
.cf-sect-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: color-mix(in srgb, var(--fwd-accent) 15%, transparent);
    color: var(--fwd-accent);
    font-family: var(--fwd-font-mono);
    font-size: 12px; font-weight: 700;
    margin-right: 10px; vertical-align: 2px;
}
.cf-sect-title {
    display: inline;
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--fwd-fg);
}
.cf-sect-sub {
    font-size: 15px; color: var(--fwd-fg-muted);
    margin-top: 10px; margin-left: 34px;
    line-height: 1.55;
}

/* ── Reveal animation for downstream sections ────────────── */
.cf-reveal {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
}
.cf-reveal.is-show {
    max-height: 4000px;
    opacity: 1;
}

/* ── Phone-type picker ───────────────────────────────────── */
.cf-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-left: 34px;
}
.cf-type-tile {
    background: var(--fwd-bg-elevated);
    border: 1px solid var(--fwd-border-muted);
    border-radius: 16px;
    padding: 24px 18px 22px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    position: relative;
    font-family: inherit;
    color: inherit;
}
.cf-type-tile:hover {
    background: var(--fwd-surface-hover);
    border-color: var(--fwd-border);
    transform: translateY(-1px);
}
.cf-type-tile.is-selected {
    background: linear-gradient(180deg, color-mix(in srgb, var(--fwd-accent) 10%, transparent), color-mix(in srgb, var(--fwd-accent) 2%, transparent));
    border-color: color-mix(in srgb, var(--fwd-accent) 35%, transparent);
}
.cf-type-tile.is-selected::after {
    content: '';
    position: absolute; top: 12px; right: 12px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--fwd-accent);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 11px;
    background-repeat: no-repeat;
    background-position: center;
}
.cf-type-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: color-mix(in srgb, var(--fwd-fg) 4%, transparent);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.cf-type-icon svg { width: 18px; height: 18px; stroke: var(--fwd-fg-muted); }
.cf-type-tile.is-selected .cf-type-icon { background: color-mix(in srgb, var(--fwd-accent) 15%, transparent); }
.cf-type-tile.is-selected .cf-type-icon svg { stroke: var(--fwd-accent); }
.cf-type-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--fwd-fg); }
.cf-type-desc { font-size: 12px; color: var(--fwd-fg-muted); line-height: 1.5; }

/* ── Phone-platform picker (iPhone vs. Android, cell only) ── */
.cf-platform-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
}

/* ── iPhone Live Voicemail callout ───────────────────────── */
.cf-iphone-tip {
    margin-left: 34px;
    scroll-margin-top: 100px;
    background: linear-gradient(180deg, color-mix(in srgb, #f59e0b 7%, var(--fwd-bg-elevated)), var(--fwd-bg-elevated));
    border: 1px solid color-mix(in srgb, #f59e0b 26%, transparent);
    border-radius: 16px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding: 0 24px;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease, padding 0.4s ease;
}
.cf-iphone-tip.is-show {
    max-height: 1200px;
    opacity: 1;
    margin-top: 18px;
    padding: 22px 24px;
}
.cf-iphone-tip-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.cf-iphone-tip-mark {
    width: 28px; height: 28px; border-radius: 50%;
    background: #f59e0b;
    color: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--fwd-font-mono);
    font-weight: 800; font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}
.cf-iphone-tip-h {
    font-size: 17px; font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fwd-fg);
    margin: 0;
}
.cf-iphone-tip-body {
    font-size: 14px; color: var(--fwd-fg-muted);
    line-height: 1.6;
}
.cf-iphone-tip-body p { margin: 0 0 12px 0; }
.cf-iphone-tip-body strong { color: var(--fwd-fg); font-weight: 600; }
.cf-iphone-tip-body ol {
    margin: 0;
    padding-left: 22px;
    line-height: 1.75;
}
.cf-iphone-tip-body ol li + li { margin-top: 2px; }
.cf-iphone-tip-sub {
    color: var(--fwd-fg) !important;
    font-weight: 600;
    margin-bottom: 8px !important;
}
.cf-iphone-tip-foot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--fwd-border-muted);
    color: var(--fwd-fg-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* ── Carrier picker ──────────────────────────────────────── */
.cf-carrier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-left: 34px;
}
/* Author's `display: grid` outranks UA `[hidden] { display: none }` —
   restore the hide so phone-type filtering actually works. */
.cf-carrier-grid[hidden] { display: none; }
.cf-carrier-tile {
    background: var(--fwd-bg-elevated);
    border: 1px solid var(--fwd-border-muted);
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 10px;
    text-align: left;
    min-height: 60px;
    font-family: inherit;
    color: inherit;
}
.cf-carrier-tile:hover {
    background: var(--fwd-surface-hover);
    border-color: var(--fwd-border);
}
.cf-carrier-tile.is-selected {
    background: linear-gradient(180deg, color-mix(in srgb, var(--fwd-accent) 10%, transparent), color-mix(in srgb, var(--fwd-accent) 2%, transparent));
    border-color: color-mix(in srgb, var(--fwd-accent) 35%, transparent);
}
/* Once a provider is picked, dim the rest so focus lands on the
   chosen tile + instructions below. Hover lifts unselected tiles
   back so they remain selectable. Mirrors the pattern in
   landing-try-for-free-modal.css. */
.cf-carrier-grid:has(.is-selected) .cf-carrier-tile:not(.is-selected) {
    opacity: 0.3;
}
.cf-carrier-grid:has(.is-selected) .cf-carrier-tile:not(.is-selected):hover {
    opacity: 0.7;
}
.cf-carrier-logo {
    width: 32px; height: 32px; border-radius: 8px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}
.cf-carrier-name {
    font-size: 14px; font-weight: 600; line-height: 1.25;
    color: var(--fwd-fg);
}
.cf-carrier-tile.is-unknown .cf-carrier-logo {
    background: color-mix(in srgb, var(--fwd-fg) 6%, transparent);
    color: var(--fwd-fg-muted);
    font-weight: 700;
    font-size: 16px;
}

/* Brand tints — colors picked from each carrier's public mark.
   PROVISIONAL like the rest of the data — easy to tweak later. */
.cf-page .lg-att      { background: #00a8e0; }
.cf-page .lg-verizon  { background: #cd040b; }
.cf-page .lg-tmobile  { background: #e20074; }
.cf-page .lg-mint     { background: #76e4b8; color: #0a0a0c; }
.cf-page .lg-cricket  { background: #44b244; }
.cf-page .lg-boost    { background: #f7941d; }
.cf-page .lg-uscell   { background: #002554; }
.cf-page .lg-xfinity  { background: #6e2585; }
.cf-page .lg-openphone{ background: #5b53e8; }
.cf-page .lg-ringcent { background: #ff7a00; }
.cf-page .lg-google   { background: linear-gradient(135deg, #4285f4, #34a853); }
.cf-page .lg-dialpad  { background: #6f54e5; }
.cf-page .lg-vonage   { background: #ee2b76; }
.cf-page .lg-zoom     { background: #2d8cff; }
.cf-page .lg-grass    { background: #00b358; }

/* ── Steps block ─────────────────────────────────────────── */
.cf-steps-block {
    margin-left: 34px;
    background: var(--fwd-bg-elevated);
    border: 1px solid var(--fwd-border-muted);
    border-radius: 18px;
    padding: 28px 28px 24px;
}
.cf-steps-pretitle {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--fwd-fg-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fwd-border-muted);
}
.cf-car-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: color-mix(in srgb, var(--fwd-fg) 4%, transparent);
    border-radius: 8px;
    padding: 5px 10px;
    color: var(--fwd-fg);
    font-weight: 600;
    font-size: 12px;
}
.cf-car-chip-logo {
    width: 16px; height: 16px; border-radius: 4px;
    font-size: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800;
}
.cf-car-chip-logo.is-unknown {
    background: color-mix(in srgb, var(--fwd-fg) 6%, transparent);
    color: var(--fwd-fg-muted);
}
/* Share-link chip — appears in the steps pretitle on hover so the
   user can copy a deep link to this exact carrier's instructions. */
.cf-link-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--fwd-fg-muted);
    font-family: var(--fwd-font-mono);
    font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.cf-steps-pretitle:hover .cf-link-chip,
.cf-link-chip:focus-visible { opacity: 1; }
.cf-link-chip:hover {
    background: color-mix(in srgb, var(--fwd-fg) 4%, transparent);
    border-color: var(--fwd-border-muted);
    color: var(--fwd-accent);
}
.cf-link-chip svg { width: 12px; height: 12px; stroke: currentColor; }

/* Code highlight tokens — shared by mockup typed text, off-strip, copy chip. */
.cf-star { color: var(--fwd-accent); }
.cf-num  { color: var(--fwd-success-bright); }

/* Copy-to-clipboard chip — sits in the side panel beside every mockup. */
.cf-dial-chip {
    display: inline-flex; align-items: center; gap: 12px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--fwd-fg) 4%, var(--fwd-bg-elevated)), var(--fwd-bg-elevated));
    border: 1px solid var(--fwd-border);
    border-radius: 12px;
    padding: 14px 16px 14px 18px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    font-family: inherit;
    color: inherit;
}
.cf-dial-chip:hover {
    border-color: color-mix(in srgb, var(--fwd-accent) 30%, transparent);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.cf-dial-chip::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--fwd-accent) 8%, transparent), transparent 60%);
    pointer-events: none;
}
.cf-dial-text {
    font-family: var(--fwd-font-mono);
    font-size: 18px; font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--fwd-fg);
    position: relative;
    word-break: break-all;
    text-align: left;
}
.cf-dial-copy {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--fwd-font-mono);
    font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--fwd-fg-muted);
    background: color-mix(in srgb, var(--fwd-fg) 4%, transparent);
    border-radius: 6px;
    padding: 4px 8px;
    position: relative;
    flex-shrink: 0;
}
.cf-dial-copy svg { width: 12px; height: 12px; }
.cf-dial-chip:hover .cf-dial-copy { color: var(--fwd-accent); }
a.cf-dial-chip { text-decoration: none; }
a.cf-dial-chip.is-preview .cf-dial-copy {
    color: var(--fwd-accent);
    background: color-mix(in srgb, var(--fwd-accent) 12%, transparent);
}

/* ============================================================
   Mockup grid — every flow uses a device on the left and the
   textual instructions on the right. Phone, desk phone, and
   browser all share this skeleton.
   ============================================================ */
.cfm-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: center;
}
.cfm-grid.is-wide { grid-template-columns: 320px 1fr; }
.cfm-side { min-width: 0; }
.cfm-side h3 {
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fwd-fg);
    margin: 0 0 10px;
}
.cfm-side p {
    font-size: 14px; color: var(--fwd-fg-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}
.cfm-side ol {
    margin: 0 0 18px;
    padding-left: 18px;
    font-size: 14px; color: var(--fwd-fg);
    line-height: 1.7;
}
/* Restate the title color on the li so the in-app context's portal
   reset (`li { color: var(--v2-fg-muted) }` in shared/css/portal/base.css)
   doesn't drag the step heading down to the same tone as the sub copy. */
.cfm-side ol li { margin-bottom: 6px; color: var(--fwd-fg); }
.cfm-side ol li::marker { color: var(--fwd-accent); font-weight: 700; }
.cfm-side ol li small {
    display: block;
    font-size: 12.5px;
    color: var(--fwd-fg-muted);
    font-weight: 400;
    line-height: 1.5;
    margin-top: 2px;
}
.cfm-side strong { font-weight: 600; color: var(--fwd-fg); }
.cfm-side em { color: var(--fwd-fg); font-style: normal; font-weight: 500; }
.cfm-side code {
    font-family: var(--fwd-font-mono);
    font-size: 12.5px;
    background: color-mix(in srgb, var(--fwd-fg) 5%, transparent);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--fwd-fg);
}
.cf-instructions-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--fwd-fg-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}
.cf-instructions-link:hover {
    color: var(--fwd-fg);
}
.cf-instructions-link:hover .cf-instructions-link-text { text-decoration: underline; }
.cf-instructions-link svg { width: 12px; height: 12px; opacity: 0.75; flex-shrink: 0; }
@media (max-width: 760px) {
    .cfm-grid, .cfm-grid.is-wide { grid-template-columns: 1fr; gap: 24px; }
}

/* ── cfm-phone — smartphone (cell carriers + cell/voip with code) ── */
.cfm-phone {
    position: relative;
    width: 240px;
    height: 480px;
    margin: 0 auto;
    background: #0b0b0d;
    border: 8px solid #1a1a1d;
    border-radius: 36px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.06);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}
.cfm-phone-notch {
    position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 86px; height: 22px;
    background: #000;
    border-radius: 12px;
    z-index: 2;
}
.cfm-phone-screen {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #0e0e10 0%, #16161a 100%);
    padding: 38px 18px 18px;
}
.cfm-phone-title {
    text-align: center;
    color: #fff;
    font-size: 11px; font-weight: 600;
    opacity: 0.55;
    margin-bottom: 12px;
}
.cfm-phone-typed {
    text-align: center;
    font-size: 18px; font-weight: 500;
    color: #fff;
    letter-spacing: 0;
    margin-bottom: 4px;
    padding: 0 2px;
    font-family: var(--fwd-font-mono);
    font-feature-settings: 'tnum';
    white-space: nowrap;
}
.cfm-phone-subtitle {
    text-align: center;
    font-size: 12px; font-weight: 400;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.01em;
}
.cfm-caret {
    display: inline-block;
    width: 1px; height: 14px;
    background: #fff;
    opacity: 0.6;
    margin-left: 2px;
    vertical-align: -2px;
    animation: cfm-caret-blink 1.1s steps(2) infinite;
}
@keyframes cfm-caret-blink { 50% { opacity: 0; } }

.cfm-phone-pad {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 14px;
}
.cfm-phone-key {
    aspect-ratio: 1;
    box-sizing: border-box;
    border-radius: 50%;
    background: rgba(255,255,255,0.085);
    color: #fff;
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.01em;
    display: grid;
    grid-template-rows: 1fr 9px;
    justify-items: center;
    align-items: end;
    padding: 7px 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.cfm-phone-key small {
    grid-row: 2;
    align-self: start;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.14em;
    opacity: 0.62;
    line-height: 1;
}
.cfm-phone-call-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
}
.cfm-phone-call {
    grid-column: 2;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.cfm-phone-call svg { width: 22px; height: 22px; }

/* ── cfm-desk — landline desk phone (landline carriers) ─────── */
.cfm-desk {
    position: relative;
    width: 240px;
    margin: 0 auto;
    padding: 14px;
    background: #1a1a1d;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.06);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}
.cfm-desk::before {
    content: '';
    display: block;
    margin: -2px 22px 12px;
    height: 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #0d0d0f 0%, #15151a 100%);
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    position: relative;
}
.cfm-desk-screen {
    background: linear-gradient(180deg, #052e1a 0%, #03200f 100%);
    border: 1px solid rgba(52,211,153,0.18);
    border-radius: 6px;
    padding: 12px 12px 10px;
    margin-bottom: 12px;
    font-family: var(--fwd-font-mono);
    color: #34d399;
}
.cfm-desk-screen-line1 {
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6ee7b7;
    opacity: 0.7;
    margin-bottom: 6px;
}
.cfm-desk-screen-line2 {
    font-size: 14px; font-weight: 600;
    color: #d1fae5;
    white-space: nowrap;
}
.cfm-desk-screen-line2 .cf-star { color: #fb7185; }
.cfm-desk-screen-line2 .cf-num  { color: #6ee7b7; }
.cfm-desk-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.cfm-desk-key {
    background: linear-gradient(180deg, #2a2a30 0%, #1a1a1f 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    height: 36px;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    color: #fff;
    font-size: 14px; font-weight: 500;
}
.cfm-desk-key small {
    display: block;
    font-size: 6px;
    letter-spacing: 0.18em;
    opacity: 0.45;
    margin-top: 1px;
}
.cfm-desk-row-extras {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.cfm-desk-action {
    height: 32px;
    border-radius: 6px;
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex; align-items: center; justify-content: center;
}
.cfm-desk-action.is-end {
    background: linear-gradient(180deg, #b91c1c 0%, #7f1d1d 100%);
    color: #fff;
}
.cfm-desk-action.is-call {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    color: #fff;
}

/* ── cfm-browser — laptop / dashboard (VoIP carriers) ───────── */
.cfm-browser {
    position: relative;
    width: 320px;
    margin: 0 auto;
    background: #0d0d10;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}
.cfm-browser-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 10px;
    background: #16161a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cfm-browser-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.cfm-browser-dot:nth-child(1) { background: #ef4444; }
.cfm-browser-dot:nth-child(2) { background: #f59e0b; }
.cfm-browser-dot:nth-child(3) { background: #22c55e; }
.cfm-browser-url {
    flex: 1;
    margin-left: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    font-family: var(--fwd-font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cfm-browser-body {
    display: grid;
    grid-template-columns: 84px 1fr;
    min-height: 240px;
}
.cfm-browser-side {
    background: #111114;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 12px 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.cfm-browser-side-item {
    font-size: 10px;
    color: rgba(255,255,255,0.55);
    padding: 6px 8px;
    border-radius: 5px;
    display: flex; align-items: center; gap: 6px;
}
.cfm-browser-side-item .dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
}
.cfm-browser-side-item.is-active {
    background: color-mix(in srgb, var(--fwd-accent) 18%, transparent);
    color: #fff;
    font-weight: 600;
}
.cfm-browser-side-item.is-active .dot {
    background: var(--fwd-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fwd-accent) 25%, transparent);
}
.cfm-browser-main {
    padding: 14px 14px 16px;
}
.cfm-browser-crumb {
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 10px;
    font-family: var(--fwd-font-mono);
    letter-spacing: 0.05em;
}
.cfm-browser-crumb .sep { opacity: 0.5; margin: 0 4px; }
.cfm-browser-crumb .here { color: var(--fwd-accent); }
.cfm-browser-h {
    font-size: 13px; font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}
.cfm-browser-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 10.5px;
    color: rgba(255,255,255,0.78);
}
.cfm-browser-row:first-of-type { border-top: 0; }
.cfm-browser-row .lbl { color: rgba(255,255,255,0.55); }
.cfm-browser-toggle {
    display: inline-block;
    width: 24px; height: 14px;
    background: var(--fwd-accent);
    border-radius: 999px;
    position: relative;
    flex-shrink: 0;
}
.cfm-browser-toggle::after {
    content: '';
    position: absolute;
    top: 2px; right: 2px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
}
.cfm-browser-toggle.is-off {
    background: rgba(255,255,255,0.18);
}
.cfm-browser-toggle.is-off::after {
    right: auto; left: 2px;
}
.cfm-browser-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid color-mix(in srgb, var(--fwd-accent) 35%, transparent);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: var(--fwd-font-mono);
    font-size: 10.5px;
    color: var(--fwd-success-bright);
}
.cfm-browser-save {
    margin-top: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--fwd-accent);
    color: #fff;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 7px 12px;
}

/* ── Warning callout (amber — real gotchas) ──────────────── */
.cf-warning {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    background: linear-gradient(180deg, color-mix(in srgb, #f59e0b 8%, var(--fwd-bg-elevated)), var(--fwd-bg-elevated));
    border: 1px solid color-mix(in srgb, #f59e0b 32%, transparent);
    border-radius: 12px;
}
.cf-warning-ico {
    flex-shrink: 0;
    color: #f59e0b;
    line-height: 0;
}
.cf-warning-ico svg { width: 18px; height: 18px; }
.cf-warning-body { min-width: 0; }
.cf-warning-h {
    font-size: 11px; font-weight: 700;
    color: #fbbf24;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: var(--fwd-font-mono);
}
.cf-warning-p {
    font-size: 14px;
    color: var(--fwd-fg);
    line-height: 1.55;
}

/* ── Conditional forwarding (collapsed disclosure) ───────── */
.cf-cond-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--fwd-border-muted);
}
.cf-cond-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 4px 0;
    transition: opacity 0.15s;
}
.cf-cond-summary::-webkit-details-marker { display: none; }
.cf-cond-summary:hover { opacity: 0.85; }
.cf-cond-summary-ico {
    flex-shrink: 0;
    color: var(--fwd-fg-muted);
    line-height: 0;
}
.cf-cond-summary-ico svg { width: 18px; height: 18px; }
.cf-cond-summary-text { flex: 1; min-width: 0; }
.cf-cond-summary-label {
    font-size: 14px; font-weight: 700;
    color: var(--fwd-fg);
    letter-spacing: -0.01em;
}
.cf-cond-summary-hint {
    font-size: 12px;
    color: var(--fwd-fg-muted);
    margin-top: 2px;
    line-height: 1.45;
}
.cf-cond-summary-chev {
    flex-shrink: 0;
    color: var(--fwd-fg-muted);
    transition: transform 0.2s ease;
    line-height: 0;
}
.cf-cond-summary-chev svg { width: 16px; height: 16px; }
.cf-cond-section[open] .cf-cond-summary-chev { transform: rotate(180deg); }
.cf-cond-body {
    margin-top: 14px;
    padding: 4px 0 4px 30px;
    display: grid;
    grid-template-columns: max-content auto;
    column-gap: 18px;
    row-gap: 10px;
    align-items: center;
}
.cf-cond-section > .cf-warning { margin-top: 14px; }
.cf-cond-item { display: contents; }
.cf-cond-item-label {
    font-size: 13px;
    color: var(--fwd-fg);
    min-width: 0;
}
.cf-cond-item-codes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-self: start;
}
@media (max-width: 560px) {
    .cf-cond-body { grid-template-columns: 1fr; row-gap: 4px; }
    .cf-cond-item-codes { margin-bottom: 6px; }
}
.cf-cond-code {
    font-family: var(--fwd-font-mono);
    font-size: 13px; font-weight: 600;
    color: var(--fwd-fg);
    background: color-mix(in srgb, var(--fwd-fg) 5%, transparent);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border: none;
}
.cf-cond-code:hover {
    background: color-mix(in srgb, var(--fwd-accent) 12%, transparent);
    color: var(--fwd-accent);
}
.cf-cond-code.is-off:hover {
    background: color-mix(in srgb, var(--fwd-error) 12%, transparent);
    color: var(--fwd-error);
}
.cf-cond-code.is-static {
    cursor: default;
    color: var(--fwd-fg-muted);
}
.cf-cond-code.is-static:hover {
    background: color-mix(in srgb, var(--fwd-fg) 5%, transparent);
    color: var(--fwd-fg-muted);
}

/* ── Turn forwarding off (always-visible labeled block) ───── */
.cf-off-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--fwd-border-muted);
}
.cf-off-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.cf-off-ico {
    flex-shrink: 0;
    color: var(--fwd-fg-muted);
    line-height: 0;
}
.cf-off-ico svg { width: 18px; height: 18px; }
.cf-off-label {
    font-size: 14px; font-weight: 700;
    color: var(--fwd-fg);
    letter-spacing: -0.01em;
}
.cf-off-body {
    padding-left: 30px;
}
.cf-off-code {
    font-family: var(--fwd-font-mono);
    font-size: 14px; font-weight: 600;
    color: var(--fwd-fg);
    background: color-mix(in srgb, var(--fwd-fg) 5%, transparent);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: background 0.15s, color 0.15s;
}
.cf-off-code:hover {
    background: color-mix(in srgb, var(--fwd-error) 12%, transparent);
    color: var(--fwd-error);
}
.cf-off-help {
    font-size: 13px;
    color: var(--fwd-fg-muted);
    line-height: 1.5;
}

/* ── Source / confidence note (small muted footnote) ─────── */
.cf-source-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--fwd-border-muted);
    font-size: 12px;
    color: var(--fwd-fg-muted);
    line-height: 1.5;
}
.cf-source-note-ico {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.65;
    line-height: 0;
}
.cf-source-note-ico svg { width: 12px; height: 12px; }

/* ── Live "listening" card ───────────────────────────────── */
.cf-live-card {
    margin-left: 34px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--fwd-success-bright) 4%, var(--fwd-bg-elevated)), var(--fwd-bg-elevated));
    border: 1px solid var(--fwd-border);
    border-radius: 18px;
    padding: 28px;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 22px;
    align-items: center;
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}
.cf-live-card[data-state="connected"] {
    border-color: color-mix(in srgb, var(--fwd-success-bright) 40%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--fwd-success-bright) 6%, transparent), var(--fwd-bg-elevated));
    box-shadow: 0 12px 40px color-mix(in srgb, var(--fwd-success-bright) 12%, transparent);
}
.cf-live-card[data-state="failed"] {
    border-color: color-mix(in srgb, var(--fwd-error) 30%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--fwd-error) 4%, transparent), var(--fwd-bg-elevated));
}

.cf-live-pulse {
    width: 88px; height: 88px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.cf-live-ripple {
    position: absolute; inset: 14px;
    border-radius: 50%;
    border: 2px solid rgba(52, 211, 153, 0.42);
    opacity: 0;
    transform: scale(0.5);
    animation: cf-live-ripple-anim 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.cf-live-ripple:nth-child(2) { animation-delay: 0.65s; }
.cf-live-ripple:nth-child(3) { animation-delay: 1.3s; }
@keyframes cf-live-ripple-anim {
    0%   { transform: scale(0.5);  opacity: 0; }
    12%  { opacity: 0.7; }
    100% { transform: scale(1.7);  opacity: 0; }
}
.cf-live-card[data-state="connected"] .cf-live-ripple,
.cf-live-card[data-state="failed"] .cf-live-ripple { animation-play-state: paused; opacity: 0; }

.cf-live-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.48);
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 32px rgba(16,185,129,0.18);
    transition: all 0.4s ease;
    z-index: 1;
}
.cf-live-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.cf-live-card[data-state="idle"] .cf-live-icon {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.25);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.06);
    animation: cf-idle-pulse 2.6s ease-in-out infinite;
}
@keyframes cf-idle-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.06); }
    50%      { box-shadow: 0 0 0 9px rgba(34,197,94,0.02); }
}
.cf-live-card[data-state="connected"] .cf-live-icon {
    background: rgba(16, 185, 129, 0.32);
    border-color: rgba(16, 185, 129, 0.72);
    color: #a7f3d0;
    box-shadow: 0 0 44px rgba(16, 185, 129, 0.55);
    transform: scale(1.05);
}
.cf-live-card[data-state="failed"] .cf-live-icon {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.45);
    color: #fca5a5;
    box-shadow: none;
}
.cf-live-body { min-width: 0; }
.cf-live-h {
    font-size: 17px; font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    color: var(--fwd-fg);
    transition: color 0.3s ease;
}
.cf-live-card[data-state="connected"] .cf-live-h { color: #a7f3d0; }
.cf-live-card[data-state="failed"] .cf-live-h { color: #fca5a5; }
.cf-live-p { font-size: 14px; color: var(--fwd-fg-muted); line-height: 1.55; }
.cf-live-meta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px;
    font-family: var(--fwd-font-mono);
    font-size: 12px; font-weight: 600;
    color: #34d399;
}
.cf-live-meta-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #34d399;
    animation: cf-meta-pulse 1.6s ease-in-out infinite;
}
@keyframes cf-meta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
    50%      { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}
.cf-live-card[data-state="connected"] .cf-live-meta { color: #a7f3d0; }
.cf-live-card[data-state="connected"] .cf-live-meta-dot { background: #34d399; animation: none; }
.cf-live-card[data-state="failed"] .cf-live-meta { color: #fca5a5; }
.cf-live-card[data-state="failed"] .cf-live-meta-dot { background: var(--fwd-error); animation: none; }

.cf-link {
    color: var(--fwd-accent);
    text-decoration: none;
    font-weight: 600;
}
.cf-link:hover { text-decoration: underline; }

/* ── Toast for copy feedback ─────────────────────────────── */
.cf-toast {
    position: fixed; bottom: 32px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--fwd-bg-elevated);
    border: 1px solid var(--fwd-border);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13px; font-weight: 600;
    color: var(--fwd-success-bright);
    display: flex; align-items: center; gap: 8px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.25s;
    z-index: 100;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.cf-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.cf-toast svg { width: 14px; height: 14px; stroke: currentColor; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .cf-page { padding: 110px 18px 80px; }
    .v2-content .cf-page { padding: 0; }
    .cf-type-grid { grid-template-columns: 1fr 1fr; margin-left: 0; }
    .cf-platform-grid { margin-left: 0; max-width: none; }
    .cf-iphone-tip { margin-left: 0; }
    .cf-carrier-grid { grid-template-columns: 1fr 1fr; margin-left: 0; }
    .cf-steps-block, .cf-live-card, .cf-sect-sub { margin-left: 0; }
    .cf-live-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px 22px;
    }
    .cf-live-pulse { margin: 0 auto; }
    .cf-live-meta { justify-content: center; }
    .cf-dial-text { font-size: 16px; }
    .cf-steps-block { padding: 22px 20px 18px; }
    .cf-off-body { padding-left: 0; }
}
