/* ============================================================
   LOOK — the student-portal look applied to the public site
   (cream + forest green + rust, rounded cards, pill buttons).
   Loaded last on every page, so it only overrides: removing this
   file and its <link> brings back the previous espresso look.
   ============================================================ */

:root {
  --paper: #F4EFE4;
  --paper-dim: #EBE3D2;
  --paper-deep: #E3D9C4;
  --surface: #FCFAF5;
  --surface-2: #F3EDE1;
  --ink: #211D16;
  --ink-soft: #4A4437;
  --ink-faint: #6F6656;           /* 4.9:1 on --paper (was 3.1:1) */

  /* Forest green takes the role the walnut brown had: primary actions,
     dark panels, footer. --board keeps its name so every existing rule
     (method panel, featured plan, footer…) follows automatically. */
  --forest: #2F4A3A;
  --forest-deep: #243A2D;
  --forest-ink: #F4EFE4;
  --sage: #E3E9DD;
  --sage-deep: #7E9479;
  --board: #243A2D;
  --board-soft: #2F4A3A;
  --olive: #2F4A3A;
  --olive-deep: #243A2D;
  --olive-pale: #E3E9DD;
  --rust: #B0552B;
  --rust-deep: #8C4220;
  --rust-pale: #F1DED0;
  --brass: #C9A55A;               /* a touch lighter: reads on forest green */

  --line: rgba(33, 29, 22, 0.10);
  --line-soft: rgba(33, 29, 22, 0.06);
  --line-on-dark: rgba(244, 239, 228, 0.18);
  --shadow-soft: 0 1px 2px rgba(47, 58, 40, 0.05), 0 8px 24px -12px rgba(47, 58, 40, 0.18);
  --shadow-lift: 0 2px 4px rgba(47, 58, 40, 0.06), 0 22px 40px -20px rgba(47, 58, 40, 0.32);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Wider than before (1180/760): use more of a desktop screen. */
  --container: 1320px;
  --container-narrow: 900px;
}

body { background-image: none; background-color: var(--paper); }

/* ---- Header ---- */
.site-header { background: rgba(244, 239, 228, 0.9); border-bottom-color: var(--line); }
.main-nav__list a[aria-current="page"] { color: var(--forest); font-weight: 600; }
.main-nav__list a::after { background: var(--forest); height: 2px; border-radius: 2px; }
.header-login { font-size: var(--step--1); font-weight: 600; color: var(--forest); padding: 0.4em 0.2em; }
.header-login:hover { color: var(--rust-deep); }
.main-nav__list { gap: var(--sp-4); }
.main-nav__list a, .header-login, .wordmark__sub { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 861px) {
  .main-nav__list { gap: var(--sp-3); }
  .wordmark__sub { display: none; }
}
@media (max-width: 960px) { .header-login { display: none; } }
.nav-only-mobile { display: none; }
@media (max-width: 860px) { .main-nav.is-open .nav-only-mobile { display: list-item; } }

