/* Standalone styling for the product-information site. This site is served
   separately from the SPA bundle, so the theme tokens are duplicated here
   rather than pulled from styles.css — keep the values in sync with the
   :root blocks at the top of src/styles.css and public/legal.css. */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --primary: #10BE8A;
    --primary-deep: #0A9C72;
    --primary-soft: #D3F4E9;
    --accent: #FF6B57;
    --bg: #F1FAF6;
    --card: #ffffff;
    --text: #10241E;
    --text-color-subtle: #5E7A72;
    --border-color: #D5EDE4;
    --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
    --shadow: 0 1px 2px rgba( 16, 36, 30, 0.04 ), 0 8px 24px rgba( 16, 36, 30, 0.06 );
}

@media ( prefers-color-scheme: dark ) {
    :root {
        color-scheme: dark;
        --primary: #21E6C1;
        --primary-deep: #17C9A9;
        --primary-soft: #1B4A45;
        --accent: #FF4D8D;
        --bg: #1F2536;
        --card: #2B3348;
        --text: #F5F7FC;
        --text-color-subtle: #A7B0C9;
        --border-color: #3D4763;
        --shadow: 0 1px 2px rgba( 0, 0, 0, 0.2 ), 0 8px 24px rgba( 0, 0, 0, 0.28 );
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0;
}

p {
    margin: 0 0 14px;
}

a {
    color: var(--primary-deep);
}

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

.narrow {
    max-width: 760px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--card);
    border-bottom: 1px solid var(--border-color);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 32px;
    height: 32px;
    flex: none;
}

.brand-word {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-me {
    color: var(--primary-deep);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--text-color-subtle);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--primary-deep);
    text-decoration: underline;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #06231C;
}

.btn-primary:hover {
    background: var(--primary-deep);
    border-color: var(--primary-deep);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--primary-deep);
    color: var(--primary-deep);
}

/* The .site-nav a rule above is more specific than .btn-primary, so the button
   label has to be restated here or it inherits the muted link colour. */
.site-nav a.btn {
    padding: 8px 16px;
}

.site-nav a.btn-primary {
    color: #06231C;
}

.site-nav a.btn-primary:hover {
    color: #06231C;
    text-decoration: none;
}

/* Sections */

section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

section h2 {
    font-size: 1.7rem;
    margin-bottom: 8px;
}

.section-lede {
    color: var(--text-color-subtle);
    max-width: 62ch;
    margin-bottom: 30px;
}

/* Hero */

.hero {
    border-top: none;
    padding: 74px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.9rem;
    margin-bottom: 16px;
}

.hero .lede {
    font-size: 1.15rem;
    color: var(--text-color-subtle);
    max-width: 58ch;
    margin: 0 auto 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-note {
    color: var(--text-color-subtle);
    font-size: 0.9rem;
}

/* Platform chips */

.platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 34px auto 0;
    max-width: 700px;
}

.chip {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border-color);
    font-size: 0.92rem;
    font-weight: 600;
}

.chip span {
    color: var(--text-color-subtle);
    font-weight: 400;
    font-size: 0.82rem;
}

/* Card grids */

.grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax( 280px, 1fr ) );
    gap: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-color-subtle);
    margin: 0;
    font-size: 0.95rem;
}

.card-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-deep);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Steps */

.steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
    gap: 18px;
}

.step {
    position: relative;
    padding: 22px 22px 22px 64px;
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.step::before {
    counter-increment: step;
    content: counter( step );
    position: absolute;
    left: 22px;
    top: 22px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #06231C;
    font-family: var(--font-display);
    font-weight: 700;
    display: grid;
    place-items: center;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.step p {
    color: var(--text-color-subtle);
    font-size: 0.95rem;
    margin: 0;
}

/* Plans */

.plan {
    display: flex;
    flex-direction: column;
}

.plan-featured {
    border-color: var(--primary);
}

.plan h3 {
    font-size: 1.3rem;
}

.plan-meta {
    color: var(--text-color-subtle);
    font-size: 0.92rem;
    margin: 4px 0 16px;
}

.plan ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    font-size: 0.95rem;
}

.plan li {
    padding: 7px 0 7px 26px;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.plan li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 15px;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--primary-deep);
    border-bottom: 2px solid var(--primary-deep);
    transform: rotate( -45deg );
}

.plan li.off {
    color: var(--text-color-subtle);
}

.plan li.off::before {
    border: none;
    content: "—";
    top: 7px;
    left: 5px;
    width: auto;
    height: auto;
    transform: none;
}

.plan .btn {
    margin-top: auto;
    text-align: center;
}

/* FAQ */

.faq {
    max-width: 760px;
}

.faq details {
    background: var(--card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.faq summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    float: right;
    color: var(--primary-deep);
    font-weight: 700;
}

.faq details[open] summary::after {
    content: "–";
}

.faq details p {
    color: var(--text-color-subtle);
    margin: 10px 0 2px;
    font-size: 0.95rem;
}

/* Closing call to action */

.cta {
    text-align: center;
}

.cta-box {
    background: var(--primary-soft);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 44px 24px;
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta p {
    color: var(--text-color-subtle);
    max-width: 48ch;
    margin: 0 auto 22px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border-color);
    background: var(--card);
    padding: 26px 20px calc( 26px + env( safe-area-inset-bottom ) );
    color: var(--text-color-subtle);
    font-size: 0.9rem;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    color: var(--text-color-subtle);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--primary-deep);
    text-decoration: underline;
}

@media ( max-width: 700px ) {
    .hero {
        padding: 48px 0 44px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    section {
        padding: 46px 0;
    }

    .site-nav {
        gap: 14px;
        font-size: 0.9rem;
    }
}

@media ( max-width: 460px ) {
    .site-nav .hide-tiny {
        display: none;
    }
}
