/* ==========================================================================
   ContractsPal landing theme — "paper, ink & highlighter"
   Loaded ONLY by index.html, after styles.css and header-fix.css,
   so plain overrides here win by source order.
   ========================================================================== */

:root {
    --paper: #FAF7F0;
    --paper-deep: #F1EBDD;
    --surface: #FFFFFF;
    --ink: #1C2733;
    --ink-soft: #57626F;
    --line: #E7E0D0;
    --marker: #FFD84D;
    --marker-strong: #F5C518;
    --marker-soft: rgba(255, 216, 77, 0.5);
    --ink-dark: #151E29;
    --ink-darker: #10161F;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

body {
    background-color: var(--paper);
    color: var(--ink);
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 600;
}

/* Highlighter swipe on key words */
.hl {
    font-family: inherit; /* the `*` rule in styles.css would force Inter inside serif headings */
    background-image: linear-gradient(104deg,
        rgba(255, 216, 77, 0) 0.9%,
        var(--marker-soft) 2.4%,
        var(--marker-soft) 96%,
        rgba(255, 216, 77, 0) 98%);
    background-repeat: no-repeat;
    background-size: 100% 46%;
    background-position: 0 72%;
    padding: 0 0.1em;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    background-color: rgba(250, 247, 240, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
}

.logo, .logo-text { color: var(--ink); }

.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--ink-soft); }

.nav-links .nav-login {
    color: var(--ink-soft);
    font-weight: 500;
}
.nav-links .nav-login:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn { border-radius: 10px; }

.btn-primary {
    background-color: var(--marker);
    color: var(--ink);
    border: none;
    box-shadow: 0 1px 0 rgba(28, 39, 51, 0.2), 0 8px 20px -10px rgba(200, 160, 20, 0.55);
}

.btn-primary:hover {
    background-color: var(--marker-strong);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 2px 0 rgba(28, 39, 51, 0.2), 0 12px 24px -10px rgba(200, 160, 20, 0.6);
}

.btn-outline {
    border: 1.5px solid var(--ink);
    color: var(--ink);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--ink);
    color: var(--paper);
}

.nav-links .btn-primary {
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
}

/* header-fix.css paints the mobile-menu footer button black; keep it on-theme */
.mobile-menu-footer .btn-primary {
    background-color: var(--marker);
    color: var(--ink);
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-new {
    background: linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 85%);
    padding-top: 120px;
    padding-bottom: 4.5rem;
}

/* styles.css gives this overlay a purple radial that reads as a seam on paper */
.hero-background { display: none; }

.hero-new h1 {
    font-size: 4.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.hero-subtitle {
    color: var(--ink-soft);
    font-size: 1.3rem;
}

.hero-micro-note { color: var(--ink-soft); }

.hero-buttons { flex-wrap: wrap; justify-content: center; }

/* Honest proof pills (replaces fabricated ratings ticker) */
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 0.8rem;
    margin-top: 2rem;
}

.proof-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.proof-item::before {
    content: '✓';
    color: #2F7D4F;
    font-weight: 700;
}

/* Reviews ticker — fade edges match the paper hero, not styles.css white */
.hero-testimonials-ticker {
    margin-top: 1.75rem;
}

.hero-testimonials-ticker::before {
    background: linear-gradient(to right, var(--paper), transparent);
}

.hero-testimonials-ticker::after {
    background: linear-gradient(to left, var(--paper), transparent);
}

