/* ==========================================================================
   RecordTheirStory — marketing stylesheet
   Shared by every SEO/AEO landing page (layouts/marketing.blade.php). Standalone
   (no Tailwind/build dependency) and brand-matched to public/index.html so the
   content pages feel like one site with the hero. Fonts: Fraunces + Inter.
   ========================================================================== */

:root {
    --cream: #faf5ec;
    --cream-deep: #f3ead9;
    --ink: #2a221c;
    --ink-soft: #6b5d50;
    --terracotta: #bf6a40;
    --terracotta-deep: #a4552e;
    --sage: #7d8a6f;
    --sage-deep: #5f6c52;
    --gold: #d9a567;
    --line: #e6dac5;
    --shadow: 0 24px 60px -28px rgba(74, 47, 25, 0.45);
    --shadow-sm: 0 18px 40px -30px rgba(74, 47, 25, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--sage);
    margin: 0 0 18px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1.5px;
    background: var(--sage);
    display: inline-block;
}

.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(180deg, var(--terracotta), var(--terracotta-deep));
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 8px 20px -8px rgba(164, 85, 46, 0.7);
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 12px 26px -8px rgba(164, 85, 46, 0.7);
}

.btn-ghost {
    color: var(--terracotta-deep);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 2px 0 rgba(120, 80, 40, 0.04);
}

.btn-ghost:hover {
    filter: none;
    box-shadow: 0 8px 20px -12px rgba(74, 47, 25, 0.5);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 245, 236, 0.85);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
    flex: none;
}

.brand .mark { width: 32px; height: 32px; flex: none; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--terracotta-deep); }

.nav-cta { display: flex; align-items: center; gap: 14px; flex: none; }

.nav-cta .signin {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
}

.nav-cta .signin:hover { color: var(--terracotta-deep); }

.nav-toggle { display: none; }

/* ---------- Page hero (content pages) ---------- */
.page-hero {
    padding: 64px 0 28px;
    text-align: center;
}

.page-hero.left { text-align: left; }

.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.page-hero h1 em { font-style: italic; color: var(--terracotta-deep); }

.page-hero .lede {
    margin: 22px auto 0;
    max-width: 36em;
    font-size: 1.18rem;
    color: var(--ink-soft);
}

.page-hero.left .lede { margin-left: 0; }

.page-hero .cta-row {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.page-hero.left .cta-row { justify-content: flex-start; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    padding: 22px 0 0;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta-deep); }
.breadcrumb .sep { margin: 0 8px; color: var(--gold); }

/* ---------- Generic section ---------- */
section { position: relative; }

.section { padding: 56px 0; }

.section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 44px;
}

.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

.section-head p {
    color: var(--ink-soft);
    margin: 16px 0 0;
    font-size: 1.08rem;
}

/* ---------- Prose / article ---------- */
.prose { max-width: 720px; }
.prose.center { margin: 0 auto; }

.prose h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    margin: 48px 0 0;
}

.prose h3 {
    font-size: 1.32rem;
    margin: 34px 0 0;
}

.prose p { margin: 16px 0 0; color: var(--ink); }
.prose p.muted { color: var(--ink-soft); }

.prose ul, .prose ol { margin: 16px 0 0; padding-left: 1.3em; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--terracotta); }

.prose a:not(.btn) {
    color: var(--terracotta-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose > :first-child { margin-top: 0; }

/* ---------- Cards / grids ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.cards.two { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px -28px rgba(74, 47, 25, 0.5);
}

.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-soft); margin: 10px 0 0; font-size: 1rem; }

.step-no {
    font-family: "Fraunces", serif;
    font-style: italic;
    font-size: 15px;
    color: var(--terracotta);
    letter-spacing: 0.04em;
}

.icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--cream-deep);
    display: grid;
    place-items: center;
    margin: 14px 0 18px;
    color: var(--terracotta-deep);
}

.icon svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Numbered step list (how it works) ---------- */
.steps-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }

.step-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
}

.step-row .num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Fraunces", serif;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(180deg, var(--terracotta), var(--terracotta-deep));
}

