/* ============================================================
   LearnWithOliver - Aurora Theme (creative redesign)
   Replaces the original logged-out stylesheet.
   Uses the same HTML class names but with a fresh,
   modern, dreamy aesthetic.
   Requires: 'Playfair Display' & 'Inter' from Google Fonts,
   and Font Awesome 6 for icons.
   ============================================================ */

/* ================= tokens ================= */
:root {
    /* Core palette – inspired by aurora skies */
    --teal-dark: #0B3B3C;
    --teal-mid: #1E6B6E;
    --teal-light: #7BBFC2;
    --rose: #F7A1C4;
    --lavender: #C9B1FF;
    --gold: #FFD166;
    --cream: #FBF7F0;
    --ink: #1A1A1A;

    /* Surfaces & text */
    --surface: #FFFFFF;
    --surface-soft: rgba(255, 255, 255, 0.6);
    --text: var(--ink);
    --text-2: #3A3A3A;
    --text-3: rgba(26, 26, 26, 0.5);
    --border: rgba(11, 59, 60, 0.12);
    --accent: #FF6B8A;        /* vibrant pink */
    --accent-soft: rgba(255, 107, 138, 0.12);
    --accent-text: #D84A6A;

    /* Shadows – softer and more diffused */
    --shadow: 0 8px 30px -8px rgba(11, 59, 60, 0.08);
    --shadow-lg: 0 30px 60px -20px rgba(11, 59, 60, 0.25);
    --shadow-glow: 0 0 40px rgba(255, 107, 138, 0.15);

    /* Radii – more rounded */
    --radius: 28px;
    --radius-sm: 16px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark mode – deeper, more mysterious */
html[data-theme="dark"] {
    --cream: #121212;
    --surface: #1E1E1E;
    --surface-soft: rgba(30, 30, 30, 0.7);
    --ink: #F5F0EB;
    --text: #F5F0EB;
    --text-2: #B8B0A8;
    --text-3: rgba(245, 240, 235, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --accent: #FF8FAB;
    --accent-soft: rgba(255, 143, 171, 0.15);
    --accent-text: #FF8FAB;
    --shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 50px rgba(255, 143, 171, 0.08);
}

/* ================= base ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle at 20% 30%, rgba(123, 191, 194, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 138, 0.06) 0%, transparent 50%);
}

/* Subtle noise overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.04;
    mix-blend-mode: multiply;
}
html[data-theme="dark"] body::before {
    opacity: 0.06;
    mix-blend-mode: screen;
}

/* Typography – elegant serif for headings */
h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: -0.02em;
    font-weight: 600;
}
h1,
h2,
h3,
h4,
p,
ul {
    margin: 0 0 0.6em;
}
a {
    color: var(--accent-text);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent);
    text-decoration: underline;
}
img {
    max-width: 100%;
    display: block;
}
button {
    font-family: inherit;
}

/* Form elements – soft and rounded */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: all var(--transition);
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    accent-color: var(--accent);
}
label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.02em;
}

/* ================= layout ================= */
.d-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 24px;
}
.d-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin: 24px 0;
    backdrop-filter: blur(2px);
    transition: all var(--transition);
}
.d-card:hover {
    box-shadow: var(--shadow-lg);
}

/* ================= buttons ================= */
.d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.d-btn:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.d-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}
.d-btn-primary {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    color: white;
}
.d-btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.d-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.d-btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero-style CTA */
.d-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
    color: white;
    padding: 18px 34px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 40px -8px rgba(11, 59, 60, 0.3);
    transition: all var(--transition);
}
.d-btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, var(--accent), #FF8A9B);
    color: white;
    text-decoration: none;
    box-shadow: 0 20px 50px -10px rgba(255, 107, 138, 0.4);
}
.d-btn-hero i {
    transition: transform var(--transition);
}
.d-btn-hero:hover i {
    transform: translateX(6px) scale(1.1);
}

