:root {
    --bg: #f4efe4;
    --bg-warm: #f8efdb;
    --bg-glow: #faf0d3;
    --bg-shade: #e6dcc7;
    --text: #1f2733;
    --ink: #161e2a;
    --muted: #5a6473;
    --muted-soft: #8a909c;
    --line: #c9bda7;
    --line-soft: #ddd2bb;
    --link: #25354b;
    --link-hover: #0f1a2b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13  0 0 0 0 0.16  0 0 0 0 0.22  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
        radial-gradient(ellipse 900px 520px at 15% -10%, var(--bg-glow), transparent 60%),
        radial-gradient(ellipse 760px 480px at 95% 0%, var(--bg-warm), transparent 55%),
        radial-gradient(ellipse 1200px 600px at 50% 110%, var(--bg-shade), transparent 65%);
    background-attachment: fixed, scroll, scroll, scroll;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    min-height: 100vh;
}

.page {
    width: min(680px, 92vw);
    margin: 0 auto;
    padding: 2.6rem 0 1.6rem;
}

.hero {
    text-align: center;
    padding: 0.5rem 0 1.5rem;
    animation: fadeInUp 0.8s ease both;
}

.hero-logo {
    width: 116px;
    height: auto;
    margin: 0 auto 1.05rem;
    display: block;
    opacity: 0.92;
}

.brand-name {
    font-size: 0.7rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.7rem;
    margin-right: -0.34em;
}

.hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.85rem, 4.4vw, 2.65rem);
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -0.018em;
    max-width: 18ch;
    margin: 0 auto;
    color: var(--ink);
}

.subtitle {
    max-width: 46ch;
    margin: 1.05rem auto 0;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 251, 240, 0.55);
    color: var(--link);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    color: var(--link-hover);
    border-color: var(--link);
    background: rgba(255, 251, 240, 0.9);
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin: 0 auto;
    padding: 1.6rem 0 0.2rem;
    animation: fadeInUp 0.7s ease 0.25s both;
}

.ornament-line {
    width: 66px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

.ornament-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--line);
}

.closing {
    padding: 1rem 0 1.4rem;
    text-align: center;
    animation: fadeInUp 0.7s ease 0.35s both;
}

.contact-line {
    max-width: 46ch;
    margin: 0 auto;
    color: var(--muted);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.003em;
}

.email-link {
    display: inline-block;
    margin-top: 0.9rem;
    color: var(--link);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: 0.008em;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.email-link:hover {
    color: var(--link-hover);
    border-color: var(--link);
}

footer {
    margin-top: 1.6rem;
    padding-top: 1.05rem;
    border-top: 1px solid var(--line-soft);
    animation: fadeInUp 0.6s ease 0.5s both;
}

footer p {
    text-align: center;
    color: var(--muted-soft);
    font-size: 0.72rem;
    letter-spacing: 0.025em;
    line-height: 1.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .page {
        padding-top: 1.9rem;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .hero-logo {
        width: 94px;
    }

    .hero {
        padding-top: 0.4rem;
    }

    .ornament-line {
        width: 48px;
    }
}

/* ============================================================
   Retainers page
   ============================================================ */

.brand-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.brand-link:hover {
    opacity: 0.7;
}

.hero-retainers h1 {
    max-width: 20ch;
}

.tier-band {
    width: min(1080px, 92vw);
    margin: 0 auto;
    padding: 1.4rem 0 0;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.tier {
    background: rgba(255, 251, 240, 0.55);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 1.7rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.tier-head {
    margin-bottom: 0.9rem;
}

.tier-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.tier-tag {
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
    font-size: 0.98rem;
    color: var(--muted);
    margin-top: 0.35rem;
    line-height: 1.4;
    min-height: 2.8rem;
}

.tier-price {
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 0.8rem 0;
    margin-bottom: 1rem;
}

.tier-price-lead {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.3;
}

.tier-price-lead strong {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    font-size: 1.55rem;
    color: var(--ink);
    letter-spacing: -0.015em;
    margin: 0 0.1em;
}

.tier-range {
    font-size: 0.78rem;
    color: var(--muted-soft);
    margin-top: 0.25rem;
    letter-spacing: 0.015em;
}

.tier-for {
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.55;
    margin-bottom: 0.95rem;
}

.step-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--link);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.step-link:hover {
    color: var(--link-hover);
    border-color: var(--link);
}

.tier-footnote {
    margin-top: 1.5rem;
    text-align: center;
    font-family: 'DM Serif Display', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--muted);
}

.tier-footnote a {
    color: var(--link);
    text-decoration: none;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--line);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.tier-footnote a:hover {
    color: var(--link-hover);
    border-color: var(--link);
}

.tier-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.tier-list li {
    padding: 0.32rem 0 0.32rem 0.95rem;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px dotted var(--line-soft);
}

.tier-list li:last-child {
    border-bottom: none;
}

.tier-list li::before {
    content: "·";
    position: absolute;
    left: 0.2rem;
    top: 0.2rem;
    color: var(--line);
    font-weight: 700;
    font-size: 1.1rem;
}

/* prose sections after tier band */

.prose-section {
    padding: 2.1rem 0 0.4rem;
}

.section-h {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.012em;
    margin-bottom: 0.95rem;
    text-align: center;
    line-height: 1.2;
}

.section-intro {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.7;
    max-width: 56ch;
    margin: 0 auto 1.4rem;
}

.steps {
    list-style: none;
    padding: 0;
    margin: 0.4rem auto;
    max-width: 56ch;
}

.steps > li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.steps > li:last-child {
    border-bottom: none;
}

.step-head {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.step-num {
    color: var(--muted-soft);
    font-style: italic;
    margin-right: 0.4rem;
}

.step-meta {
    color: var(--muted-soft);
    font-style: italic;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    margin-left: 0.15rem;
}

.step-body {
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.6;
}

.plain-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem auto;
    max-width: 56ch;
    font-size: 0.93rem;
    color: var(--text);
}

.plain-list li {
    padding: 0.5rem 0 0.5rem 1.1rem;
    position: relative;
    line-height: 1.55;
    border-bottom: 1px dotted var(--line-soft);
}

.plain-list li:last-child {
    border-bottom: none;
}

.plain-list li::before {
    content: "·";
    position: absolute;
    left: 0.25rem;
    top: 0.4rem;
    color: var(--line);
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .tier-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tier-band {
        padding-top: 0.6rem;
    }

    /* equal-height tagline alignment only matters in the 3-column grid */
    .tier-tag {
        min-height: 0;
    }
}
