/* /start — free-user landing (showcase + editorial layouts).
   Built on the site tokens in style.css; no new palette. */

.start-page .container { max-width: 1120px; }

/* ---------- shared atoms ---------- */
.st-eyebrow {
    font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 800; margin-bottom: 8px;
}
.st-eyebrow.student { color: #00c6ff; }
.st-eyebrow.pro-wedge { color: #ff9500; }
.st-eyebrow.both { color: var(--accent); }
.st-eyebrow.muted { color: var(--text-secondary); }

.st-free-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(52,199,89,0.12); color: #248a3d;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 4px 10px; border-radius: var(--radius-full);
}
.st-free-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

.st-tier {
    display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 3px 9px; border-radius: var(--radius-full);
    border: 1px solid currentColor;
}
.st-tier.explorer { color: var(--accent); }
.st-tier.pro { color: #5856d6; }
.st-tier.elite { color: #ff9500; }

.st-icon {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    display: grid; place-items: center; flex: none;
}
.st-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.st-section-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 12px; flex-wrap: wrap; margin: 56px 0 18px;
}
.st-section-head h2 { font-size: var(--font-lg); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.st-section-head p { color: var(--text-secondary); font-size: 0.9rem; margin: 4px 0 0; }
.st-section-head a { font-size: 0.85rem; font-weight: 600; }

/* ---------- hero (showcase) ---------- */
.st-hero { text-align: center; max-width: 780px; margin: 0 auto; }
.st-hero h1 {
    font-size: var(--font-3xl); font-weight: 700; letter-spacing: -0.035em;
    line-height: 1.08; margin: 16px 0 12px; text-wrap: balance;
}
.st-hero p { color: var(--text-secondary); font-size: var(--font-md); line-height: 1.55; margin: 0 auto; max-width: 600px; }
.st-stats { display: flex; justify-content: center; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.st-stats div { text-align: center; }
.st-stats b { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.st-stats span { font-size: 0.75rem; color: var(--text-secondary); }

/* ---------- two feature cards with inline search ---------- */
.st-feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.st-feature {
    background: var(--bg-card); border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl); padding: 28px 26px;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.st-feature h3 { font-size: var(--font-lg); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.st-feature p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; margin: 0; flex: 1; }
.st-feature .st-icon { margin-bottom: 14px; }
.st-search {
    display: flex; gap: 8px; margin-top: 18px; padding: 6px;
    background: var(--bg-input); border: 1px solid var(--border-secondary); border-radius: var(--radius-md);
    position: relative;
}
.st-search input {
    flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
    padding: 8px 10px; color: var(--text-primary);
}
.st-search button {
    border: 0; border-radius: var(--radius-sm); background: var(--accent); color: #fff;
    font-weight: 600; font-size: 0.85rem; padding: 0 16px; cursor: pointer;
}
.st-search button:hover { background: var(--accent-hover); }
.st-suggest {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
    background: var(--bg-elevated); border: 1px solid var(--border-primary);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg); overflow: hidden; display: none;
    text-align: left;
}
.st-suggest button {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    padding: 10px 14px; font-size: 0.88rem; color: var(--text-primary); cursor: pointer;
}
.st-suggest button:hover, .st-suggest button.active { background: var(--accent-subtle); }
.st-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.st-chips a {
    font-size: 0.75rem; color: var(--text-secondary); border: 1px solid var(--border-secondary);
    border-radius: var(--radius-full); padding: 3px 10px;
}
.st-chips a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- free tools grid (Explore hub card style) ---------- */
.st-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.st-tool {
    display: flex; flex-direction: column; padding: 24px 22px;
    background: var(--bg-card); border: 1px solid var(--border-secondary);
    border-radius: 14px; color: inherit; text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.st-tool:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.st-tool-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.st-tool h4 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; color: var(--text-primary); }
.st-tool p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; margin: 0 0 12px; flex: 1; }
.st-tool .st-go { font-size: 0.78rem; font-weight: 600; }

/* ---------- must-try product cards ---------- */
.st-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.st-product {
    position: relative; display: flex; flex-direction: column; gap: 6px;
    padding: 20px 18px; background: var(--bg-card);
    border: 1px solid var(--border-secondary); border-radius: 14px;
    color: inherit; text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.st-product:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.st-product.flagged { border: 1.5px solid var(--accent); }
.st-flag {
    position: absolute; top: -10px; left: 16px; background: var(--accent); color: #fff;
    font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 3px 9px; border-radius: var(--radius-full);
}
.st-product h4 { font-size: 1rem; font-weight: 700; margin: 8px 0 0; color: var(--text-primary); }
.st-product p { color: var(--text-secondary); font-size: 0.84rem; line-height: 1.45; margin: 0; flex: 1; }
.st-product-foot {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
    margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-secondary);
}
.st-price { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.st-price-alt { font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; margin-left: 4px; }
.st-included { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.st-try { font-size: 0.8rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ---------- plans strip (pricing-page borders) ---------- */
.st-plans {
    display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 16px;
    margin-top: 48px; align-items: stretch;
}
.st-plans-intro { padding: 8px 4px; }
.st-plans-intro h3 { font-size: var(--font-lg); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.st-plans-intro p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; margin: 0 0 16px; }
.st-plan {
    background: var(--bg-card); border: 1.5px solid var(--border-secondary);
    border-radius: var(--radius-lg); padding: 20px; text-align: center;
}
.st-plan.explorer { border-color: var(--accent); }
.st-plan.pro { border-color: #5856d6; }
.st-plan.elite { border-color: #ff9500; }
.st-plan-name { font-weight: 600; font-size: 1rem; }
.st-plan-price { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 0; }
.st-plan-price small { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.st-plan-inr { font-size: 0.78rem; color: var(--text-secondary); }
.st-plan ul { list-style: none; padding: 0; margin: 14px 0 0; text-align: left; font-size: 0.82rem; color: var(--text-secondary); }
.st-plan li { padding: 6px 0; border-top: 1px solid var(--border-secondary); }

/* ---------- editorial layout ---------- */
.st-ed-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.st-ed-top h1 {
    font-size: var(--font-3xl); font-weight: 700; letter-spacing: -0.04em;
    line-height: 1.04; margin: 16px 0 14px;
}
.st-ed-top h1 em { font-style: normal; color: var(--accent); }
.st-ed-top > div > p { color: var(--text-secondary); font-size: var(--font-md); line-height: 1.55; max-width: 470px; margin: 0; }
.st-ed-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.st-meter {
    background: var(--bg-card); border: 1px solid var(--border-secondary);
    border-radius: var(--radius-xl); padding: 26px; box-shadow: var(--shadow-md);
}
.st-meter h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.st-meter-result { display: none; margin-top: 20px; }
.st-meter-result.show { display: block; }
.st-meter-row { display: flex; gap: 20px; align-items: center; }
.st-ring { position: relative; width: 104px; height: 104px; flex: none; }
.st-ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.st-ring circle { fill: none; stroke-width: 9; }
.st-ring .bg { stroke: var(--bg-secondary); }
.st-ring .fg { stroke-linecap: round; transition: stroke-dashoffset 0.7s var(--ease-out), stroke 0.3s; }
.st-ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.st-ring-label b { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; display: block; line-height: 1; }
.st-ring-label span { font-size: 0.65rem; color: var(--text-secondary); }
.st-meter-band { font-weight: 700; font-size: 0.95rem; }
.st-meter-title { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px; }
.st-bars { flex: 1; min-width: 0; }
.st-bar-row { font-size: 0.74rem; color: var(--text-secondary); display: flex; justify-content: space-between; }
.st-bar { height: 5px; background: var(--bg-secondary); border-radius: 3px; overflow: hidden; margin: 3px 0 8px; }
.st-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width 0.6s var(--ease-out); }
.st-meter-alts { margin-top: 12px; font-size: 0.82rem; color: var(--text-secondary); }
.st-meter-alts a { font-weight: 600; }
.st-meter-empty { margin-top: 18px; font-size: 0.85rem; color: var(--text-secondary); }

.st-index {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--border-secondary); border: 1px solid var(--border-secondary);
    border-radius: var(--radius-lg); overflow: hidden;
}
.st-index a {
    background: var(--bg-card); padding: 20px; display: flex; flex-direction: column; gap: 8px;
    color: inherit; text-decoration: none; min-height: 168px; transition: background var(--transition-fast);
}
.st-index a:hover { background: var(--bg-card-hover); }
.st-index-top { display: flex; justify-content: space-between; align-items: flex-start; }
.st-index-num { font-size: 0.72rem; font-weight: 600; color: var(--text-tertiary); }
.st-index b { font-size: 0.98rem; color: var(--text-primary); }
.st-index p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.45; margin: 0; flex: 1; }

.st-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.st-shelf-card {
    display: flex; flex-direction: column; padding: 26px 24px; min-height: 250px;
    background: var(--bg-card); border: 1px solid var(--border-secondary);
    border-top: 4px solid var(--accent); border-radius: var(--radius-lg);
    color: inherit; text-decoration: none; transition: box-shadow var(--transition-fast);
}
.st-shelf-card:hover { box-shadow: var(--shadow-md); }
.st-shelf-card.pro { border-top-color: #5856d6; }
.st-shelf-card.elite { border-top-color: #ff9500; }
.st-shelf-card h4 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 6px; color: var(--text-primary); }
.st-shelf-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; margin: 0; flex: 1; }
.st-shelf-card .st-product-foot { border-top: 0; padding-top: 0; margin-top: 18px; }
.st-shelf-card .st-price { font-size: 1.35rem; }

.st-chiprow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.st-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-card); border: 1px solid var(--border-secondary); border-radius: var(--radius-full);
    padding: 8px 14px; font-size: 0.82rem; color: var(--text-primary); text-decoration: none;
}
.st-chip:hover { border-color: var(--accent); }
.st-chip b { font-weight: 700; }

.st-foot-note { text-align: center; color: var(--text-secondary); font-size: 0.85rem; margin-top: 44px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .st-products { grid-template-columns: repeat(2, 1fr); }
    .st-plans { grid-template-columns: repeat(3, 1fr); }
    .st-plans-intro { grid-column: 1 / -1; }
    .st-index { grid-template-columns: repeat(2, 1fr); }
    .st-ed-top { grid-template-columns: 1fr; gap: 28px; }
    .st-shelf { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .st-feature-row, .st-tools { grid-template-columns: 1fr; }
    .st-plans { grid-template-columns: 1fr; }
    .st-hero h1, .st-ed-top h1 { font-size: var(--font-2xl); }
    .st-stats { gap: 22px; }
}
@media (max-width: 520px) {
    .st-products, .st-index { grid-template-columns: 1fr; }
    .st-index a { min-height: 0; }
}

/* ---------- colourful variant (?layout=c2) — tints from the existing palette ---------- */
.st-colorful .st-hero-wash { display: none; }
.st-colorful .st-ed-top {
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(0,122,255,0.10), transparent 55%),
        radial-gradient(90% 120% at 100% 100%, rgba(255,149,0,0.10), transparent 60%),
        var(--bg-card);
    border: 1px solid var(--border-secondary);
    border-radius: 24px; padding: 44px 40px;
}
.st-colorful .st-ed-top h1 em {
    background: linear-gradient(90deg, #007aff, #5856d6);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.st-colorful .st-meter { border-top: 4px solid #ff9500; box-shadow: 0 12px 32px rgba(255,149,0,0.12); }
.st-colorful .st-meter .st-search button { background: #ff9500; }
.st-colorful .st-meter .st-search button:hover { background: #e68600; }

.st-kicker { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); margin-bottom: 10px; }
.st-kicker.free { background: rgba(52,199,89,0.12); color: #248a3d; }
.st-kicker.paid { background: rgba(88,86,214,0.10); color: #5856d6; }

/* toolkit tiles: soft tint of each tool's own colour + a thin colour rule */
.st-colorful .st-index { background: transparent; border: 0; gap: 14px; }
.st-colorful .st-index a {
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--tc) 22%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 7%, var(--bg-card)), var(--bg-card) 70%);
    box-shadow: inset 0 3px 0 var(--tc);
}
.st-colorful .st-index a:hover {
    background: color-mix(in srgb, var(--tc) 10%, var(--bg-card));
    transform: translateY(-2px); box-shadow: inset 0 3px 0 var(--tc), var(--shadow-md);
}
.st-colorful .st-index a { transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast); }
.st-colorful .st-index-num { color: var(--tc); opacity: 0.7; }

/* must-try: tier-tinted cards + tier-coloured button */
.st-colorful .st-shelf-card.explorer { background: linear-gradient(180deg, rgba(0,122,255,0.07), var(--bg-card) 60%); }
.st-colorful .st-shelf-card.pro { background: linear-gradient(180deg, rgba(88,86,214,0.08), var(--bg-card) 60%); }
.st-colorful .st-shelf-card.elite { background: linear-gradient(180deg, rgba(255,149,0,0.09), var(--bg-card) 60%); }
.st-colorful .st-shelf-card.pro .btn { background: #5856d6; border-color: #5856d6; }
.st-colorful .st-shelf-card.elite .btn { background: #ff9500; border-color: #ff9500; }
.st-colorful .st-chip { background: var(--bg-card); }
.st-colorful .st-chip:has(.st-tier.explorer) { background: rgba(0,122,255,0.05); }
.st-colorful .st-chip:has(.st-tier.pro) { background: rgba(88,86,214,0.06); }

/* plans: tinted header band per tier */
.st-colorful .st-plan { padding-top: 0; overflow: hidden; }
.st-colorful .st-plan-name { margin: 0 -20px 12px; padding: 12px 20px; font-weight: 700; }
.st-colorful .st-plan.explorer .st-plan-name { background: rgba(0,122,255,0.09); color: #0062cc; }
.st-colorful .st-plan.pro .st-plan-name { background: rgba(88,86,214,0.10); color: #4a48b8; }
.st-colorful .st-plan.elite .st-plan-name { background: rgba(255,149,0,0.12); color: #b36200; }

@media (max-width: 760px) {
    .st-colorful .st-ed-top { padding: 28px 20px; border-radius: 20px; }
}

/* ---------- profile nudge ---------- */
.st-profile-nudge {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    margin-top: 24px; padding: 16px 20px;
    background: var(--bg-card); border: 1px solid var(--border-secondary);
    border-left: 4px solid var(--accent); border-radius: var(--radius-lg);
}
.st-colorful .st-profile-nudge { background: linear-gradient(90deg, rgba(0,122,255,0.07), var(--bg-card) 55%); }
.st-profile-nudge-icon {
    width: 36px; height: 36px; border-radius: 50%; flex: none;
    display: grid; place-items: center; background: var(--accent-subtle); color: var(--accent); font-size: 1rem;
}
.st-profile-nudge-text { flex: 1; min-width: 220px; }
.st-profile-nudge-text b { display: block; font-size: 0.95rem; }
.st-profile-nudge-text span { font-size: 0.85rem; color: var(--text-secondary); }
.st-profile-nudge-close {
    background: none; border: 0; font-size: 1.3rem; line-height: 1; color: var(--text-tertiary); cursor: pointer; padding: 4px;
}
.st-profile-nudge-close:hover { color: var(--text-primary); }

/* ---------- owned / included products, current plan ---------- */
.st-owned { font-size: 0.8rem; font-weight: 700; color: #248a3d; }
.st-product.has-access, .st-shelf-card.has-access { border-color: rgba(52,199,89,0.45); }
.st-colorful .st-shelf-card.has-access { background: linear-gradient(180deg, rgba(52,199,89,0.08), var(--bg-card) 60%); border-top-color: var(--success); }
.st-shelf-card.has-access .btn { background: var(--success) !important; border-color: var(--success) !important; }
.st-chip.has-access { border-color: rgba(52,199,89,0.45); background: rgba(52,199,89,0.06) !important; }
.st-chip .st-owned { font-size: 0.75rem; }

.st-free-pill.is-paid { background: rgba(0,122,255,0.10); color: var(--accent); }
.st-free-pill.is-paid::before { background: var(--accent); }

.st-plan { display: flex; flex-direction: column; }
.st-plan ul { flex: 1; }
.st-plan.is-current { box-shadow: 0 0 0 3px rgba(0,122,255,0.12); }
.st-plan.pro.is-current { box-shadow: 0 0 0 3px rgba(88,86,214,0.14); }
.st-plan.elite.is-current { box-shadow: 0 0 0 3px rgba(255,149,0,0.16); }
.st-current-tag {
    display: inline-block; margin-left: 6px; vertical-align: middle;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 2px 8px; border-radius: var(--radius-full); background: currentColor;
}
.st-current-tag { color: inherit; background: rgba(0,0,0,0.06); }
.st-plan-cta {
    display: block; margin-top: 14px; padding: 9px 12px; border-radius: var(--radius-full);
    font-size: 0.84rem; font-weight: 600; text-align: center;
    background: var(--accent); color: #fff;
}
.st-plan.pro .st-plan-cta { background: #5856d6; }
.st-plan.elite .st-plan-cta { background: #ff9500; }
.st-plan-cta.current { background: transparent !important; color: var(--text-secondary); border: 1px solid var(--border-secondary); }
.st-plans.is-subscribed { grid-template-columns: 1.2fr repeat(var(--plans, 3), minmax(0, 1fr)); }
@media (max-width: 960px) { .st-plans.is-subscribed { grid-template-columns: repeat(var(--plans, 3), minmax(0, 1fr)); } }
@media (max-width: 760px) { .st-plans.is-subscribed { grid-template-columns: 1fr; } }
