:root {
    --bg: #f7f6f2;
    --surface: #ffffff;
    --surface-alt: #f1f2ed;
    --text: #14232f;
    --muted: #5a6b74;
    --primary: #0f766e;
    --primary-strong: #0a5c56;
    --accent: #ea580c;
    --border: #d3d8d3;
    --shadow: 0 18px 36px rgba(20, 35, 47, 0.12);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 15%, rgba(234, 88, 12, 0.12), transparent 25%),
        radial-gradient(circle at 88% 10%, rgba(15, 118, 110, 0.14), transparent 24%),
        var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.section {
    padding: 5.5rem 0;
}

h1,
h2,
h3 {
    font-family: 'Fraunces', Georgia, serif;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.1rem, 4vw, 3.9rem);
    margin: 0.4rem 0 1.1rem;
}

h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.7rem);
    margin-bottom: 1.3rem;
}

h3 {
    font-size: 1.45rem;
    margin-bottom: 0.7rem;
}

p {
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.17em;
    font-weight: 700;
    color: var(--primary);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(7px);
    background: rgba(247, 246, 242, 0.86);
    border-bottom: 1px solid rgba(19, 35, 47, 0.08);
}

.nav-wrap {
    position: relative;
    min-height: 4.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-mark {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.48rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    font: inherit;
    padding: 0.45rem 0.95rem;
    cursor: pointer;
}

.hero {
    padding-top: 4.4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.lead {
    font-size: 1.07rem;
    max-width: 62ch;
}

.hero-actions {
    margin-top: 1.8rem;
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
    min-height: 44px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-strong);
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
}

.hero-panel {
    background: linear-gradient(150deg, #0f766e, #12524d);
    color: #e7f4f2;
    border-radius: 1.4rem;
    padding: 1.65rem;
    box-shadow: var(--shadow);
}

.hero-panel h2 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.9rem;
}

.hero-panel ul {
    list-style: none;
    display: grid;
    gap: 0.68rem;
}

.hero-panel li {
    position: relative;
    padding-left: 1.15rem;
}

.hero-panel li::before {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: #fb923c;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.card-grid {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card,
.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(20, 35, 47, 0.06);
}

.apps-grid .app-card {
    border-top: 4px solid var(--accent);
}

.app-card span {
    display: inline-block;
    margin-top: 0.85rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
}

.process-list {
    margin-top: 1.2rem;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.process-list li {
    border-left: 4px solid var(--primary);
    background: var(--surface-alt);
    border-radius: 0.45rem;
    padding: 0.9rem 1rem;
    color: var(--text);
}

.section-contact {
    padding-bottom: 6.4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.1rem;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 1.2rem;
    display: grid;
    gap: 0.55rem;
    box-shadow: var(--shadow);
}

.contact-form label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    padding: 0.75rem 0.85rem;
    font: inherit;
    color: var(--text);
    background: #fff;
    font-size: 16px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(15, 118, 110, 0.2);
    border-color: var(--primary);
}

.form-message {
    margin-top: 0.5rem;
    min-height: 1.25rem;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.93rem;
}

.form-message.success {
    color: var(--primary-strong);
}

.form-message.error {
    color: #b42318;
}

.hidden-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-form button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.4rem 0;
    background: #f2f1ec;
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-wrap a {
    color: var(--text);
    font-weight: 500;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .section {
        padding: 4.8rem 0;
    }

    .hero-grid {
        gap: 1.2rem;
    }

    .lead {
        max-width: none;
    }

    .site-nav {
        gap: 1rem;
    }

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

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .section {
        padding: 4.3rem 0;
    }

    .nav-wrap {
        min-height: 4rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.4rem);
        right: 0;
        width: min(280px, calc(100vw - 1.5rem));
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 0.9rem;
        box-shadow: var(--shadow);
        padding: 0.8rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        min-height: 44px;
        border-radius: 0.6rem;
        padding: 0.3rem 0.35rem;
    }

    .site-nav a:hover {
        background: var(--surface-alt);
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .contact-form button {
        width: 100%;
    }

    .footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(1120px, calc(100% - 1.5rem));
    }

    .hero {
        padding-top: 3.3rem;
    }

    h1 {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }

    h2 {
        font-size: clamp(1.35rem, 6.8vw, 1.7rem);
    }

    h3 {
        font-size: 1.2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
        flex: 1 1 100%;
    }

    .menu-toggle {
        padding: 0.4rem 0.8rem;
    }

    .site-nav {
        width: min(240px, calc(100vw - 1.5rem));
    }

    .contact-form,
    .hero-panel,
    .card,
    .app-card {
        padding: 1rem;
    }

    .process-list li {
        padding: 0.8rem 0.85rem;
    }

    .footer-wrap {
        gap: 0.55rem;
    }
}

@media (max-width: 420px) {
    .section {
        padding: 3.4rem 0;
    }

    .brand span {
        display: none;
    }

    .brand-mark {
        width: 2rem;
        height: 2rem;
    }

    .menu-toggle {
        font-size: 0.86rem;
        padding: 0.35rem 0.72rem;
    }

    .site-nav {
        top: calc(100% + 0.35rem);
        width: calc(100vw - 1.5rem);
    }

    .eyebrow {
        letter-spacing: 0.12em;
        font-size: 0.72rem;
    }
}

.policy-page {
    padding: 2rem 0;
}

.policy-page .container {
    width: min(900px, calc(100% - 2rem));
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
    padding: 1.6rem;
}

.policy-page .back-link {
    display: inline-block;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.policy-page h1,
.policy-page h2,
.policy-page h3 {
    letter-spacing: -0.01em;
}

.policy-page h1 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    margin-bottom: 0.5rem;
}

.policy-page h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    margin-bottom: 0.65rem;
}

.policy-page h3 {
    font-size: 1.12rem;
    margin-top: 0.85rem;
    margin-bottom: 0.3rem;
}

.policy-page p {
    margin-bottom: 0.8rem;
}

.policy-page ul {
    margin-left: 1.1rem;
    margin-bottom: 0.7rem;
}

.policy-page li {
    margin-bottom: 0.35rem;
    color: var(--muted);
}

.policy-page .last-updated {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.policy-page .section {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.policy-page .section:first-of-type {
    border-top: 0;
    padding-top: 0.35rem;
}

.policy-page .footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
}

.policy-page .footer p {
    margin-bottom: 0.4rem;
}

.policy-page .footer a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 720px) {
    .policy-page {
        padding: 1rem 0;
    }

    .policy-page .container {
        padding: 1.2rem;
    }
}

@media (max-width: 420px) {
    .policy-page .container {
        width: calc(100% - 1rem);
        padding: 1rem;
    }

    .policy-page h1 {
        font-size: 1.65rem;
    }

    .policy-page h2 {
        font-size: 1.2rem;
    }
}
