:root {
  --ink: #102342;
  --navy: #12335d;
  --navy-2: #214a78;
  --gold: #c99a38;
  --gold-2: #e4bf69;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #eee5d5;
  --muted: #6f7a8c;
  --green: #2f9461;
  --coral: #d76854;
  --shadow: 0 14px 36px rgba(16, 35, 66, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(184, 138, 46, 0.18);
  backdrop-filter: blur(14px);
}

.brand,
.portal-logo,
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img,
.portal-logo img,
.hero-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.hero-brand img {
  width: 46px;
  height: 46px;
}

.hero-brand {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: #263c5c;
  font-size: 0.95rem;
  font-weight: 750;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.header-cta,
.button.primary {
  background: var(--gold);
  color: var(--white);
}

.header-cta {
  padding: 0 16px;
}

.button {
  padding: 0 18px;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.button.compact {
  min-height: 40px;
  font-size: 0.92rem;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.94) 0%, rgba(255, 253, 248, 0.82) 42%, rgba(255, 253, 248, 0.18) 100%),
    linear-gradient(0deg, rgba(255, 253, 248, 0.2), rgba(255, 253, 248, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(810px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 80px);
  padding-top: 84px;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
h4,
p,
span {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
}

h4 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(910px, calc(100% - 36px));
  margin: 72px 0 36px clamp(18px, 6vw, 80px);
  overflow: hidden;
  border: 1px solid rgba(216, 177, 92, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 18px;
  color: var(--ink);
}

.hero-stats div + div {
  border-left: 1px solid rgba(216, 177, 92, 0.28);
}

.hero-stats strong {
  display: block;
  font-size: 1.65rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section,
.why,
.portal-section,
.locations,
.rates,
.testimonials,
.contact {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.intro {
  display: block;
  background: var(--white);
}

.intro > div {
  max-width: 980px;
}

.intro p:last-child,
.contact p,
.tutor-grid p,
.portal-view p,
.location-copy p,
.rate-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 32px;
}

.why {
  background: #fff8ec;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.why-grid div {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(184, 138, 46, 0.22);
  border-radius: 8px;
  background: var(--white);
  font-weight: 850;
}

.why-grid svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--gold);
}

.portal-section {
  background: #fffdf8;
}

.portal-teaser {
  display: grid;
  gap: 24px;
}

.portal-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-preview-grid div {
  display: flex;
  min-height: 108px;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 850;
}

.portal-preview-grid svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--gold);
}

.portal-login-page {
  min-height: 100vh;
  padding: 112px clamp(18px, 5vw, 72px) clamp(48px, 7vw, 86px);
  background: #fff8ec;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 0.65fr);
  gap: 40px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.login-panel h1 {
  color: var(--ink);
}

.login-panel p:not(.eyebrow),
.login-note {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.portal-app {
  max-width: 1280px;
  margin: 0 auto;
}

.portal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: none;
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: #f7f2e9;
  color: var(--ink);
}

.portal-logo {
  margin-bottom: 20px;
}

.portal-logo img {
  width: 34px;
  height: 34px;
}

.portal-nav {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.portal-nav.active {
  background: var(--white);
  color: var(--ink);
}

.portal-nav svg,
.task-list svg,
.location-copy svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.portal-main {
  min-width: 0;
  background: #fffdf8;
}

.portal-topbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.portal-topbar div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #344054;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(47, 148, 97, 0.14);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.portal-view {
  display: none;
  padding: 24px;
}

.portal-view.active {
  display: block;
}

.workspace-grid,
.student-layout,
.parent-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
}

.note-panel,
.ai-output,
.focus-panel,
.task-list article,
.skill-card,
.tutor-grid article,
.rate-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.note-panel,
.ai-output,
.focus-panel {
  padding: 20px;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-header span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 800;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 220px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

.note-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.output-stack {
  display: grid;
  gap: 12px;
}

.output-stack article {
  padding: 14px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffaf0;
}

.output-stack p {
  margin: 0;
}

.focus-panel h3,
.parent-layout h3 {
  max-width: 560px;
  font-size: 2rem;
  line-height: 1.12;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  font-weight: 900;
}

.progress-track,
.skill-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf3;
}

.progress-track {
  margin-top: 10px;
}

.progress-track span,
.skill-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-list article {
  display: flex;
  gap: 14px;
  padding: 18px;
}

.task-list p,
.task-list h4 {
  margin: 0;
}

.task-list svg,
.location-copy svg {
  color: var(--gold);
}

.parent-layout {
  align-items: start;
}

.parent-layout > div:first-child {
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.parent-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.parent-metrics div {
  min-height: 132px;
  padding: 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.parent-metrics strong {
  display: block;
  font-size: 2.1rem;
}

.parent-metrics span {
  color: rgba(255, 255, 255, 0.76);
}

.insights-grid,
.tutor-grid,
.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-card {
  padding: 22px;
}

.skill-card span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-weight: 900;
}

.skill-card h3 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.skill-card.strong .skill-bar span {
  background: var(--green);
}

.skill-card.watch .skill-bar span {
  background: var(--coral);
}

.skill-card.building .skill-bar span {
  background: var(--gold);
}

.tutors {
  background: var(--white);
}

.tutor-grid article {
  min-height: 360px;
  padding: 24px;
}

.featured-tutor {
  grid-column: span 2;
}

.tutor-photo {
  position: relative;
  display: grid;
  min-height: 220px;
  margin-bottom: 22px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #fff8ec, #f4ead8),
    radial-gradient(circle at 72% 24%, rgba(228, 191, 105, 0.32), transparent 28%);
}

.tutor-photo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.tutor-photo span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.avatar {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-2);
  font-size: 1.2rem;
  font-weight: 900;
}

.achievement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.achievement-list span {
  padding: 7px 10px;
  border-radius: 8px;
  background: #f3efe6;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 850;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid rgba(184, 138, 46, 0.28);
  border-radius: 999px;
  background: #fffaf0;
  color: #725314;
  font-size: 0.82rem;
  font-weight: 850;
}

.locations {
  background: #fff8ec;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.map-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 138, 46, 0.24);
  border-radius: 8px;
  background: #f7f3e8;
  box-shadow: none;
}

.map-card .map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.pin {
  position: absolute;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.pin::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--white);
}

