:root {
    --ink: #06110f;
    --ink-soft: #26322f;
    --muted: #56615e;
    --paper: #fbfbfa;
    --paper-cool: #f4f6f5;
    --line: #d7dcda;
    --line-strong: #b9c2bf;
    --green: #003c38;
    --green-2: #072d2a;
    --green-3: #0c514c;
    --amber: #c87822;
    --amber-soft: #dca357;
    --serif: Didot, "Bodoni 72", "Iowan Old Style", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    line-height: 1.46;
}

body,
button {
    letter-spacing: 0;
}

svg {
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 0.98;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    min-height: 94px;
    padding: 0 2.5rem;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 2rem;
    align-items: center;
    background: rgba(251, 251, 250, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
    display: inline-block;
    width: max-content;
    font-weight: 830;
    letter-spacing: 0.16em;
    line-height: 1.05;
    text-transform: uppercase;
}

.brand {
    color: var(--ink);
    font-size: 1.05rem;
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 2.65rem;
    color: #0b1513;
    font-size: 0.95rem;
    font-weight: 520;
}

nav a {
    text-decoration: none;
}

.nav-cta,
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    border: 1px solid var(--green);
    box-shadow: 0 12px 28px rgba(0, 60, 56, 0.16);
}

.nav-cta {
    display: inline-flex;
    min-height: 48px;
    padding: 0 1.35rem;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.92rem;
    font-weight: 560;
    white-space: nowrap;
}

.nav-cta svg,
.text-link svg,
.btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.nav-cta,
.btn {
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.nav-cta:hover,
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 15px 32px rgba(0, 60, 56, 0.22);
}

main {
    overflow: hidden;
    background: var(--paper);
}

.hero {
    position: relative;
    min-height: min(680px, calc(100svh - 94px));
    background:
        radial-gradient(circle at 22% 22%, rgba(9, 34, 31, 0.05), transparent 34%),
        linear-gradient(90deg, #fff 0%, #fff 64%, #f1f3f2 64%, #f1f3f2 100%);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    min-height: min(680px, calc(100svh - 94px));
    grid-template-columns: minmax(0, 1.46fr) minmax(360px, 0.84fr);
}

.hero-copy {
    display: flex;
    min-width: 0;
    padding: clamp(3.2rem, 5vw, 4.4rem) 5.2vw 3rem;
    flex-direction: column;
    justify-content: center;
}

.eyebrow,
.plan-label {
    margin-bottom: 1.2rem;
    color: var(--amber);
    font-size: 0.77rem;
    font-weight: 760;
    letter-spacing: 0.16em;
    line-height: 1.2;
    text-transform: uppercase;
}

h1 {
    max-width: 740px;
    margin-bottom: 1.75rem;
    font-size: clamp(4.9rem, 8.8vw, 8.7rem);
}

.tagline {
    max-width: 720px;
    margin-bottom: 2rem;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 3.25vw, 3.35rem);
    font-weight: 500;
    line-height: 1.06;
}

.tagline .accent {
    color: var(--amber);
}

.short-rule {
    width: 58px;
    height: 1px;
    margin: 0 0 2.15rem;
    background: var(--line-strong);
}

.hero-offer {
    max-width: 650px;
    margin-bottom: 1.6rem;
    color: #111c19;
    font-size: 1.08rem;
    line-height: 1.48;
}

.text-link {
    display: inline-flex;
    width: max-content;
    min-height: 34px;
    align-items: center;
    gap: 0.55rem;
    color: var(--amber);
    font-size: 0.94rem;
    font-weight: 560;
    text-decoration: none;
}

.hero-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%),
        #e6e8e6;
    border-left: 1px solid var(--line);
}

.concrete {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 17, 15, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(7, 17, 15, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.7), transparent 32%),
        linear-gradient(145deg, #f3f2ef, #dfe2df);
    background-size: 76px 76px, 76px 76px, auto, auto;
}

.shadow-plane {
    position: absolute;
    top: 0;
    right: 0;
    width: 88%;
    height: 72%;
    background: linear-gradient(145deg, rgba(5, 15, 14, 0.18), rgba(5, 15, 14, 0.5));
    clip-path: polygon(18% 0, 100% 0, 66% 100%, 0 100%);
    mix-blend-mode: multiply;
}

.ribbed-plane {
    position: absolute;
    right: -11%;
    bottom: -1px;
    width: 74%;
    height: 84%;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 17px),
        linear-gradient(145deg, #0b4641, #001f1d 70%);
    box-shadow: -28px 0 58px rgba(0, 0, 0, 0.18);
    clip-path: polygon(28% 0, 100% 0, 100% 72%, 52% 100%, 0 100%, 0 37%);
}

