/* ==========================================================================
   Own Your Study Network — Shared Stylesheet
   Brand palette: Midnight Navy #121A2F + Indigo #635BFF
   ========================================================================== */

:root {
  --navy-950: #121a2f;
  --navy-900: #17233d;
  --navy-800: #1d2c4a;
  --navy-700: #263a5e;
  --navy-600: #34497a;
  --gold-500: #635bff;
  --gold-400: #8079ff;
  --gold-100: #ebe9ff;
  --cream: #faf7f1;
  --cream-dark: #f1ebdf;
  --ink: #14202f;
  --ink-soft: #4a5a6d;
  --line: #e4ddcd;
  --white: #ffffff;
  --success: #2f6b4f;
  --shadow-sm: 0 2px 10px rgba(18, 26, 47, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 26, 47, 0.10);
  --shadow-lg: 0 24px 60px rgba(18, 26, 47, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Playfair Display", Georgia, serif;
  color: var(--navy-950);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

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

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

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--gold-500);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  max-width: 620px;
  color: var(--ink-soft);
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--cream);
  box-shadow: 0 8px 20px rgba(99, 91, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(99, 91, 255, 0.45); }
.btn-dark {
  background: var(--navy-950);
  color: var(--cream);
}
.btn-dark:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-400); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-950);
}
.btn-outline-dark:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy-950);
}
.logo .accent { color: var(--gold-500); }
.logo .tag {
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-900);
  position: relative;
  padding: 4px 0;
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--gold-500); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--navy-950); border-radius: 2px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 28px 22px;
  border-top: 1px solid var(--line);
}
.mobile-menu a {
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
body.menu-open .mobile-menu { display: flex; }

@media (max-width: 880px) {
  nav.main-nav, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 20%, rgba(99,91,255,0.16), transparent 45%), var(--navy-950);
  color: var(--cream);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border: 1px solid rgba(99,91,255,0.25);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; }
.hero p.lede { color: rgba(250,247,241,0.75); }
.hero .eyebrow { color: var(--gold-400); }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 36px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats .stat b {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  color: var(--gold-400);
}
.hero-stats .stat span { font-size: 0.82rem; color: rgba(250,247,241,0.65); }

.page-hero {
  background: var(--navy-950);
  color: var(--cream);
  padding: 70px 0 60px;
}
.page-hero p.lede { color: rgba(250,247,241,0.75); }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-100), var(--cream-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-navy { background: var(--navy-950); color: var(--cream); }
.bg-navy h2, .bg-navy h3 { color: var(--cream); }
.bg-navy p { color: rgba(250,247,241,0.72); }
.bg-cream-dark { background: var(--cream-dark); }

/* ---------- Pricing ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th, .price-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table thead th {
  background: var(--navy-950);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--cream-dark); }
.price-table .rate { font-family: "Fraunces", serif; font-weight: 600; color: var(--navy-950); }

.pricing-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.pricing-card .badge {
  position: absolute;
  top: -14px; left: 30px;
  background: var(--gold-500);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.pricing-card .plan-name { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-500); font-weight: 700; }
.pricing-card .plan-hours { font-family: "Fraunces", serif; font-size: 1.5rem; margin: 6px 0 2px; }
.pricing-card .plan-price {
  font-family: "Fraunces", serif;
  font-size: 2.6rem;
  color: var(--navy-950);
  margin: 14px 0 0;
}
.pricing-card .plan-price sup { font-size: 1.1rem; top: -1em; }
.pricing-card .plan-per {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.pricing-card ul.features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex-grow: 1;
}
.pricing-card ul.features li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  color: var(--ink);
}
.pricing-card ul.features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.compare-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--cream-dark);
  border: 1px dashed var(--gold-500);
  border-radius: var(--radius);
  padding: 20px 26px;
  font-size: 0.92rem;
  flex-wrap: wrap;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--line);
}
.testimonial .stars { color: var(--gold-500); letter-spacing: 3px; margin-bottom: 12px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-950));
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif; font-weight: 600;
}
.testimonial .who b { display: block; font-size: 0.92rem; color: var(--navy-950); }
.testimonial .who span { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- FAQ / Accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-item button.q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--navy-950);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.accordion-item .plus { font-size: 1.4rem; color: var(--gold-500); transition: transform 0.2s ease; flex-shrink: 0; }
.accordion-item.open .plus { transform: rotate(45deg); }
.accordion-item .a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.accordion-item.open .a { max-height: 400px; padding-bottom: 22px; }

/* ---------- Timeline (curriculum) ---------- */
.week-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.week-row .wk {
  font-family: "Fraunces", serif;
  font-size: 0.95rem;
  color: var(--gold-500);
  font-weight: 700;
}
.week-row:last-child { border-bottom: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-500);
}
textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }
#form-success {
  display: none;
  background: #eaf4ee;
  border: 1px solid var(--success);
  color: var(--success);
  padding: 18px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  margin-top: 20px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-950);
  color: rgba(250,247,241,0.7);
  padding: 60px 0 30px;
}
footer .foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 780px) { footer .foot-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--cream); font-family: "Inter", sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
footer a { display: block; font-size: 0.9rem; padding: 6px 0; color: rgba(250,247,241,0.7); }
footer a:hover { color: var(--gold-400); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.8rem; flex-wrap: wrap; gap: 10px;
}