.location-copy {
  display: grid;
  gap: 16px;
}

.location-copy div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.location-copy svg {
  width: 28px;
  height: 28px;
  margin-bottom: 24px;
}

.rates {
  background: var(--white);
}

.rate-grid article {
  padding: 26px;
}

.rate-grid span {
  color: var(--muted);
  font-weight: 900;
}

.rate-grid strong {
  display: block;
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.96;
}

.featured-rate {
  background: #fff8ec !important;
  color: var(--ink);
}

.featured-rate span,
.featured-rate p,
.featured-rate strong {
  color: var(--ink);
}

.testimonials {
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.testimonial-grid article {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
}

.testimonial-grid p {
  margin: 0;
  color: #344054;
  line-height: 1.65;
}

.testimonial-grid strong {
  color: var(--navy);
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 0.7fr);
  gap: 40px;
  align-items: start;
  background: #fff8ec;
  color: var(--ink);
}

.contact p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(216, 177, 92, 0.25);
  border-radius: 8px;
  background: var(--white);
}

.contact-form label {
  color: var(--ink);
}

.contact-form textarea {
  min-height: 116px;
}

.success-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 34px;
  padding: clamp(28px, 6vw, 72px);
  background: #fff8ec;
}

.success-card {
  max-width: 680px;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.success-card h1 {
  color: var(--ink);
}

.success-card p:not(.eyebrow) {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 980px) {
  .intro,
  .login-panel,
  .portal-shell,
  .workspace-grid,
  .student-layout,
  .parent-layout,
  .location-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-logo {
    grid-column: 1 / -1;
  }

  .insights-grid,
  .why-grid,
  .portal-preview-grid,
  .tutor-grid,
  .testimonial-grid,
  .rate-grid {
    grid-template-columns: 1fr;
  }

  .featured-tutor {
    grid-column: span 1;
  }

  .parent-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: sticky;
    padding: 12px 14px;
  }

  .brand span:last-child {
    max-width: 126px;
    line-height: 1.05;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(255, 253, 248, 0.95), rgba(255, 253, 248, 0.72)),
      linear-gradient(0deg, rgba(255, 253, 248, 0.42), rgba(255, 253, 248, 0.1));
  }

  h1 {
    font-size: 2.6rem;
  }

  .hero-content {
    padding-top: 36px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-bottom: 18px;
  }

  .hero-stats div + div {
    border-top: 1px solid rgba(216, 177, 92, 0.28);
    border-left: 0;
  }

  .portal-sidebar {
    grid-template-columns: 1fr;
  }

  .portal-view,
  .portal-topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .portal-topbar {
    align-items: start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero-actions,
  .note-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .icon-button {
    width: 100%;
  }

  .map-card {
    min-height: 360px;
  }

  .pin {
    font-size: 0.75rem;
  }
}
