/* ─────────────────────────────────────────────
   DasNote · home.css
   Landing page: hero, auth panel, marketing, pricing
   ───────────────────────────────────────────── */

/* ── LAYOUT ─────────────────────────────────── */
.landing-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ── HERO FOLD ──────────────────────────────── */
.hero-fold {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 60px);
}

.hero {
    background: var(--brand-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 72px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg, transparent, transparent 39px,
        rgba(255,255,255,.04) 39px, rgba(255,255,255,.04) 40px
    );
    pointer-events: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-mid);
    margin-bottom: 28px;
}
.hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-mid);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-title em {
    font-style: italic;
    color: var(--highlight);
}

.hero-sub {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,.55);
    max-width: 380px;
    margin-bottom: 48px;
}

.hero-features { display: flex; flex-direction: column; gap: 14px; }
.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
}
.hero-feature-icon {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,.08);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--brand-mid);
}

/* ── AUTH PANEL ─────────────────────────────── */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 64px;
    background: var(--bg-warm);
}
.auth-box { width: 100%; max-width: 400px; }

.auth-tabs {
    display: flex;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 4px;
    margin-bottom: 28px;
    gap: 4px;
}
.auth-tab {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--r-sm);
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-ui);
    transition: all .2s;
}
.auth-tab.active {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form.hidden { display: none; }

.auth-form-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.auth-form-sub {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

.auth-submit {
    margin-top: 4px;
    width: 100%;
    justify-content: center;
    padding: 11px;
    font-size: 15px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    font-family: var(--font-ui);
    font-weight: 600;
    transition: background .15s;
}
.auth-submit:hover { background: var(--brand-dark); }

/* ── MARKETING SECTION ──────────────────────── */
.marketing-section {
    padding: 100px 24px;
    background: var(--bg-warm);
    text-align: center;
}
.section-header {
    max-width: 600px;
    margin: 0 auto 64px auto;
}
.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.section-sub {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

.marketing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1050px;
    margin: 0 auto;
}
.marketing-card {
    text-align: left;
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,.02);
    transition: transform .3s ease, box-shadow .3s ease;
}
.marketing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.05);
}
.m-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--cream);
    color: var(--brand-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.m-card-title  { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.m-card-desc   { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ── PRICING SECTION ────────────────────────── */
.pricing-section {
    padding: 80px 24px 120px;
    background: var(--surface);
    text-align: center;
}
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
}
.billing-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .2s;
}
.billing-label.active { color: var(--text); }

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--border);
    transition: .3s;
    border-radius: 26px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
input:checked + .slider { background-color: var(--brand-mid); }
input:checked + .slider:before { transform: translateX(22px); }

.discount-badge {
    background: rgba(0,190,100,.1);
    color: #00a050;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
    vertical-align: middle;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}
.pricing-card {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 48px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card.premium {
    background: var(--surface);
    border: 2px solid var(--brand-mid);
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    transform: scale(1.02);
}
.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-mid);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.plan-name {
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-serif);
    margin-bottom: 8px;
    color: var(--text);
}
.plan-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    min-height: 44px;
    line-height: 1.5;
}
.price {
    font-size: 48px;
    font-weight: 700;
    font-family: var(--font-serif);
    margin: 24px 0 32px;
    color: var(--text);
}
.price span.period {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
    font-family: var(--font-ui);
}

.btn-pricing {
    width: 100%;
    padding: 14px;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    border: 1px solid transparent;
    margin-bottom: 32px;
    font-family: var(--font-ui);
}
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--text); background: rgba(0,0,0,.02); }
.btn-fill { background: var(--brand-mid); color: white; }
.btn-fill:hover { filter: brightness(.9); }

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.4;
}
.pricing-features li svg {
    color: var(--brand-mid);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── ANIMATIONS ─────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-box      { animation: fadeUp .4s ease both; }
.hero-tag      { animation: fadeUp .4s .05s ease both; }
.hero-title    { animation: fadeUp .4s .10s ease both; }
.hero-sub      { animation: fadeUp .4s .15s ease both; }
.hero-features { animation: fadeUp .4s .20s ease both; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
    .hero-fold { grid-template-columns: 1fr; }
    .hero { padding: 48px 32px; }
    .auth-panel { padding: 40px 24px; }
    .pricing-card.premium { transform: scale(1); }
}