/* ------------------------------------------------
   The Ladder — Website Styles
   ------------------------------------------------ */

/* --- CSS Variables --- */
:root {
    --accent: #007AFF;
    --bg: #FFFFFF;
    --bg-secondary: #F2F2F7;
    --text-primary: #000000;
    --text-secondary: #8E8E93;
    --text-tertiary: #C7C7CC;
    --border: #E5E5EA;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --bg-secondary: #1C1C1E;
        --text-primary: #FFFFFF;
        --text-secondary: #8E8E93;
        --text-tertiary: #C7C7CC;
        --border: #38383A;
    }
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-weight: normal;
    line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Layout --- */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* --- Nav --- */
nav {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    background-color: var(--bg);
    z-index: 10;
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.125rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.hero h1 {
    margin-bottom: 0.75rem;
}

.hero .tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.app-store-badge {
    display: inline-block;
    margin-top: 1rem;
}

.app-store-badge img {
    height: 44px;
}

/* --- Sections --- */
.section {
    padding: 2.5rem 0;
}

.section + .section {
    border-top: 1px solid var(--border);
}

/* --- Steps --- */
.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.step-number {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--accent) 15%, transparent);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Feature Grid --- */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 480px) {
    .features {
        grid-template-columns: 1fr 1fr;
    }
}

.feature {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.25rem;
}

.feature h3 {
    font-size: 1rem;
}

.feature p {
    font-size: 0.875rem;
}

/* --- Pro Badge --- */
.pro-badge {
    display: inline-block;
    background-color: var(--accent);
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 0.25rem;
    letter-spacing: 0.03em;
}

/* --- FAQ --- */
.faq {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item h3 {
    margin-bottom: 0.375rem;
}

.faq-item p {
    font-size: 0.9375rem;
}

/* --- Contact Box --- */
.contact-box {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.contact-box p {
    margin-bottom: 0.5rem;
}

.contact-box a {
    font-weight: 600;
}

/* --- Footer --- */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

footer .footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

footer .footer-links a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

footer .footer-links a:hover {
    color: var(--accent);
}

/* --- Page Header (for inner pages) --- */
.page-header {
    padding: 3rem 0 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
}

/* --- Prose (for privacy policy etc.) --- */
.prose h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose ul {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.375rem;
}

/* --- Utility --- */
.text-secondary { color: var(--text-secondary); }
.text-accent    { color: var(--accent); }
.mb-0           { margin-bottom: 0; }