/* ---- Buttons: pills ---- */
.btn { border-radius: var(--radius-pill); padding: 0.75em 1.45em; }
.btn--primary { background: var(--forest); border-color: var(--forest); color: var(--forest-ink); }
.btn--primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); box-shadow: 0 12px 24px -12px rgba(36, 58, 45, 0.6); }
.btn--ghost { background: var(--surface); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--forest); color: var(--forest); }
.btn--on-dark { background: var(--paper); color: var(--forest-deep); border-color: var(--paper); }
.btn--on-dark:hover { background: #fff; border-color: #fff; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45); }
.btn--ghost-on-dark { border-color: rgba(244, 239, 228, 0.4); }
.btn--text { color: var(--forest); border-bottom-color: var(--forest); }
.btn--text:hover { color: var(--rust-deep); border-color: var(--rust-deep); }

/* ---- Eyebrows, tags, coordinates ---- */
.eyebrow { color: var(--rust-deep); }
.eyebrow--on-dark, .section--dark .eyebrow { color: var(--brass); }
.tag { background: var(--sage); color: var(--forest); border-radius: var(--radius-pill); padding: 0.25em 0.75em; }
.coord { color: var(--rust); }

/* ---- Cards: white-ish, rounded, soft shadow ---- */
.card, .service-card, .plan-card, .teaser-card, .trust-note {
  background: var(--surface);
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.card--path { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.card--path::before { display: none; }
.card--path__media { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.service-card:hover, .plan-card:hover, .teaser-card:hover, .card--path:hover { box-shadow: var(--shadow-lift); border-color: var(--line); }
.trust-note { border-left: 4px solid var(--forest); }
.trust-note__icon { color: var(--forest); }
.section[style*="--paper-dim"] { background: var(--paper-dim) !important; }

/* Featured plan / dark panels: forest green, rounded */
.plan-card--featured { background: var(--forest); border-color: var(--forest); }
.plan-card--featured:hover { border-color: var(--forest); }
.plan-card__badge { border-radius: var(--radius-pill); }
.plan-card__features li::before { color: var(--forest); }
.method__panel { background: var(--forest); border-radius: var(--radius-lg); }
.board-diagram { border-radius: var(--radius-md); }
.about-photo, .about-photo img { border-radius: var(--radius-lg); }
.about-photo { background: var(--surface); background-image: none; }

/* ---- Footer ---- */
.site-footer { background: var(--forest-deep); color: var(--sage); }
.footer-bottom { color: rgba(244, 239, 228, 0.6); }

/* ---- Progress bar ---- */
.scroll-progress { background: linear-gradient(90deg, var(--forest), var(--rust)); }

/* ============================================================
   HOME — light hero in two columns (replaces the dark photo hero)
   ============================================================ */
.hero { background: var(--paper); color: var(--ink); padding-block: var(--sp-7) var(--sp-8); }
.hero::before { display: none; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--sp-7); align-items: center; }
.hero__content { max-width: 620px; }
.hero h1 { color: var(--ink); font-size: var(--step-5); }
.hero h1 em { color: var(--rust); }
.hero__lede { color: var(--ink-soft); }
.hero__foot { color: var(--ink-soft); }
.hero__foot span::before { background: var(--forest); }
.hero__media { position: relative; }
.hero__media .hero__bg {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  opacity: 1;
  transform: none;
}
.hero__float {
  position: absolute;
  left: -2.2rem;
  bottom: 2.2rem;
  width: min(250px, 70%);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero__float strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin: 0.15rem 0 0.35rem; }
.hero__float .mini-eyebrow { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust-deep); }
.hero__float .mini-bar { height: 6px; border-radius: 6px; background: var(--sage); overflow: hidden; margin-top: 0.5rem; }
.hero__float .mini-bar span { display: block; height: 100%; width: 70%; background: var(--forest); border-radius: 6px; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero__media { max-width: 460px; }
  .hero__float { left: 1rem; bottom: 1rem; }
}

/* Final call to action: a rounded forest block instead of the photo band */
.final-cta { background: transparent; padding-block: var(--sp-6) var(--sp-8); }
.final-cta > .container {
  background: var(--forest);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-5);
  max-width: 980px;
  box-shadow: var(--shadow-lift);
}
.final-cta p { color: var(--sage); }

/* Intro curtain recoloured to the new palette (no photos) */
.curtain__panel--left, .curtain__panel--right { background-image: none; background-color: var(--forest-deep); }
.curtain__panel--right { background-color: var(--forest); }
.curtain__plate { background: var(--forest-deep); border-radius: var(--radius-lg); }

/* ============================================================
   PORTAL PAGE + portal teaser on the home page
   ============================================================ */
.pp-hero { padding-block: var(--sp-7) var(--sp-7); }
.pp-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: center; }
.pp-hero h1 { font-size: var(--step-5); }
.pp-hero h1 em { color: var(--rust); font-style: italic; }
.pp-lede { margin-top: var(--sp-4); font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; line-height: 1.6; }
.pp-ctas { margin-top: var(--sp-5); display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.pp-note { margin-top: var(--sp-3); font-size: var(--step--1); color: var(--ink-faint); }

/* Mini portal mock-ups, built in HTML (crisp, translatable, indexable) */
.mock {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  display: grid;
  grid-template-columns: 64px 1fr;
  overflow: hidden;
  font-size: 0.82rem;
}
.mock__side { background: var(--forest); padding: 0.9rem 0; display: grid; align-content: start; justify-items: center; gap: 0.9rem; }
.mock__side span { width: 26px; height: 26px; border-radius: 8px; background: rgba(244, 239, 228, 0.14); }
.mock__side span:first-child { background: rgba(244, 239, 228, 0.9); }
.mock__main { padding: 1rem; display: grid; gap: 0.7rem; }
.mock__hello { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.mock__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.mock__card { background: var(--surface); border-radius: var(--radius-md); padding: 0.75rem 0.85rem; box-shadow: var(--shadow-soft); min-width: 0; }
.mock__card b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin-top: 0.15rem; }
.mock__card small { color: var(--ink-faint); }
.mock__label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust-deep); }
.mock__dots { display: flex; gap: 0.35rem; margin-top: 0.45rem; }
.mock__dots i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--sage-deep); }
.mock__dots i.on { background: var(--forest); border-color: var(--forest); }
.mock__bar { height: 6px; border-radius: 6px; background: var(--sage); margin-top: 0.5rem; overflow: hidden; }
.mock__bar span { display: block; height: 100%; background: var(--forest); border-radius: 6px; }
.mock__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.mock__chips em { font-style: normal; font-size: 0.72rem; padding: 0.2em 0.65em; border-radius: var(--radius-pill); background: var(--sage); color: var(--forest); }
.mini-board { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border-radius: 8px; overflow: hidden; max-width: 150px; margin-top: 0.5rem; }
.mini-board i { background: #F0DFB8; display: grid; place-items: center; font-style: normal; font-size: 0.8rem; line-height: 1; color: #211D16; }
.mini-board i.d { background: #B58863; }
@media (max-width: 900px) {
  .pp-hero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .mock { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .mock__row { grid-template-columns: 1fr; }
}

.pp-section { padding-block: var(--sp-8); }
.pp-section--tint { background: var(--paper-dim); }
.pp-head { max-width: 760px; }
.pp-head h2 { margin-top: var(--sp-3); font-size: var(--step-4); }
.pp-head p { margin-top: var(--sp-3); color: var(--ink-soft); font-size: var(--step-1); line-height: 1.6; }

.pp-grid { margin-top: var(--sp-6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.pp-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: var(--sp-2); }
.pp-feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sage); color: var(--forest); display: grid; place-items: center; }
.pp-feature__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-feature h3 { font-size: var(--step-1); margin-top: var(--sp-2); }
.pp-feature p { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.6; }
.pp-feature__when { margin-top: auto; padding-top: var(--sp-2); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--forest); }
@media (max-width: 960px) { .pp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pp-grid { grid-template-columns: 1fr; } }

.pp-split { margin-top: var(--sp-6); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: center; }
.pp-split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); background: var(--surface); width: 100%; height: auto; }
.pp-list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-3); }
.pp-list li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.pp-list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232F4A3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.pp-list strong { color: var(--ink); }
@media (max-width: 860px) { .pp-split { grid-template-columns: 1fr; } }

