:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #61656d;
  --soft: #f4f6f5;
  --line: #e1e5e2;
  --accent: #0b7a68;
  --accent-strong: #064c43;
  --warm: #a95e1b;
  --blue: #2f6fe8;
  --blue-strong: #1f5fe5;
  --sky: #dfeaff;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button,
input,
select {
  font: inherit;
}

.launch-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 253, 255, 0.96) 22%),
    linear-gradient(180deg, #f6fbff 0%, #e7f1ff 52%, #72a8fa 100%);
  border-bottom: 1px solid rgba(53, 79, 125, 0.16);
}

.launch-page::before {
  content: "";
  position: absolute;
  inset: 68px max(16px, calc((100vw - 1180px) / 2)) 0;
  z-index: 0;
  background:
    repeating-linear-gradient(
        to bottom,
        rgba(93, 116, 152, 0.2) 0 5px,
        transparent 5px 13px
      )
      0 0 / 1px 13px repeat-y,
    repeating-linear-gradient(
        to bottom,
        rgba(93, 116, 152, 0.13) 0 5px,
        transparent 5px 13px
      )
      88px 0 / 1px 13px repeat-y,
    repeating-linear-gradient(
        to bottom,
        rgba(93, 116, 152, 0.13) 0 5px,
        transparent 5px 13px
      )
      calc(100% - 88px) 0 / 1px 13px repeat-y,
    repeating-linear-gradient(
        to bottom,
        rgba(93, 116, 152, 0.2) 0 5px,
        transparent 5px 13px
      )
      100% 0 / 1px 13px repeat-y;
  pointer-events: none;
}

.launch-page::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -14%;
  left: -8%;
  z-index: 0;
  height: 42%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(69, 132, 232, 0.58) 74%),
    repeating-linear-gradient(
      132deg,
      rgba(255, 255, 255, 0.22) 0 2px,
      rgba(255, 255, 255, 0) 2px 18px
    ),
    repeating-linear-gradient(
      47deg,
      rgba(32, 93, 214, 0.2) 0 3px,
      rgba(32, 93, 214, 0) 3px 24px
    );
  filter: blur(0.4px);
  mask-image: linear-gradient(180deg, transparent 0%, black 28%);
  pointer-events: none;
}

.launch-nav {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
}

.launch-page::selection {
  background: rgba(47, 111, 232, 0.18);
}

.launch-brand,
.launch-nav-actions {
  display: inline-flex;
  align-items: center;
}

.launch-brand {
  gap: 10px;
  justify-self: start;
  color: #232936;
  font-size: 1.04rem;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 22px;
}

.brand-mark span:first-child {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 16px;
  height: 18px;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
}

.brand-mark span:last-child {
  position: absolute;
  bottom: 1px;
  left: 0;
  width: 17px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-strong) 0 48%, white 48% 100%);
  box-shadow: 0 0 0 1px rgba(47, 111, 232, 0.18);
}

.launch-nav-actions {
  justify-self: end;
  gap: 10px;
  min-width: 0;
}

.launch-nav-button,
.launch-primary,
.launch-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.launch-nav-button,
.launch-primary {
  background: #050609;
  color: white;
  box-shadow: 0 12px 24px rgba(5, 6, 9, 0.14);
}

.launch-nav-button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.launch-primary,
.launch-secondary {
  min-width: 136px;
  padding: 0 22px;
}

.launch-secondary {
  border-color: rgba(20, 20, 20, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #141414;
  box-shadow: 0 8px 18px rgba(67, 95, 140, 0.09);
}

.launch-nav-button:hover,
.launch-primary:hover,
.launch-secondary:hover {
  transform: translateY(-1px);
}

.launch-nav-button:hover,
.launch-primary:hover {
  background: #111723;
  box-shadow: 0 16px 30px rgba(5, 6, 9, 0.18);
}

.launch-secondary:hover {
  border-color: rgba(47, 111, 232, 0.22);
  color: var(--blue-strong);
}

.launch-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(108px, 14vh, 154px) 0 64px;
  text-align: center;
  animation: launchReveal 540ms ease both;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(36, 45, 59, 0.7);
  font-size: 0.86rem;
  font-weight: 800;
}

