/* ==========================================================================
   Courup School — Global Stylesheet
   ========================================================================== */

:root {
  --purple-900: #2a1055;
  --purple-800: #3b1a75;
  --purple-700: #4c1d95;
  --purple-600: #5b21b6;
  --purple-500: #6d28d9;
  --purple-400: #8b5cf6;
  --purple-300: #a78bfa;
  --purple-200: #c4b5fd;
  --purple-100: #ede9fe;
  --purple-50:  #f5f3ff;

  --gold: #f6c453;
  --gold-light: #ffe9a8;
  --gold-soft: #fff6e0;
  --gold-deep: #e8a93b;
  --ink: #1c1330;
  --body: #4b4560;
  --muted: #6b6480;
  --line: #e6e1f2;
  --white: #ffffff;
  --cream: #faf9fd;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(42, 16, 85, .06);
  --shadow: 0 12px 34px rgba(42, 16, 85, .10);
  --shadow-lg: 0 26px 60px rgba(42, 16, 85, .16);

  --max: 1200px;
  --pad: clamp(20px, 5vw, 48px);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--purple-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--purple-700); color: #fff;
  padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

section { padding: clamp(56px, 8vw, 104px) 0; }
section.tight { padding: clamp(40px, 5vw, 64px) 0; }

.bg-cream {
  background: linear-gradient(170deg, #fffdf7 0%, var(--cream) 60%, #fdfcf8 100%);
}
.bg-lilac { background: var(--purple-50); }
.bg-deep {
  position: relative;
  background: linear-gradient(150deg, var(--purple-900), var(--purple-700) 55%, var(--purple-600));
  color: rgba(255,255,255,.86);
  overflow: hidden;
}
.bg-deep::before {
  content: ""; position: absolute; width: 560px; height: 560px;
  right: -180px; top: -220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(246,196,83,.14), transparent 70%);
}
.bg-deep > .wrap { position: relative; z-index: 2; }
.bg-deep h1, .bg-deep h2, .bg-deep h3, .bg-deep h4, .bg-deep h5 { color: #fff; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--purple-500);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 16px; height: 2px; border-radius: 2px; margin-right: 9px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}
.section-head.center .eyebrow::before { width: 14px; }
.bg-deep .eyebrow { color: var(--purple-200); }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.06rem; color: var(--body); margin-bottom: 0; }
.bg-deep .section-head p { color: rgba(255,255,255,.82); }

.lead { font-size: 1.14rem; }

/* Marker-pen emphasis for key phrases in body copy */
.hl {
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 60%, var(--purple-100) 60%);
  padding: 0 2px;
}
.bg-deep .hl, .card-feature .hl {
  color: #fff;
  background: linear-gradient(180deg, transparent 60%, rgba(196,181,253,.34) 60%);
}
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.72rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
}

/* ---------- Mission plaque ---------- */

.mission {
  padding: clamp(52px, 7vw, 88px) 0;
  background: linear-gradient(160deg, var(--purple-50) 0%, #fdfaf2 55%, var(--purple-50) 100%);
}

.mission-plaque {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 72px) clamp(26px, 6vw, 76px) clamp(38px, 6vw, 64px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: center;
}
.mission-plaque::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-400) 55%, var(--gold));
}
.mission-plaque::after {
  content: "";
  position: absolute; width: 420px; height: 420px;
  right: -190px; bottom: -240px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--purple-50), transparent 70%);
  pointer-events: none;
}
.mission-plaque > * { position: relative; z-index: 2; }

.mission-plaque .eyebrow { color: var(--purple-500); }
.mission-plaque h2 {
  font-size: clamp(1.95rem, 4vw, 2.9rem);
  margin-bottom: 30px;
}
.mission-plaque .rule {
  width: 62px; height: 4px; border-radius: 2px;
  background: var(--gold);
  margin: 0 auto 34px;
}
.mission-plaque .statement { margin-bottom: 1.1em; }
.mission-plaque .statement:last-of-type { margin-bottom: 0; }

.mission-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 42px; padding-top: 34px;
  border-top: 1px solid var(--line);
  list-style: none; padding-left: 0; padding-right: 0;
}
.mission-pillars li { text-align: center; }
.mission-pillars .k {
  display: block; font-family: var(--font-display);
  font-size: 1.05rem; color: var(--purple-700); font-weight: 600; margin-bottom: 4px;
}
.mission-pillars .v { font-size: .89rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 700px) {
  .mission-pillars { grid-template-columns: 1fr; gap: 20px; }
}

.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--purple-600); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--purple-700); color: #fff; }