.pp-steps { margin-top: var(--sp-6); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); counter-reset: paso; }
.pp-step { background: var(--surface); border-radius: var(--radius-lg); padding: var(--sp-5); box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.pp-step::before { counter-increment: paso; content: counter(paso); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--forest-ink); font-family: var(--font-display); font-weight: 600; margin-bottom: var(--sp-3); }
.pp-step h3 { font-size: var(--step-1); }
.pp-step p { margin-top: var(--sp-2); color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 860px) { .pp-steps { grid-template-columns: 1fr; } }

.pp-faq { margin-top: var(--sp-5); display: grid; gap: var(--sp-3); max-width: 820px; }
.pp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-3) var(--sp-4); box-shadow: var(--shadow-soft); }
.pp-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "+"; color: var(--forest); font-size: 1.3rem; line-height: 1; }
.pp-faq details[open] summary::after { content: "–"; }
.pp-faq details p { margin-top: var(--sp-2); color: var(--ink-soft); }

/* Home-page teaser for the portal */
.portal-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: center; }
@media (max-width: 900px) { .portal-teaser { grid-template-columns: 1fr; } }

.plans__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
@media (max-width: 760px) { .plans__grid--two { grid-template-columns: 1fr; } }

.plans__grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
@media (max-width: 1100px) { .plans__grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans__grid--four { grid-template-columns: 1fr; } }
.plan-compare { margin-top: var(--sp-6); overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.plan-compare table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: var(--step--1); }
.plan-compare th, .plan-compare td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); text-align: center; }
.plan-compare thead th { font-family: var(--font-display); font-size: var(--step-0); color: var(--ink); background: var(--surface-2); }
.plan-compare thead th:nth-child(4) { background: var(--forest); color: var(--forest-ink); }
.plan-compare tbody th { text-align: left; font-weight: 500; color: var(--ink-soft); }
.plan-compare td { color: var(--forest); font-weight: 600; }
.plan-compare td:nth-child(4) { background: var(--sage); }
.plan-compare tr:last-child th, .plan-compare tr:last-child td { border-bottom: none; }
.plan-compare__price th, .plan-compare__price td { font-family: var(--font-display); font-size: var(--step-0); color: var(--ink); }
.plan-compare thead th:first-child { text-align: left; }
