* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #BC002D;
    --primary-dark: #8B0020;
    --primary-light: #DC143C;
    --primary-muted: rgba(188, 0, 45, 0.1);
    --accent: #C9A962;
    --accent-muted: rgba(201, 169, 98, 0.15);
    --text: #1C1917;
    --text-light: #78716C;
    --text-tertiary: #A8A29E;
    --bg: #FAFAF8;
    --card-bg: #FFFFFF;
    --border: #E7E5E4;
    --shadow: rgba(28, 25, 23, 0.08);
    --dark-bg: #0C0A09;
    --dark-surface: #1C1917;
    --dark-elevated: #292524;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    letter-spacing: 0.1px;
}

/* ============================================
   LEGAL PAGES (legal.html + document pages)
   ============================================ */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo {
    width: 72px;
    height: 72px;
}

.app-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.1;
}

.app-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

.subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Navigation cards for legal hub */
.legal-nav {
    display: grid;
    gap: 1rem;
}

.nav-card {
    display: block;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(188, 0, 45, 0.1);
}

.nav-card h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.nav-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Document page styles */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.back-link:hover {
    text-decoration: underline;
}

.document {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    flex: 1;
}

.document h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.effective-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.document h2 {
    font-size: 1.3rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.document h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.document p {
    margin-bottom: 1rem;
}

.document ul, .document ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.document li {
    margin-bottom: 0.5rem;
}

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

.document a:hover {
    text-decoration: none;
}

.document strong {
    font-weight: 600;
}

.document code {
    background: var(--bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.summary-box {
    background: var(--bg);
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.summary-box h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.summary-box ul {
    margin-bottom: 0;
}

.disclaimer {
    background: #fff8e6;
    border: 1px solid #f0d68a;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #7a6420;
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .document {
        padding: 1.5rem;
    }

    .document h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   LANDING PAGE (index.html)
   ============================================ */

/* Phosphor Waves thin SVG (URL-encoded, used as decorative background) */
/* Red variant */
/* White variant */

.landing {
    background: #fff;
}

/* --- Language Toggle --- */

.lang-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.lang-toggle-current {
    color: #fff;
}

a.lang-toggle-link,
a.lang-toggle-link:visited {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

a.lang-toggle-link:hover {
    color: #fff;
}

/* --- Hero --- */

.hero {
    background: linear-gradient(135deg, #BC002D 0%, #A30026 50%, #8B0020 100%);
    color: #fff;
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: clamp(15rem, 40vw, 31.25rem);
    height: clamp(15rem, 40vw, 31.25rem);
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 40rem;
    margin: 0 auto;
}

.hero-logo {
    width: clamp(4rem, 10vw, 6rem);
    height: clamp(4rem, 10vw, 6rem);
    filter: drop-shadow(0 0.25rem 0.75rem rgba(0,0,0,0.2));
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem);
    font-weight: 400;
    letter-spacing: 0.3px;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-japanese {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    opacity: 0.75;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: clamp(1.05rem, 2vw + 0.25rem, 1.35rem);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-description {
    font-size: clamp(0.9rem, 1.5vw + 0.25rem, 1.05rem);
    opacity: 0.9;
    line-height: 1.7;
    max-width: 32.5rem;
    margin: 0 auto 2.5rem;
}

/* Store buttons */

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    transition: transform 0.15s, opacity 0.2s;
}

.store-badge:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.store-badge img {
    height: clamp(3rem, 6vw, 3.5rem);
    width: auto;
    display: block;
}

/* --- Demo section --- */

.demo {
    padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.demo::before {
    content: '';
    position: absolute;
    top: 5%;
    left: -5%;
    width: clamp(7.5rem, 18vw, 13.75rem);
    height: clamp(7.5rem, 18vw, 13.75rem);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23BC002D'%3E%3Cpath d='M219.08 179.84a4 4 0 0 1-.53 5.63C203.56 197.9 188.9 204 173.93 204a55 55 0 0 1-6.12-.34c-15-1.65-28.6-9-41.72-16.14-25.52-13.86-49.62-27-83.54 1.18a4 4 0 0 1-5.1-6.16c17-14.12 33.62-20.08 50.74-18.19 15 1.64 28.6 9 41.72 16.14 25.52 13.86 49.62 26.94 83.54-1.18a4 4 0 0 1 5.63.53m-5.63-56.53c-33.92 28.12-58 15-83.54 1.17-13.12-7.12-26.69-14.49-41.72-16.14-17.12-1.88-33.72 4.07-50.74 18.19a4 4 0 1 0 5.1 6.16c33.92-28.12 58-15 83.54-1.17 13.12 7.12 26.69 14.49 41.72 16.14a57 57 0 0 0 6.12.34c15 0 29.63-6.1 44.62-18.53a4 4 0 1 0-5.1-6.16M42.55 76.69c33.92-28.13 58-15 83.54-1.18 13.12 7.13 26.69 14.5 41.72 16.14a55 55 0 0 0 6.12.34c15 0 29.63-6.1 44.62-18.53a4 4 0 1 0-5.1-6.16c-33.92 28.13-58 15-83.54 1.18-13.12-7.13-26.69-14.48-41.72-16.14-17.12-1.88-33.72 4.07-50.74 18.19a4 4 0 1 0 5.1 6.16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.section-inner {
    max-width: 45rem;
    margin: 0 auto;
    position: relative;
}

/* --- App-style cards (matching mobile app design) --- */

.app-card {
    background: var(--card-bg);
    border: 1px solid #F5F5F4;
    border-radius: 1rem;
    padding: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    box-shadow: 0 0.25rem 0.75rem var(--shadow);
}

.app-card--translation {
    border-radius: 1.5rem;
    padding: clamp(1.25rem, 3vw, 1.5rem);
    overflow: hidden;
    position: relative;
}

.app-card--translation::after {
    content: '';
    position: absolute;
    top: clamp(-1rem, -1.5vw, -0.75rem);
    right: clamp(-1rem, -1.5vw, -0.75rem);
    width: clamp(5rem, 8vw, 7rem);
    height: clamp(5rem, 8vw, 7rem);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23BC002D' d='M244.1 122.63a13.56 13.56 0 0 0-8.3-6.4 72.6 72.6 0 0 0-24.17-2c4.67-20.63 1.62-36.91-1.45-46.4a14.16 14.16 0 0 0-16.48-9.53 84.2 84.2 0 0 0-29.76 13.11 92.6 92.6 0 0 0-27.52-34.6 14 14 0 0 0-16.85 0 92.7 92.7 0 0 0-27.51 34.6A84.2 84.2 0 0 0 62.29 58.3a14.15 14.15 0 0 0-16.47 9.54c-3.07 9.49-6.12 25.77-1.45 46.4a72.6 72.6 0 0 0-24.17 2 13.56 13.56 0 0 0-8.3 6.4 14 14 0 0 0-1.4 10.74C13.81 145.66 24 169 54.92 187.51S113.29 206 128 206s42.12 0 73.06-18.49 41.11-41.85 44.42-54.14a14 14 0 0 0-1.38-10.74M168.48 82.9A73.1 73.1 0 0 1 196.22 70a2.2 2.2 0 0 1 2.54 1.5c3.94 12.22 7.81 37.5-10.59 69.5a129.8 129.8 0 0 1-28 33.37C167.85 161 174 142.93 174 119.17a116.1 116.1 0 0 0-5.52-36.27M57.24 71.53A2.2 2.2 0 0 1 59.78 70a73.1 73.1 0 0 1 27.74 12.9A116.1 116.1 0 0 0 82 119.17c0 23.76 6.15 41.85 13.81 55.17a129.6 129.6 0 0 1-28-33.37C49.43 109 53.3 83.72 57.24 71.53m3.84 105.67c-27.3-16.31-36.15-36.42-39-47a2.08 2.08 0 0 1 .21-1.61 1.7 1.7 0 0 1 1-.8A62.2 62.2 0 0 1 48 126.72 126 126 0 0 0 57.43 147a141 141 0 0 0 41 44.72 114.8 114.8 0 0 1-37.35-14.52M128 192.86c-8.68-6.2-34-28.2-34-73.69 0-43.36 22.94-65.34 32.8-72.78a2 2 0 0 1 2.4 0c9.86 7.44 32.8 29.42 32.8 72.78 0 45.77-25.19 67.5-34 73.69m105.9-62.62c-2.85 10.54-11.7 30.65-39 47a114.8 114.8 0 0 1-37.38 14.47 141 141 0 0 0 41-44.72 126 126 0 0 0 9.48-20.27 62.2 62.2 0 0 1 24.73 1.11 1.7 1.7 0 0 1 1 .8 2.08 2.08 0 0 1 .19 1.61Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

/* Label row: "TRANSLATION" / "ORIGINAL" + line */
.app-card--translation .app-label-row,
.app-card--translation .app-translation-text,
.app-card--translation .app-dashed-divider,
.app-card--translation .app-original-text {
    position: relative;
    z-index: 1;
}

.app-label-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.app-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.125em;
    color: var(--primary);
    white-space: nowrap;
}

.app-label-line {
    flex: 1;
    height: 1px;
    background: #F5F5F4;
}

.app-translation-text {
    font-size: clamp(1.1rem, 2vw + 0.25rem, 1.25rem);
    line-height: 1.65;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.2px;
    color: var(--text);
    margin: 0;
}

.app-dashed-divider {
    border-top: 1px dashed var(--border);
    margin: clamp(1rem, 2vw, 1.5rem) 0;
}

.app-difficulty-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-muted);
    padding: 0.25rem 0.625rem;
    border-radius: 0.75rem;
    white-space: nowrap;
}

.app-original-text {
    font-size: clamp(1.1rem, 2vw + 0.25rem, 1.25rem);
    line-height: 2.2;
    font-weight: 500;
    color: var(--text);
    margin: 0.25rem 0 0;
}

.app-original-text ruby {
    ruby-align: center;
}

.app-original-text rt {
    font-size: 0.55em;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: 0.05em;
}

/* Card title: accent bar + title text */
.app-card-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.app-title-accent {
    width: 3px;
    height: 1rem;
    border-radius: 2px;
    background: var(--primary);
    flex-shrink: 0;
}

.app-title-text {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

/* Word breakdown items */
.app-word-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-word-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem;
    background: var(--bg);
    border-radius: 0.75rem;
    border: 1px solid transparent;
    gap: 0.75rem;
}

.app-word-left {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-word-surface {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--text);
}

.app-word-reading {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.app-word-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.app-word-meaning {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    text-align: right;
}

.app-word-pos {
    font-size: 0.6875rem;
    font-style: italic;
    color: var(--text-tertiary);
    margin-top: 0.125rem;
}

/* Grammar points */
.app-grammar-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-grammar-item {
    padding: 1rem;
    background: var(--bg);
    border-radius: 0.75rem;
    border-left: 3px solid var(--primary);
}

.app-grammar-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

.app-grammar-pattern {
    font-size: clamp(1rem, 1.5vw + 0.25rem, 1.0625rem);
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--text);
}

.app-grammar-badges {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.app-jlpt-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--primary);
    background: var(--primary-muted);
    border: 1px solid var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.app-category-badge {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-light);
    background: #F5F5F4;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.app-grammar-explanation {
    font-size: 0.875rem;
    line-height: 1.6;
    letter-spacing: 0.1px;
    color: var(--text-light);
    margin: 0;
}

/* --- Features --- */

.features {
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.features::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -3%;
    width: clamp(9rem, 20vw, 15rem);
    height: clamp(9rem, 20vw, 15rem);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23BC002D'%3E%3Cpath d='M219.08 179.84a4 4 0 0 1-.53 5.63C203.56 197.9 188.9 204 173.93 204a55 55 0 0 1-6.12-.34c-15-1.65-28.6-9-41.72-16.14-25.52-13.86-49.62-27-83.54 1.18a4 4 0 0 1-5.1-6.16c17-14.12 33.62-20.08 50.74-18.19 15 1.64 28.6 9 41.72 16.14 25.52 13.86 49.62 26.94 83.54-1.18a4 4 0 0 1 5.63.53m-5.63-56.53c-33.92 28.12-58 15-83.54 1.17-13.12-7.12-26.69-14.49-41.72-16.14-17.12-1.88-33.72 4.07-50.74 18.19a4 4 0 1 0 5.1 6.16c33.92-28.12 58-15 83.54-1.17 13.12 7.12 26.69 14.49 41.72 16.14a57 57 0 0 0 6.12.34c15 0 29.63-6.1 44.62-18.53a4 4 0 1 0-5.1-6.16M42.55 76.69c33.92-28.13 58-15 83.54-1.18 13.12 7.13 26.69 14.5 41.72 16.14a55 55 0 0 0 6.12.34c15 0 29.63-6.1 44.62-18.53a4 4 0 1 0-5.1-6.16c-33.92 28.13-58 15-83.54 1.18-13.12-7.13-26.69-14.48-41.72-16.14-17.12-1.88-33.72 4.07-50.74 18.19a4 4 0 1 0 5.1 6.16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(20deg);
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    text-align: center;
    font-size: clamp(1.5rem, 3vw + 0.25rem, 2rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: box-shadow 0.2s, transform 0.15s;
}

.feature-card:hover {
    box-shadow: 0 0.5rem 2rem var(--shadow);
    transform: translateY(-3px);
}

.feature-icon {
    width: clamp(3rem, 5vw, 3.5rem);
    height: clamp(3rem, 5vw, 3.5rem);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-muted);
    border-radius: 0.875rem;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 0.25rem var(--accent-muted);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- How it works --- */

.how-it-works {
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 5%;
    right: -3%;
    width: clamp(8rem, 18vw, 13.75rem);
    height: clamp(8rem, 18vw, 13.75rem);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='white'%3E%3Cpath d='M219.08 179.84a4 4 0 0 1-.53 5.63C203.56 197.9 188.9 204 173.93 204a55 55 0 0 1-6.12-.34c-15-1.65-28.6-9-41.72-16.14-25.52-13.86-49.62-27-83.54 1.18a4 4 0 0 1-5.1-6.16c17-14.12 33.62-20.08 50.74-18.19 15 1.64 28.6 9 41.72 16.14 25.52 13.86 49.62 26.94 83.54-1.18a4 4 0 0 1 5.63.53m-5.63-56.53c-33.92 28.12-58 15-83.54 1.17-13.12-7.12-26.69-14.49-41.72-16.14-17.12-1.88-33.72 4.07-50.74 18.19a4 4 0 1 0 5.1 6.16c33.92-28.12 58-15 83.54-1.17 13.12 7.12 26.69 14.49 41.72 16.14a57 57 0 0 0 6.12.34c15 0 29.63-6.1 44.62-18.53a4 4 0 1 0-5.1-6.16M42.55 76.69c33.92-28.13 58-15 83.54-1.18 13.12 7.13 26.69 14.5 41.72 16.14a55 55 0 0 0 6.12.34c15 0 29.63-6.1 44.62-18.53a4 4 0 1 0-5.1-6.16c-33.92 28.13-58 15-83.54 1.18-13.12-7.13-26.69-14.48-41.72-16.14-17.12-1.88-33.72 4.07-50.74 18.19a4 4 0 1 0 5.1 6.16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(10deg);
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.how-it-works .section-title {
    color: #FAFAF9;
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 14rem;
    padding: 0 1rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FAFAF9;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9rem;
    color: #A8A29E;
    line-height: 1.6;
}

.step-connector {
    width: clamp(1.5rem, 4vw, 3rem);
    height: 2px;
    background: var(--dark-elevated);
    margin-top: 1.4375rem;
    flex-shrink: 0;
}

/* --- CTA --- */

.cta {
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    background: var(--bg);
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    display: block;
    width: 3.75rem;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw + 0.25rem, 2rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.cta p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* --- Site footer --- */

.site-footer {
    padding: 3rem 1.5rem 2rem;
    background: var(--dark-bg);
    color: rgba(250,250,249,0.7);
    text-align: center;
    border-top: none;
    margin-top: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
}

.footer-brand span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(250,250,249,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FAFAF9;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- Landing responsive --- */

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

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .step {
        max-width: 17.5rem;
    }

    .step-connector {
        width: 2px;
        height: 2rem;
        margin: 0;
    }
}
