/* Public JadeScan site (home page and privacy policy). Colours from the JadeScan logo. */
:root {
    --jade-950: #0f2619;
    --jade-900: #14301f;
    --jade-800: #1d3f2c;
    --jade-700: #2e6b48;
    --mint: #5ee3ad;
    --mint-soft: #e3f7ee;
    --bg: #ffffff;
    --bg-alt: #f3f8f5;
    --text: #17241d;
    --muted: #4a5c52;
    --border: #d7e4dc;
    --link: #1f6b45;
    --radius: 14px;
    --wrap: 1080px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1c14;
        --bg-alt: #12261b;
        --text: #e7f2ec;
        --muted: #a9bdb2;
        --border: #24402f;
        --link: #5ee3ad;
        --mint-soft: #173527;
    }
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 10;
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 8px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.brand { display: inline-flex; }

.brand img { width: 152px; height: auto; display: block; }

.site-nav { display: flex; gap: 22px; }

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
    background: radial-gradient(circle at 20% 0%, var(--jade-700) 0%, var(--jade-900) 55%, var(--jade-950) 100%);
    color: #f1faf5;
    padding: 72px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 40px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--mint);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 14px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 4.6vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.lead {
    margin: 0 0 28px;
    font-size: 19px;
    color: #c9e3d5;
    max-width: 38em;
}

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

/* Phone frame around app screenshots (1:2 portrait). */
.phone {
    width: 100%;
    aspect-ratio: 1 / 2;
    border-radius: 34px;
    border: 9px solid #08130d;
    background: #08130d;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(94, 227, 173, 0.18), 0 26px 50px rgba(0, 0, 0, 0.35);
}

.phone img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-hero { width: 260px; transform: rotate(-3deg); }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--jade-950);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--mint);
}

.button:hover { filter: brightness(1.05); }

.button-muted {
    background: transparent;
    color: var(--mint);
    cursor: default;
}

.button-ghost {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}

.hero .button-ghost { color: #f1faf5; border-color: rgba(241, 250, 245, 0.5); }

/* Sections */
.section { padding: 72px 0; }

.section-alt { background: var(--bg-alt); }

.section h2 {
    margin: 0 0 32px;
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -0.01em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--bg);
}

.feature h3 { margin: 14px 0 8px; font-size: 19px; }

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

.icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 10px;
    background: var(--mint-soft);
    stroke: var(--jade-700);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-color-scheme: dark) {
    .icon { stroke: var(--mint); }
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--border);
}

.steps li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--jade-900);
    color: var(--mint);
    font-weight: 800;
}

.steps h3 { margin: 14px 0 8px; font-size: 19px; }

.steps p { margin: 0; color: var(--muted); }

.privacy-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.privacy-strip h2 { margin-bottom: 8px; }

.privacy-strip p { margin: 0; color: var(--muted); max-width: 40em; }

/* Screenshots */
.section-dark {
    background: linear-gradient(180deg, var(--jade-950) 0%, var(--jade-900) 100%);
    color: #f1faf5;
}

.section-dark h2 { margin-bottom: 8px; }

.section-lead { margin: 0 0 32px; color: #c9e3d5; }

.shots {
    /* Lines the first screenshot up with the page content; snapping respects the same inset. */
    --inset: max(20px, calc((100% - var(--wrap)) / 2 + 20px));
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--inset);
    padding: 8px var(--inset) 28px;
    scrollbar-color: var(--jade-700) transparent;
}

.shots:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }

.shot {
    flex: 0 0 220px;
    margin: 0;
    scroll-snap-align: start;
}

.shot figcaption { margin-top: 16px; font-size: 15px; color: #c9e3d5; }

.shot figcaption strong {
    display: block;
    color: #f1faf5;
    font-size: 17px;
    margin-bottom: 4px;
}

/* Privacy policy */
.legal {
    max-width: 780px;
    padding-top: 48px;
    padding-bottom: 72px;
}

.legal h1 {
    margin: 0 0 6px;
    font-size: clamp(30px, 4vw, 40px);
    letter-spacing: -0.02em;
}

.legal .meta { margin: 0 0 28px; color: var(--muted); font-size: 15px; }

.legal h2 { margin: 40px 0 10px; font-size: 22px; }

.legal li { margin-bottom: 8px; }

.legal ul { padding-left: 22px; }

.summary {
    background: var(--mint-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 24px 12px;
}

.summary h2 { margin-top: 18px; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: var(--muted);
    font-size: 15px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer-row p { margin: 0; }

.footer-row nav { display: flex; gap: 20px; }

/* Small screens */
@media (max-width: 860px) {
    .hero { padding: 48px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; }
    .phone-hero { width: 200px; transform: none; }
    .hero-art { justify-content: center; order: 1; }
    .shot { flex-basis: 190px; }
    .feature-grid, .steps { grid-template-columns: 1fr; }
    .privacy-strip { flex-direction: column; align-items: flex-start; }
    .section { padding: 52px 0; }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .site-nav { gap: 14px; }
    .site-nav a[href="/#how-it-works"], .site-nav a[href="/#screens"] { display: none; }
    .brand img { width: 128px; }
}
