:root {
    color-scheme: light;
    --green: #0b4f3a;
    --green-dark: #073a2c;
    --green-soft: #dfece6;
    --accent: #b7791f;
    --ink: #102a24;
    --muted: #52635e;
    --paper: #f7f8f4;
    --surface: #ffffff;
    --line: #d9dfda;
    --danger: #9b2c2c;
    --radius: 16px;
    --shadow: 0 18px 50px rgba(11, 79, 58, .12);
    --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.65; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #d49a3a; outline-offset: 3px; }
.container { width: var(--container); margin-inline: auto; }
.narrow { max-width: 840px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 248, 244, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { display: block; width: 44px; height: 44px; object-fit: contain; }
.brand strong, .brand small { display: block; line-height: 1.2; }
.brand strong { font-size: 1rem; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav a { text-decoration: none; font-size: .89rem; font-weight: 650; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.menu-button { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 13px; color: var(--ink); font-weight: 700; }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 22px; border: 2px solid var(--green); border-radius: 12px; background: var(--green); color: #fff; text-decoration: none; font-weight: 750; line-height: 1.15; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover { background: var(--green-dark); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 42px; padding: 9px 15px; font-size: .86rem; white-space: nowrap; }
.button-ghost { color: var(--green-dark); background: rgba(255,255,255,.88); }
.button-ghost:hover { color: #fff; }
.button-light { border-color: #fff; background: #fff; color: var(--green-dark); }
.button-light:hover { background: #eaf3ee; }
.text-link { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--green); font-weight: 750; text-underline-offset: 4px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 700; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 5.3rem); max-width: 13ch; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); margin-bottom: 18px; }
h3 { font-size: 1.35rem; }
.section { padding: 96px 0; }
.soft-section { background: var(--green-soft); }

.hero { position: relative; min-height: min(760px, calc(100dvh - 76px)); display: grid; align-items: center; overflow: hidden; background: #dde5df; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247,248,244,.98) 0%, rgba(247,248,244,.92) 35%, rgba(247,248,244,.18) 70%); }
.hero-content { position: relative; padding-block: 80px; }
.hero-content > p:not(.eyebrow) { max-width: 580px; font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proof-strip { background: var(--green); color: #fff; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { padding: 26px 22px; border-right: 1px solid rgba(255,255,255,.2); }
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong, .proof-grid span { display: block; }
.proof-grid strong { font-size: 1.25rem; }
.proof-grid span { color: rgba(255,255,255,.76); font-size: .88rem; }
.proof-three { grid-template-columns: repeat(3, 1fr); }

.intro-grid, .docs-grid, .faq, .story-grid, .contact-info { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9vw; align-items: start; }
.intro-grid > div:first-child, .docs-grid > div:first-child, .faq > div:first-child { position: sticky; top: 112px; }
.service-list a { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.service-list a:hover strong { color: var(--green); }
.service-list a > span, .product-number { color: var(--accent); font-weight: 800; }
.service-list strong, .service-list small { display: block; }
.service-list strong { font-size: 1.45rem; }
.service-list small { color: var(--muted); }
.process-section { background: #eef2ed; }
.process { counter-reset: stage; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 48px 0 0; list-style: none; }
.process li { padding: 28px 28px 0 0; border-top: 2px solid var(--green); }
.process li::before { counter-increment: stage; content: counter(stage); display: block; color: var(--accent); font-weight: 800; margin-bottom: 28px; }
.process li + li { padding-left: 28px; }
.process strong { font-size: 1.08rem; }
.process p { margin: 10px 0 0; color: var(--muted); font-size: .94rem; }
.agent-banner { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 450px; overflow: hidden; border-radius: var(--radius); background: var(--green); color: #fff; box-shadow: var(--shadow); }
.agent-banner > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 6vw, 72px); }
.agent-banner h2 { margin-bottom: 14px; }
.agent-banner img { width: 100%; height: 100%; object-fit: cover; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 110px 0 80px; background: linear-gradient(135deg, var(--green-soft), var(--paper)); }
.page-hero::after { content: ""; position: absolute; z-index: -1; right: 4vw; top: 50%; width: min(28vw, 360px); aspect-ratio: 1; background: url("../images/logo-mark.webp") center / contain no-repeat; opacity: .045; transform: translateY(-50%) rotate(-8deg); }
.page-hero.compact { padding-bottom: 55px; }
.page-hero h1 { max-width: 15ch; }
.page-hero p:not(.eyebrow) { max-width: 680px; font-size: 1.15rem; }
.product-stack { display: grid; gap: 18px; }
.product-row { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.product-row h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.product-row p { max-width: 740px; color: var(--muted); }
.product-featured { border-color: var(--green); background: var(--green-soft); }
.check-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 28px 0 0; list-style: none; }
.check-list li { padding-left: 22px; position: relative; font-weight: 650; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.document-list { list-style: none; padding: 0; margin: 0; }
.document-list li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid rgba(11,79,58,.2); }
.document-list span { color: var(--muted); }
details { padding: 24px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 750; font-size: 1.1rem; }
details p { margin: 14px 0 0; color: var(--muted); }
.cta-section { padding: 64px 0; background: var(--green); color: #fff; }
.cta-section .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta-section h2 { margin: 0; max-width: 18ch; font-size: clamp(1.8rem, 4vw, 3rem); }

.calculator-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.calculator { display: grid; gap: 28px; }
.field { position: relative; }
.field label, fieldset legend { display: block; margin-bottom: 9px; font-weight: 750; }
.field input[type="number"], .form-panel input, .form-panel textarea { width: 100%; border: 1px solid #aebbb5; border-radius: 10px; background: var(--surface); color: var(--ink); padding: 14px 16px; }
.field input[type="number"] { padding-left: 50px; font-size: 1.35rem; font-weight: 750; }
.input-prefix { position: absolute; left: 16px; top: 49px; color: var(--muted); }
.range { width: 100%; margin-top: 22px; accent-color: var(--green); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
fieldset { padding: 0; border: 0; }
.tenor-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tenor-options label { position: relative; display: grid; place-items: center; min-height: 54px; border: 1px solid #aebbb5; border-radius: 10px; background: var(--surface); cursor: pointer; font-weight: 700; }
.tenor-options input { position: absolute; opacity: 0; }
.tenor-options label:has(input:checked) { background: var(--green); color: #fff; border-color: var(--green); }
.result { position: sticky; top: 112px; padding: 36px; border-radius: var(--radius); background: var(--green); color: #fff; box-shadow: var(--shadow); }
.result > strong { display: block; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1; margin: 16px 0 30px; }
.result dl { margin: 0 0 24px; }
.result dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.result dd { margin: 0; font-weight: 750; }
.fine-print { color: rgba(255,255,255,.76); font-size: .85rem; }
.result .button { width: 100%; background: #fff; color: var(--green-dark); border-color: #fff; }
.notice { max-width: 850px; }
.notice strong { font-size: 1.35rem; }

.agent-hero { position: relative; min-height: 680px; display: grid; align-items: center; overflow: hidden; background: var(--green); }
.agent-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.agent-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,58,44,.96), rgba(7,58,44,.7) 48%, rgba(7,58,44,.05) 78%); }
.agent-copy { position: relative; color: #fff; }
.agent-copy > p:not(.eyebrow) { max-width: 580px; font-size: 1.18rem; }
.agent-content { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items: start; }
.plain-steps { padding: 0; margin: 36px 0 0; list-style: none; }
.plain-steps li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.plain-steps strong, .plain-steps span { display: block; }
.plain-steps span { margin-top: 5px; color: var(--muted); }
.form-panel { padding: clamp(28px, 5vw, 52px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.form-panel form { display: grid; gap: 18px; margin-top: 26px; }
.form-panel label { display: grid; gap: 7px; font-weight: 700; }
.form-panel small { color: var(--muted); }
.alert { padding: 14px 16px; margin-top: 18px; border-radius: 10px; }
.alert.success { background: var(--green-soft); color: var(--green-dark); }
.alert.error { background: #fde8e8; color: var(--danger); }
.alert ul { margin: 6px 0 0; }

.about-hero { padding: 90px 0; }
.about-grid, .contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 6vw; align-items: center; }
.about-grid img, .contact-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.story-grid p { font-size: 1.12rem; color: var(--muted); }
.section-heading { max-width: 720px; margin-bottom: 48px; }
.branch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.branch-grid article { padding: 28px; border: 1px solid rgba(11,79,58,.22); border-radius: var(--radius); background: rgba(255,255,255,.5); }
.branch-grid span { color: var(--accent); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.branch-grid h3 { margin: 8px 0; }
.branch-grid p { color: var(--muted); font-size: .9rem; }
.branch-grid a { color: var(--green); font-weight: 750; text-underline-offset: 4px; }

.contact-hero { padding: 90px 0; }
.contact-actions { display: grid; gap: 12px; margin-top: 32px; }
.contact-line { display: block; padding: 18px 20px; border: 1px solid var(--green); border-radius: 12px; text-decoration: none; }
.contact-line span, .contact-line strong { display: block; }
.contact-line span { font-size: .82rem; }
.contact-line strong { font-size: 1.18rem; overflow-wrap: anywhere; }
.contact-line.primary { color: #fff; background: var(--green); }
.social-list a { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.social-list a:hover strong { color: var(--green); }
.social-list span { color: var(--muted); }
.safety { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.safety strong { font-size: 1.35rem; }
.safety p { margin: 4px 0 0; max-width: 700px; }

.site-footer { padding: 72px 0 28px; background: #082f25; color: #eaf3ee; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 6vw; }
.footer-grid h2 { margin-bottom: 18px; font-size: 1rem; letter-spacing: 0; }
.footer-grid a:not(.brand) { display: block; margin: 9px 0; color: #c1d4cb; text-decoration: none; }
.footer-grid p { max-width: 420px; color: #c1d4cb; }
.brand-footer { margin-bottom: 22px; }
.brand-footer small { color: #c1d4cb; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); color: #b1c8bd; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.floating-wa { position: fixed; z-index: 15; right: 20px; bottom: 20px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #147a50; color: #fff; box-shadow: 0 12px 30px rgba(7,58,44,.28); text-decoration: none; font-weight: 850; }
.mobile-dock { display: none; }

.js-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero .eyebrow, .hero h1, .hero-content > p, .hero .actions, .agent-hero .eyebrow, .agent-hero h1, .agent-copy > p, .agent-copy .button { opacity: 0; transform: translateY(18px); }
body.is-ready .hero .eyebrow, body.is-ready .hero h1, body.is-ready .hero-content > p, body.is-ready .hero .actions, body.is-ready .agent-hero .eyebrow, body.is-ready .agent-hero h1, body.is-ready .agent-copy > p, body.is-ready .agent-copy .button { opacity: 1; transform: translateY(0); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
body.is-ready .hero h1, body.is-ready .agent-hero h1 { transition-delay: .08s; }
body.is-ready .hero-content > p, body.is-ready .agent-copy > p { transition-delay: .16s; }
body.is-ready .hero .actions, body.is-ready .agent-copy .button { transition-delay: .24s; }

@media (max-width: 1060px) {
    .site-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; padding: 18px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
    .site-nav.open { display: flex; }
    .menu-button { display: block; margin-left: auto; }
    .nav-cta { display: none; }
}

@media (max-width: 760px) {
    :root { --container: min(1180px, calc(100% - 28px)); }
    body { font-size: 16px; }
    .section { padding: 68px 0; }
    body { padding-bottom: 76px; }
    .site-header { position: sticky; }
    .nav-wrap { min-height: 66px; gap: 12px; }
    .brand-mark { width: 40px; height: 40px; }
    .brand strong { font-size: .92rem; }
    .brand small { display: none; }
    .menu-button { border: 0; padding: 8px 4px; background: transparent; color: var(--green); }
    .site-nav { top: 66px; gap: 0; padding: 12px 20px 22px; box-shadow: 0 18px 30px rgba(11,79,58,.12); }
    .site-nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .hero { display: block; min-height: 0; background: var(--paper); }
    .hero-image { position: relative; inset: auto; width: 100%; height: 350px; object-position: 61% center; border-radius: 0 0 28px 28px; -webkit-mask-image: linear-gradient(#000 76%, transparent); mask-image: linear-gradient(#000 76%, transparent); }
    .hero-shade { display: none; }
    .hero-content { margin-top: -58px; padding-block: 0 38px; }
    .hero h1 { max-width: 11ch; font-size: clamp(2.55rem, 10vw, 3.25rem); }
    .hero-content > p:not(.eyebrow) { font-size: 1.04rem; }
    .actions, .actions .button { width: 100%; }
    .proof-grid, .proof-three { grid-template-columns: repeat(2, 1fr); }
    .proof-grid > div { padding: 20px 14px; border-bottom: 1px solid rgba(255,255,255,.2); }
    .intro-grid, .docs-grid, .faq, .story-grid, .contact-info, .calculator-layout, .agent-content, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .intro-grid > div:first-child, .docs-grid > div:first-child, .faq > div:first-child, .result { position: static; }
    .process { grid-template-columns: 1fr; }
    .process li, .process li + li { padding: 20px 0; border-top: 1px solid var(--line); }
    .process li::before { display: inline; margin-right: 12px; }
    .agent-banner { grid-template-columns: 1fr; }
    .agent-banner img { max-height: 320px; }
    .page-hero { padding: 64px 0 48px; }
    .page-hero::after { right: -38px; width: 190px; }
    .product-row { grid-template-columns: 1fr; }
    .check-list { grid-template-columns: 1fr; }
    .document-list li { grid-template-columns: 1fr; gap: 3px; }
    .cta-section .container, .safety { align-items: stretch; flex-direction: column; }
    .tenor-options { grid-template-columns: 1fr; }
    .result { padding: 28px; box-shadow: none; }
    .agent-hero { min-height: 700px; align-items: end; }
    .agent-hero > img { object-position: 42% center; }
    .agent-overlay { background: linear-gradient(0deg, rgba(7,58,44,.98), rgba(7,58,44,.76) 58%, rgba(7,58,44,.05)); }
    .agent-copy { padding-block: 320px 52px; }
    .branch-grid { grid-template-columns: 1fr; }
    .about-grid img, .contact-grid img { order: -1; }
    .social-list a { flex-direction: column; gap: 2px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
    .floating-wa { right: 16px; bottom: 92px; width: 52px; height: 52px; font-size: .82rem; }
    .mobile-dock { position: fixed; z-index: 19; display: grid; grid-template-columns: repeat(4, 1fr); left: 10px; right: 10px; bottom: 8px; min-height: 66px; padding: 6px; border: 1px solid rgba(11,79,58,.14); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 12px 35px rgba(7,58,44,.18); backdrop-filter: blur(14px); }
    .mobile-dock a { display: grid; place-items: center; align-content: center; gap: 1px; min-width: 0; border-radius: 12px; color: #5e6a66; text-decoration: none; font-size: .68rem; font-weight: 700; }
    .mobile-dock a span { font-size: 1.35rem; line-height: 1; }
    .mobile-dock a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
}

@media (max-width: 440px) {
    h1 { font-size: 2.45rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: auto; }
    .brand strong { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .js-reveal, .hero .eyebrow, .hero h1, .hero-content > p, .hero .actions, .agent-hero .eyebrow, .agent-hero h1, .agent-copy > p, .agent-copy .button { opacity: 1 !important; transform: none !important; }
}

@media (prefers-color-scheme: dark) {
    :root { color-scheme: dark; --ink: #e8f0ec; --muted: #aec0b8; --paper: #0c1f19; --surface: #122a22; --green-soft: #18382d; --line: #345046; --shadow: 0 18px 50px rgba(0,0,0,.25); }
    .site-header { background: rgba(12,31,25,.94); }
    .hero-shade { background: linear-gradient(90deg, rgba(12,31,25,.98), rgba(12,31,25,.9) 35%, rgba(12,31,25,.14) 72%); }
    .page-hero { background: linear-gradient(135deg, var(--green-soft), var(--paper)); }
    .process-section { background: #10261f; }
    .product-featured, .soft-section { background: var(--green-soft); }
    .button-ghost, .button-light { color: var(--green-dark); }
    .branch-grid article { background: rgba(18,42,34,.65); }
    .mobile-dock { background: rgba(18,42,34,.95); border-color: rgba(255,255,255,.12); }
    .mobile-dock a { color: #aebdb7; }
    .mobile-dock a[aria-current="page"] { color: #fff; background: var(--green); }
    @media (max-width: 760px) { .hero-shade { background: linear-gradient(0deg, rgba(12,31,25,.99), rgba(12,31,25,.92) 48%, rgba(12,31,25,.06) 78%); } }
}