.btn-ghost { background: transparent; color: var(--purple-700); border-color: var(--purple-200); }
.btn-ghost:hover { background: var(--purple-50); color: var(--purple-800); }

.btn-light { background: #fff; color: var(--purple-800); }
.btn-light:hover { background: var(--purple-50); color: var(--purple-900); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.textlink {
  font-weight: 600; font-size: .95rem;
  color: var(--purple-600);
  display: inline-flex; align-items: center; gap: 6px;
}
.textlink::after { content: "→"; transition: transform .18s ease; }
.textlink:hover { text-decoration: none; }
.textlink:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px var(--pad);
  display: flex; align-items: center; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--purple-600), var(--purple-800));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: -.02em;
}
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--ink); line-height: 1.1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: .69rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: 999px;
  font-size: .93rem; font-weight: 500; color: var(--body);
}
.nav a:hover { background: var(--purple-50); color: var(--purple-700); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--purple-700); background: var(--purple-50); font-weight: 600; }

/* The button in the nav must beat the generic `.nav a` colour rule above,
   otherwise its label renders dark-on-purple and effectively disappears. */
.nav a.btn { margin-left: 10px; padding: 11px 22px; font-size: .9rem; font-weight: 600; }
.nav a.btn-primary,
.nav a.btn-primary[aria-current="page"] { background: var(--purple-600); color: #fff; }
.nav a.btn-primary:hover { background: var(--purple-800); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 9px 12px; cursor: pointer;
  font-size: 1.1rem; color: var(--ink); line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--purple-900) 0%, var(--purple-700) 48%, var(--purple-500) 100%);
  color: rgba(255,255,255,.88);
  padding: clamp(72px, 10vw, 132px) 0 clamp(64px, 9vw, 116px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px; right: -170px; top: -220px;
  background: radial-gradient(circle at 30% 30%, rgba(196,181,253,.34), transparent 68%);
}
.hero::after {
  width: 560px; height: 560px; left: -190px; bottom: -260px;
  background: radial-gradient(circle at 60% 40%, rgba(246,196,83,.24), transparent 70%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; margin-bottom: 22px; max-width: 15ch; }
.hero p { font-size: clamp(1.04rem, 1.6vw, 1.2rem); max-width: 58ch; color: rgba(255,255,255,.85); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.26);
  color: #fff; font-size: .82rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* Sub-page hero */
.subhero {
  background: linear-gradient(155deg, var(--purple-900), var(--purple-700));
  color: rgba(255,255,255,.85);
  padding: clamp(56px, 8vw, 96px) 0 clamp(52px, 7vw, 88px);
  position: relative; overflow: hidden;
}
.subhero::after {
  content: ""; position: absolute; width: 460px; height: 460px;
  right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(196,181,253,.28), transparent 70%);
}
.subhero::before {
  content: ""; position: absolute; width: 420px; height: 420px;
  left: -170px; bottom: -240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 55% 45%, rgba(246,196,83,.16), transparent 70%);
}
.subhero .wrap { position: relative; z-index: 2; }
.subhero h1 { color: #fff; max-width: 18ch; }
.subhero p { max-width: 62ch; font-size: 1.08rem; color: rgba(255,255,255,.84); margin-bottom: 0; }

/* ---------- Cards ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card { position: relative; overflow: hidden; }
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold) 50%, var(--gold-light));
  opacity: 0; transition: opacity .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--purple-200); }
.card:hover::after { opacity: 1; }
.card-feature::after, .card-dark::after { display: none; }
.card h3, .card h4, .card h5 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }

.card-lift { border-radius: var(--radius-lg); padding: 36px; }

/* Highlighted feature card — spans the full grid row and inverts to purple */
.card-feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--purple-800) 0%, var(--purple-600) 55%, var(--purple-500) 100%);
  border-color: transparent;
  border-radius: var(--radius-lg);
  padding: 38px;
  color: rgba(255,255,255,.87);
  box-shadow: var(--shadow);
}
.card-feature:hover { border-color: transparent; box-shadow: var(--shadow-lg); }
.card-feature h4, .card-feature h5 { color: #fff; }
.card-feature .icon-chip { background: rgba(255,255,255,.18); color: #fff; }
.card-feature .tag {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  background: var(--gold); color: #4a3400;
  font-family: var(--font-body); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.card-feature .feature-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; }
.card-feature .checklist li::before { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 780px) {
  .card-feature .feature-inner { grid-template-columns: 1fr; gap: 22px; }
}

.card-dark {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 30px;
}
.card-dark p { color: rgba(255,255,255,.8); margin-bottom: 0; }
.card-dark:hover { background: rgba(255,255,255,.1); }

.icon-chip {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(145deg, var(--purple-100) 0%, var(--gold-soft) 165%);
  color: var(--purple-700);
  display: grid; place-items: center;
  font-size: 1.35rem; margin-bottom: 18px;
}
.card-dark .icon-chip { background: rgba(255,255,255,.15); color: #fff; }

.numbered {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(140deg, var(--purple-600), var(--purple-800));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem; margin-bottom: 16px;
  font-family: var(--font-body);
}

/* ---------- Stats ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.16); border-radius: var(--radius); overflow: hidden; }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }
.stat {
  background: var(--purple-800);
  padding: 34px 26px; text-align: center;
}
.stat .num {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem);
  color: #fff; font-weight: 600; line-height: 1; display: block; margin-bottom: 10px;
}
.stat .label { font-size: .9rem; color: rgba(255,255,255,.76); }

/* ---------- Lists ---------- */

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative; padding-left: 34px; margin-bottom: 14px;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple-100); color: var(--purple-700);
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}
.bg-deep .checklist li::before { background: rgba(255,255,255,.18); color: #fff; }

/* Numbered requirement list */
.req-list { list-style: none; counter-reset: req; padding: 0; margin: 0; }
.req-list > li {
  counter-increment: req;
  position: relative;
  padding: 22px 0 22px 74px;
  border-top: 1px solid var(--line);
}
.req-list > li:last-child { border-bottom: 1px solid var(--line); }
.req-list > li::before {
  content: counter(req, decimal-leading-zero);
  position: absolute; left: 0; top: 20px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--purple-100); color: var(--purple-700);
  display: grid; place-items: center;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
}
.req-list h5 { margin-bottom: .3em; }
.req-list p { margin-bottom: 0; }
@media (max-width: 560px) {
  .req-list > li { padding-left: 0; padding-top: 62px; }
  .req-list > li::before { top: 16px; }
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.pill-list li {
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; font-size: .9rem; font-weight: 500;
  color: var(--ink);
}

/* ---------- Compare block ---------- */

.compare-head {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap; text-align: center; margin-bottom: 38px;
}
.compare-head .side { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); max-width: 22ch; }
.compare-head .vs {
  font-family: var(--font-display); font-size: 1.5rem; color: #fff;
  background: var(--purple-600); width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 62px;
}

/* ---------- Table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
thead th {
  background: var(--purple-700); color: #fff; text-align: left;
  padding: 16px 20px; font-weight: 600; font-size: .9rem;
  border-bottom: 2px solid var(--gold);
}
tbody td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--purple-50); }
td strong { color: var(--ink); }

.fineprint { font-size: .86rem; color: var(--muted); margin-top: 14px; }

/* ---------- Academic calendar (fluid, no fixed table width) ---------- */

.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
  align-items: start;
}