/* ================= topbar ================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    background: color-mix(in srgb, var(--cream) 70%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}
.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-inner .spacer {
    flex: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
}
.brand:hover {
    text-decoration: none;
}
.brand .logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal-dark), var(--accent));
    display: grid;
    place-items: center;
    color: white;
    font-size: 22px;
    font-weight: 700;
}
.brand .logo img {
    width: 100%;
    height: auto;
    display: block;
}
.brand .logo .logo-dark {
    display: none;
}
html[data-theme="dark"] .brand .logo .logo-light {
    display: none;
}
html[data-theme="dark"] .brand .logo .logo-dark {
    display: block;
}
.brand-name {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--text);
}
.brand-name em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.d-nav {
    display: none;
    gap: 6px;
    align-items: center;
}
@media (min-width: 880px) {
    .d-nav {
        display: flex;
    }
}

.d-nav-link {
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
}
.d-nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition);
    transform: translateX(-50%);
}
.d-nav-link:hover {
    color: var(--text);
    background: transparent;
    text-decoration: none;
}
.d-nav-link:hover::after {
    width: 60%;
}
.d-nav-link.d-nav-active {
    color: var(--accent-text);
    background: var(--accent-soft);
}
.d-nav-link.d-nav-active::after {
    width: 60%;
    background: var(--accent);
}
.topbar .d-btn.d-nav-active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-text);
}

.menu-switch {
    display: grid;
    place-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 10px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.menu-switch:hover {
    border-color: var(--accent);
}
.menu-switch span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
@media (min-width: 880px) {
    .menu-switch {
        display: none;
    }
}

.d-nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 18px;
    border-top: 1px solid var(--border);
}
body.nav-active .d-nav-mobile {
    display: flex;
}
.d-nav-mobile .d-nav-link {
    text-align: left;
    padding: 14px 16px;
    font-size: 16px;
}
.d-nav-mobile .d-nav-link::after {
    display: none;
}
@media (max-width: 879px) {
    .topbar-inner > .d-btn {
        display: none;
    }
}

/* ================= theme toggle ================= */
.d-theme-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 600;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}
.d-theme-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent);
}

/* ================= index hero ================= */
.d-hero {
    position: relative;
    overflow: hidden;
    margin: 0 calc(50% - 50vw);
    padding: 80px 32px 64px;
    background: radial-gradient(ellipse at 70% 20%, rgba(123, 191, 194, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(255, 107, 138, 0.08) 0%, transparent 60%);
}
.d-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Floating orbs instead of blobs */
.d-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: d-float 20s ease-in-out infinite alternate;
}
.d-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -120px;
    right: -100px;
    animation-duration: 22s;
}
.d-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--teal-light);
    bottom: -120px;
    left: -100px;
    animation-delay: -6s;
    animation-duration: 26s;
}
.d-blob-3 {
    width: 350px;
    height: 350px;
    background: var(--gold);
    top: 30%;
    left: 40%;
    opacity: 0.15;
    animation-delay: -12s;
    animation-duration: 18s;
}
html[data-theme="dark"] .d-blob {
    opacity: 0.15;
}
html[data-theme="dark"] .d-blob-3 {
    opacity: 0.08;
}
@keyframes d-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -40px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    100% {
        transform: translate(20px, -10px) scale(1.05);
    }
}

.d-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero photo overlay – softer */
.d-hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--hero-photo) no-repeat center;
    background-size: cover;
    opacity: 0.2;
    border-radius: var(--radius);
}
.d-hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--cream) 80%, transparent), transparent 80%);
    border-radius: var(--radius);
}
html[data-theme="dark"] .d-hero-photo::before {
    opacity: 0.1;
}

.d-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-text);
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.d-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
    animation: d-pulse 2s infinite;
}
@keyframes d-pulse {
    50% {
        box-shadow: 0 0 0 10px transparent;
    }
}

