/* RetireWealth landing page styles (the video sales page at each client's "/").
   Ported from the earlier demo landing template (demo-client-pages/styles.css) and re-themed to the tokens in base.css.
   base.css already covers the reset, fonts, .rw-wrap, header and footer, so none of that is here.
   Classes start with "lp-" so they cannot clash with the quiz or other shared styles. */

.lp-narrow { max-width: 760px; }

/* Text accents */
.lp-highlight { color: var(--accent); }
.lp-hl-underline {
    color: var(--accent);
    background: linear-gradient(180deg, transparent 70%, var(--gold-line) 70%);
    padding: 0 2px;
}
.lp-bold { font-weight: 700; color: var(--ink); }
.lp-underline {
    text-decoration: underline;
    text-decoration-color: var(--accent-line);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.lp-scan {
    background: linear-gradient(180deg, transparent 60%, var(--gold-soft) 60%);
    font-weight: 600;
    color: var(--ink);
}
.lp-page strong { color: var(--ink); font-weight: 700; }

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--accent-strong);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    padding: 7px 14px;
}
.lp-step-num {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); color: var(--on-accent);
    font-size: 11px; letter-spacing: 0; line-height: 1;
}

/* Hero */
.lp-hero {
    text-align: center;
    padding: 40px 0 64px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-glow), transparent 70%), var(--bg);
}
.lp-hero h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 18px auto 16px;
    max-width: 880px;
}
.lp-hero-sub {
    font-size: 17px;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}
.lp-hero-sub u {
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    color: var(--ink);
    font-weight: 600;
}
.lp-step { margin: 32px auto 14px; }

/* Video frame. Holds either the "coming soon" placeholder or the real player. */
.lp-video-frame {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 18px;
    padding: 6px;
    background: var(--bg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.lp-video-ratio {
    position: relative;
    padding-top: 56.25%;
    border-radius: 13px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 40%, var(--accent-strong) 0%, var(--ink) 75%);
}
.lp-video-ratio video,
.lp-video-ratio iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
    background: var(--ink);
    object-fit: cover;
}
.lp-play {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--bg); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.12), 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.lp-play svg { width: 28px; height: 28px; margin-left: 4px; }

.lp-video-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    padding: 16px;
    color: var(--on-accent);
}
.lp-video-placeholder .lp-play { opacity: 0.92; }
.lp-video-arc { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; pointer-events: none; }
.lp-video-label {
    position: relative;
    font-family: var(--font-head);
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--on-accent-muted);
}

/* Real player: big play/pause button and a seekable progress bar instead of native controls */
.lp-video-toggle {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    width: 100%; border: 0; padding: 0; cursor: pointer;
    background: var(--scrim);
    transition: background 0.2s ease;
}
.lp-video-toggle:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: -3px; }
.lp-video-toggle:hover .lp-play { transform: scale(1.06); }
.lp-video-toggle .lp-icon-pause { display: none; margin-left: 0; }
.lp-video-ratio.is-playing .lp-video-toggle { background: transparent; }
.lp-video-ratio.is-playing .lp-icon-play { display: none; }
.lp-video-ratio.is-playing .lp-icon-pause { display: block; }
/* While playing, the pause button shows only on hover or briefly after a tap */
.lp-video-ratio.is-playing .lp-play { opacity: 0; transform: scale(0.9); }
.lp-video-ratio.is-playing.show-control .lp-play { opacity: 1; transform: scale(1); }
@media (hover: hover) {
    .lp-video-ratio.is-playing .lp-video-toggle:hover .lp-play { opacity: 1; transform: scale(1); }
}
.lp-video-progress {
    position: absolute; left: 14px; right: 14px; bottom: 6px;
    height: 22px; z-index: 2;
    cursor: pointer; touch-action: none;
}
.lp-video-progress:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 2px; border-radius: 4px; }
.lp-video-track {
    position: absolute; left: 0; right: 0; top: 50%;
    height: 4px; margin-top: -2px; border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
    transition: height 0.15s ease, margin-top 0.15s ease;
}
.lp-video-fill { display: block; height: 100%; width: 0; background: var(--gold); }
.lp-video-knob {
    position: absolute; top: 50%; left: 0;
    width: 14px; height: 14px; margin: -7px 0 0 -7px;
    border-radius: 50%; background: var(--on-accent);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transform: scale(0.75);
    transition: transform 0.15s ease;
    pointer-events: none;
}
.lp-video-progress:hover .lp-video-track,
.lp-video-ratio.seeking .lp-video-track { height: 6px; margin-top: -3px; }
.lp-video-progress:hover .lp-video-knob,
.lp-video-progress:focus-visible .lp-video-knob,
.lp-video-ratio.seeking .lp-video-knob { transform: scale(1); }

.lp-hero-disclaimer {
    font-size: 12px;
    color: var(--ink-3);
    font-style: italic;
    max-width: 560px;
    margin: 14px auto 0;
    line-height: 1.5;
}

