/* Closeloop Design System */
:root {
    --bg-primary: #0D0C0B;
    --bg-secondary: #1E1C19;
    --bg-tertiary: #2A2723;
    --text-primary: #E8E4DE;
    --text-secondary: #8A857D;
    --text-tertiary: #5C5650;
    --gold: #C4A882;
    --green: #7BAF6E;
    --purple: #8B7EC8;
    --border: #3A3631;
    --font-serif: Georgia, 'Times New Roman', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 640px;
}

/* Navigation */
nav {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 15px;
    letter-spacing: 0.02em;
}

.nav-back {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Hero */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    opacity: 0.06;
    pointer-events: none;
}

.hero-logo {
    margin-bottom: 48px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: normal;
    color: var(--text-primary);
    margin: 0 0 24px;
    line-height: 1.2;
}

.hero-tagline {
    font-size: 19px;
    color: var(--text-secondary);
    margin: 0 0 48px;
    line-height: 1.6;
}

/* Section */
section {
    padding: 80px 0;
}

.section-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin: 0 0 24px;
}

section h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: normal;
    color: var(--text-primary);
    margin: 0 0 20px;
    line-height: 1.3;
}

section p {
    margin: 0 0 20px;
}

/* How it works */
.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    padding-left: 48px;
    position: relative;
    margin-bottom: 40px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gold);
}

.steps li strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: normal;
}

/* Pricing */
.pricing {
    text-align: center;
}

.pricing-tier {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.pricing-tier strong {
    font-weight: normal;
}

.pricing-price {
    font-size: 15px;
    color: var(--text-secondary);
}

/* App Store Badge */
.app-store-badge {
    display: inline-block;
    margin-top: 32px;
}

.app-store-badge img,
.app-store-badge svg {
    height: 48px;
    width: auto;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 15px;
}

footer p {
    margin: 0 0 16px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.footer-links span {
    color: var(--text-tertiary);
}

/* Legal Pages */
.legal-content {
    padding: 60px 0 100px;
}

.legal-content h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: normal;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.legal-date {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}

.legal-content h2 {
    font-size: 20px;
    margin-top: 48px;
}

.legal-content p,
.legal-content ul,
.legal-content li {
    color: var(--text-primary);
}

.legal-content ul {
    padding-left: 24px;
    margin: 16px 0;
}

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

/* Responsive */
@media (min-width: 640px) {
    .container { padding: 0 40px; }
    .hero h1 { font-size: 52px; }
    .hero-tagline { font-size: 21px; }
    section h2 { font-size: 32px; }
}

@media (min-width: 1024px) {
    .hero h1 { font-size: 64px; }
    .hero { padding: 120px 0 140px; }
    section { padding: 100px 0; }
}