.cal-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
}
.cal-panel > header {
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600));
  color: #fff;
  padding: 20px 24px;
  border-bottom: 2px solid var(--gold);
  min-height: 96px;
}
.cal-panel > header h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.cal-panel > header .span { display: block; font-size: .84rem; color: rgba(255,255,255,.76); margin-top: 4px; font-family: var(--font-body); }

.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-list li {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 6px 18px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.cal-list li:first-child { border-top: none; }
.cal-list li:nth-child(even) { background: var(--purple-50); }
.cal-list .when {
  font-weight: 700; color: var(--purple-800); font-size: .87rem;
  line-height: 1.4; overflow-wrap: break-word;
}
.cal-list .what { font-size: .93rem; color: var(--body); line-height: 1.5; overflow-wrap: break-word; }
.cal-list li.is-break .what { color: var(--muted); font-style: italic; }
.cal-list li.is-key .what { font-weight: 600; color: var(--ink); }

/* Stack date above event when the panel gets narrow */
@media (max-width: 1080px) {
  .cal-list li { grid-template-columns: 1fr; gap: 3px; padding: 13px 20px; }
  .cal-list .when { font-size: .8rem; letter-spacing: .02em; text-transform: uppercase; color: var(--purple-600); }
}

/* ---------- Weekly timetable ---------- */

.timetable { min-width: 820px; font-size: .86rem; }
.timetable thead th { font-size: .82rem; text-align: center; padding: 14px 12px; }
.timetable thead th:first-child { text-align: left; width: 130px; }
.timetable td { padding: 10px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.timetable tbody tr:nth-child(even) td { background: transparent; }
.timetable .slot {
  text-align: left; font-weight: 600; color: var(--ink);
  background: var(--purple-50); white-space: nowrap; font-size: .84rem;
}
.timetable .blk {
  display: block; border-radius: 9px; padding: 9px 8px;
  font-weight: 600; line-height: 1.32; font-size: .82rem;
}
.timetable .blk small { display: block; font-weight: 500; opacity: .78; font-size: .93em; }
.blk-core   { background: var(--purple-100); color: var(--purple-800); }
.blk-elect  { background: #e0f2f1; color: #125f57; }
.blk-writ   { background: #fff2d9; color: #8a6100; }
.blk-adv    { background: #ede9fe; color: var(--purple-700); }
.blk-proj   { background: #fde8f3; color: #9b1d63; }
.blk-train  { background: #e8f0fe; color: #1a4c93; }
.blk-free   { background: #f4f4f7; color: var(--muted); font-weight: 500; }

.tt-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.tt-legend li { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--body); }
.tt-legend .sw { width: 15px; height: 15px; border-radius: 5px; flex: 0 0 15px; }

.tt-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.tt-meta li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .86rem;
}
.tt-meta strong { color: var(--ink); }

/* ---------- Accordion / FAQ ---------- */

details.faq {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
}
details.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--purple-500); font-weight: 400; line-height: 1;
}
details.faq[open] summary::after { content: "–"; }
details.faq[open] summary { color: var(--purple-700); }
details.faq .faq-body { padding: 0 24px 22px; }
details.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Timeline ---------- */

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  position: relative; padding: 0 0 34px 62px; border-left: 2px solid var(--line);
  margin-left: 18px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li .step {
  position: absolute; left: -19px; top: -4px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--purple-600); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.timeline li h4 { margin-bottom: .35em; }
.timeline li p:last-child { margin-bottom: 0; }

/* ---------- Quote ---------- */

.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0 0 20px; font-size: 1.02rem; color: var(--ink); font-style: italic; }
.quote .who { font-size: .88rem; color: var(--muted); font-style: normal; }
.quote .who strong { display: block; color: var(--ink); font-style: normal; font-size: .95rem; }

/* ---------- Notice / callout ---------- */

.notice {
  border-left: 4px solid var(--purple-500);
  background: var(--purple-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
}
.notice p:last-child { margin-bottom: 0; }
.notice strong { color: var(--purple-800); }
.notice.warm {
  border-left-color: var(--gold-deep);
  background: linear-gradient(120deg, var(--gold-soft), #fffdf7);
}
.notice.warm strong { color: #8a6100; }

.placeholder {
  background: #fff5d6; color: #8a6100;
  border-radius: 5px; padding: 1px 7px; font-weight: 600; font-size: .93em;
  border: 1px dashed #e0bb62;
}

/* ---------- Form ---------- */

.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .97rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple-400);
  box-shadow: 0 0 0 4px var(--purple-100);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(140deg, var(--purple-800), var(--purple-600));
  color: rgba(255,255,255,.86);
  text-align: center;
  padding: clamp(56px, 8vw, 92px) 0;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; width: 500px; height: 500px;
  left: 50%; top: -260px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 68%);
}
.cta-band::before {
  content: ""; position: absolute; width: 560px; height: 560px;
  right: -200px; bottom: -300px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(246,196,83,.16), transparent 70%);
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 56ch; margin-left: auto; margin-right: auto; color: rgba(255,255,255,.86); }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--purple-900); color: rgba(255,255,255,.68); padding: 64px 0 0; }
.site-footer h5 {
  color: #fff; text-transform: uppercase; letter-spacing: .12em;
  font-size: .74rem; margin-bottom: 18px; font-weight: 700;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer a { color: rgba(255,255,255,.68); display: block; margin-bottom: 10px; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-mark { margin-bottom: 16px; }
.footer-brand p { font-size: .93rem; margin-bottom: 6px; }
.footer-tag { color: var(--purple-200); font-style: italic; }
.footer-bottom {
  margin-top: 52px; border-top: 1px solid rgba(255,255,255,.14);
  padding: 22px 0; font-size: .85rem; color: rgba(255,255,255,.5);
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  align-items: center;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-legal a { display: inline; margin-bottom: 0; font-size: .85rem; color: rgba(255,255,255,.62); }
.footer-legal a:hover { color: #fff; }

/* Legal pages: readable long-form body copy */
.wrap-narrow h2 { margin-top: 2em; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.wrap-narrow h2:first-of-type { margin-top: 0; }
.wrap-narrow h4 { margin-top: 1.6em; color: var(--purple-700); font-size: 1.02rem; }
.wrap-narrow .checklist { margin-bottom: 1.4em; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px var(--pad) 22px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav.open .btn { margin: 10px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .stat-grid, .stat-grid.four { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .compare-head .vs { width: 52px; height: 52px; flex: 0 0 52px; font-size: 1.2rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.02rem; }
}