.ticker-item {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Value prop sections
   -------------------------------------------------------------------------- */
.value-prop { background-color: var(--surface); }
.value-prop-alt { background-color: var(--paper); }

.value-prop-content h2 {
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 1.95rem; /* fits the title on one line in the half-width column */
}

.value-prop-intro { color: var(--ink-soft); }
.value-prop-list li { color: var(--ink); }

.image-placeholder {
    background: linear-gradient(135deg, var(--paper-deep) 0%, #E6DDC8 100%);
    border: 1px solid var(--line);
}

.summary-preview {
    background: var(--paper);
    border: 2px solid var(--marker-strong);
}

.analysis-section li strong { color: var(--ink-soft); }

.example-label-small {
    background: var(--paper-deep);
    color: var(--ink-soft);
}

.chat-example { background: var(--paper-deep); }

/* Chat example as a section visual (value prop 2) */
.chat-placeholder .chat-example {
    width: 100%;
    margin-top: 0;
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(28, 39, 51, 0.08);
    padding: 1.8rem;
}

/* padding-block only: the shorthand would wipe the assistant's left padding */
.chat-placeholder .chat-message { padding-block: 0.8rem; }

.chat-placeholder .chat-message.assistant {
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
}

.chat-label { letter-spacing: 0.4px; }
.chat-message.user { color: var(--ink-soft); }
.chat-message.assistant {
    color: var(--ink);
    border-left: 3px solid var(--marker-strong);
}

.search-bar-mock, .contract-doc { border: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   Emotional section (dark)
   -------------------------------------------------------------------------- */
.emotional-section {
    background: linear-gradient(135deg, var(--ink-dark) 0%, #1F2D3D 100%);
}

.btn-cta-light {
    background-color: var(--marker);
    color: var(--ink);
    border-radius: 10px;
}

.btn-cta-light:hover {
    background-color: var(--marker-strong);
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.reviews {
    padding: 6rem 0;
    background-color: var(--surface);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1060px;
    margin: 0 auto;
}

.review-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2.4rem 1.8rem 1.8rem;
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 0.4rem;
    left: 1.4rem;
    font-family: var(--font-display);
    font-size: 3.2rem;
    line-height: 1;
    color: var(--marker-strong);
}

.review-quote {
    font-size: 0.97rem;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 1.2rem;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.review-author strong {
    color: var(--ink);
    font-size: 0.95rem;
}

.review-author span {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .review-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* --------------------------------------------------------------------------
   Personas ("who it's for")
   -------------------------------------------------------------------------- */
.personas {
    padding: 6rem 0;
    background-color: var(--paper);
}

.personas .section-title h2 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1060px;
    margin: 0 auto;
}

.persona-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(28, 39, 51, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(28, 39, 51, 0.08);
}

.persona-icon {
    display: block;
    font-size: 1.9rem;
    margin-bottom: 1rem;
}

.persona-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--ink);
}

.persona-card p {
    color: var(--ink-soft);
    font-size: 0.97rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.persona-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.persona-tags span {
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--paper-deep);
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}

@media (max-width: 900px) {
    .persona-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* --------------------------------------------------------------------------
   Section titles
   -------------------------------------------------------------------------- */
.section-title h2 {
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.section-title p, .pricing-intro { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-new {
    background: var(--surface);
    background-image: none;
}

.pricing-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(28, 39, 51, 0.04);
}

.pricing-card.featured {
    border: 2px solid var(--marker-strong);
    background-color: #FFFDF4;
}

.featured-label {
    background-color: var(--marker);
    color: var(--ink);
}

.pricing-features li { color: var(--ink-soft); }
.pricing-features li::before { color: #2F7D4F; }

.price { color: var(--ink); }
.price span, .price-subtext, .pricing-note, .pricing-footer { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { background-color: var(--paper); }

.faq-item {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.faq-item h3 { color: var(--ink); }
.faq-item p { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Final CTA (dark) — button was black-on-black before; now marker yellow
   -------------------------------------------------------------------------- */
.cta-new {
    background: linear-gradient(180deg, var(--ink-dark) 0%, var(--ink-darker) 100%);
}

.cta-new h2 { font-weight: 600; }

.btn-cta {
    background-color: var(--marker);
    color: var(--ink);
    border-radius: 10px;
    font-weight: 700;
}

.btn-cta:hover {
    background-color: var(--marker-strong);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-new {
    background: var(--ink-darker);
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-new { padding-top: 90px; }
    .hero-new h1 { font-size: 2.9rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .proof-item { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
    .section-title h2 { font-size: 1.9rem; }
}