/* ---------- Misc ---------- */
.tag-pill {
  display: inline-block;
  background: var(--cream-dark);
  border: 1px solid var(--line);
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}
.divider { height: 1px; background: var(--line); margin: 60px 0; border: none; }
.floor-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 20px;
}
.floor-note b { color: var(--gold-500); }

/* ---------- Rate Ladder / Perk Ladder ---------- */
.rate-promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--navy-950);
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  text-align: center;
}
.rate-promise b { color: var(--cream); }

.perk-ladder {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.perk-tier {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.perk-tier:last-child { border-bottom: none; }
.perk-tier .tier-label {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--navy-950);
}
.perk-tier .tier-rate {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--gold-500);
  font-weight: 700;
}
.perk-tier ul { margin: 0; padding-left: 18px; }
.perk-tier li { font-size: 0.92rem; color: var(--ink-soft); padding: 3px 0; }

/* ---------- Add-on catalog ---------- */
.addon-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.addon-card .addon-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
}
.addon-type.hourly { background: var(--gold-100); color: #4338ca; }
.addon-type.flat { background: var(--cream-dark); color: var(--navy-700); border: 1px solid var(--line); }
.addon-card .addon-price {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  color: var(--navy-950);
  margin-top: 6px;
}

/* ---------- Price Calculator ---------- */
.calculator {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.calc-row { margin-bottom: 24px; }
.calc-row label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--navy-950);
  margin-bottom: 10px;
}
.calc-row label span { color: var(--gold-500); font-weight: 700; }
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--cream-dark);
  border: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold-500);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--white);
  cursor: pointer;
}
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.preset-btn {
  border: 1.5px solid var(--line);
  background: var(--cream-dark);
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-btn:hover, .preset-btn.active {
  background: var(--navy-950);
  color: var(--gold-400);
  border-color: var(--navy-950);
}
.calc-addons { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--ink); cursor: pointer; margin: 0; font-weight: 500; }
.calc-toggle input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold-500); }
.calc-note { font-size: 0.78rem; color: var(--ink-soft); margin-left: 28px; }
.calc-stepper { display: flex; align-items: center; gap: 14px; font-size: 0.92rem; }
.calc-stepper button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--cream-dark);
  color: var(--navy-950);
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.calc-stepper button:hover { border-color: var(--gold-500); color: var(--gold-500); }
.calc-stepper span { font-weight: 700; min-width: 16px; text-align: center; }
.calc-result {
  background: var(--cream-dark);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-size: 0.92rem;
  color: var(--ink);
}
.calc-result > div { padding: 6px 0; }
.calc-total {
  font-family: "Fraunces", serif;
  font-size: 1.9rem;
  color: var(--navy-950);
  margin-top: 6px;
}
.calc-total span { color: var(--gold-500); }
.calc-nudge {
  background: var(--gold-100);
  border: 1px dashed var(--gold-500);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #4338ca;
  margin: 8px 0;
}
.calc-perks-list { margin-top: 4px; }
.calc-perks-list span.perk-chip {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.78rem;
  margin: 3px 4px 0 0;
}