.step-row h3 { font-size: 1.3rem; }
.step-row p { color: var(--ink-soft); margin: 8px 0 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }

.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 4px 24px;
    box-shadow: var(--shadow-sm);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 28px 20px 0;
    position: relative;
    font-family: "Fraunces", serif;
    font-size: 1.18rem;
    color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Inter", sans-serif;
    font-size: 1.5rem;
    color: var(--terracotta);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after { content: "\2013"; }

.faq .answer { padding: 0 0 22px; color: var(--ink-soft); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer :last-child { margin-bottom: 0; }

/* ---------- Pricing ---------- */
.price-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 40px 36px;
    text-align: center;
    box-shadow: var(--shadow);
}

.price-card .kicker {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
}

.price-card .amount {
    font-family: "Fraunces", serif;
    font-size: clamp(2.8rem, 7vw, 3.6rem);
    color: var(--ink);
    margin: 10px 0 2px;
}

.price-card .amount small { font-size: 1rem; color: var(--ink-soft); font-family: "Inter", sans-serif; }

.price-card .sub { color: var(--ink-soft); margin: 0 0 22px; }

.includes {
    text-align: left;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.includes li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--ink);
}

.includes svg {
    width: 20px; height: 20px; flex: none; margin-top: 2px;
    stroke: var(--sage-deep); stroke-width: 2.2; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Question guide (chapters) ---------- */
.chapter {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    margin-top: 18px;
}

.chapter h3 {
    font-size: 1.34rem;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.chapter h3 .ch-no {
    font-style: italic;
    font-size: 1rem;
    color: var(--terracotta);
}

.chapter ol { margin: 14px 0 0; padding-left: 1.3em; color: var(--ink-soft); }
.chapter li { margin: 9px 0; }
.chapter li::marker { color: var(--gold); }

/* ---------- Promise / CTA band ---------- */
.band { margin: 60px 0; }

.band-inner {
    background: linear-gradient(135deg, #2f3a2a, #3c4733);
    color: #f2ede2;
    border-radius: 26px;
    padding: 60px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.band-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 85% 10%, rgba(191, 106, 64, 0.4), transparent 60%),
        radial-gradient(50% 70% at 10% 100%, rgba(125, 138, 111, 0.5), transparent 55%);
    pointer-events: none;
}

.band-inner > * { position: relative; }

.band-inner h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    max-width: 18em;
    margin: 0 auto;
}

.band-inner h2 em { font-style: italic; color: #e6a877; }

.band-inner p {
    color: rgba(242, 237, 226, 0.82);
    max-width: 34em;
    margin: 16px auto 0;
    font-size: 1.06rem;
}

.band-inner .cta-row { margin-top: 28px; justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; }
.band-inner .btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255,255,255,0.25); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 56px 0 44px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--ink-soft); font-size: 14.5px; max-width: 26em; margin: 0; }

.footer-col h4 {
    font-family: "Inter", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage);
    margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; }
.footer-col a:hover { color: var(--terracotta-deep); }

.footer-base {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.footer-base a { color: var(--terracotta-deep); text-decoration: none; font-weight: 500; }

/* ---------- Pills / utilities ---------- */
.pill {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--terracotta-deep);
    background: #fff;
    border: 1px solid var(--line);
    padding: 7px 14px;
    border-radius: 999px;
}

.center { text-align: center; }
.mt-sm { margin-top: 14px; }
.mt-md { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .cards, .cards.two { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .band-inner { padding: 44px 28px; }
    .nav-links { display: none; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 8px 14px;
        font: inherit;
        font-size: 14px;
        font-weight: 600;
        color: var(--ink);
        cursor: pointer;
    }
    /* Mobile menu: revealed by the checkbox hack in the layout. */
    .nav-menu:checked ~ .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        padding: 18px 28px 24px;
    }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .wrap { padding: 0 20px; }
    .step-row { grid-template-columns: 1fr; gap: 12px; }
    .price-card { padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.7s ease forwards;
}

.reveal.d1 { animation-delay: 0.07s; }
.reveal.d2 { animation-delay: 0.14s; }
.reveal.d3 { animation-delay: 0.21s; }

@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
