:root {
  --bg: #fbf7ef;
  --surface: rgba(255, 255, 255, 0.76);
  --text: #14304d;
  --muted: #56708a;
  --primary: #ff6b4a;
  --secondary: #007f73;
  --accent: #ffbf3c;
  --sky: #6bc7ff;
  --border: rgba(20, 48, 77, 0.1);
  --shadow: 0 24px 60px rgba(34, 57, 94, 0.14);
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 191, 60, 0.55), transparent 30%),
    radial-gradient(circle at top right, rgba(107, 199, 255, 0.5), transparent 24%),
    linear-gradient(180deg, #fffaf0 0%, #f5fbff 52%, #fff4ee 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  padding: 20px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px);
}

.inner-shell {
  min-height: calc(100vh - 48px);
}

.topbar,
.topnav,
.brand,
.hero-actions,
.hero-metrics,
.rating-row,
.chip-row,
.filter-bar,
.section-heading,
.card-footer,
.payment-header,
.footer,
.footer-links {
  display: flex;
  align-items: center;
}

.topbar,
.section-heading,
.footer {
  justify-content: space-between;
}

.topbar {
  gap: 20px;
  padding: 12px 8px 20px;
}

.brand {
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand small {
  display: block;
  color: var(--muted);
}

.topnav {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a,
.footer-links a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.topnav a:hover,
.footer-links a:hover,
.filter-chip:hover,
.map-pin:hover {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.hero,
.split-section,
.discover-grid,
.pricing-layout,
.page-grid,
.auth-layout {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 24px 8px 14px;
}

.hero-copy,
.page-intro,
.auth-card,
.form-shell,
.map-panel,
.tutor-card,
.feature-band-card,
.price-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.hero-text,
.page-intro p,
.auth-card p,
.info-card p,
.feature-band-card p,
.price-card p,
.tutor-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.hero-metrics,
.chip-row,
.filter-bar,
.footer-links {
  gap: 12px;
}

.hero-actions {
  margin: 28px 0 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(34, 57, 94, 0.16);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), #ff9254);
  color: white;
}

.button-secondary {
  background: linear-gradient(135deg, var(--secondary), #0cae96);
  color: white;
}

.button-block {
  width: 100%;
}

.hero-metrics article {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  flex: 1;
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.hero-card,
.payment-box,
.membership-picker,
.auth-card,
.page-intro,
.form-shell,
.map-panel,
.feature-band-card {
  padding: 28px;
}

.spotlight {
  background: linear-gradient(180deg, rgba(255, 191, 60, 0.2), rgba(255, 255, 255, 0.9));
}

.finder {
  background: linear-gradient(180deg, rgba(107, 199, 255, 0.16), rgba(255, 255, 255, 0.94));
}

.approval-banner {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.14), rgba(255, 191, 60, 0.2));
  border: 1px solid rgba(255, 107, 74, 0.16);
}

.approval-banner p,
.payment-note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pill-gold {
  background: rgba(255, 191, 60, 0.22);
  color: #7f5200;
}

.pill-coral {
  background: rgba(255, 107, 74, 0.16);
  color: #a03821;
}

.pill-blue {
  background: rgba(107, 199, 255, 0.22);
  color: #004972;
}

.rating-row,
.card-footer {
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.chip-row {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  flex-wrap: wrap;
}

.chip-row li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 48, 77, 0.06);
}

.section {
  padding: 22px 8px;
}

.split-section {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.steps-grid,
.feature-band,
.mini-price-grid,
.tutor-results,
.info-stack,
.detail-form,
.reset-steps {
  display: grid;
  gap: 18px;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.info-card {
  padding: 24px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), rgba(107, 199, 255, 0.25));
  color: #014b74;
  font-weight: 800;
}

.filter-chip {
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--text);
  color: white;
}

.discover-grid {
  grid-template-columns: 0.8fr 1.2fr;
  margin-top: 20px;
}

.map-panel {
  min-height: 560px;
}

.map-header {
  margin-bottom: 18px;
}

.australia-map {
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 32%, rgba(255, 255, 255, 0.65), transparent 18%),
    linear-gradient(180deg, rgba(107, 199, 255, 0.45), rgba(255, 255, 255, 0.94));
}

.map-svg {
  position: absolute;
  inset: 26px 30px 24px;
  width: calc(100% - 60px);
  height: calc(100% - 50px);
  z-index: 0;
}

.map-svg path,
.map-svg .tasmania-shape {
  fill: rgba(255, 145, 82, 0.94);
  stroke: rgba(111, 51, 24, 0.22);
  stroke-width: 10px;
  filter: drop-shadow(0 20px 22px rgba(117, 52, 28, 0.24));
}

