/* ────────────────────────────────────────────────────────────────
   Oasis marketing site — shared styles
   Design tokens match in-app OasisColors palette.
   ──────────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
    --bg: #F5F7FA;
    --surface: #FFFFFF;
    --surface-alt: #EEF1F4;
    --surface-tint: rgba(0, 106, 53, 0.04);
    --text: #1A1D1F;
    --muted: #595C5E;
    --soft: #828588;
    --border: #E5E8EC;
    --border-strong: #D0D5D9;
    --primary: #006A35;
    --primary-dim: #005C2D;
    --primary-container: #6BFE9C;
    --primary-text-on: #FFFFFF;
    --accent: #00DCFF;
    --warm: #FF9A3C;
    --shadow-sm: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
    --shadow: 0 16px 40px -12px rgba(0, 106, 53, 0.18);
    --shadow-lg: 0 30px 70px -20px rgba(0, 106, 53, 0.28);
    --glow: 0 0 48px rgba(107, 254, 156, 0.35);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 32px;
    --radius-xl: 44px;
    --max: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0A0D10;
        --surface: #14181B;
        --surface-alt: #1A1D20;
        --surface-tint: rgba(107, 254, 156, 0.05);
        --text: #ECEEF0;
        --muted: #B5B8BB;
        --soft: #82858A;
        --border: #24272A;
        --border-strong: #2F3235;
        --primary: #6BFE9C;
        --primary-dim: #72FBBD;
        --primary-container: #005F2F;
        --primary-text-on: #001A0C;
        --shadow-sm: 0 4px 12px -4px rgba(0, 0, 0, 0.4);
        --shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
        --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
        --glow: 0 0 60px rgba(107, 254, 156, 0.22);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01", "ss03";
}

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

::selection {
    background: color-mix(in srgb, var(--primary-container) 50%, transparent);
    color: var(--text);
}

/* ─── Layout ─── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ─── Nav ─── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    background: color-mix(in srgb, var(--bg) 70%, transparent);
    border-bottom: 1px solid transparent;
    transition: padding 200ms var(--ease),
        background 200ms var(--ease),
        border-color 200ms var(--ease);
}
.site-nav.is-scrolled {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom-color: color-mix(in srgb, var(--border) 80%, transparent);
}
.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: var(--max);
    margin: 0 auto;
    transition: padding 200ms var(--ease);
}
.site-nav.is-scrolled .site-nav__inner { padding-top: 12px; padding-bottom: 12px; }

.site-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.4px;
}
.site-nav__brand-mark {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    overflow: hidden;
    background: #FFFFFF;
    transition: transform 200ms var(--ease), width 200ms var(--ease), height 200ms var(--ease);
}
.site-nav.is-scrolled .site-nav__brand-mark { width: 28px; height: 28px; }
.site-nav__brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.site-nav__links {
    display: flex; align-items: center; gap: 6px;
}
.site-nav__links a {
    color: var(--muted);
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.1px;
    transition: color 150ms ease, background 150ms ease;
}
.site-nav__links a:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--surface-alt) 80%, transparent);
}
.site-nav__links a.is-active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary-container) 22%, transparent);
}
.site-nav__cta { display: none; }
@media (min-width: 768px) { .site-nav__cta { display: inline-flex; } }
@media (max-width: 639px) {
    .site-nav__links a:not(.site-nav__cta) { display: none; }
}

/* ─── Buttons ─── */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.2px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform 220ms var(--ease),
        box-shadow 220ms var(--ease),
        background-color 220ms var(--ease),
        border-color 220ms var(--ease),
        color 220ms var(--ease);
}
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.btn:active { transform: translateY(0px) scale(0.98); }