.d-hero-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}
.d-hero-title .ital {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.d-hero-lead {
    font-size: 19px;
    color: var(--text-2);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Feature list – icons with gradient */
.d-hero-feats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
    margin-bottom: 36px;
}
.d-hf {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--text-2);
    font-weight: 500;
}
.d-hf-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: white;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
}
.d-hf:nth-child(odd) .d-hf-icon {
    background: linear-gradient(135deg, var(--accent), #FF8A9B);
}
.d-hf:nth-child(even) .d-hf-icon {
    background: linear-gradient(135deg, var(--gold), #F7B731);
    color: var(--ink);
}

/* Pitch list – more elegant */
.d-pitch {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 0 32px;
    padding: 0;
}
.d-pitch li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.d-pitch-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: 18px;
}
.d-pitch-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.d-pitch-copy {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.6;
}
.d-pitch-copy a {
    color: var(--accent-text);
}

.d-hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.d-hero-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-2);
}
.d-hero-trust .stars {
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 2px;
}
.d-hero-trust b {
    color: var(--text);
}
.d-hero-trust a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

/* ================= glass panel (language grid / signup) ================= */
.d-lang-panel {
    position: relative;
    background: color-mix(in srgb, var(--surface) 60%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid color-mix(in srgb, var(--surface) 80%, transparent);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.d-lang-panel-label {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.d-lang-panel-label::before {
    content: "";
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.d-langs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.d-lang-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 50%, transparent);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.2);
    position: relative;
    overflow: hidden;
}
.d-lang-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--teal-dark), var(--accent));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}
.d-lang-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: transparent;
    color: white;
    text-decoration: none;
    box-shadow: 0 16px 40px -12px rgba(11, 59, 60, 0.3);
}
.d-lang-card:hover::before {
    opacity: 1;
}
.d-lang-flag {
    font-size: 28px;
    z-index: 1;
    transition: transform 0.4s;
}
.d-lang-card:hover .d-lang-flag {
    transform: scale(1.2) rotate(-6deg);
}
.d-lang-name {
    font-size: 13px;
    font-weight: 600;
    z-index: 1;
}
.d-lang-card-more {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}
.d-lang-card-more::before {
    background: linear-gradient(135deg, var(--gold), var(--accent));
}
.d-lang-panel-foot {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-2);
}
.d-lang-panel-foot b {
    color: var(--text);
    font-weight: 700;
}

/* Signup panel inside glass */
.d-signup-panel label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}
.d-signup-panel label span {
    display: block;
    margin-bottom: 6px;
}
.d-signup-panel .d-btn-hero {
    margin-top: 6px;
}
.d-signup-panel .d-form-sub {
    margin-bottom: 18px;
}

/* ================= marquee (keeps dark) ================= */
.d-marquee {
    margin: 0 calc(50% - 50vw);
    background: var(--teal-dark);
    color: white;
    padding: 18px 0;
    overflow: hidden;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.1);
}
html[data-theme="dark"] .d-marquee {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.d-marquee-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: d-scroll 40s linear infinite;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 500;
}
.d-marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}
.d-marquee-track em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}
.d-marquee-track i {
    color: var(--accent);
    font-size: 16px;
    font-style: normal;
}
@keyframes d-scroll {
    to {
        transform: translateX(-50%);
    }
}

/* ================= section heads ================= */
.d-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin: 80px 0 50px;
    flex-wrap: wrap;
}
.d-section-head h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(36px, 5.5vw, 62px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    max-width: 720px;
    margin: 0;
}
.d-section-head h2 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.d-section-head p {
    max-width: 340px;
    color: var(--text-2);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* ================= bento feature cards ================= */
.d-fc-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
.d-fc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.2);
    box-shadow: var(--shadow);
}
.d-fc:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--accent-soft);
}
.d-fc-1 {
    grid-column: span 5;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-mid));
    color: white;
}
.d-fc-2 {
    grid-column: span 4;
    background: linear-gradient(135deg, var(--accent), #FF8A9B);
    color: white;
}
.d-fc-3 {
    grid-column: span 3;
}
.d-fc-4 {
    grid-column: span 4;
}
.d-fc-5 {
    grid-column: span 4;
    background: linear-gradient(135deg, var(--gold), #F7B731);
    color: var(--ink);
}
.d-fc-6 {
    grid-column: span 4;
}
.d-fc-num {
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 14px;
    opacity: 0.5;
    margin-bottom: 16px;
}
.d-fc-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}
.d-fc-3 .d-fc-icon,
.d-fc-4 .d-fc-icon,
.d-fc-6 .d-fc-icon {
    background: var(--teal-dark);
    color: white;
}
.d-fc-1 .d-fc-icon {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold);
}
.d-fc h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.d-fc p {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 0;
}
.d-fc img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    display: block;
}
.d-fc a {
    color: inherit;
}
.d-fc p a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.d-fc-deco {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 160px;
    font-style: italic;
    opacity: 0.06;
    line-height: 1;
    pointer-events: none;
}

