/* =========================================================
   NEET Predictor — v2 stylesheet
   Editorial / refined aesthetic. Mobile-first.
   Navy + warm gold. Source Serif headlines, Inter body.
   ========================================================= */

:root {
  /* Color tokens */
  --bg:           #f7f5f0;     /* warm cream — feels like a serious publication */
  --bg-card:      #ffffff;
  --bg-soft:      #efebe2;     /* slightly darker cream for sections */
  --bg-dark:      #131c30;     /* near-navy, deeper than primary */
  --ink:          #1c2541;     /* primary text */
  --ink-soft:     #4d5570;
  --ink-muted:    #7a8198;
  --rule:         #e3ddd0;     /* warm border */
  --rule-soft:    #f0eadc;

  --primary:      #1a2947;
  --primary-2:    #253657;
  --primary-deep: #0f1829;
  --accent:       #b08442;     /* warm gold */
  --accent-2:     #95703a;
  --accent-soft:  #d9b97d;

  --safe:         #0f766e;     /* teal — likely */
  --target:       #92602b;     /* burnt amber — maybe */
  --reach:        #9a3412;     /* terracotta — unlikely */
  --success:      #166534;
  --warn:         #92400e;
  --danger:       #991b1b;

  /* Type */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spatial */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(15, 24, 41, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 24, 41, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 24, 41, 0.18);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px; /* prevents iOS zoom on input focus */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Skip-link for screen readers / keyboard users */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 14px;
  z-index: 10000;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

img, svg { max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 4vw, 1.95rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.3rem); }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 1em; }

.muted { color: var(--ink-muted); }
.muted-light { color: rgba(255, 255, 255, 0.72); }
.small-text { font-size: 0.85rem; }
.text-center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

main { padding: 0; }

/* ===========================================================
   BUTTONS — touch-friendly minimums (44px)
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }

.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-2); color: #fff; }
.btn-accent   { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover   { background: var(--accent-2); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost    { background: transparent; color: var(--primary); border-color: var(--rule); }
.btn-ghost:hover    { background: var(--bg-soft); color: var(--primary); border-color: var(--accent); }

.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 0.88rem; }

/* ===========================================================
   HEADER
   =========================================================== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.hdr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--primary); }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-line1 { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand-line2 { font-size: 0.7rem; color: var(--ink-muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }

.hdr-auth { display: flex; align-items: center; gap: 8px; }
.hdr-user { font-size: 0.88rem; color: var(--ink-soft); margin-right: 4px; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.badge-empty {
  background: linear-gradient(135deg, var(--ink-muted), #b8c0d0);
  color: #fff;
  opacity: 0.85;
}

/* Search-balance chip on results page header */
.dash-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-balance-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(176, 132, 66, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent-2);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.search-balance-chip.is-empty {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}
.search-balance-chip .sb-label {
  font-weight: 500;
  font-size: 0.78rem;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .brand-line2 { display: none; }
  .hdr-user    { display: none; }
}

/* ===========================================================
   HOMEPAGE — HERO with embedded form
   =========================================================== */
.home-hero {
  position: relative;
  background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary) 50%, var(--primary-2) 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(40px, 8vw, 80px) 0 0;
}
/* Decorative atmosphere */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 22%, rgba(176, 132, 66, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 88% 78%, rgba(176, 132, 66, 0.10) 0%, transparent 50%);
  pointer-events: none;
}
/* subtle grid texture */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(40px, 8vw, 64px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-soft);
  font-weight: 700;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.12rem);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 32em;
}
.hero-sub strong { color: #fff; font-weight: 600; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.hero-points li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.hero-points li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 1px;
}

/* Embedded form card — the single most important element on the page */
.hero-form {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  color: var(--ink);
  position: relative;
}
.hero-form::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
}

.hero-form-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.hero-form-header h2 {
  font-size: 1.25rem;
  margin: 0 0 4px;
  color: var(--primary);
}
.hero-form-header p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group label .req { color: var(--danger); }
.form-group label .optional { color: var(--ink-muted); font-weight: 400; font-size: 0.78rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 16px;       /* prevents iOS zoom */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 41, 71, 0.12);
}
select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a8198'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.hero-form-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.hero-form-foot::before { content: "🔒"; font-size: 0.85rem; }

