/* ========================================
   FIGHT READY — Daru Publishing landing page
   Shares the phildaru.com system: black, white, gold;
   Montserrat headings, Inter body, pill buttons.
   ======================================== */

/* ============ Tokens ============ */
:root {
    --black: #000000;
    --surface: #0c0d12;
    --surface-raised: #121318;
    --white: #ffffff;
    --text-body: #d4d4d8;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;

    --gold: #d4af37;
    --gold-soft: #c9a84c;
    --gold-light: #e0c068;
    --gold-dark: #b8941f;
    --gold-gradient: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    --gold-border: rgba(201, 168, 76, 0.2);
    --gold-border-strong: rgba(201, 168, 76, 0.5);
    --gold-tint: rgba(201, 168, 76, 0.08);
    --line: rgba(255, 255, 255, 0.08);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container: 1200px;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-pill: 999px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============ Base ============ */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.gold { color: var(--gold); }
.nowrap { white-space: nowrap; }
em { color: inherit; font-style: italic; }

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

/* Section eyebrow: quiet uppercase label with a short gold rule */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.chip::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--gold);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 20px;
}

.section-sub { color: var(--text-muted); }
.section-sub strong { color: var(--white); }

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section { padding: 96px 0; }
.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* ============ Buttons (phildaru.com pills) ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--gold-gradient);
    color: var(--black);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.24);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--white);
}

.btn-large { padding: 14px 36px; font-size: 1.05rem; }

/* ============ Header (floating pill) ============ */
.site-header {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 16px;
    pointer-events: none;
}

.header-pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px 10px 10px 28px;
    background: rgba(12, 13, 18, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}

.header-brand { display: flex; flex-shrink: 0; }
.header-brand img {
    width: auto;
    height: 32px;
}

.btn-header {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* ============ Hero ============ */
.hero {
    position: relative;
    padding: 152px 0 96px;
    background:
        radial-gradient(ellipse 60% 50% at 75% 40%, rgba(212, 175, 55, 0.05), transparent 70%),
        var(--black);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: center;
}

.hero-emblem {
    width: 88px;
    height: auto;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--white);
    max-width: 520px;
    margin: 0 0 16px;
}

.hero-byline {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 0 32px;
}
.hero-byline strong { color: var(--white); font-weight: 600; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.hero-facts dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.hero-facts dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.hero-cover {
    justify-self: center;
    max-width: 420px;
}
.hero-cover img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.9);
}

/* ============ Manifesto ============ */
.manifesto {
    padding: 80px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.manifesto-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 20px;
}
.manifesto-tag {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ============ Book ============ */
.book-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: center;
}
.book-image img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}
.book-copy p { color: var(--text-body); margin: 0 0 16px; }

.book-points {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}
.book-points li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    font-weight: 500;
}
.book-points li:last-child { border-bottom: 1px solid var(--line); }
.book-points i { color: var(--gold); font-size: 0.875rem; }

/* ============ Foreword ============ */
/* No bottom padding: the photo's cut-off legs rest on the section's bottom border,
   and a negative top margin lets him rise above the section into the one before. */
.foreword {
    padding-bottom: 0;
    border-top: 1px solid var(--line);
}
.foreword-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: end;
}
.foreword-copy {
    align-self: center;
    padding-bottom: 96px;
}
.foreword-text {
    margin: 0;
    color: var(--text-body);
    font-size: 1.125rem;
}
.foreword-photo {
    position: relative;
    z-index: 1;
    margin-top: -120px;
}
.foreword-photo img {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* ============ Pricing ============ */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pkg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 32px 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.2s var(--ease);
}
.pkg-card:hover { border-color: rgba(255, 255, 255, 0.16); }

.pkg-featured,
.pkg-featured:hover { border-color: var(--gold-border-strong); }

/* On the gray pricing section, cards drop to black so they lift off the background */
.pricing .pkg-card { background: var(--black); }

.pkg-badge {
    position: absolute;
    top: -14px;
    left: 32px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--gold-gradient);
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pkg-card h3 { font-size: 1.25rem; margin-bottom: 20px; }

.pkg-includes {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 12px;
    color: var(--text-body);
}
.pkg-includes li { display: flex; gap: 12px; align-items: baseline; }
.pkg-includes i { color: var(--gold); font-size: 0.875rem; }

.pkg-price {
    margin: auto 0 4px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}
.pkg-was {
    margin-right: 8px;
    color: var(--text-dim);
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: middle;
}
.pkg-save { color: var(--gold); font-weight: 600; }
.pkg-note {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.875rem;
}
.pkg-card .btn { margin-top: 24px; }

.bulk-callout {
    margin: 20px 0 0;
    text-align: center;
    font-size: 0.875rem;
}
.bulk-callout a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.24);
    transition: color 0.2s var(--ease);
}
.bulk-callout a:hover { color: var(--gold); }
.bulk-callout i { font-size: 0.75rem; margin-left: 4px; }