/* ================= process steps ================= */
.d-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
    margin-bottom: 30px;
}
.d-steps::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--teal-light), var(--accent));
    opacity: 0.2;
    border-radius: 2px;
}
.d-step {
    position: relative;
    text-align: center;
}
.d-step-num {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: grid;
    place-items: center;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 18px;
    position: relative;
    z-index: 1;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.d-step:hover .d-step-num {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: white;
    border-color: transparent;
    transform: scale(1.1) rotate(6deg);
    box-shadow: var(--shadow-glow);
}
.d-step h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.d-step p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

/* ================= about / stats row ================= */
.d-about {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
    align-items: center;
    margin-top: 80px;
}
.d-card > .d-about:first-child{ margin-top:0; padding-top:0; border-top:0; }
.d-card > .d-card:only-child{ margin:0; padding:0; background:none; border:0; box-shadow:none; }
@media (min-width: 720px) {
    .d-about {
        grid-template-columns: 1fr auto;
    }
}
.d-about-copy {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    max-width: 640px;
}
.d-about-copy strong {
    color: var(--accent-text);
}
.d-about-note {
    font-size: 14px;
    color: var(--text-2);
    margin-top: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.d-about-note img {
    height: 28px;
}
.d-about-video {
    display: grid;
    place-items: center;
}

/* ================= final CTA band ================= */
.d-cta-final {
    background: linear-gradient(135deg, var(--teal-dark) 0%, #0E4A4C 50%, var(--accent) 120%);
    border-radius: var(--radius);
    padding: 64px 56px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 80px 0 24px;
    box-shadow: 0 20px 60px -20px rgba(11, 59, 60, 0.4);
}
.d-cta-final::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 214, 102, 0.2), transparent 60%);
    pointer-events: none;
}
.d-cta-final h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(32px, 4.5vw, 54px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    max-width: 680px;
    position: relative;
    z-index: 1;
    margin: 0;
}
.d-cta-final h2 em {
    font-style: italic;
    color: var(--gold);
}
.d-cta-final p {
    position: relative;
    z-index: 1;
    font-size: 16px;
    opacity: 0.85;
    margin: 12px 0 0;
    max-width: 560px;
    line-height: 1.7;
}
.d-cta-final-btn {
    background: white;
    color: var(--teal-dark);
    padding: 20px 36px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.3);
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}
.d-cta-final-btn:hover {
    transform: translateY(-4px) scale(1.02);
    text-decoration: none;
    color: var(--teal-dark);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5);
}

/* ================= reveal on scroll ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .d-blob,
    .d-marquee-track,
    .d-eyebrow .dot {
        animation: none;
    }
}

/* ================= other logged-out pages (forms etc.) ================= */
.d-landing-hero {
    text-align: center;
    padding: 48px 28px;
}
.d-hero-bird {
    display: block;
    margin-bottom: 18px;
}
.d-hero-bird img {
    width: 100px;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.05));
}
.d-hero-bird .logo-dark {
    display: none;
}
html[data-theme="dark"] .d-hero-bird .logo-light {
    display: none;
}
html[data-theme="dark"] .d-hero-bird .logo-dark {
    display: inline-block;
}
.d-landing-hero h1 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}
.d-landing-hero .d-sub {
    font-size: 18px;
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.d-landing-hero .d-btn-row {
    justify-content: center;
}

.d-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 14px;
    color: var(--text-2);
}
.d-trust img {
    height: 28px;
    filter: grayscale(0.2);
}

