/* ==========================================================================
   pages.css — new page patterns, built on base.css tokens
   ========================================================================== */

/* Nav: services dropdown ---------------------------------------------------- */
.nav__item { position: relative; display: flex; align-items: center; gap: 6px; }
.nav__item > svg { opacity: .7; }
.nav__drop {
  position: absolute; top: 100%; left: -18px; z-index: 20;
  min-width: 260px; padding: 10px; margin-top: 14px;
  background: var(--white); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 44, 48, .22);
  display: none;
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { display: block; }
.nav__drop a {
  display: block; padding: 10px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-900); opacity: 1;
}
.nav__drop a:hover { background: var(--ice); text-decoration: none; }

/* Glass pill in a pressed/selected state (doc switchers on dark bands) ------ */
.pill--glass[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--teal-900); }

/* Nav: wider menu needs an earlier collapse than the 6-item original ------- */
@media (max-width: 1240px) {
  .nav__links { gap: 22px; }
  .nav__links a { font-size: 14px; }
  .nav__inner { padding-inline: 32px; gap: 20px; }
}
@media (max-width: 1120px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav--open .nav__inner { flex-wrap: wrap; }
  .nav--open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 18px; order: 3; width: 100%; padding-top: 20px;
  }
  .nav--open .nav__drop {
    position: static; display: block; margin: 8px 0 0; box-shadow: none;
    background: rgba(255, 255, 255, .06); min-width: 0; width: 100%;
  }
  .nav--open .nav__drop a { color: var(--white); }
  .nav--open .nav__drop a:hover { background: rgba(255, 255, 255, .12); }
  .nav--open .nav__item { flex-direction: column; align-items: flex-start; width: 100%; }
}

/* Quick facts strip -------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.facts > div { background: var(--ice); padding: 26px 28px; }
.facts dt { font: 700 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-600); }
.facts dd { margin: 10px 0 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--teal-900); line-height: 1.2; }
.facts p { margin-top: 6px; font-size: 13px; color: var(--ink-500); }

/* Checklists --------------------------------------------------------------- */
.checkcard { padding: 32px; background: var(--sand); border-radius: 20px; }
.checkcard h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 18px; }
.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-700); }
.checks li::before {
  content: "✓"; flex: 0 0 22px; height: 22px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--aqua-600); color: #fff; font-size: 12px; font-weight: 700;
}

/* Timeline ----------------------------------------------------------------- */
.tl { display: grid; grid-template-columns: repeat(5, 1fr); max-width: var(--container); margin-inline: auto; }
.tl > li { position: relative; padding: 34px 24px 0 0; }
.tl > li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.tl > li::after { content: ""; position: absolute; top: -5px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--pink-600); }
.tl time { font: 700 13px/1 var(--font-body); letter-spacing: .1em; color: var(--pink-600); }
.tl h4 { margin: 12px 0 8px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.tl p { font-size: 14px; line-height: 1.55; color: var(--ink-500); }

/* Plan cards --------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1280px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.plan--hi { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.plan h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.plan .amt { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--aqua-600); }
.plan--hi .amt { color: var(--ice-200); }
.plan .per { font-size: 13px; color: var(--ink-500); }
.plan--hi .per, .plan--hi .bullets li { color: var(--mist-200); }
.plan--hi .bullets li::before { background: var(--ice-200); }
.plan .pill { margin-top: auto; }

/* Comparison / rate tables ------------------------------------------------- */
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); }
.cmp caption { text-align: left; padding-bottom: 14px; font-size: 14px; color: var(--ink-500); }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--aqua-600); }
.cmp tbody th { font-weight: 600; color: var(--ink-900); }
.cmp td { color: var(--ink-700); }
.cmp tbody tr:nth-child(even) { background: var(--cream); }

/* Sticky action rail ------------------------------------------------------- */
.rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; padding: 30px; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; }
.rail dl { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; margin: 0 0 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.rail dt { font-size: 13px; color: var(--ink-500); }
.rail dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--teal-900); text-align: right; }

