/* styles.css — base layout for the SnAPP marketing site. Consumes tokens.css. */

:root {
    /* Site-local tokens from the Figma "SnAppToTrade — Design System Library" marketing
       site frames. Kept here rather than in tokens.css because that file is a synced copy
       of dartmouth/webapp/tokens.css and shouldn't diverge from its source. */
    --font-display:   'Plus Jakarta Sans', var(--font-sans);
    --font-heading:   'Space Grotesk', var(--font-display);
    --ink:            #0f0f10;
    --ink-soft:       #2e2e32;
    --muted-warm:     #9a9aa1;
    --cream:          #faf7f3;
    --cream-deep:     #f2eee6;
    --hairline:       #e4e2dd;
    --accent:         #ff6b1a;
    --accent-tint:    #ffe9dc;
    --accent-deep:    #e85a0e;
    --footer-bg:      #1c1c1f;
    --footer-bg-deep: #0f0f10;
    --footer-muted:   #9a9aa1;
    --footer-muted-2: #6e6e74;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-display);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Header */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    min-height: 72px;
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
    flex-wrap: wrap;
}

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

.brand__logo {
    height: 32px;
    width: auto;
    display: block;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.84375rem;
    font-weight: 500;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 1.25rem;
    border-radius: 22px;
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: var(--accent-deep);
}

/* Hero */

.hero {
    padding: 4rem 0;
    background: var(--cream);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 560px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent-deep);
    font-weight: 600;
    font-size: 0.75rem;
}

.hero-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

.hero h1 {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.hero-subhead {
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
    max-width: 32em;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0 1.75rem;
    border-radius: 27px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

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

.btn-secondary {
    background: transparent;
    color: var(--ink-soft);
    border: 1.5px solid var(--hairline);
}

.hero-photo {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.hero-photo img {
    max-width: 306px;
    width: 100%;
    height: auto;
}

/* Features */

.features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
    padding: 0 var(--space-lg) 6rem;
    background: var(--cream);
    text-align: center;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 620px;
}

.section-eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.125em;
    text-transform: uppercase;
}

.section-header h2 {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: -0.0125em;
    color: var(--ink);
    margin: 0;
}

.accent {
    color: var(--accent);
}

.section-header p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem;
    text-align: left;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 16px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 26px;
    background: var(--accent-tint);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--ink);
    margin: 0;
}

.feature-card h3 .feature-sub {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted-warm);
}

.feature-card p {
    color: var(--ink-soft);
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0;
}

/* How it works */

.how-it-works {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.75rem;
    padding: 0 var(--space-lg) 6rem;
    background: var(--cream);
    text-align: center;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.25rem 2rem;
    text-align: left;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 16px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 26px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.125rem;
}

.step-card h3 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ink);
    margin: 0;
}

.step-card p {
    color: var(--ink-soft);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
    max-width: 315px;
}

/* Download CTA */

.download-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 6rem var(--space-lg);
    background: var(--footer-bg);
    text-align: center;
}

.download-cta .section-eyebrow {
    color: var(--accent);
}

.download-cta h2 {
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.1;
    letter-spacing: -0.0227em;
    color: #fff;
    margin: 0;
}

.download-cta p {
    color: var(--footer-muted);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 480px;
    margin: 0;
}

.store-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.store-badges img {
    height: 47px;
    width: auto;
    display: block;
}

/* Contact */

.contact-hero {
    background: var(--cream-deep);
    padding: 4rem 0;
    text-align: center;
}

.contact-hero .section-eyebrow {
    display: block;
    margin-bottom: 0.75rem;
}

.contact-hero h1 {
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.1;
    letter-spacing: -0.0227em;
    color: var(--ink);
    margin: 0 0 0.75rem;
}

.contact-hero-subhead {
    color: var(--ink-soft);
    font-size: 1rem;
    margin: 0;
}

.contact-body {
    background: var(--cream);
    padding: 5rem 0;
}

.contact-layout {
    display: flex;
    align-items: flex-start;
    gap: 5rem;
}

.contact-form {
    flex: 1 1 auto;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form h2,
.contact-info h2 {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--ink);
    margin: 0;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-field {
    flex: 1 1 260px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink);
}

.form-field input,
.form-field textarea {
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted-warm);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.form-field textarea {
    resize: vertical;
}

.contact-form .btn {
    align-self: flex-start;
}

/* Honeypot — off-screen, not display:none (some bots skip hidden fields but
   still fill ones merely positioned off-screen, which is the point: real
   users never tab or scroll to it, but naive bots do). */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin: 0;
    font-size: 0.875rem;
    min-height: 1.25em;
}

.form-status--success {
    color: #1a7f37;
}

.form-status--error {
    color: #c0392b;
}

.contact-info {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 16px;
}

.contact-info-icon {
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--accent-tint);
    font-size: 1.25rem;
}

.contact-info-item h3 {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--ink);
    margin: 0 0 0.25rem;
}

.contact-info-item p {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0;
}