.launch-title {
  max-width: 1030px;
  margin: 0 0 24px;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 4.05rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.launch-title-line {
  display: block;
}

.launch-number {
  display: inline-block;
  color: var(--blue);
  white-space: nowrap;
}

.launch-subtitle {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(36, 45, 59, 0.76);
  font-size: 1.12rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.launch-panel {
  width: min(880px, 100%);
  margin-top: 34px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(84, 116, 167, 0.2);
  border-radius: var(--radius);
  background: rgba(214, 229, 251, 0.62);
  box-shadow:
    0 24px 55px rgba(42, 93, 168, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.launch-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.launch-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(44, 51, 64, 0.62);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.launch-tab.is-active {
  background: white;
  color: #111723;
  box-shadow: 0 10px 22px rgba(57, 93, 150, 0.12);
}

.launch-tab-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(38, 93, 200, 0.1);
  color: var(--blue-strong);
  font-size: 0.74rem;
  font-weight: 900;
}

.launch-tab.is-active .launch-tab-icon {
  background: linear-gradient(135deg, #5b8cff, #2764df);
  color: white;
}

.launch-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 9px 10px 9px 22px;
  border: 1px solid rgba(74, 102, 148, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(39, 45, 56, 0.6);
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.launch-input-row > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.launch-arrow {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #050609;
  color: white;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.launch-input-row:hover .launch-arrow {
  transform: translateX(2px);
}

.launch-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 10px 0 0;
  overflow: hidden;
  border: 1px solid rgba(74, 102, 148, 0.08);
  border-radius: 8px;
  background: rgba(74, 102, 148, 0.08);
}

.launch-stats div {
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.58);
  text-align: left;
}

.launch-stats dt {
  margin-bottom: 5px;
  color: rgba(39, 45, 56, 0.58);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.launch-stats dd {
  margin: 0;
  color: #111723;
  font-size: 1.12rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.launch-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.launch-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.82rem;
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(31, 95, 229, 0.26);
}

.seo-overview,
.faq-section {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
  border-top: 1px solid rgba(53, 79, 125, 0.16);
}

.seo-overview h2,
.faq-section h2 {
  max-width: 780px;
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.overview-copy {
  max-width: 820px;
  margin: 0;
  color: rgba(36, 45, 59, 0.74);
  font-size: 1rem;
}

.overview-grid,
.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

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

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-grid article,
.faq-list article {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(84, 116, 167, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 36px rgba(42, 93, 168, 0.09);
}

.overview-grid h3,
.faq-list h3 {
  margin: 0 0 10px;
  color: #111723;
  font-size: 1rem;
  line-height: 1.25;
}

.overview-grid p,
.faq-list p {
  margin: 0;
  color: rgba(36, 45, 59, 0.72);
  font-size: 0.94rem;
}

.rate-page {
  background: var(--bg);
}

.rate-page[hidden] {
  display: none;
}

body.rates-open .launch-page {
  display: none;
}

@keyframes launchReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .launch-content {
    animation: none;
  }

  .launch-nav-button,
  .launch-primary,
  .launch-secondary,
  .launch-arrow,
  .nav-link,
  .button {
    transition: none;
  }
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 68px;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.language-option {
  min-width: 46px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-option.is-active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 20, 20, 0.08);
}

.nav-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.button:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-1px);
}

.hero {
  padding: 38px 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.35rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.rate-title {
  max-width: 980px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.35rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 14px;
}

.summary {
  margin: 0;
  color: var(--muted);
}

.control-group {
  display: flex;
  align-items: end;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 122, 104, 0.12);
}

.rate-board {
  padding-bottom: 28px;
}

.listing-grid {
  display: grid;
  gap: 18px;
}

.city-section {
  display: grid;
  gap: 8px;
}

.city-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.city-header span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.city-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.rate-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: white;
}

.rate-table th,
.rate-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.rate-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rate-table tr:last-child td {
  border-bottom: 0;
}

.rate-table tbody tr:hover {
  background: #fafbf9;
}

.rate-table th:first-child,
.rate-table td:first-child {
  width: 54px;
  text-align: center;
}

.rate-table th:nth-child(2),
.rate-table td:nth-child(2) {
  width: 34%;
}

.rate-table th:nth-child(n + 3),
.rate-table td:nth-child(n + 3) {
  white-space: nowrap;
}

.logo-cell {
  text-align: center;
}

.school-logo {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  padding: 2px;
  border-radius: 7px;
  background: white;
  border: 1px solid rgba(11, 122, 104, 0.22);
  object-fit: contain;
}

.logo-fallback {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 800;
}

.school-cell {
  min-width: 230px;
}

.school-cell strong {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
}

.school-cell span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.price-cell {
  color: var(--accent-strong);
  font-weight: 800;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 18px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-band h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  letter-spacing: 0;
}

.contact-band p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 18px 0 34px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer code {
  color: var(--ink);
}

@media (max-width: 860px) {
  .launch-page::before {
    right: 12px;
    left: 12px;
  }

  .launch-nav {
    width: min(100% - 24px, 1180px);
  }

  .launch-content {
    width: min(100% - 24px, 1040px);
    padding: clamp(82px, 12vh, 118px) 0 48px;
  }

  .launch-title {
    font-size: 2.9rem;
  }

  .launch-subtitle {
    font-size: 1rem;
  }

  .launch-panel {
    margin-top: 28px;
  }

  .seo-overview,
  .faq-section {
    width: min(100% - 24px, 1180px);
    padding: 42px 0;
  }

  .seo-overview h2,
  .faq-section h2 {
    font-size: 2rem;
  }

  .overview-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }

  .hero {
    padding: 30px 0 28px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .rate-title {
    font-size: 2.5rem;
  }

  .controls,
  .contact-band {
    align-items: stretch;
    flex-direction: column;
  }

  .control-group {
    align-items: stretch;
    flex-direction: column;
  }

  .field {
    min-width: 0;
  }

  .city-header {
    padding: 9px 10px;
  }

  .rate-table {
    min-width: 720px;
  }

  .rate-table th,
  .rate-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 520px) {
  .launch-page::after {
    height: 34%;
  }

  .launch-nav {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0 0;
  }

  .launch-nav-actions {
    justify-self: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
  }

  .launch-nav-button {
    padding: 0 14px;
  }

  .launch-content {
    padding: clamp(58px, 9vh, 84px) 0 42px;
  }

  .launch-badge {
    margin-bottom: 18px;
  }

  .launch-title {
    font-size: 2.05rem;
    line-height: 1.05;
  }

  .launch-title-line > span {
    display: block;
  }

  .launch-title-line + .launch-title-line {
    margin-top: 4px;
  }

  .launch-panel {
    padding: 8px;
  }

  .launch-tabs {
    gap: 5px;
  }

  .launch-tab {
    gap: 5px;
    min-height: 34px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .launch-tab-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  .launch-input-row {
    min-height: 58px;
    padding: 9px 8px 9px 14px;
    font-size: 0.92rem;
  }

  .launch-stats {
    grid-template-columns: 1fr;
  }

  .launch-stats div {
    padding: 12px 14px;
  }

  .launch-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    margin-top: 24px;
  }

  .nav-link {
    padding: 0 12px;
  }

  h1 {
    font-size: 2.36rem;
    line-height: 1.04;
  }

  .rate-title {
    font-size: 2.36rem;
    line-height: 1.04;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .language-option {
    min-width: 42px;
  }
}
