/* ==========================================================================
   Student Alert – inner pages (sp = sub-page): features, modules, pricing,
   help, changelog, legal. Builds on the etp tokens from style.css.
   ========================================================================== */

.etp-page { --sp-navy: #1F2B3C; --sp-teal: #2A9D8F; }

/* Banner */
.sp-banner { position: relative; overflow: hidden; margin: 12px auto 0; width: var(--etp-wrap); border-radius: var(--etp-r); background: linear-gradient(135deg, var(--sp-navy) 0%, #24384d 55%, var(--etp-p) 130%); color: #fff; }
.sp-banner-glow { position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 157, 143, .45), transparent 65%); pointer-events: none; animation: sp-float 9s ease-in-out infinite alternate; }
.sp-banner-in { position: relative; padding: clamp(40px, 6vw, 84px) clamp(20px, 4vw, 56px); }
.sp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.sp-crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.sp-crumbs a:hover { color: #fff; }
.sp-crumb-now { color: #fff; font-weight: 600; }
.sp-banner-title { margin: 14px 0 0; max-width: 22ch; font-size: clamp(30px, 3.6vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.sp-banner-sub { margin: 14px 0 0; max-width: 60ch; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .8); }

/* Sections */
.sp-sec { padding: clamp(48px, 6vw, 88px) 0; }
.sp-sec-tint { background: var(--etp-paper); }
.sp-mt { margin-top: 36px; }
.sp-eyebrow { display: block; text-align: center; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--etp-p); }
.sp-split .sp-eyebrow, .sp-split-even .sp-eyebrow { text-align: left; }
.sp-h2-left { margin: 0 0 18px; font-size: clamp(24px, 2.2vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.sp-intro { max-width: 820px; text-align: center; margin-bottom: 40px; }
.sp-intro p { font-size: 16px; line-height: 1.75; color: var(--etp-soft); }
.sp-note { max-width: 820px; margin: 0 auto; text-align: center; font-size: 14px; line-height: 1.7; color: var(--etp-soft); }
.sp-note a, .sp-article a, .sp-prose a { color: var(--etp-p); font-weight: 600; }

/* Grids & cards */
.sp-grid { display: grid; gap: 20px; }
.sp-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sp-grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sp-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--etp-line); border-radius: 20px; background: #fff; box-shadow: var(--etp-shadow); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.sp-card-link { color: inherit; text-decoration: none; }
.sp-card-link:hover, .sp-card:hover { transform: translateY(-4px); box-shadow: var(--etp-shadow-lg); border-color: var(--etp-p-22); }
.sp-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.sp-card-text { margin: 0; font-size: 14px; line-height: 1.65; color: var(--etp-soft); }
.sp-card-price { margin: 0; font-size: 14px; font-weight: 700; color: var(--sp-navy); }
.sp-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--etp-p-10); color: var(--etp-p); transition: transform .35s, background .35s, color .35s; }
.sp-ico svg { width: 24px; height: 24px; }
.sp-card:hover .sp-ico { background: var(--etp-p); color: #fff; transform: rotate(-6deg) scale(1.05); }
.sp-ico-lg { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 8px; }
.sp-ico-lg svg { width: 32px; height: 32px; }
.sp-num { font-size: 13px; font-weight: 800; color: var(--etp-p); letter-spacing: .08em; }
.sp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--etp-p); text-decoration: none; }
.sp-more svg { width: 16px; height: 16px; transition: transform .3s; }
.sp-card:hover .sp-more svg, .sp-more:hover svg { transform: translateX(4px); }
.sp-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--etp-p-10); color: var(--etp-p); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.sp-tag-soon { background: #fff4e5; color: #b45309; }

/* Split layout (article + aside) */
.sp-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.sp-split-even { grid-template-columns: 1fr 1fr; align-items: center; }
.sp-article p { margin: 0 0 16px; font-size: 16px; line-height: 1.8; color: #3f3e4a; }
.sp-article h2 { margin: 32px 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sp-aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.sp-panel { padding: 22px; border: 1px solid var(--etp-line); border-radius: 18px; background: #fff; box-shadow: var(--etp-shadow); }
.sp-panel p { margin: 6px 0 14px; font-size: 14px; line-height: 1.6; color: var(--etp-soft); }
.sp-panel-label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--etp-faint); }
.sp-panel-title { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.sp-panel-dark { background: var(--sp-navy); border-color: var(--sp-navy); color: #fff; }
.sp-panel-dark p { color: rgba(255, 255, 255, .75); }
.sp-price { margin: 4px 0 10px; font-size: 26px; font-weight: 800; color: var(--sp-navy); }
.sp-price small { font-size: 13px; font-weight: 500; color: var(--etp-soft); }
.sp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sp-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; font-size: 14px; color: var(--etp-ink); text-decoration: none; transition: background .2s, color .2s; }
.sp-links a:hover { background: var(--etp-p-06); color: var(--etp-p); }
.sp-links svg { width: 18px; height: 18px; color: var(--etp-p); }
.sp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.sp-checks svg { flex: none; width: 20px; height: 20px; color: var(--etp-p); margin-top: 1px; }
.sp-checks-sm li { font-size: 13.5px; }
.sp-checks-sm svg { width: 17px; height: 17px; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sp-btn-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #fff; color: var(--sp-navy); font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.sp-btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.sp-btn-light svg { width: 18px; height: 18px; }
.sp-figure { margin: 0; border-radius: var(--etp-r); overflow: hidden; box-shadow: var(--etp-shadow-lg); }
.sp-figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Steps */
.sp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: step; }
.sp-step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 24px 26px; border-radius: 20px; background: #fff; border: 1px solid var(--etp-line); box-shadow: var(--etp-shadow); }
.sp-step-n { position: absolute; top: 18px; right: 22px; font-size: 44px; font-weight: 800; line-height: 1; color: var(--etp-p-14); }

/* Pricing */
.sp-plans { align-items: stretch; }
.sp-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border-radius: 22px; border: 1px solid var(--etp-line); background: #fff; box-shadow: var(--etp-shadow); transition: transform .35s, box-shadow .35s; }
.sp-plan:hover { transform: translateY(-5px); box-shadow: var(--etp-shadow-lg); }
.sp-plan-hot { border: 2px solid var(--etp-p); box-shadow: 0 24px 60px rgba(var(--primary-color-rgb), .18); }
.sp-plan-badge { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--etp-p); color: #fff; font-size: 11px; font-weight: 700; }
.sp-plan-name { margin: 0; font-size: 17px; font-weight: 700; }
.sp-plan-price { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--sp-navy); }
.sp-plan-price small { font-size: 14px; font-weight: 500; color: var(--etp-soft); }
.sp-plan-mrp { display: flex; align-items: center; gap: 8px; margin: 0 0 -8px; font-size: 13px; color: var(--etp-faint); }
.sp-plan-mrp span { padding: 2px 8px; border-radius: 999px; background: #e7f6ec; color: #15803d; font-size: 11px; font-weight: 700; }
.sp-plan-note { margin: -6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--etp-soft); }
.sp-plan-cta { margin-top: auto; justify-content: center; }
.sp-table-wrap { overflow-x: auto; border: 1px solid var(--etp-line); border-radius: 18px; background: #fff; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sp-table th, .sp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--etp-line); }
.sp-table th { background: var(--etp-paper); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--etp-soft); }
.sp-table tr:last-child td { border-bottom: 0; }

/* FAQ, reviews, help, timeline */
.sp-faq { max-width: 880px; display: grid; gap: 12px; }
.sp-faq .sp-note { margin-top: 24px; }
.sp-review blockquote { margin: 0; font-size: 15px; line-height: 1.7; color: #3f3e4a; }
.sp-review figcaption { display: grid; gap: 2px; font-size: 13px; color: var(--etp-soft); }
.sp-review figcaption strong { color: var(--etp-ink); font-size: 14px; }
.sp-stars { display: flex; gap: 2px; color: #e5e4ec; }
.sp-stars svg { width: 18px; height: 18px; }
.sp-stars .on { color: #f5a524; }
.sp-search { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.sp-search input { flex: 1; min-width: 0; padding: 14px 20px; border: 1px solid var(--etp-line-2); border-radius: 999px; font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.sp-search input:focus { border-color: var(--etp-p); box-shadow: 0 0 0 4px var(--etp-p-10); }
.sp-doclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-doclist a { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--etp-line); border-radius: 14px; color: inherit; text-decoration: none; }
.sp-doclist a:hover { border-color: var(--etp-p-22); background: var(--etp-p-06); }
.sp-doclist span { font-size: 14px; color: var(--etp-soft); }
.sp-prose h2 { font-size: 22px; } .sp-prose h3 { font-size: 18px; margin: 24px 0 10px; }
.sp-prose ul, .sp-prose ol { padding-left: 22px; line-height: 1.8; }
.sp-prose img { border-radius: 14px; }
.sp-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 24px; border-radius: 18px; overflow: hidden; background: #000; }
.sp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sp-updated { font-size: 13px !important; color: var(--etp-faint) !important; }
.sp-timeline { max-width: 880px; display: grid; gap: 22px; }
.sp-tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: start; }
.sp-tl-item time { padding-top: 26px; font-size: 13px; font-weight: 700; color: var(--etp-p); }

/* Legal */
.sp-legal { max-width: 940px; }
.sp-legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sp-legal-nav a { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--etp-line-2); font-size: 14px; font-weight: 600; color: var(--etp-soft); text-decoration: none; transition: all .2s; }
.sp-legal-nav a:hover { color: var(--etp-p); border-color: var(--etp-p-22); }
.sp-legal-nav a.on { background: var(--etp-p); border-color: var(--etp-p); color: #fff; }

/* CTA strip */
.sp-cta { padding: 0 0 clamp(48px, 6vw, 80px); }
.sp-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: var(--etp-r); background: linear-gradient(120deg, var(--etp-p), var(--sp-navy)); color: #fff; }
.sp-cta-title { margin: 0; font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.sp-cta-text { margin: 8px 0 0; max-width: 56ch; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.6; }
.sp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-cta .etp-btn-primary { background: #fff; color: var(--sp-navy) !important; }

/* Reveal on scroll */
.sp-reveal { opacity: 0; transform: translateY(18px); }
.sp-reveal.sp-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
@keyframes sp-float { from { transform: translate(0, 0); } to { transform: translate(-40px, -30px); } }
@media (prefers-reduced-motion: reduce) { .sp-reveal { opacity: 1; transform: none; } .sp-banner-glow { animation: none; } }

@media (max-width: 980px) {
  .sp-split, .sp-split-even { grid-template-columns: 1fr; }
  .sp-aside { position: static; }
}
@media (max-width: 560px) {
  .sp-tl-item { grid-template-columns: 1fr; gap: 6px; }
  .sp-tl-item time { padding-top: 0; }
  .sp-search { flex-direction: column; }
  .sp-banner { width: calc(100% - 32px); }
}

/* Contact map: button to the exact Google Maps pin */
.etc-map-frame { position: relative; }
.etc-map-open { position: absolute; left: 18px; bottom: 18px; gap: 8px; box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }
.etc-map-open svg { width: 18px; height: 18px; }
