/* Reset essentials */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
li,
figure,
blockquote {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

:root {
    --primary: #1A3B5E;
    --secondary: #088754;
    --accent: #F3CF62;
    --highlight: #F8783A;
    --text: #1F2A37;
    --muted: #5F6B7C;
    --surface: #ffffff;
    --surface-soft: #F5F7FB;
    --border: rgba(26, 59, 94, 0.12);
    --shadow-soft: 0 20px 60px rgba(12, 32, 63, 0.08);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background-color: var(--surface-soft);
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #FDFDFE 0%, #F0F4FB 60%, #F8FBFF 100%);
    color: var(--text);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: min(1200px, calc(100% - 3rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 20;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.logo img {
    height: 45px;
}

.legal-card h2 {
    margin-top: 2rem;
}

.logo a {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    text-decoration: none;
}

.logo-badge {
    background: var(--primary);
    color: #fff;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    transition: color 150ms ease;
}

nav a:hover,
.link-highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero {
    padding: 4rem 0 3rem;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: 1.1;
    color: var(--primary);
    margin: 0.75rem 0 1rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    color: var(--secondary);
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 560px;
}

.hero-benefits {
    margin: 1.5rem 0 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-benefits li {
    position: relative;
    color: var(--text);
}

.hero-benefits li::before {
    content: '';
    position: absolute;
    left: -1.2rem;
    top: 0.55rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
}

.signup-form {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.input-wrap {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.input-wrap input {
    flex: 1 1 220px;
    padding: 0.9rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: var(--surface-soft);
}

.input-wrap button {
    padding: 0.9rem 1.75rem;
    border: none;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--secondary), var(--highlight));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.input-wrap button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(8, 135, 84, 0.25);
}

.signup-form.is-loading button {
    opacity: 0.7;
    cursor: wait;
}

.form-note {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

.form-feedback {
    min-height: 1.25rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary);
}

.form-feedback.error {
    color: var(--highlight);
}

.success-panel {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(8, 135, 84, 0.3);
    background: rgba(8, 135, 84, 0.08);
}

.success-panel h3 {
    margin-bottom: 1rem;
}

.stat {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--primary);
}

.hero-visual {
    justify-self: center;
}

.device-stack {
    position: relative;
    display: grid;
    gap: 1.5rem;
}

.device-iphone {
    width: min(350px, 80vw);
    justify-self: end;
}

section {
    padding: 4rem 0;
}

.features h2,
.gallery h2,
.cta h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin: 0.5rem 0 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.feature-grid article {
    background: var(--surface);
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.feature-grid h3 {
    margin-top: 0;
    color: var(--primary);
}

.feature-grid p {
    color: var(--muted);
}

.insights {
    background: var(--surface-soft);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.insights-grid article {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.insights-grid h3 {
    margin: 0.5rem 0 0.75rem;
    color: var(--primary);
}

.gallery {
    background: #fff;
}

.gallery-header {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.gallery figure {
    border-radius: 1.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 400px;
}

.gallery figure img {
    max-height: 100%;
}

.testimonial {
    background: linear-gradient(120deg, rgba(26, 59, 94, 0.08), rgba(8, 135, 84, 0.1));
    text-align: center;
    border-block: 1px solid var(--border);
}

.testimonial blockquote {
    font-size: 1.5rem;
    /* font-style: italic; */
    max-width: 740px;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.testimonial .cite {
    color: var(--muted);
}

.cta {
    text-align: center;
    background: var(--surface);
}

.cta p {
    color: var(--muted);
    max-width: 560px;
    margin-inline: auto;
}

.cta .container {
    display: grid;
    gap: 1.5rem;
    justify-items: center;
}

.cta-form {
    width: min(600px, 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    border: none;
    background: var(--highlight);
    color: #fff;
    text-decoration: none;
    margin-top: 1.5rem;
    font-weight: 600;
    box-shadow: 0 15px 30px rgba(248, 120, 58, 0.25);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--muted);
    background: var(--surface);
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
}

.contact-page {
    background: linear-gradient(180deg, #fdfdfd 0%, #f6f8fc 60%, #f2f7ff 100%);
}

.contact-hero {
    padding: 5rem 0 4rem;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.contact-hero .lead {
    padding-top: 1rem;
}

.contact-highlights {
    margin-top: 1.5rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1.25rem;
}

.contact-highlights li {
    position: relative;
}

.contact-highlights li::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.5rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--secondary);
}

.contact-card {
    background: var(--surface);
    border-radius: 1.5rem;
    padding: 2.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    font-weight: 600;
    color: var(--primary);
}

.contact-form input,
.contact-form textarea {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    background: var(--surface-soft);
    resize: vertical;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 140px;
}

.contact-submit {
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(120deg, var(--secondary), var(--highlight));
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(8, 135, 84, 0.2);
}

@media (max-width: 720px) {
    .site-header .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .device-iphone {
        justify-self: center;
        margin-top: 0;
    }

    .gallery-header {
        margin-inline: auto;
    }

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