/* CTA pill. Every CTA links to /quiz, and quiz.js opens the quiz in place when it is on the page. */
.lp-cta {
    display: block;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
    color: var(--on-accent);
    text-align: center;
    text-decoration: none;
    font-family: var(--font-head);
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 28px var(--accent-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.lp-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 36px var(--accent-shadow);
}
.lp-cta:active { transform: translateY(0); }
.lp-cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lp-cta-main {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font-size: 18px; font-weight: 700; letter-spacing: -0.1px; line-height: 1.25;
}
.lp-cta-main svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.18s ease; }
.lp-cta:hover .lp-cta-main svg { transform: translateX(3px); }
.lp-cta-sub {
    display: block; margin-top: 4px;
    font-family: var(--font-body);
    font-size: 13px; font-weight: 500; color: var(--on-accent-muted);
}

.lp-trust {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px 22px;
    margin-top: 16px;
    list-style: none;
}
.lp-trust li {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 500;
}
.lp-trust svg {
    width: 16px; height: 16px; padding: 2px; flex-shrink: 0;
    border-radius: 50%; background: var(--accent-soft); color: var(--accent);
}

/* Sections */
.lp-section { padding: 72px 0; }
.lp-section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-section-head { text-align: center; margin-bottom: 40px; }
.lp-section-head h2 {
    font-size: 30px; font-weight: 800; line-height: 1.15;
    letter-spacing: -0.8px;
    max-width: 820px; margin: 16px auto 0;
}
.lp-section-sub { margin-top: 10px; font-size: 17px; color: var(--ink-2); }


/* Secondary link under the hero CTA */
.lp-text-link {
    display: inline-block; margin-top: 14px;
    font-family: var(--font-head); font-size: 16px; font-weight: 600;
    color: var(--accent); text-decoration: none;
}
.lp-text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Facts strip under the hero */
.lp-stats { background: var(--accent-strong); color: var(--on-accent); padding: 36px 0; }
.lp-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; text-align: center; }
.lp-stat-num { display: block; white-space: nowrap; font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--gold); }
.lp-stat-label { display: block; margin-top: 6px; font-size: 16px; color: var(--on-accent-muted); }

/* How it works */
.lp-steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 20px; }
.lp-step-card {
    position: relative; padding: 28px 24px 24px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.lp-step-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--accent); color: var(--on-accent);
    font-family: var(--font-head); font-size: 20px; font-weight: 800;
}
.lp-step-card h3 { margin-top: 16px; font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.lp-step-card p { margin-top: 8px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }

/* Why choose us cards */
.lp-cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.lp-card {
    padding: 32px 26px; text-align: center;
    background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md);
}
.lp-card h3 { font-size: 21px; font-weight: 400; line-height: 1.4; color: var(--ink); }
.lp-card h3 strong { font-weight: 700; }
.lp-card p { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }

/* Services strip (only rendered when a client has a services section) */
.lp-service-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 1040px; margin: 0 auto; }
.lp-service {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    min-height: 140px; padding: 22px 14px; text-align: center; border-radius: 14px;
    background: var(--ink); color: #FFFFFF; font-size: 17px; font-weight: 600; line-height: 1.35;
}
.lp-service svg { width: 34px; height: 34px; color: var(--gold); }
.lp-section.lp-services { padding: 48px 0; }
.lp-section.lp-services + .lp-section:not(.lp-section--soft) { padding-top: 0; }
@media (min-width: 768px) {
    .lp-section.lp-services { padding: 64px 0; }
    .lp-services .lp-section-head { margin-bottom: 32px; }
}

/* What you walk away with */
.lp-checklist { list-style: none; display: grid; gap: 22px; }
.lp-checklist li {
    position: relative; padding-left: 38px;
    font-size: 18px; line-height: 1.65; color: var(--ink-2);
}
.lp-checklist li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px;
    border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Meet your advisor */
