/* StudyPlanner landing — modern light SaaS aesthetic */

:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #16a34a;
    --accent-soft: rgba(22, 163, 74, 0.12);
    --accent-strong: #15803d;
    --gradient-a: #ecfdf5;
    --gradient-b: #f0fdf4;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 40px -12px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 64px -20px rgba(15, 23, 42, 0.18);
    --radius: 14px;
    --radius-lg: 22px;
    --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1120px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: clip;
}

.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(22, 163, 74, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.06), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(22, 163, 74, 0.08), transparent),
        var(--bg);
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 250, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.875rem;
}

.logo {
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.logo--footer {
    color: var(--text);
}

.nav {
    display: none;
    align-items: center;
    gap: 1.75rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav-cta {
    display: none;
}

.menu-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin-inline: auto;
    border-radius: 1px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: rgba(250, 250, 250, 0.95);
}

@media (max-width: 767px) {
    .mobile-nav.is-open {
        display: flex;
    }
}

.mobile-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 0;
}

.mobile-nav .btn {
    margin-top: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .nav,
    .nav-cta {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-nav,
    .mobile-nav.is-open {
        display: none !important;
    }
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.35rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--text);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: #1e293b;
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    border-color: rgba(15, 23, 42, 0.15);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: rgba(15, 23, 42, 0.04);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero */

.hero {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hero-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-strong);
    background: var(--accent-soft);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin: 0 0 1rem;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.text-gradient {
    background: linear-gradient(120deg, var(--accent) 0%, #059669 45%, var(--accent-strong) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    max-width: 36ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.hero-bullets li {
    position: relative;
    padding-left: 1.35rem;
}

.hero-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding-block: 0.5rem;
    overflow: visible;
}

.hero-visual .phone-frame {
    max-width: min(100%, clamp(380px, 48vw, 520px));
}

.phone-frame {
    position: relative;
    border-radius: 36px;
    padding: 10px;
    background: linear-gradient(145deg, #e2e8f0, #f8fafc);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, 0.06);
    max-width: min(100%, 300px);
}

.phone-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px;
    vertical-align: middle;
}

/* Demo GIF (below hero) */

.section--demo {
    padding-block: clamp(2.25rem, 6vw, 4rem);
    border-top: 1px solid var(--border);
}

.demo-gif-wrap {
    display: flex;
    justify-content: center;
}

.phone-frame--demo {
    margin-inline: auto;
    max-width: min(100%, clamp(380px, 48vw, 520px));
}

.floating-card {
    position: absolute;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-md);
    font-size: 0.8125rem;
}

.floating-card--a {
    left: -1rem;
    bottom: 12%;
    max-width: 140px;
    animation: float 5s ease-in-out infinite;
}

.floating-card--b {
    right: -1rem;
    top: 18%;
    max-width: 130px;
    animation: float 5.5s ease-in-out infinite 0.5s;
}

@media (max-width: 959px) {
    .floating-card {
        display: none;
    }
}

.fc-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.fc-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-strong);
    line-height: 1.2;
}

.fc-value--sm {
    font-size: 1.25rem;
    color: var(--text);
}

.fc-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.fc-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-strong);
    background: var(--accent-soft);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Strip */

.logos-strip {
    border-block: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
}

.strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    padding-block: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Sections */

.section {
    padding-block: clamp(3rem, 8vw, 5rem);
}

.section--alt {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.5) 0%, transparent 100%);
}

.section-title {
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    text-align: center;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    max-width: 42ch;
    margin: 0 auto 2.5rem;
    font-size: 1.0625rem;
}

/* Steps */

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 720px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.steps li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.steps h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
}

.steps p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Features */

.feature-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 600px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(22, 163, 74, 0.25);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Gallery */

.section--gallery {
    background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.5) 50%, transparent 100%);
}

.gallery {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .gallery {
        grid-template-columns: 1.2fr 1fr;
        grid-template-rows: auto auto;
    }

    .gallery-item--wide {
        grid-row: span 2;
    }
}

.gallery-item {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    background: #f1f5f9;
}

.gallery-item figcaption {
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* CTA */

.cta-section {
    padding-block: clamp(3rem, 7vw, 4.5rem);
}

.cta-inner {
    display: flex;
    justify-content: center;
}

.cta-card {
    width: min(100%, 520px);
    text-align: center;
    background: linear-gradient(135deg, var(--gradient-a) 0%, var(--gradient-b) 100%);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

.cta-card h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.cta-card > p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.975rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.waitlist-iframe {
    display: none;
}

@media (min-width: 480px) {
    .waitlist-form {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .input-email {
        flex: 1 1 200px;
        min-width: 0;
    }
}

.input-email {
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-email:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--accent-strong);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding-block: 2rem;
    background: rgba(255, 255, 255, 0.8);
}

.footer-inner {
    text-align: center;
}

.footer-tag {
    margin: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-copy {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}