.paper-cut {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 40%;
    height: 34%;
    background: var(--paper);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.plans-section {
    padding: clamp(4.3rem, 7vw, 7rem) 5.2vw;
    background: var(--paper-cool);
    border-bottom: 1px solid var(--line);
}

.plans-inner {
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.section-heading {
    display: grid;
    margin-bottom: 2rem;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.9fr) minmax(240px, 0.7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.section-heading .eyebrow {
    align-self: start;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2.4rem, 4vw, 4.1rem);
}

.section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 1rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
    border-left: 1px solid var(--line-strong);
}

.card {
    position: relative;
    display: flex;
    min-height: 530px;
    padding: clamp(2rem, 4vw, 3.35rem);
    flex-direction: column;
    background: rgba(255, 255, 255, 0.78);
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.card.recommended {
    background: #fff;
}

.plan-label {
    min-height: 1rem;
    margin-bottom: 1.6rem;
}

.plan-name {
    margin-bottom: 1.2rem;
    font-size: clamp(2.5rem, 4vw, 4.2rem);
}

.plan-price {
    margin-bottom: 0.75rem;
    color: var(--green);
    font-family: var(--serif);
    font-size: clamp(3.8rem, 6vw, 6rem);
    font-weight: 500;
    line-height: 0.95;
}

.plan-price small {
    margin-left: 0.35rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.96rem;
    font-weight: 500;
}

.plan-description {
    min-height: 3rem;
    margin-bottom: 1.3rem;
    color: var(--ink-soft);
}

.features {
    display: grid;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.features li {
    position: relative;
    padding: 0.75rem 0 0.75rem 1.7rem;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
}

.features li::before {
    position: absolute;
    left: 0;
    color: var(--amber);
    content: "✓";
    font-weight: 720;
}

.btn {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    padding: 0 1.35rem;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    border-radius: 0;
    font-family: var(--sans);
    font-size: 0.94rem;
    font-weight: 590;
    cursor: pointer;
}

.btn-secondary {
    color: var(--green);
    background: transparent;
    border: 1px solid var(--green);
}

.btn:disabled {
    color: var(--muted);
    background: var(--paper-cool);
    border-color: var(--line-strong);
    box-shadow: none;
    cursor: not-allowed;
}

.error {
    display: none;
    margin: 0 0 1.5rem;
    padding: 1rem 1.2rem;
    color: #6f1b18;
    background: #fff3f1;
    border: 1px solid #d8a5a1;
}

.error.show {
    display: block;
}

.success-message {
    display: none;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    background: #fff;
    border: 1px solid var(--line-strong);
}

.success-message.show {
    display: block;
}

.success-message h2 {
    margin-bottom: 1.2rem;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.success-message > p:not(.plan-label) {
    color: var(--ink-soft);
}

.api-key-display {
    margin: 1.8rem 0 1rem;
    padding: 1.35rem;
    overflow-wrap: anywhere;
    color: var(--green);
    background: var(--paper-cool);
    border: 1px solid var(--line-strong);
    font-family: var(--mono);
    font-size: 0.88rem;
    text-align: left;
}

.copy-btn {
    max-width: 320px;
    margin: 0 auto;
}

.next-steps {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
    text-align: left;
}

.next-steps h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.next-steps ol {
    margin-bottom: 0;
    padding-left: 1.35rem;
    color: var(--ink-soft);
    line-height: 1.8;
}

code {
    padding: 0.18rem 0.38rem;
    color: var(--green);
    background: var(--paper-cool);
    font-family: var(--mono);
    font-size: 0.88em;
}

footer {
    display: grid;
    padding: 1.4rem 5.2vw;
    grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr) auto auto;
    gap: 2.2rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, #063b37, #002a27);
    font-size: 0.82rem;
}

.footer-brand {
    color: #fff;
    font-size: 0.82rem;
}

footer a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 0.24em;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 4px;
}

@media (max-width: 1120px) {
    .hero {
        background: #fff;
    }

    .hero-grid,
    .section-heading {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-copy {
        min-height: 610px;
        padding-top: 5rem;
    }

    .hero-visual {
        min-height: 380px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .section-heading {
        max-width: 760px;
        gap: 0.7rem;
    }

    .section-heading .eyebrow {
        margin-bottom: 0.3rem;
    }

    footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 780px) {
    .site-header {
        position: static;
        min-height: 0;
        padding: 1.2rem;
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }

    .hero-copy {
        min-height: 0;
        padding: 3.2rem 1.2rem 2.5rem;
    }

    h1 {
        margin-bottom: 1.2rem;
        font-size: clamp(3.45rem, 15vw, 4.5rem);
    }

    .tagline {
        margin-bottom: 1.35rem;
        font-size: clamp(1.8rem, 8vw, 2.35rem);
    }

    .short-rule,
    .hero-offer {
        margin-bottom: 1.35rem;
    }

    .hero-visual {
        display: none;
    }

    .plans-section {
        padding: 3rem 1.2rem;
    }

    .pricing-cards,
    footer {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 0;
        padding: 2rem 1.4rem;
    }

    .plan-price {
        font-size: clamp(3.5rem, 18vw, 5rem);
    }

    .btn {
        margin-top: 0;
    }

    footer {
        gap: 1.2rem;
        padding: 1.8rem 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nav-cta,
    .btn {
        transition: none;
    }
}