/* Hero stats strip below the fold */
.hero-stats {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}
.hero-stat { text-align: center; }
.hs-num {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
  letter-spacing: -0.01em;
}
.hs-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

/* ===========================================================
   HOMEPAGE — sample preview band
   =========================================================== */
.preview-band {
  background: var(--bg-card);
  padding: clamp(40px, 6vw, 64px) 0;
  border-bottom: 1px solid var(--rule);
}
.preview-band-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.preview-band h2 { margin-bottom: 14px; }
.preview-band p  { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.65; }

.preview-card {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  transform: rotate(-0.5deg);
}
.preview-card::after {
  content: "Sample";
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: #fff;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
}
.preview-card .pc-rank {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--rule);
}
.preview-card .pc-rank strong { font-size: 1.4rem; color: var(--primary); }
.preview-college {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  gap: 12px;
}
.preview-college:last-child { margin-bottom: 0; }
.pc-info { min-width: 0; flex: 1; }
.pc-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-loc { font-size: 0.78rem; color: var(--ink-muted); }
.pc-bucket {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  flex-shrink: 0;
}
.pc-likely   { background: #ccfbf1; color: var(--safe); }
.pc-maybe    { background: #fef3c7; color: var(--target); }
.pc-unlikely { background: #fed7aa; color: var(--reach); }

/* ===========================================================
   HOMEPAGE — How it works
   =========================================================== */
.how-section {
  padding: clamp(48px, 8vw, 80px) 0;
  background: var(--bg);
}
.section-header { text-align: center; margin-bottom: clamp(28px, 5vw, 48px); }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header h2 { margin: 0 0 8px; }
.section-header p  { color: var(--ink-soft); max-width: 36em; margin: 0 auto; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 28px);
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: clamp(24px, 4vw, 32px);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-num::before { content: ""; width: 16px; height: 1px; background: var(--accent); }
.step-card h4 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

/* ===========================================================
   HOMEPAGE — Why us (dark section)
   =========================================================== */
.why-section {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(48px, 8vw, 80px) 0;
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.why-section h2 { color: #fff; }
.why-lead { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; }
.why-list { display: grid; gap: 22px; }
.why-item h4 {
  color: var(--accent-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
  margin: 0 0 6px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.why-item h4 .why-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(176, 132, 66, 0.18);
  border-radius: var(--r-sm);
  color: var(--accent);
}
.why-item p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.94rem; line-height: 1.65; }

.why-visual {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
}
.why-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.why-quote::before {
  content: "“";
  font-size: 4rem;
  color: var(--accent);
  display: block;
  line-height: 0.6;
  margin-bottom: 8px;
}
.why-attrib {
  margin-top: 18px;
  color: var(--accent-soft);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ===========================================================
   HOMEPAGE — FAQ
   =========================================================== */
.faq-section { padding: clamp(48px, 8vw, 80px) 0; background: var(--bg); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--rule);
  background: transparent;
  margin-bottom: 0;
}
.faq-item summary {
  padding: 18px 36px 18px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  list-style: none;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body {
  padding: 0 0 20px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.96rem;
}

/* ===========================================================
   HOMEPAGE — bottom CTA
   =========================================================== */
.bottom-cta {
  background: linear-gradient(135deg, var(--bg-soft) 0%, #ffffff 100%);
  padding: clamp(40px, 6vw, 60px) 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.bottom-cta h2 { margin-bottom: 12px; }
.bottom-cta p { color: var(--ink-soft); margin-bottom: 20px; }

.disclaimer-section {
  padding: 26px 0 60px;
  background: var(--bg);
}
.disclaimer-card {
  background: #fffaf0;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.disclaimer-card strong { color: var(--ink); }

/* ===========================================================
   STICKY MOBILE CTA
   =========================================================== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--rule);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  z-index: 90;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  min-height: 50px;
}
.sticky-cta-btn:hover { color: #fff; text-decoration: none; }
.sticky-cta-icon { font-size: 1.2rem; }
.sticky-cta-text { display: flex; flex-direction: column; line-height: 1.1; }
.sticky-cta-text strong { font-size: 0.98rem; }
.sticky-cta-text small { font-size: 0.72rem; opacity: 0.85; }

@media (max-width: 720px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 84px; }
}

/* ===========================================================
   FORMS — generic card (signup, login, etc.)
   =========================================================== */
.form-card {
  max-width: 460px;
  margin: clamp(24px, 5vw, 56px) auto;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}
.form-card h1 { margin-bottom: 18px; font-size: 1.6rem; }

.alert {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 4px solid;
}
.alert-info    { background: #e0f2fe; color: #075985; border-color: #0284c7; }
.alert-success { background: #d1fae5; color: #065f46; border-color: #059669; }
.alert-warning { background: #fef3c7; color: #78350f; border-color: #d97706; }
.alert-error   { background: #fee2e2; color: #7f1d1d; border-color: #dc2626; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* ===========================================================
   PREDICT / RESULTS pages — kept compatible with existing markup
   =========================================================== */
.predict-page { max-width: 1100px; margin: 30px auto; padding: 0 var(--gutter); }
.predict-header { text-align: center; margin-bottom: 30px; }
.predict-form {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.predict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.predict-actions {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.predict-tip {
  background: #fef8e8;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.6;
}

/* ===========================================================
   RESULTS page (kept faithful to existing classes for compatibility)
   =========================================================== */
.result-dash { max-width: 1200px; margin: 24px auto; padding: 0 var(--gutter); }
.dash-context { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.dash-context h1 { margin: 0; font-size: 1.5rem; }
.dash-context-line { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.92rem; }

.filter-chip-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 14px; background: #fef8e8; border: 1px solid var(--accent); border-radius: var(--r-sm); }
.filter-label { font-size: 0.85rem; color: #78350f; font-weight: 500; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; padding: 4px 10px 4px 14px; border-radius: var(--r-pill); font-size: 0.88rem; font-weight: 600; }
.filter-clear { background: rgba(255, 255, 255, 0.25); color: #fff !important; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; text-decoration: none !important; }

.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 14px 16px; position: relative; overflow: hidden; }
.kpi-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.kpi-total::before    { background: var(--primary); }
.kpi-likely::before   { background: var(--safe); }
.kpi-maybe::before    { background: var(--target); }
.kpi-unlikely::before { background: var(--reach); }
.kpi-value { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 700; color: var(--primary); line-height: 1; }
.kpi-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); font-weight: 700; margin-top: 6px; }
.kpi-sub { font-size: 0.7rem; color: var(--ink-muted); margin-top: 2px; }

.context-line { background: #eff6ff; border-left: 4px solid #3b82f6; padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 16px; font-size: 0.92rem; color: #1e40af; line-height: 1.5; }
.context-line strong { color: #1e3a8a; }

/* Course coverage banner — for niche courses with limited
   nationwide availability, e.g. B.Pharm (Ayurveda) */
.course-coverage-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fef8e8;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.ccb-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.ccb-body { flex: 1; min-width: 0; }
.ccb-title {
  font-size: 0.95rem;
  color: #78350f;
  line-height: 1.55;
  margin-bottom: 8px;
}
.ccb-title strong { color: var(--primary); font-weight: 600; }
.ccb-suggest {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.ccb-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--primary);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .12s;
  white-space: nowrap;
}
.ccb-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.ccb-pill-count {
  font-size: 0.72rem;
  opacity: 0.7;
  font-weight: 400;
}
.ccb-pill:hover .ccb-pill-count { opacity: 0.9; }

.insight-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.card { background: var(--bg-card); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 16px; }
.card-highlight { background: linear-gradient(135deg, #fef8e8 0%, #ffffff 100%); border-color: var(--accent); position: relative; }
.card-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); margin-bottom: 10px; }

.insight-list { list-style: none; margin: 0; padding: 0; }
.insight-list li { border-bottom: 1px solid var(--rule-soft); }
.insight-list li:last-child { border-bottom: none; }
.insight-link { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); transition: background .15s; min-height: 44px; }
.insight-link:hover { background: #fef8e8; text-decoration: none; }
.insight-link.is-active { background: var(--accent); color: #fff; }
.insight-link.is-active .insight-num { color: #fff; }
.insight-num { display: inline-block; min-width: 30px; font-weight: 700; color: var(--primary); font-family: var(--serif); font-size: 1.05rem; }
.insight-text { flex: 1; font-size: 0.92rem; }
.filter-tick { color: #fff; font-weight: 700; }

.best-match-name { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.best-match-meta { font-size: 0.82rem; color: var(--ink-muted); margin: 3px 0; }
.best-match-rank { font-size: 0.92rem; margin-top: 6px; }
.best-match-rank strong { color: var(--accent); font-family: var(--serif); font-size: 1.1rem; }

/* Locked "Your Best Match" card — for unpaid users.
   Contains NO college name in the HTML at all (pure CTA card). */
.card-locked-best {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s;
  position: relative;
  overflow: hidden;
}
.card-locked-best:hover { text-decoration: none; color: inherit; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-locked-best:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.locked-best {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 6px;
}
.locked-best-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(176, 132, 66, 0.15);
  border: 1px solid rgba(176, 132, 66, 0.3);
  border-radius: var(--r-sm);
  font-size: 1.4rem;
}
.locked-best-text { flex: 1; min-width: 0; }
.locked-best-title { font-family: var(--serif); font-weight: 700; color: var(--primary); font-size: 1rem; line-height: 1.3; }
.locked-best-sub { font-size: 0.82rem; color: var(--ink-muted); margin-top: 3px; line-height: 1.4; }

.unlock-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: background .15s, transform .12s, box-shadow .2s;
  margin-top: 10px;
}
.card-locked-best:hover .unlock-hint {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.paywall-strip { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); color: #fff; border-radius: var(--r-sm); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.paywall-strip-text { color: #fff; font-size: 0.95rem; }
.paywall-strip-text strong { color: var(--accent-soft); }

.list-section { background: var(--bg-card); border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; }
.list-header { padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.list-header h3 { margin: 0; font-size: 1rem; color: var(--primary); }

.college-card { border-bottom: 1px solid var(--rule-soft); padding: 14px 16px; }
.college-card:last-child { border-bottom: 0; }
.college-card:hover { background: #fafbfc; }
.college-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.college-card-main { flex: 1; min-width: 0; }
.college-title { font-family: var(--serif); font-weight: 700; color: var(--primary); font-size: 1.02rem; line-height: 1.3; }
.college-subtitle { font-size: 0.82rem; color: var(--ink-muted); margin-top: 3px; }
.college-subtitle strong { color: var(--accent); font-weight: 600; }
.college-card-side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.college-closing { text-align: right; min-width: 90px; }
.closing-label { font-size: 0.66rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.closing-value { font-family: var(--serif); font-weight: 700; color: var(--primary); font-size: 1.05rem; }

.bucket-pill, .bucket-mini { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.bucket-mini { padding: 1px 8px; font-size: 0.65rem; }
.bucket-likely   { background: #ccfbf1; color: var(--safe); }
.bucket-maybe    { background: #fef3c7; color: var(--target); }
.bucket-unlikely { background: #fed7aa; color: var(--reach); }

.seat-variants { margin-top: 12px; border-top: 1px dashed var(--rule); padding-top: 10px; }
.seat-variants summary { cursor: pointer; font-size: 0.82rem; color: var(--accent); font-weight: 600; padding: 6px 0; list-style: none; user-select: none; }
.seat-variants summary::-webkit-details-marker { display: none; }
.seat-variants[open] summary { margin-bottom: 8px; }
.seat-list { background: #fafbfc; border-radius: var(--r-sm); padding: 4px 10px; }
.seat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); gap: 10px; }
.seat-row:last-child { border-bottom: 0; }
.seat-row-single { margin-top: 8px; padding: 8px 10px; background: #fafbfc; border-radius: var(--r-sm); }
.seat-info { flex: 1; min-width: 0; }
.seat-title { font-size: 0.85rem; color: var(--ink); font-weight: 500; }
.seat-sub { font-size: 0.72rem; color: var(--ink-muted); margin-top: 2px; }
.seat-side { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.rank-box { text-align: right; min-width: 85px; }
.rank-main { font-weight: 700; color: var(--primary); font-size: 0.88rem; font-family: var(--serif); }
.rank-meta { font-size: 0.66rem; color: var(--ink-muted); margin-top: 1px; }

.list-paywall { padding: 16px; background: #fef8e8; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.list-paywall p { margin: 0; font-size: 0.9rem; color: #78350f; }

/* Locked list card — shown to all unpaid users in place of the
   college list. Counts and benefits only, never any college names. */
.locked-list-card {
  display: block;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 36px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #fef8e8 0%, #ffffff 100%);
  transition: background .2s, box-shadow .2s, transform .15s;
}
.locked-list-card:hover {
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #fdecc4 0%, #fff7e0 100%);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.locked-list-card:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: -3px;
}
.locked-list-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.locked-list-title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.locked-list-sub {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 18px;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}
.locked-list-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin: 0 auto 22px;
  max-width: 540px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.locked-list-bullets span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.locked-list-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
  transition: background .15s, transform .12s, box-shadow .2s;
}
.locked-list-card:hover .locked-list-cta {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.req { color: var(--danger); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, 0.78); padding-top: 50px; margin-top: 40px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 40px;
}
.footer-col h4 { color: #fff; font-family: var(--serif); margin: 0 0 14px; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; font-size: 0.92rem; }
.footer-col a { color: rgba(255, 255, 255, 0.78); }
.footer-col a:hover { color: var(--accent-soft); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-tagline { font-size: 0.92rem; line-height: 1.6; color: rgba(255, 255, 255, 0.6); margin: 0 0 14px; }
.footer-small { font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); margin: 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 8px; }
.address-block { white-space: pre-line; }
.footer-disclaimer { padding: 16px var(--gutter); background: rgba(255, 255, 255, 0.03); border-top: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; font-size: 0.82rem; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.footer-disclaimer strong { color: var(--accent-soft); }
.footer-bottom { background: rgba(0, 0, 0, 0.3); padding: 16px 0; margin-top: 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom-links { display: flex; gap: 14px; }

/* ===========================================================
   AD SLOTS
   =========================================================== */
.ad-slot { margin: 30px auto; padding: 14px 0; text-align: center; max-width: 970px; }
.ad-slot small { color: var(--ink-muted); font-size: 0.72rem; letter-spacing: 0.06em; }

/* ===========================================================
   CONTENT pages (about, contact, privacy, terms, etc.)
   =========================================================== */
.content-page {
  max-width: 760px;
  margin: clamp(24px, 5vw, 56px) auto;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
}
.content-page h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 8px; }
.content-page h3 { margin-top: 28px; margin-bottom: 8px; font-size: 1.18rem; }
.content-page p, .content-page li { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.content-page ul, .content-page ol { padding-left: 1.4em; margin: 0 0 1em; }
.content-page .last-updated { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 22px; }

.contact-info-box {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-top: 30px;
}
.contact-info-box dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 20px; margin: 0; }
.contact-info-box dt { font-weight: 600; color: var(--ink-soft); font-size: 0.92rem; }
.contact-info-box dd { margin: 0; font-size: 0.95rem; }

/* ===========================================================
   RESPONSIVE — mobile-first refinements
   =========================================================== */
@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; gap: 28px; }
  .hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .preview-band-inner { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .insight-grid .card-highlight { grid-column: 1 / -1; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 8px; padding: 18px var(--gutter); }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .insight-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .college-card-header { flex-wrap: wrap; }
  .paywall-strip, .list-paywall { flex-direction: column; align-items: stretch; }
  .paywall-strip .btn, .list-paywall .btn { width: 100%; }
  .dash-context { flex-direction: column; }
}

@media (max-width: 480px) {
  .home-hero { padding-top: 32px; }
  .hero-form { padding: 20px; }
  .hero-form::before { right: 16px; top: -10px; font-size: 0.62rem; padding: 4px 10px; }
  .hdr-row { height: 56px; }
  .brand-line1 { font-size: 1.05rem; }
  .form-card { margin: 16px var(--gutter); padding: 22px 20px; }
  .preview-card { transform: rotate(0); }
  .college-card-side { width: 100%; justify-content: space-between; margin-top: 8px; }
  .college-closing { min-width: 0; }
}

/* Accessibility: respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