.d-features {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin-bottom: 24px;
}
.d-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.d-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--accent-soft);
}
.d-feature .d-emoji {
    font-size: 28px;
    line-height: 1;
}
.d-feature h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.d-feature p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.6;
}

.d-lang-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    margin-bottom: 24px;
}
.d-lang {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.d-lang:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.d-lang .d-flag {
    font-size: 22px;
}

.d-cta {
    text-align: center;
    background: linear-gradient(135deg, var(--accent-soft), transparent);
    border-radius: var(--radius);
    padding: 40px 24px;
}
.d-cta h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}
.d-cta p {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 20px;
}
.d-cta .d-btn-row {
    justify-content: center;
    margin-top: 0;
}

.d-signup-card {
    margin-bottom: 0;
}
.d-form-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    font-family: "Playfair Display", Georgia, serif;
}
.d-form-sub {
    font-size: 15px;
    color: var(--text-2);
    margin-top: 4px;
    margin-bottom: 8px;
}
.d-form-alt {
    font-size: 14px;
    color: var(--text-2);
    margin-top: 16px;
    text-align: center;
}
.d-disclaimer {
    font-size: 12.5px;
    color: var(--text-3);
    line-height: 1.6;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.d-asterisk {
    color: var(--accent);
    font-weight: 700;
}

.d-oauth {
    margin-top: 24px;
    text-align: center;
}
.d-oauth-divider {
    display: block;
    position: relative;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-3);
    margin-bottom: 18px;
}
.d-oauth-divider::before,
.d-oauth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: var(--border);
}
.d-oauth-divider::before {
    left: 0;
}
.d-oauth-divider::after {
    right: 0;
}
.d-oauth-btn {
    display: inline-block;
    transition: all var(--transition);
}
.d-oauth-btn:hover {
    transform: translateY(-3px);
}
.d-oauth-btn img {
    max-width: 220px;
    height: auto;
}

/* ================= footer ================= */
.d-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-3);
}
.d-footer a {
    color: var(--text-2);
}
.d-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.d-social a {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 18px;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.d-social a:hover {
    background: var(--teal-dark);
    color: white;
    border-color: var(--teal-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ================= responsive ================= */
@media (max-width: 980px) {
    .d-hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .d-hero-feats {
        grid-template-columns: 1fr;
    }
    .d-fc-1,
    .d-fc-2,
    .d-fc-3,
    .d-fc-4,
    .d-fc-5,
    .d-fc-6 {
        grid-column: span 12;
    }
    .d-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
    .d-steps::before {
        display: none;
    }
    .d-cta-final {
        padding: 48px 32px;
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 560px) {
    .d-langs {
        grid-template-columns: repeat(2, 1fr);
    }
    .d-hero {
        padding: 48px 20px 40px;
    }
    .d-hero-title {
        font-size: clamp(38px, 12vw, 52px);
    }
    .d-section-head {
        margin: 56px 0 36px;
    }
    .d-landing-hero h1 {
        font-size: 32px;
    }
    .d-landing-hero .d-sub {
        font-size: 16px;
    }
}

/* Utility classes */
.fs60 {
    font-size: 60px;
}
.fs50 {
    font-size: 50px;
}
.fs40 {
    font-size: 40px;
}
.fs30 {
    font-size: 30px;
}
.fs28 {
    font-size: 28px;
}
.fs26 {
    font-size: 26px;
}
.fs25 {
    font-size: 25px;
}
.fs22 {
    font-size: 22px;
}
.fs20 {
    font-size: 20px;
}
.fs18 {
    font-size: 18px;
}
.fs17 {
    font-size: 17px;
}
.fs16 {
    font-size: 16px;
}
.fs15 {
    font-size: 15px;
}
.fs14 {
    font-size: 14px;
}

.pages {
    clear: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 24px 0;
    padding: 0;
    font-size: 14px;
}
.pages a,
.pages span.current,
.pages span.dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}
.pages a {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}
.pages a:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.pages span.current {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    border: 1px solid transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}
.pages span.dots {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-3);
}