/* primary — gradient, inner highlight, sheen sweep on hover */
.btn--primary {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 50%),
        linear-gradient(135deg, #008944 0%, #006A35 50%, #005224 100%);
    color: #FFFFFF;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 8px 20px -8px rgba(0, 106, 53, 0.55),
        0 2px 6px -1px rgba(0, 106, 53, 0.35);
}
.btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.32) 50%,
        transparent 65%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 700ms var(--ease);
    pointer-events: none;
    z-index: 0;
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 -1px 0 rgba(0, 0, 0, 0.2) inset,
        0 18px 36px -10px rgba(0, 106, 53, 0.6),
        0 6px 14px -4px rgba(0, 106, 53, 0.4),
        0 0 32px rgba(107, 254, 156, 0.35);
}
.btn--primary:hover::before { transform: translateX(100%); }

/* ghost — softer surface, refined hover */
.btn--ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 1px 2px rgba(0, 0, 0, 0.04);
}
.btn--ghost:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
    color: var(--primary);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 10px 24px -10px rgba(0, 106, 53, 0.25),
        0 0 0 4px color-mix(in srgb, var(--primary-container) 18%, transparent);
}

/* white-on-dark variant for use over the green tree band etc. */
.btn--white {
    background: #FFFFFF;
    color: var(--primary);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 6px 16px -6px rgba(0, 0, 0, 0.25);
}
.btn--white:hover {
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 14px 28px -8px rgba(0, 0, 0, 0.3);
}

.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ─── Headings ─── */
h1, h2, h3, h4 {
    letter-spacing: -0.7px;
    line-height: 1.08;
    margin: 0;
    color: var(--text);
    font-feature-settings: "cv11", "ss01";
}
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -2.4px; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -1.4px; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.5px; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--primary);
    padding: 6px 14px;
    border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-container) 12%, transparent);
}
.lead {
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 19px);
    max-width: 620px;
    margin: 18px auto 0;
    line-height: 1.55;
}

/* ─── Cards ─── */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform 300ms var(--ease),
        box-shadow 300ms var(--ease),
        border-color 300ms var(--ease);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
    box-shadow: var(--shadow);
}
.card__icon {
    width: 44px; height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: color-mix(in srgb, var(--primary-container) 28%, transparent);
    color: var(--primary);
}
.card__icon svg { width: 22px; height: 22px; }
.card__title { font-size: 18px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.4px; }
.card__body { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* ─── Phone frame ─── */
.phone {
    position: relative;
    margin: 0 auto;
    max-width: 300px;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, #14181B 0%, #2A2D30 100%);
    padding: 9px;
    box-shadow: var(--shadow-lg),
        0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone__screen {
    width: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: var(--surface);
    display: block;
}
.phone__screen img { width: 100%; height: auto; display: block; }

/* ─── Footer ─── */
.site-footer {
    margin-top: 120px;
    padding: 56px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 13.5px;
}
.site-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 768px) {
    .site-footer__inner { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
.site-footer__brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 16px;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.site-footer__tag { max-width: 280px; line-height: 1.6; }
.site-footer h4 {
    font-size: 11px;
    letter-spacing: 1.6px;
    color: var(--soft);
    text-transform: uppercase;
    margin: 0 0 14px;
    font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 9px; }
.site-footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color 120ms ease;
}
.site-footer a:hover { color: var(--primary); }
.site-footer__legal {
    max-width: var(--max);
    margin: 40px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 12px;
    color: var(--soft);
}
.site-footer__legal a { color: var(--muted); }

/* ─── Sections / utility ─── */
.section { padding: 88px 0; }
.section--lg { padding: 120px 0; }
.center-text { text-align: center; }

/* ─── Page-title (privacy/about/legal) ─── */
.page-title {
    padding: 88px 0 44px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    margin-bottom: 56px;
}
.page-title h1 { font-size: clamp(36px, 5.5vw, 60px); }
.page-title p { margin-top: 16px; }

/* ─── Scroll reveal (used by site.js) ─── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--ease),
        transform 700ms var(--ease);
    will-change: opacity, transform;
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
