:root {
    /* Warm ivory paper + deep forest ink, not default SaaS white/navy - GrowClose is warmth, not software. */
    --gc-paper: #FBF7EF;
    --gc-ink: #16241C;
    --gc-muted: #5E6A5C;
    /* Matches the member app's --gc-primary (app.css) so the site and app read as one brand. */
    --gc-primary: #3F6B57;
    --gc-primary-dark: #16241C;
    --gc-primary-tint: #E6EEE7;
    --gc-accent: #D97B49;
    --gc-accent-tint: #F7E6D6;
    --gc-border: #E7E0D1;
    --gc-glow: #BFE6C9;
    /* Same floating glass bar the app's NavBar uses (app.css --gc-bar*), tinted to the warm paper. */
    --gc-bar: rgba(251, 247, 239, 0.78);
    --gc-bar-edge: rgba(255, 255, 255, 0.9);
    --gc-bar-shadow: 0 12px 30px -8px rgba(22, 36, 28, 0.22);
    --gc-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --gc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--gc-sans);
    color: var(--gc-ink);
    background: var(--gc-paper);
    line-height: 1.55;
}

h1, h2, h3 { line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
em { font-family: var(--gc-serif); font-style: italic; font-weight: 500; color: var(--gc-primary); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Floating glass nav - same shape and blur as the app's NavBar (GrowClose.Web Design/NavBar.razor),
   so the site's chrome reads as the same product as the app you land in after "Open GrowClose". */
.site-header-slot {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0 16px;
}
.gc-floating-nav {
    max-width: 1100px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 10px 0 22px;
    border-radius: 999px;
    background: var(--gc-bar);
    border: 1px solid var(--gc-bar-edge);
    box-shadow: var(--gc-bar-shadow);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    backdrop-filter: blur(24px) saturate(1.4);
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.1rem; color: var(--gc-ink); text-decoration: none; letter-spacing: -0.01em; }
.nav-logo-mark { width: 20px; height: 20px; color: var(--gc-primary); flex-shrink: 0; }
.nav-logo-footer { display: flex; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; flex: 1; }
.nav-links a { color: var(--gc-ink); text-decoration: none; font-size: 0.95rem; font-weight: 600; opacity: 0.75; transition: opacity 0.15s ease; }
.nav-links a:hover { opacity: 1; color: var(--gc-primary); }
.btn-nav { flex-shrink: 0; }

@media (max-width: 760px) {
    .nav-links a:not([href="/get-help"]) { display: none; }
    .nav-links { gap: 0; }
    .gc-floating-nav { height: 56px; }
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}
.btn-primary { background: var(--gc-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 36, 28, 0.55); }
.btn-primary:hover { background: #2C4B3D; transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 28px -10px rgba(22, 36, 28, 0.6); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost { background: transparent; color: var(--gc-primary); border: 1px solid var(--gc-primary); }
.btn-ghost:hover { background: var(--gc-primary-tint); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(0.98); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
@media (prefers-reduced-motion: reduce) {
    .btn, .btn-primary:hover, .btn-ghost:hover, .btn-primary:active, .btn-ghost:active { transition: none; transform: none; }
}

.page-hero { padding: 116px 0 32px; text-align: center; }
.page-hero h1 { font-size: 2.25rem; margin-bottom: 12px; font-weight: 700; }
.lede { color: var(--gc-muted); font-size: 1.1rem; }

.rule { border: none; border-top: 1px solid var(--gc-border); margin: 0; }

.section { padding: 88px 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.feature-grid h3 { margin-bottom: 8px; font-size: 1.2rem; }

/* Grain: a faint noise layer so solid-color sections don't read as flat CSS gradients. */
.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero - asymmetric split, copy pushed left with real margin so the phone reads as
   an off-center product shot rather than a paired 50/50 column. Top padding capped
   at ~96px so the headline never floats mid-viewport. */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 72px;
    background: var(--gc-primary-dark);
    color: #FBF7EF;
}
.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(720px 480px at 8% 6%, rgba(191, 230, 201, 0.18), transparent 58%);
    pointer-events: none;
}
.hero-sprout {
    position: absolute;
    right: -40px;
    bottom: -90px;
    width: 380px;
    height: 380px;
    color: rgba(251, 247, 239, 0.05);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: center;
    gap: 32px;
}
.hero-copy { max-width: 560px; }
.eyebrow {
    display: inline-block;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gc-glow);
    margin-bottom: 22px;
}
.hero h1 {
    font-family: var(--gc-serif);
    font-weight: 600;
    font-size: clamp(2.9rem, 6.2vw, 5rem);
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: #fff;
}
.hero h1 em { color: var(--gc-glow); }
.hero .lede { max-width: 440px; color: rgba(251, 247, 239, 0.72); font-size: 1.1rem; }
.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 30px 0 0;
}
.btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.08); }

