@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
    --color-primary: #8ea79b;
    --color-secondary: #6f8d80;
    --color-background: #f4f3ef;
    --color-primary-strong: #6f8d80;
    --color-accent: #d7c8ad;
    --color-bg: #f4f3ef;
    --color-surface: #f9f8f5;
    --color-surface-strong: #ffffff;
    --color-text: #21302d;
    --color-text-muted: #5c6a66;
    --color-text-ink: #1f322d;
    --color-line: #d7ddd9;
    --color-focus: rgba(111, 141, 128, 0.32);
    --font-body: "Manrope", "Trebuchet MS", sans-serif;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --bg: var(--color-bg);
    --surface: var(--color-surface);
    --surface-strong: var(--color-surface-strong);
    --text: var(--color-text);
    --text-soft: var(--color-text-muted);
    --line: var(--color-line);
    --brand: var(--color-primary);
    --brand-strong: var(--color-primary-strong);
    --brand-ink: var(--color-text-ink);
    --accent: var(--color-accent);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 36px;
    --space-6: 56px;
    --space-7: 80px;
    --shadow: 0 14px 30px rgba(32, 44, 39, 0.08);
    --shadow-soft: var(--shadow);
    --container-max: 1200px;
    --container: min(var(--container-max), calc(100% - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(142, 167, 155, 0.16), transparent 24%),
        radial-gradient(circle at 90% 12%, rgba(215, 200, 173, 0.16), transparent 20%),
        var(--bg);
    line-height: 1.55;
}

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

a {
    color: inherit;
}

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

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    padding: var(--space-6) 0;
}

.home-page .section {
    padding: calc(var(--space-6) * 0.82) 0;
}

.section-muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.75));
    border-top: 1px solid rgba(215, 221, 217, 0.55);
    border-bottom: 1px solid rgba(215, 221, 217, 0.55);
}

.section-head {
    max-width: 680px;
    margin-bottom: var(--space-4);
}

.section-head.compact-head {
    margin-bottom: var(--space-4);
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.02em;
}

h1,
h2 {
    font-family: var(--font-display);
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.08;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0;
    color: var(--text-soft);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(10px);
    background: rgba(244, 243, 239, 0.88);
    border-bottom: 1px solid rgba(215, 221, 217, 0.8);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: 130px;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: 0.95rem;
    color: var(--brand-ink);
}

.main-nav a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-nav a[aria-current="page"] {
    color: var(--brand-strong);
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--brand-strong);
}

.link-login {
    font-weight: 700;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--brand-ink);
    border-radius: var(--radius-sm);
    min-height: 40px;
    padding: 0 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0 20px;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--brand);
    color: #ffffff;
}

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

.button-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--brand-ink);
}

.button-ghost:hover {
    border-color: var(--brand);
    background: rgba(142, 167, 155, 0.08);
}

.hero {
    padding-top: var(--space-6);
}

.home-page .hero {
    padding-top: calc(var(--space-6) * 0.82);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-5);
    align-items: center;
}

.hero-copy {
    display: grid;
    gap: var(--space-3);
}

.hero-copy p {
    max-width: 58ch;
    font-size: 1.05rem;
}

.hero-media {
    display: flex;
    justify-content: center;
}

.hero-media img {
    width: min(460px, 100%);
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(215, 221, 217, 0.75);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.cta-row.center {
    justify-content: center;
}

.hero-device {
    display: flex;
    justify-content: center;
}

.device-shell {
    width: min(330px, 100%);
    border-radius: 38px;
    padding: 16px;
    background: linear-gradient(170deg, #252e2c, #131a19);
    box-shadow: var(--shadow-soft);
}

.device-notch {
    width: 110px;
    height: 18px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: #0f1110;
}

.device-screen {
    border-radius: 28px;
    background:
        radial-gradient(circle at 80% 5%, rgba(142, 167, 155, 0.22), transparent 30%),
        #f6f2ea;
    border: 1px solid #d8d2c7;
    padding: 22px;
    min-height: 450px;
    display: grid;
    align-content: start;
    gap: 14px;
}

.device-day {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7b73;
}

.device-screen h2 {
    font-size: 2rem;
    color: #475c53;
}

.device-screen ul {
    margin: 0;
    padding-left: 18px;
    color: #5f6e68;
    display: grid;
    gap: 10px;
    font-size: 0.95rem;
}

.device-foot {
    margin-top: auto;
    font-size: 0.86rem;
    color: #768880;
}

.card-grid {
    display: grid;
    gap: var(--space-3);
}

.meaning-grid .info-card h3 {
    font-size: 1.1rem;
}

.thought-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: var(--space-3);
}

.thought-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(215, 221, 217, 0.9);
    background: var(--surface-strong);
    color: #4b5c56;
    font-size: 0.9rem;
    box-shadow: 0 8px 18px rgba(32, 44, 39, 0.06);
}