/* Two-column body with rail ------------------------------------------------ */
.body2 { display: grid; grid-template-columns: 1fr 400px; gap: 80px; align-items: start; max-width: var(--container); margin-inline: auto; }
.prose h2 { font-size: 32px; font-weight: 400; line-height: 1.2; color: var(--ink-900); margin: 44px 0 16px; }
.prose h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin: 34px 0 14px; }
.prose p { font-size: 17px; line-height: 1.75; color: var(--ink-700); }
.prose p + p { margin-top: 16px; }
.prose > :first-child { margin-top: 0; }
.prose ul:not(.checks):not(.bullets) { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.prose ul:not(.checks):not(.bullets) li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.65; color: var(--ink-700); }
.prose ul:not(.checks):not(.bullets) li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua-600); }

/* Profile header ---------------------------------------------------------- */
.profile { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: start; max-width: var(--container); margin-inline: auto; }
.profile__photo { width: 100%; height: 520px; object-fit: cover; border-radius: 24px; }
.credrow { display: flex; flex-wrap: wrap; gap: 10px; }
.credrow span { padding: 8px 16px; background: var(--ice); border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; color: var(--teal-900); }

/* Data rows (spec lists) -------------------------------------------------- */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.specs > div { background: var(--white); padding: 22px 24px; }
.specs dt { font-size: 13px; color: var(--ink-500); margin-bottom: 6px; }
.specs dd { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--teal-900); }

/* Booking flow ------------------------------------------------------------ */
.flow { display: flex; align-items: center; gap: 0; max-width: 900px; margin: 0 auto 40px; }
.flow__step { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-500); white-space: nowrap; }
.flow__step span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); font-size: 13px; }
.flow__step--on { color: var(--teal-900); }
.flow__step--on span { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }
.flow__step--done span { background: var(--aqua-600); border-color: var(--aqua-600); color: #fff; }
.flow__line { flex: 1; height: 1px; background: var(--line); margin: 0 16px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.choice { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; text-align: left; font-family: inherit; }
.choice strong { font-size: 15px; color: var(--ink-900); }
.choice span { font-size: 13px; color: var(--ink-500); }
.choice[aria-pressed="true"] { border-color: var(--aqua-600); box-shadow: 0 0 0 2px rgba(1, 139, 149, .18); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.slot { padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink-900); cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--teal-900); border-color: var(--teal-900); color: #fff; }

/* Resource cards ---------------------------------------------------------- */
.rescards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--container); margin-inline: auto; }
.rescard { display: flex; flex-direction: column; gap: 12px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.rescard h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.rescard p { font-size: 14px; line-height: 1.6; color: var(--ink-500); }
.rescard .pill { margin-top: auto; align-self: flex-start; }

/* Careers ----------------------------------------------------------------- */
.jobs { display: flex; flex-direction: column; gap: 14px; max-width: 1280px; margin-inline: auto; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 26px 30px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.job h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.job__meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--ink-500); }

/* Mockup index ------------------------------------------------------------ */
.sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: var(--container); margin-inline: auto; }
.sitemap a { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.sitemap a:hover { border-color: var(--aqua-600); }
.sitemap strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink-900); }
.sitemap span { font-size: 13px; line-height: 1.5; color: var(--ink-500); }
.sitemap em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink-600); }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1400px) {
  .body2, .profile { grid-template-columns: 1fr; gap: 40px; }
  .rail { position: static; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .tl { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .sitemap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .plans, .rescards, .choices, .specs { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .job { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: flex-start; gap: 12px; }
  .flow__line { display: none; }
  .profile__photo { height: 340px; }
}
@media (max-width: 700px) {
  .facts, .tl, .sitemap { grid-template-columns: 1fr; }
  .cmp { font-size: 13px; }
  .cmp th, .cmp td { padding: 12px 10px; }
}