.pricing-footnote {
    margin: 32px 0 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* ============ Bulk page ============ */
.bulk-hero { padding-bottom: 32px; }
.bulk-hero-inner { text-align: center; max-width: 680px; }
.bulk-hero .hero-emblem { margin: 0 auto 24px; }
.bulk-section { padding-top: 32px; }
.bulk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.bulk-grid .pkg-card { padding-top: 32px; }

/* ============ Author ============ */
.author-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: center;
}
.author-photo img {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    /* Photo has a black backdrop; let it melt into the section surface */
    mix-blend-mode: lighten;
    -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
    mask-image: linear-gradient(180deg, #000 75%, transparent);
}
.author-copy p { color: var(--text-body); margin: 0; }

/* ============ Waitlist (currently disabled in markup) ============ */
.waitlist { text-align: center; }
.waitlist-inner { max-width: 560px; }
.waitlist p { color: var(--text-muted); }
.waitlist-form {
    display: flex;
    gap: 12px;
    margin: 32px 0 12px;
}
.waitlist-form input {
    flex: 1;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
}
.waitlist-form input::placeholder { color: var(--text-dim); }
.waitlist-form input:focus { outline: none; border-color: var(--gold); }
.form-status { min-height: 24px; font-weight: 600; }
.form-status.success { color: var(--gold); }
.form-status.error { color: #f87171; }

/* ============ Footer ============ */
.site-footer {
    padding: 64px 0 32px;
    background: linear-gradient(180deg, var(--surface-raised), var(--black));
    border-top: 1px solid var(--line);
    text-align: center;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-brand img { width: 40px; height: 40px; }
.footer-tag {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.footer-social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-body);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-dim);
    font-size: 0.875rem;
}
.footer-bottom p { margin: 0 0 8px; }
.footer-legal { display: flex; justify-content: center; gap: 24px; }
.footer-legal a:hover { color: var(--white); }

/* ============ Scroll reveal ============ */
.reveal-on [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal-on [data-reveal="rise"] { transform: translateY(48px); transition-duration: 0.8s; }
.reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
    .hero-inner,
    .book-grid,
    .author-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .hero-copy { text-align: center; }
    .hero-emblem { margin-left: auto; margin-right: auto; }
    .hero-subtitle, .hero-byline { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-facts { justify-content: center; }
    .hero-cover { max-width: 340px; }
    .book-image { display: none; }  /* same book as the hero cover; skip it when stacked */
    .author-photo { order: -1; }
    .foreword-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .foreword-copy { text-align: center; padding-bottom: 32px; }
    .foreword-photo { margin-top: 0; }
    .foreword-photo img { max-width: 320px; }
    .author-copy { text-align: center; }
    .pkg-grid { grid-template-columns: 1fr; }
    .bulk-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .section { padding: 64px 0; }
    .section-title { font-size: 1.75rem; margin-bottom: 16px; }
    .header-pill { padding: 8px 8px 8px 20px; }
    .header-brand img { height: 28px; }
    .btn-header { min-height: 40px; padding: 8px 18px; font-size: 0.875rem; }

    /* Hero: one-line title, one primary action, facts in a single row */
    .hero { padding: 104px 0 56px; }
    .hero-inner { gap: 40px; }
    .hero-emblem { width: 64px; margin-bottom: 16px; }
    .hero-title { font-size: 2.75rem; margin-bottom: 12px; }
    .hero-subtitle { font-size: 1.125rem; margin-bottom: 12px; }
    .hero-byline { font-size: 0.875rem; margin-bottom: 24px; }
    .hero-actions { gap: 4px; margin-bottom: 28px; }
    .hero-actions .btn { width: 100%; }
    .hero-actions .btn-secondary { border-color: transparent; font-size: 0.9375rem; }
    .hero-facts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding-top: 20px;
    }
    .hero-facts dt { font-size: 0.6875rem; letter-spacing: 0.06em; }
    .hero-facts dd { font-size: 1rem; }
    .hero-cover { max-width: 260px; }

    /* Left-align reading text; centered paragraphs are hard to scan on a phone */
    .section-head,
    .foreword-copy,
    .author-copy { text-align: left; }
    .section-head { margin-bottom: 32px; }

    .manifesto { padding: 56px 0; }
    .manifesto-quote { font-size: 1.375rem; }
    .book-points { margin-top: 24px; }
    .foreword-text { font-size: 1rem; }
    .foreword-photo img { max-width: 280px; }
    .author-photo img { max-width: 260px; }

    .pkg-grid { gap: 20px; }
    .pkg-card { padding: 32px 20px 20px; }
    .pkg-badge { left: 20px; }
    .pkg-price { font-size: 2rem; }
    .pkg-was { font-size: 1rem; }
    .bulk-grid { grid-template-columns: 1fr; }
    .bulk-hero { padding-bottom: 16px; }
    .bulk-section { padding-top: 16px; }
    .waitlist-form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .reveal-on [data-reveal] { opacity: 1; transform: none; }
}
.buy-btn[hidden] { display: none; }