.thought-chip:nth-child(2n) {
    transform: rotate(-2deg);
}

.thought-chip:nth-child(3n) {
    transform: rotate(2.2deg);
}

.four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.info-card {
    background: var(--surface-strong);
    border: 1px solid rgba(215, 221, 217, 0.95);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: 0 6px 18px rgba(32, 44, 39, 0.04);
    display: grid;
    gap: var(--space-2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(32, 44, 39, 0.08);
}

.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(142, 167, 155, 0.16);
    color: #4b665c;
    font-weight: 700;
}

.why-short {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.why-story {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: var(--space-5);
    align-items: center;
}

.why-story-copy {
    display: grid;
    gap: var(--space-3);
}

.eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5c6f66;
    font-weight: 700;
}

.why-story-image img {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.why-short p {
    margin-top: var(--space-2);
    max-width: 58ch;
}

.story-link {
    flex-shrink: 0;
    text-decoration: none;
    color: var(--brand-ink);
    font-weight: 700;
    border-bottom: 1px solid rgba(111, 141, 128, 0.4);
    padding-bottom: 2px;
}

.story-link:hover {
    color: var(--brand-strong);
}

.cta-final {
    text-align: center;
}

.cta-final p {
    max-width: 62ch;
    margin: var(--space-2) auto 0;
}

.site-footer {
    margin-top: var(--space-2);
    border-top: 1px solid rgba(215, 221, 217, 0.85);
    background: #ecede9;
    padding-top: var(--space-5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-5);
    align-items: start;
}

.brand-footer img {
    width: 120px;
}

.footer-text {
    max-width: 48ch;
    margin-top: var(--space-2);
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 10px 24px;
}

.footer-links a {
    text-decoration: none;
    color: #33433e;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--brand-strong);
}

.footer-bottom {
    margin-top: var(--space-4);
    padding: var(--space-3) 0 var(--space-4);
    border-top: 1px solid rgba(215, 221, 217, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #33433e;
    text-decoration: none;
    font-weight: 700;
}

.footer-copy {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.page-hero {
    padding: var(--space-6) 0 var(--space-5);
}

.story-hero {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-5);
    align-items: center;
}

.story-hero-image img {
    width: 100%;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(215, 221, 217, 0.8);
}

.story-hero-copy {
    display: grid;
    gap: var(--space-3);
}

.story-quote {
    margin: 0;
    font-family: var(--font-display);
    color: #2f413c;
    font-size: clamp(1.5rem, 3.1vw, 2.25rem);
    line-height: 1.12;
}

.page-hero p {
    margin-top: var(--space-2);
    max-width: 66ch;
    font-size: 1.05rem;
}

.stack {
    display: grid;
    gap: var(--space-4);
}

.quote-block {
    border-left: 3px solid var(--brand);
    padding-left: var(--space-4);
    font-family: var(--font-display);
    color: #2f413c;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-3);
}

.timeline li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: var(--space-3);
    align-items: start;
}

.timeline li::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--brand-strong);
    box-shadow: 0 0 0 4px rgba(111, 141, 128, 0.18);
}

.beliefs {
    display: grid;
    gap: var(--space-3);
}

.beliefs p {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    color: #2f413c;
}

.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.placeholder-block {
    min-height: 160px;
    border: 1px dashed #b9c6bf;
    background: rgba(255, 255, 255, 0.68);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    color: #5b6e66;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    :root {
        --container: min(1120px, calc(100% - 36px));
        --space-6: 44px;
    }

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

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

    .hero-device {
        order: -1;
    }

    .hero-media {
        order: -1;
    }

    .device-screen {
        min-height: 370px;
    }

    .four-up {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .three-up,
    .placeholder-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container: min(1120px, calc(100% - 28px));
        --space-5: 28px;
        --space-6: 38px;
    }

    .header-inner {
        min-height: 68px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
    }

    .main-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        background: rgba(249, 248, 245, 0.98);
        box-shadow: var(--shadow-soft);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .main-nav a:hover {
        background: rgba(142, 167, 155, 0.08);
    }

    .main-nav .button {
        width: 100%;
    }

    .section {
        padding: var(--space-5) 0;
    }

    .why-short {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-4);
    }

    .thought-cloud {
        gap: 10px;
    }

    .thought-chip {
        font-size: 0.84rem;
    }

    .four-up,
    .three-up,
    .placeholder-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .reveal,
    .reveal.is-visible,
    .button,
    .info-card {
        transition: none;
        transform: none;
        opacity: 1;
    }
}
