:root {
    --ink: #18181b;
    --slate: #27272a;
    --paper: #fafaf9;
    --stone: #e7e5e4;
    --muted: #71717a;
    --amber: #f59e0b;
    --white: #fff;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6
}

a {
    color: inherit
}

.shell {
    width: min(calc(100% - 40px), var(--max));
    margin: auto
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 250, 249, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--stone)
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 28px
}

.brand {
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 1.25rem;
    text-decoration: none
}

.brand b {
    color: var(--amber)
}

.navlinks {
    margin-left: auto;
    display: flex;
    gap: 22px;
    align-items: center
}

.navlinks a {
    text-decoration: none;
    color: #52525b;
    font-weight: 650
}

.navlinks a:hover {
    color: var(--ink)
}

.nav-cta {
    padding: 9px 14px;
    border: 1px solid var(--ink);
    border-radius: 999px
}

.hero {
    padding: 92px 0 72px;
    border-bottom: 1px solid var(--stone)
}

.eyebrow {
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #92400e
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 64px;
    align-items: center
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: .92;
    letter-spacing: -.065em;
    margin: 16px 0 28px;
    max-width: 900px
}

.hero h1 em {
    font-style: normal;
    color: #a16207
}

.lead {
    font-size: 1.25rem;
    color: #52525b;
    max-width: 760px
}

.portrait {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: 50% 18%;
    filter: grayscale(1);
    border-radius: 28px;
    border: 1px solid var(--stone)
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px
}

.button {
    display: inline-block;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 800;
    background: var(--ink);
    color: white
}

.button.alt {
    background: transparent;
    color: var(--ink);
    border: 1px solid #a8a29e
}

.section {
    padding: 72px 0
}

.section.dark {
    background: var(--ink);
    color: #f5f5f4
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -.045em;
    line-height: 1;
    margin: 0 0 18px
}

.intro {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.08rem
}

.dark .intro {
    color: #a1a1aa
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px
}

.card {
    background: white;
    border: 1px solid var(--stone);
    border-radius: 18px;
    padding: 24px
}

.dark .card {
    background: var(--slate);
    border-color: #3f3f46
}

.tag {
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #a16207
}

.card h3 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 10px 0
}

.card p {
    color: var(--muted)
}

.dark .card p {
    color: #a1a1aa
}

.question {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -.05em;
    max-width: 1000px;
    margin: 0
}

.question span {
    color: var(--amber)
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px
}

.pillars {
    display: grid;
    gap: 14px
}

.pillar {
    padding: 18px 0;
    border-bottom: 1px solid var(--stone)
}

.pillar b {
    display: block;
    font-size: 1.12rem
}

.pillar span {
    color: var(--muted)
}

.now {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 18px;
    padding: 26px
}

.footer {
    border-top: 1px solid var(--stone);
    padding: 32px 0;
    color: var(--muted);
    font-size: .9rem
}

.footer .shell {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap
}

.legal {
    max-width: 850px
}

.legal h1,
.legal h2,
.legal h3,
.legal h4 {
    line-height: 1.15;
    letter-spacing: -.02em
}

.legal h4 {
    margin-top: 34px;
    font-size: 1.25rem
}

.legal .card {
    margin: 20px 0
}

.kicker {
    font-weight: 850
}

.empty {
    font-style: italic;
    color: var(--muted)
}

@media(max-width:800px) {
    .navlinks a:not(.nav-cta) {
        display: none
    }

    .hero {
        padding-top: 60px
    }

    .hero-grid,
    .split {
        grid-template-columns: 1fr
    }

    .portrait {
        max-width: 330px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .shell {
        width: min(calc(100% - 28px), var(--max))
    }
}

.footnote {
    margin: 14px 2px 0;
    font-size: .9rem;
    color: var(--muted);
    font-style: italic
}

/* Revenue additions: retain the original AdviceGuy design. */
.revenue {
    border-top: 1px solid var(--stone)
}

.service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.service-card {
    display: flex;
    flex-direction: column
}

.service-card .button {
    margin-top: auto;
    align-self: flex-start
}

.service-price {
    font-size: 2rem;
    font-weight: 850
}

.service-price small {
    font-size: .8rem;
    font-weight: 500;
    color: var(--muted)
}

.service-note {
    margin-top: 24px
}

.diy {
    margin-top: 36px
}

.diy h3 {
    font-size: 1.5rem;
    margin: 8px 0
}

.legal-links {
    display: flex;
    gap: 12px 20px;
    flex-wrap: wrap
}

.legal h1 {
    font-size: clamp(2.3rem, 5vw, 4rem)
}

.legal h2 {
    margin-top: 36px;
    font-size: 1.7rem
}

.legal p,
.legal li {
    overflow-wrap: anywhere
}

fieldset {
    border: 1px solid var(--stone);
    border-radius: 16px;
    padding: 22px;
    margin: 28px 0
}

legend {
    font-weight: 800;
    padding: 0 8px
}

label {
    display: block;
    font-weight: 700;
    margin-top: 18px
}

input,
select,
textarea {
    font: inherit;
    max-width: 100%;
    width: 100%;
    padding: 11px;
    border: 1px solid #a8a29e;
    border-radius: 8px;
    background: #fff;
    color: var(--ink)
}

textarea {
    resize: vertical
}

.check {
    display: flex;
    gap: 10px;
    margin: 20px 0
}

.check input {
    width: auto;
    align-self: flex-start;
    margin-top: 7px
}

.field-help {
    color: #52525b;
    font-size: .95rem
}

button {
    font: inherit;
    cursor: pointer;
    border: 1px solid var(--ink)
}

:focus-visible {
    outline: 3px solid #a16207;
    outline-offset: 4px
}

section[id] {
    scroll-margin-top: 90px
}

#intake-result {
    margin-top: 40px
}

#intake-result[hidden] {
    display: none
}

@media(max-width:800px) {
    .service-cards {
        grid-template-columns: 1fr
    }

    .navlinks a[href="#services"] {
        display: inline
    }

    .nav {
        gap: 12px
    }

    .navlinks {
        gap: 12px
    }

    .navlinks a {
        font-size: .88rem
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}


/* ---------------------------------------------------------
   AdviceGuy intake form
   --------------------------------------------------------- */

#intake-form {
    max-width: 900px;
    margin: 2rem auto 0;
}

#intake-form fieldset {
    border: 1px solid var(--stone);
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 24px;
}

#intake-form legend {
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0 8px;
}

#intake-form label {
    display: block;
    margin: 18px 0 7px;
    font-weight: 600;
}

#intake-form input,
#intake-form select,
#intake-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--stone);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

#intake-form textarea {
    min-height: 130px;
    resize: vertical;
}

#intake-form input:focus,
#intake-form select:focus,
#intake-form textarea:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#intake-form .field-help {
    margin: 8px 0 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

#intake-form button {
    margin-top: 16px;
}

#intake-form input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin-right: 8px;
}

#intake-form label:has(input[type="checkbox"]) {
    font-weight: 400;
    line-height: 1.5;
}