.map-pin {
  position: absolute;
  z-index: 1;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: white;
  font-weight: 700;
  box-shadow: 0 16px 26px rgba(34, 57, 94, 0.18);
  cursor: pointer;
}

.pin-brisbane { top: 37%; right: 20%; }
.pin-sydney { top: 54%; right: 18%; }
.pin-melbourne { bottom: 24%; right: 22%; }
.pin-perth { top: 53%; left: 17%; }
.pin-tasmania { bottom: 12%; right: 18%; }

.tutor-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px;
}

.tutor-photo {
  display: grid;
  place-items: center;
  border-radius: 24px;
  min-height: 160px;
  color: white;
  font-size: 2rem;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
}

.warm-one { background: linear-gradient(135deg, #ff9254, #ff6b4a); }
.warm-two { background: linear-gradient(135deg, #007f73, #19b6a1); }
.warm-three { background: linear-gradient(135deg, #3758ff, #6bc7ff); }

.tutor-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tutor-meta {
  margin: 4px 0 12px;
  font-weight: 700;
}

.feature-band {
  grid-template-columns: repeat(3, 1fr);
}

.feature-band-four {
  grid-template-columns: repeat(4, 1fr);
}

.pricing-layout {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

.pricing-column {
  display: grid;
  gap: 16px;
}

.price-card {
  padding: 24px;
}

.price-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 6px;
}

.price-card.highlight {
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.14), rgba(255, 191, 60, 0.16));
}

.mini-price-grid {
  grid-template-columns: repeat(2, 1fr);
}

.page-grid {
  grid-template-columns: 0.8fr 1.2fr;
  padding: 24px 8px 8px;
}

.auth-layout {
  grid-template-columns: repeat(2, 1fr);
  padding: 24px 8px 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

label {
  display: grid;
  gap: 10px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 48, 77, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(107, 199, 255, 0.28);
  border-color: rgba(0, 127, 115, 0.35);
}

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

.membership-picker {
  background: linear-gradient(180deg, rgba(0, 127, 115, 0.08), rgba(255, 255, 255, 0.96));
}

.gated-pricing {
  border: 1px dashed rgba(20, 48, 77, 0.14);
}

.membership-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.membership-options-wide {
  grid-template-columns: repeat(3, 1fr);
}

.membership-option {
  position: relative;
}

.membership-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.membership-option span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 48, 77, 0.08);
}

.membership-option input:checked + span {
  border-color: rgba(255, 107, 74, 0.3);
  background: linear-gradient(135deg, rgba(255, 107, 74, 0.14), rgba(255, 191, 60, 0.14));
}

.payment-box {
  background: linear-gradient(180deg, rgba(107, 199, 255, 0.12), rgba(255, 255, 255, 0.96));
}

.payment-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.membership-total {
  font-size: 2rem;
}

.auth-card-accent {
  background: linear-gradient(180deg, rgba(255, 191, 60, 0.18), rgba(255, 255, 255, 0.94));
}

.compact-form {
  margin-top: 22px;
}

.reset-steps article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.reset-steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--text);
  color: white;
  font-weight: 800;
}

.footer {
  margin-top: 10px;
  padding: 10px 8px 0;
  gap: 16px;
}

.footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.student-results {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.student-card,
.rating-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.compact-students {
  margin-top: 16px;
}

.rating-panel {
  background: linear-gradient(180deg, rgba(255, 191, 60, 0.14), rgba(255, 255, 255, 0.95));
}

.rating-preview {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}

.star-row {
  display: flex;
  gap: 8px;
  color: #ff9f1a;
  font-size: 1.5rem;
}

.is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .discover-grid,
  .pricing-layout,
  .page-grid,
  .auth-layout,
  .steps-grid,
  .feature-band,
  .feature-band-four,
  .mini-price-grid {
    grid-template-columns: 1fr;
  }

  .membership-options-wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 18px, 100%);
    padding: 14px;
    border-radius: 28px;
  }

  .topbar,
  .section-heading,
  .footer,
  .tutor-card,
  .payment-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid,
  .membership-options,
  .membership-options-wide {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .hero-copy,
  .hero-card,
  .page-intro,
  .form-shell,
  .auth-card,
  .map-panel,
  .feature-band-card {
    padding: 22px;
  }

  .hero-metrics {
    flex-direction: column;
  }

  h1 {
    font-size: 2.35rem;
  }

  .tutor-card {
    grid-template-columns: 1fr;
  }

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