@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500&family=Outfit:wght@400;500;600&display=swap");

/*
 * Estra design system: derived from the app icon:
 * plum -> rose -> coral gradient over warm cream.
 *
 * The original Tailwind theme tokens are preserved here as native CSS so these
 * plain HTML pages work directly in a browser without a compilation step.
 */
:root {
    --radius: 1rem;
    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 4px);
    --radius-2xl: calc(var(--radius) + 8px);
    --radius-3xl: calc(var(--radius) + 12px);
    --radius-4xl: calc(var(--radius) + 16px);
    --font-serif: "Fraunces", ui-serif, Georgia, serif;
    --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;

    --plum: oklch(0.34 0.078 331.5);
    --rose: oklch(0.65 0.062 12.5);
    --coral: oklch(0.72 0.111 34.5);
    --cream: oklch(0.93 0.038 88);
    --sand: oklch(0.88 0.055 88);
    --background: var(--cream);
    --foreground: var(--plum);
    --card: oklch(0.98 0.012 88);
    --card-foreground: var(--plum);
    --primary: var(--plum);
    --primary-foreground: var(--cream);
    --secondary: var(--sand);
    --secondary-foreground: var(--plum);
    --muted: var(--sand);
    --muted-foreground: oklch(0.52 0.045 331.5);
    --accent: var(--coral);
    --accent-foreground: oklch(0.99 0.005 88);
    --border: oklch(0.34 0.078 331.5 / 12%);
    --ring: var(--coral);
}

* {
    box-sizing: border-box;
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    background: var(--plum);
    color: var(--cream);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.wrap {
    width: min(100% - 3rem, 80rem);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklch, var(--cream) 88%, transparent);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    min-height: 4.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-serif);
    font-size: 1.45rem;
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.8rem;
    object-fit: cover;
    box-shadow: 0 0.3rem 0.8rem oklch(0.34 0.078 331.5 / 14%);
}

.nav-links,
.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.nav-links a:not(.button),
.footer-links a {
    color: color-mix(in oklch, var(--plum) 68%, transparent);
}

.nav-links a:hover,
.footer-links a:hover {
    color: var(--plum);
}

.button {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: color-mix(in oklch, var(--card) 70%, transparent);
    font-weight: 500;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 2rem oklch(0.34 0.078 331.5 / 10%);
}

.button-coral {
    border-color: transparent;
    background: var(--coral);
    color: var(--accent-foreground);
    box-shadow: 0 0.8rem 2rem oklch(0.72 0.111 34.5 / 25%);
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    position: absolute;
    top: -18rem;
    right: -12rem;
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    background: color-mix(in oklch, var(--coral) 16%, transparent);
    content: "";
    filter: blur(4rem);
}

.hero-grid {
    position: relative;
    display: grid;
    min-height: calc(100vh - 4.75rem);
    align-items: center;
    gap: 5rem;
    padding-block: 4rem;
}

.hero-copy {
    max-width: 39rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1.4rem;
    color: var(--coral);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(3.6rem, 7.2vw, 6.5rem);
    line-height: 0.99;
    letter-spacing: -0.045em;
}

.hero h1 em {
    color: var(--rose);
    font-weight: 400;
}

.lead {
    max-width: 37rem;
    margin-bottom: 2.25rem;
    color: color-mix(in oklch, var(--plum) 78%, transparent);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.hero-visual::after {
    position: absolute;
    right: -8%;
    bottom: -3%;
    z-index: -1;
    width: 40%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: color-mix(in oklch, var(--coral) 35%, transparent);
    content: "";
    filter: blur(2.5rem);
}

.hero-visual img {
    width: min(100%, 27rem);
    max-height: 44rem;
    border-radius: 2.75rem;
    box-shadow: 0 2rem 5rem oklch(0.34 0.078 331.5 / 24%);
    object-fit: cover;
}

.section {
    padding-block: 7rem;
}

.section-heading {
    max-width: 45rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-heading h2,
.philosophy-copy h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.features {
    background: var(--plum);
    color: var(--cream);
}

.feature-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    min-height: 18rem;
    padding: 2rem;
    border: 1px solid oklch(0.93 0.038 88 / 12%);
    border-radius: var(--radius-3xl);
    background: oklch(0.93 0.038 88 / 5%);
    transition: border-color 180ms ease, transform 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in oklch, var(--coral) 55%, transparent);
}