.contact-info-item a {
    color: var(--accent-deep);
    font-weight: 600;
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* FAQ (native <details>/<summary> — no JS needed) */

.faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 6rem var(--space-lg);
    background: var(--cream-deep);
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

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

.faq-chevron {
    flex: 0 0 auto;
    color: var(--muted-warm);
    transition: transform 0.15s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* Generic page */

.page {
    padding: var(--space-xl) 0;
}

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

/* Legal page (Privacy, and reusable for Terms — hero + sticky ToC + numbered sections) */

.legal-hero {
    background-color: var(--cream-deep);
    padding: 4rem 0;
}

.legal-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.legal-hero__eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.09375rem;
    text-transform: uppercase;
}

.legal-hero h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.0625rem;
    line-height: 1.1;
    color: var(--ink);
}

.legal-hero__meta {
    margin: 0;
    color: var(--muted-warm);
    font-size: 0.875rem;
}

.legal-layout {
    background-color: var(--cream);
    padding: 5rem 0;
}

.legal-layout__inner {
    display: flex;
    align-items: flex-start;
    gap: 5rem;
}

.legal-toc {
    flex: 0 0 220px;
    background-color: var(--cream-deep);
    border: 1px solid var(--hairline);
    border-radius: 0.75rem;
    padding: 1.25rem;
    position: sticky;
    top: 2rem;
}

.legal-toc__heading {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink);
}

.legal-toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.legal-toc a {
    color: var(--accent-deep);
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.legal-toc a:hover {
    text-decoration: underline;
}

.legal-content {
    flex: 1 1 auto;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-content section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legal-content h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.legal-content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.legal-content ul,
.legal-content ol {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.legal-content a {
    color: var(--accent-deep);
}

/* About page */

.about-hero {
    background-color: var(--cream-deep);
    padding: 5rem 0;
}

.about-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.about-hero__eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.125em;
    text-transform: uppercase;
}

.about-hero h1 {
    margin: 0;
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.0192em;
    line-height: 1.1;
    color: var(--ink);
}

.about-hero p {
    margin: 0;
    max-width: 620px;
    color: var(--footer-muted-2);
    font-size: 1.125rem;
    line-height: 1.55;
}

.story {
    background-color: var(--cream);
    padding: 6rem 0;
}

.story-inner {
    display: flex;
    align-items: flex-start;
    gap: 5rem;
}

.story-copy {
    flex: 1 1 560px;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-copy h2 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.0139em;
    line-height: 1.15;
    color: var(--ink);
}

.story-copy p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.values-col {
    flex: 1 1 480px;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.values-col h2 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--ink);
}

.value-card {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: 12px;
}

.value-card h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink);
}

.value-card p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--footer-muted-2);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 5rem var(--space-lg);
    background: var(--footer-bg);
    text-align: center;
}

.contact-cta h2 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
}

.contact-cta p {
    margin: 0;
    max-width: 480px;
    color: var(--muted-warm);
    font-size: 1rem;
    line-height: 1.55;
}

/* Footer */

.site-footer {
    background-color: var(--footer-bg);
}

.site-footer__main {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
    padding: 4rem 0;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 8rem;
}

.footer-col--brand {
    flex: 0 0 280px;
    gap: 1rem;
}

.footer-logo {
    height: 32px;
    width: auto;
    /* .footer-col is a column flex container; without this, align-items:stretch
       forces the image to the column's full flex-basis width, distorting it. */
    align-self: flex-start;
    /* Wordmark PNG is black/orange on transparent — render as a white silhouette for the dark footer */
    filter: grayscale(1) brightness(0) invert(1);
}

.footer-tagline {
    margin: 0;
    max-width: 22ch;
    font-size: 0.8125rem;
    color: var(--footer-muted);
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-badge {
    height: 40px;
    width: auto;
    display: block;
}

.footer-col__heading {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
}

.footer-col a {
    color: var(--footer-muted);
    text-decoration: none;
    font-size: 0.8125rem;
}

.footer-col a:hover {
    color: #ffffff;
}

.site-footer__bottom {
    background-color: var(--footer-bg-deep);
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 1.25rem 0;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--footer-muted-2);
}

.site-footer__bottom-inner p {
    margin: 0;
}

.site-footer__bottom-inner ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.site-footer__bottom-inner a {
    color: var(--footer-muted-2);
    text-decoration: none;
}

.site-footer__bottom-inner a:hover {
    color: #ffffff;
}

@media (max-width: 900px) {
    .legal-layout__inner {
        flex-direction: column;
    }

    .legal-toc {
        position: static;
        width: 100%;
        flex: none;
    }

    .legal-content {
        max-width: none;
    }

    .hero-inner,
    .story-inner {
        flex-direction: column;
    }

    .story-copy,
    .values-col {
        max-width: none;
    }

    .feature-grid,
    .steps-row {
        grid-template-columns: 1fr;
    }

    .site-footer__main {
        flex-direction: column;
    }

    .contact-layout {
        flex-direction: column;
    }

    .contact-info {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .site-header__inner,
    .site-footer__bottom-inner {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .legal-hero h1 {
        font-size: 2rem;
    }

    .site-nav ul {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}