/* Phone mockup - tilted like a product photo, shifted toward the right edge so the
   split reads as intentionally uneven rather than a mirrored two-column pair. */
.hero-visual { display: flex; justify-content: flex-end; padding-right: 6%; }
.phone {
    position: relative;
    width: 250px;
    height: 520px;
    background: #0F1B14;
    border: 6px solid #1E2E24;
    border-radius: 36px;
    box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.7);
    padding: 20px 16px;
    transform: rotate(4deg);
    animation: phone-float 7s ease-in-out infinite;
}
@keyframes phone-float {
    0%, 100% { transform: rotate(4deg) translateY(0); }
    50% { transform: rotate(2deg) translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
    .phone { animation: none; }
}
.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 18px;
    background: #060B08;
    border-radius: 999px;
}
.phone-screen { margin-top: 46px; display: flex; flex-direction: column; gap: 12px; }
.phone-time { color: rgba(255, 255, 255, 0.4); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.phone-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 15px; }
.phone-card p { margin: 8px 0 0; color: #fff; font-size: 0.92rem; font-weight: 600; line-height: 1.35; }
.phone-card-ghost p { color: rgba(255, 255, 255, 0.55); }
.phone-card-primary { background: linear-gradient(135deg, var(--gc-primary) 0%, #244C3B 100%); border-color: transparent; }
.phone-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gc-glow); }
.phone-tag-muted { color: rgba(255, 255, 255, 0.4); }

/* Marquee ticker - a moving strip of value props, the kind of confident motion a template never has. */
.marquee {
    background: var(--gc-accent);
    color: #241206;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    animation: marquee-scroll 26s linear infinite;
}
.marquee-track span { display: inline-block; }
.marquee-dot { opacity: 0.55; }
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* Editorial spread - "Alone." / "Together." magazine layout, no cards, no icon tiles.
   Columns are deliberately uneven (2fr/3fr) so the word and the text don't read as a
   paired 50/50 layout, and the second row is offset downward for an editorial break. */
.spread { padding: 120px 0; }
.spread-row {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    align-items: center;
    padding: 40px 0;
}
.spread-row + .spread-row { border-top: 1px solid var(--gc-border); margin-top: 24px; padding-top: 64px; }
.spread-word {
    font-family: var(--gc-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(2.8rem, 7vw, 4.4rem);
    line-height: 1.1;
    padding-bottom: 0.1em;
    color: var(--gc-primary);
    margin: 0;
}
.spread-row-reverse { grid-template-columns: 3fr 2fr; }
.spread-word-right { text-align: right; }
.spread-text { color: var(--gc-muted); font-size: 1.15rem; margin: 0; max-width: 46ch; }
.spread-row-reverse .spread-text { order: 1; }
.spread-row-reverse .spread-word { order: 2; }

/* Dark "how it works" band */
.section-dark {
    position: relative;
    background: var(--gc-primary-dark);
    color: #fff;
    padding: 96px 0;
}
.kicker-light {
    color: var(--gc-glow);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 40px;
    position: relative;
}

/* Three-tile asymmetric arrangement - each numeral overlaps its own heading rather
   than sitting in a shared left rail, and the tiles stagger vertically instead of
   stacking as hairline-divided rows. */
.step-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 40px;
    margin-top: 12px;
}
.step-row:nth-child(2) { margin-top: 56px; }
.step-row:nth-child(3) { margin-top: 16px; }
.step-num {
    display: block;
    font-family: var(--gc-serif);
    font-size: 4.6rem;
    font-weight: 500;
    line-height: 1;
    color: rgba(255, 255, 255, 0.16);
    margin-bottom: -0.35em;
}
.step-copy h3 { font-size: 1.25rem; margin: 0 0 10px; color: #fff; font-weight: 700; }
.step-copy p { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 1rem; }

/* Safety - a left-rule callout instead of a boxed card */
.safety-strip {
    border-left: 3px solid var(--gc-accent);
    padding: 4px 0 4px 28px;
}
.safety-strip h2 { font-size: 1.5rem; margin: 0 0 10px; }
.safety-strip p { margin: 0; color: var(--gc-muted); font-size: 1.05rem; }
.safety-strip a { color: var(--gc-primary); font-weight: 600; }

/* CTA band - the most "default" section on the page previously (centered, boxed).
   Rebuilt as an asymmetric split so it doesn't read as a template closing banner:
   headline anchors the left, the action sits in its own right-aligned column. */
.cta-band {
    position: relative;
    overflow: hidden;
    background: var(--gc-primary-dark);
    color: #fff;
    padding: 140px 0;
}
.cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: end;
    max-width: 980px;
}
.cta-copy { min-width: 0; }
.cta-inner h2 {
    font-family: var(--gc-serif);
    font-weight: 600;
    font-size: clamp(2.4rem, 5.6vw, 3.6rem);
    margin: 0 0 16px;
}
.cta-inner h2 em { color: var(--gc-glow); }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, 0.75); font-size: 1.05rem; max-width: 42ch; }
.cta-action { display: flex; justify-content: flex-end; }
.cta-band .btn-primary { background: #fff; color: var(--gc-primary-dark); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--gc-glow); }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: none; }
    .hero-visual { order: -1; justify-content: center; padding-right: 0; }
    .phone { width: 210px; height: 440px; }
    .spread-row, .spread-row-reverse { grid-template-columns: 1fr; gap: 12px; }
    .spread-row + .spread-row { padding-top: 40px; margin-top: 0; }
    .spread-word-right { text-align: left; }
    .spread-row-reverse .spread-text { order: 0; }
    .spread-row-reverse .spread-word { order: 1; }
    .step-list { grid-template-columns: 1fr; gap: 40px; }
    .step-row:nth-child(2), .step-row:nth-child(3) { margin-top: 0; }
    .cta-inner { grid-template-columns: 1fr; align-items: start; gap: 24px; }
    .cta-action { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .hero { padding: 88px 0 56px; }
    .cta-band { padding: 96px 0; }
}

.form-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-field-row { display: flex; gap: 20px; margin-bottom: 16px; }
label { font-weight: 600; }
input, textarea {
    padding: 10px 12px;
    border: 1px solid var(--gc-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.form-message { min-height: 1.5em; font-weight: 600; }
.form-message-error { color: #B3261E; }
.form-message-success { color: var(--gc-primary); }

.site-footer { border-top: 1px solid var(--gc-border); padding: 48px 0 24px; margin-top: 48px; background: var(--gc-primary-tint); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--gc-ink); text-decoration: none; }
.footer-base { margin-top: 24px; color: var(--gc-muted); font-size: 0.9rem; }

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Scroll-reveal: toggled by /js/reveal.js via IntersectionObserver. */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="stagger"].is-visible > * {
    opacity: 0;
    transform: translateY(18px);
    animation: reveal-stagger 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
[data-reveal="stagger"].is-visible > *:nth-child(1) { animation-delay: 0.05s; }
[data-reveal="stagger"].is-visible > *:nth-child(2) { animation-delay: 0.15s; }
[data-reveal="stagger"].is-visible > *:nth-child(3) { animation-delay: 0.25s; }
[data-reveal="stagger"].is-visible > *:nth-child(4) { animation-delay: 0.35s; }
@keyframes reveal-stagger {
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal], [data-reveal="stagger"].is-visible > * {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}