.feature-icon {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 3rem;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in oklch, var(--coral) 22%, transparent);
    color: var(--coral);
    font-size: 1.35rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.feature-card p {
    margin-bottom: 0;
    color: color-mix(in oklch, var(--cream) 70%, transparent);
}

.philosophy-grid {
    display: grid;
    align-items: center;
    gap: 5rem;
}

.philosophy-grid img {
    width: 100%;
    height: 100%;
    max-height: 22rem;
    min-height: 0;
    border-radius: var(--radius-3xl);
    object-fit: cover;
    box-shadow: 0 1.5rem 4rem oklch(0.34 0.078 331.5 / 12%);
}

.philosophy-copy > p {
    color: color-mix(in oklch, var(--plum) 78%, transparent);
    font-size: 1.12rem;
}

.benefits {
    display: grid;
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-weight: 500;
}

.benefits li::before {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.55rem;
    border-radius: 50%;
    background: var(--coral);
    content: "";
}

.site-footer {
    border-top: 1px solid var(--border);
}

.contact-section {
    padding: 5rem 1.5rem;
    background: var(--sand);
}

.contact-card {
    width: min(100%, 56rem);
    margin-inline: auto;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    border-radius: var(--radius-4xl);
    background: var(--plum);
    color: var(--cream);
    text-align: center;
}

.contact-card h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    line-height: 1.08;
}

.contact-card p {
    max-width: 35rem;
    margin: 0 auto 2rem;
    color: color-mix(in oklch, var(--cream) 72%, transparent);
    font-size: 1.05rem;
}

.contact-card .button {
    border-color: transparent;
    background: var(--coral);
    color: var(--accent-foreground);
}

.footer-inner {
    display: flex;
    min-height: 6rem;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: color-mix(in oklch, var(--plum) 65%, transparent);
    font-size: 0.9rem;
}

.legal-main {
    min-height: calc(100vh - 10.75rem);
    padding: 6rem 1.5rem 7rem;
    background: color-mix(in oklch, var(--sand) 30%, transparent);
}

.legal-content {
    width: min(100%, 48rem);
    margin-inline: auto;
}

.legal-content h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.05;
}

.updated {
    color: color-mix(in oklch, var(--plum) 50%, transparent);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.legal-sections {
    display: grid;
    gap: 2.5rem;
    margin-top: 3rem;
    color: color-mix(in oklch, var(--plum) 75%, transparent);
}

.legal-sections section {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-sections section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-sections h2 {
    margin-bottom: 0.7rem;
    color: var(--plum);
    font-size: 1.35rem;
}

.legal-sections p {
    margin-bottom: 0;
}

.text-link {
    color: var(--coral);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

a:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 4px;
}

@media (min-width: 48rem) {
    .hero-grid,
    .philosophy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 47.99rem) {
    .wrap {
        width: min(100% - 2rem, 80rem);
    }

    .nav {
        min-height: 4.25rem;
    }

    .nav-links a:not(.button) {
        display: none;
    }

    .nav-links .button {
        min-height: 2.65rem;
        padding: 0.5rem 0.9rem;
    }

    .hero-grid {
        min-height: auto;
        gap: 3.5rem;
        padding-block: 4rem 5rem;
    }

    .hero h1 {
        font-size: clamp(3.25rem, 15vw, 5rem);
    }

    .hero-visual img {
        max-height: 38rem;
    }

    .section {
        padding-block: 5rem;
    }

    .philosophy-grid {
        gap: 3rem;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        padding-block: 1.5rem;
        text-align: center;
    }

    .legal-main {
        padding-top: 4rem;
    }

    .contact-section {
        padding: 3.5rem 1rem;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