.lp-advisor-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.lp-advisor-photo {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--bg-tint);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-width: 420px;
    margin: 0 auto;
}
.lp-advisor-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Headshots are usually cut out on white: keep the face in frame and the background clean. */
.lp-advisor-photo--headshot { background: var(--bg); }
.lp-advisor-photo--headshot img { object-position: center top; }
/* Until a headshot exists, keep the initials card small on phones so the bio is not pushed off screen. */
@media (max-width: 899px) {
    .lp-advisor-photo:has(.lp-photo-placeholder) { max-width: 240px; }
}
.lp-photo-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: radial-gradient(ellipse at 50% 35%, var(--accent-glow), transparent 70%), var(--bg-tint);
}
.lp-photo-initials {
    font-family: var(--font-head);
    font-size: 88px; font-weight: 800; letter-spacing: -2px; line-height: 1;
    color: var(--accent);
}
.lp-photo-label {
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--ink-3);
}
/* Short checklist under the photo. */
.lp-facts { list-style: none; margin: 20px auto 0; max-width: 420px; padding: 6px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.lp-facts li { position: relative; padding: 12px 0 12px 30px; font-size: 16px; font-weight: 600; color: var(--ink); }
.lp-facts li + li { border-top: 1px solid var(--line); }
.lp-facts li::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px;
    border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B4F8A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Bio text: a comfortable line length and no ragged single words at the end of paragraphs. */
.lp-advisor-main { max-width: 640px; }
.lp-advisor-bio p { font-size: 18px; line-height: 1.7; margin-bottom: 16px; text-wrap: pretty; }

.lp-pullquote {
    position: relative;
    margin: 24px 0;
    padding: 22px 24px 22px 56px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.lp-pullquote::before {
    content: '\201C';
    position: absolute; left: 18px; top: 8px;
    font-size: 54px; line-height: 1; color: var(--gold); font-family: Georgia, serif;
}

.lp-commitment {
    display: flex; gap: 16px;
    padding: 20px 22px;
    background: var(--bg-tint);
    border-radius: 12px;
}
.lp-commitment-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: var(--bg); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}
.lp-commitment-icon svg { width: 20px; height: 20px; }
.lp-commitment-label {
    font-family: var(--font-head);
    font-size: 12px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--accent-strong);
    margin-bottom: 4px;
}
.lp-commitment p:last-child { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
/* Justified text on wider screens only: on phones the narrow column would split words and leave gaps. */
@media (min-width: 768px) {
    .lp-advisor-bio p, .lp-commitment p:last-child { text-align: justify; }
}

.lp-section-cta { margin-top: 56px; }

/* FAQ accordion. Answers are only collapsed once landing.js has run (html.lp-js),
   so the answers stay readable if the script fails to load. */
.lp-faq-list {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.lp-faq-item + .lp-faq-item { border-top: 1px solid var(--line); }
.lp-faq-item h3 { font-size: inherit; }
.lp-faq-question {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px;
    background: none; border: 0; cursor: pointer; text-align: left;
    font-family: var(--font-head);
    font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ink);
    transition: background 0.15s ease;
}
.lp-faq-question:hover { background: var(--bg-soft); }
.lp-faq-question:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lp-faq-icon {
    position: relative; width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 50%; background: var(--accent-soft);
}
.lp-faq-icon::before, .lp-faq-icon::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 12px; height: 2px; border-radius: 2px;
    background: var(--accent); transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
}
.lp-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.lp-faq-question[aria-expanded="true"] .lp-faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.lp-js .lp-faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.lp-js .lp-faq-answer > div { overflow: hidden; visibility: hidden; transition: visibility 0.3s; }
.lp-js .lp-faq-answer.is-open { grid-template-rows: 1fr; }
.lp-js .lp-faq-answer.is-open > div { visibility: visible; }
.lp-faq-answer-inner { padding: 0 20px 22px; }
.lp-faq-answer p, .lp-faq-answer li { font-size: 16px; line-height: 1.75; max-width: 640px; }
.lp-faq-answer p + p { margin-top: 12px; }

/* Closing CTA */
.lp-closing {
    padding: 72px 0;
    text-align: center;
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
}
.lp-closing h2 {
    font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -0.8px;
    max-width: 880px; margin: 0 auto;
}
.lp-closing-sub { max-width: 720px; margin: 18px auto 32px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* Breakpoints */
@media (min-width: 640px) {
    .lp-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .lp-stat-num { font-size: 40px; }
    .lp-closing h2 { font-size: 38px; }
    .lp-hero h1 { font-size: 44px; }
    .lp-hero-sub { font-size: 19px; }
    .lp-section-head h2 { font-size: 38px; }
    .lp-cta-main { font-size: 20px; }
    .lp-faq-question { padding: 22px 28px; font-size: 18px; }
    .lp-faq-answer-inner { padding: 0 28px 24px; }
}
@media (min-width: 768px) {
    .lp-hero { padding: 64px 0 88px; }
    .lp-section { padding: 96px 0; }
    .lp-closing { padding: 96px 0; }
    .lp-cta { padding: 22px 28px; }
}
@media (min-width: 900px) {
    .lp-steps, .lp-cards { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .lp-service-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .lp-service { min-height: 168px; font-size: 19px; }
    .lp-closing h2 { font-size: 48px; letter-spacing: -1.2px; }
    .lp-hero h1 { font-size: 56px; letter-spacing: -1.6px; }
    .lp-section-head h2 { font-size: 44px; letter-spacing: -1.2px; }
    .lp-section-head { margin-bottom: 56px; }
    .lp-advisor-grid { grid-template-columns: 360px minmax(0, 640px); gap: 64px; justify-content: center; }
    .lp-advisor-photo { max-width: none; }
}
@media (max-width: 380px) {
    .lp-hero h1 { font-size: 29px; }
    .lp-cta { padding: 18px 16px; }
    .lp-cta-main { font-size: 17px; }
}
