/* ==========================================================================
   Shaj Physics Tutoring — Design tokens (modern, light & airy)
   ========================================================================== */

:root {
  --ink: #16233d;
  --paper: #fbfbf8;
  --paper-line: #e7e9e2;
  --chalk-blue: #2f5d8a;
  --chalk-blue-dark: #234867;
  --chalk-blue-tint: #eef3f8;
  --signal-amber: #e8a33d;
  --signal-amber-dark: #c9852a;
  --graphite: #2b2b28;
  --graphite-soft: #63665c;
  --graph-green: #3f7d58;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --max-width: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(22, 35, 61, 0.05);
  --shadow-md: 0 16px 40px rgba(22, 35, 61, 0.09);
  --shadow-lift: 0 22px 50px rgba(22, 35, 61, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--chalk-blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--chalk-blue-dark); }

:focus-visible {
  outline: 2.5px solid var(--signal-amber-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(2.5rem, 4.8vw, 3.75rem); font-weight: 540; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; font-weight: 560; }

p { max-width: 62ch; margin: 0 0 1.2em; color: var(--graphite-soft); }
p.lede { font-size: 1.25rem; color: var(--graphite); max-width: 46ch; line-height: 1.6; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Graph-paper texture — softened, used sparingly, tied to the subject matter.
   Rendered on a ::before layer (not the section itself) so the fade mask
   only touches the decorative grid, never the real heading/text/buttons. */
.graph-bg { position: relative; }
.graph-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, var(--paper-line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--paper-line) 0 1px, transparent 1px 40px);
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 45%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.graph-bg > .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  background: rgba(251, 251, 248, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(22, 35, 61, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.brand:hover { color: var(--ink); }
.brand .brand-mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--chalk-blue);
  background: var(--chalk-blue-tint);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.main-nav { display: flex; align-items: center; gap: 2.2rem; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--signal-amber);
}

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.65rem 1.35rem !important;
  border-radius: 999px;
  border-bottom: none !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { background: var(--chalk-blue-dark); box-shadow: var(--shadow-md); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  width: 42px;
  height: 38px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
}

@media (max-width: 780px) {
  .main-nav {
    position: absolute;
    top: 84px;
    left: var(--gutter);
    right: var(--gutter);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lift);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 1.6rem;
    gap: 1.1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { align-self: flex-start; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3rem);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--chalk-blue-dark);
  margin: 0 0 1.1rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--ink); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--chalk-blue-dark); border-color: var(--chalk-blue-dark); color: var(--white); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-secondary { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.hero-figure { position: relative; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.countdown-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.clock-face {
  width: 150px;
  height: 150px;
  display: block;
  margin: 0 auto 1.1rem;
}
.clock-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--chalk-blue-dark);
  margin-bottom: 1.1rem;
}
.countdown-label {
  font-size: 0.86rem;
  color: var(--graphite-soft);
  margin-bottom: 1rem;
}
.countdown-values {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0.9rem;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.2rem;
}
.countdown-unit span {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 560;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.countdown-unit label {
  font-size: 0.75rem;
  color: var(--graphite-soft);
  margin-top: 0.2rem;
}
.countdown-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--graphite-soft);
}

/* ==========================================================================
   Stat strip — soft floating cards
   ========================================================================== */

.stat-strip { padding: 0.5rem 0 clamp(2rem, 5vw, 3rem); }
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.stat {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.4rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat .stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.3rem;
}
.stat .stat-label {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--graphite-soft);
}
@media (max-width: 700px) {
  .stat-strip .container { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Sections
   ========================================================================== */

section.block { padding: clamp(2rem, 4vw, 2.75rem) 0; }
.block-head { max-width: 60ch; margin-bottom: 2.8rem; }

.board-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.board-col {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.9rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.board-col:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.board-col h3 { color: var(--chalk-blue-dark); }
@media (max-width: 780px) {
  .board-row { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.list-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.list-plain li {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.05rem 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: box-shadow .2s ease;
}
.list-plain li:hover { box-shadow: var(--shadow-md); }
.list-plain .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--chalk-blue-dark);
  background: var(--chalk-blue-tint);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
}
.list-plain .tag.soon {
  color: var(--graphite-soft);
  background: var(--paper-line);
}

section.block.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 0 var(--gutter) clamp(2.5rem, 5vw, 3.5rem);
  width: auto;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
}
.cta-band .container { max-width: calc(var(--max-width) - 2 * var(--gutter)); padding: 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfd7e6; }
.cta-band .btn-primary { background: var(--signal-amber); border-color: var(--signal-amber); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--signal-amber-dark); border-color: var(--signal-amber-dark); }
.cta-band .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); box-shadow: none; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--graphite-soft);
}
.site-footer a { color: var(--graphite-soft); }

/* ==========================================================================
   Forms
   ========================================================================== */

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.form-section {
  border: none;
  margin: 0;
  padding: 0;
}
.form-section + .form-section {
  border-top: 1px solid var(--paper-line);
  padding-top: 2.25rem;
}
.form-section legend {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  padding: 0;
  margin: 0 0 1.3rem;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.form-field .hint { font-size: 0.82rem; color: var(--graphite-soft); font-weight: 400; }

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--graphite);
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--graphite-soft); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--chalk-blue);
  box-shadow: 0 0 0 4px var(--chalk-blue-tint);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355584f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}
textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }

.form-submit-row { display: flex; }

.honeypot { position: absolute; left: -9999px; }

.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.25rem);
}

.credential-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.credential-list li {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}
.credential-list .cred-label { font-weight: 600; color: var(--ink); font-size: 0.94rem; }
@media (max-width: 600px) {
  .credential-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Resources page extras */
.board-tabs { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.board-tab {
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.6rem 1.2rem; border-radius: 999px;
  text-decoration: none; color: var(--ink); background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.board-tab:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--ink); }
.resource-topic { margin: 0 0 2.6rem; }
.resource-group-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--chalk-blue-dark);
  margin: 0 0 0.6rem;
}
.resource-topic-files {
  border-top: 1px solid var(--paper-line);
  padding-top: 0.9rem;
  margin-top: 0.9rem;
}
.resource-topic h3 { padding-bottom: 0; }

/* ==========================================================================
   Interactive pendulum section
   ========================================================================== */

.pendulum-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .pendulum-section { grid-template-columns: 1fr; } }

.pendulum-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) 1.25rem;
}
.pendulum-card svg { width: 100%; height: auto; touch-action: none; }
#pendulumBob { cursor: grab; }
#pendulumBob:active { cursor: grabbing; }
#pendulumBob:focus-visible { outline: 3px solid var(--signal-amber-dark); outline-offset: 4px; }
.pendulum-card .hint { color: var(--graphite-soft); font-size: 0.88rem; margin: 0; }

/* Two-column variant of the board-row card grid, used on the locations page */
.board-row-2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) {
  .board-row-2col { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Photo — homepage badge and About page portrait
   ========================================================================== */

.profile-badge {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 1.6rem;
}
.profile-badge-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--white);
}
.profile-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.04rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.profile-badge span {
  display: block;
  font-size: 1.7rem;
  color: var(--graphite-soft);
}
@media (max-width: 600px) {
  .profile-badge { gap: 0.85rem; }
  .profile-badge strong { font-size: 1.3rem; }
  .profile-badge span { font-size: 1.02rem; }
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 320px; margin: 0.5rem auto 0; }
}

.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Interactive orbit demo
   ========================================================================== */

.orbit-widget {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: stretch;
}
@media (max-width: 900px) { .orbit-widget { grid-template-columns: 1fr; } }

.orbit-stage-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.orbit-stage-wrap svg { width: 100%; max-width: 460px; height: auto; }
#moonBody { transition: r 0.25s ease; }
#orbitPath { transition: r 0.35s ease; }

.orbit-dashboard {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.orbit-dashboard h3 { margin-bottom: -0.4rem; }

.orbit-field { display: flex; flex-direction: column; gap: 0.5rem; }
.orbit-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.orbit-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--chalk-blue-dark);
  white-space: nowrap;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--paper-line);
  border: none;
  padding: 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--chalk-blue);
  border: 2.5px solid var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--chalk-blue);
  border: 2.5px solid var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2.5px solid var(--signal-amber-dark); outline-offset: 2px; }

.orbit-presets { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.orbit-presets .board-tab { padding: 0.45rem 0.85rem; font-size: 0.85rem; }

.orbit-readout {
  display: flex;
  gap: 1.3rem;
  border-top: 1px solid var(--paper-line);
  padding-top: 1.1rem;
}
.orbit-readout .stat-value { font-size: 1.35rem; }

#orbitHint.pulse { animation: hintPulse 0.5s ease; }
@keyframes hintPulse {
  0% { opacity: 0.35; }
  100% { opacity: 1; }
}

/* ==========================================================================
   About page — live writing demo (tablet -> laptop)
   ========================================================================== */

.live-demo-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-bottom: 2.8rem;
}
@media (max-width: 820px) { .live-demo-row { grid-template-columns: 1fr; } }

.live-demo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}
.live-demo-card svg { width: 100%; height: auto; display: block; }
.live-demo-caption h3 { margin-bottom: 0.7rem; }

#liveDot { animation: liveDotPulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  #liveDot { animation: none; }
}
@keyframes liveDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ==========================================================================
   Pricing page
   ========================================================================== */

.pricing-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
@media (max-width: 700px) { .pricing-card { grid-template-columns: 1fr; } }

.pricing-card-rate {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  border-right: 1px solid var(--paper-line);
  padding-right: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 700px) {
  .pricing-card-rate { border-right: none; border-bottom: 1px solid var(--paper-line); padding-right: 0; padding-bottom: 1.5rem; }
}
.pricing-was {
  font-size: 1rem;
  color: var(--graphite-soft);
  text-decoration: line-through;
  text-decoration-color: var(--signal-amber-dark);
}
.pricing-now {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  font-weight: 560;
  color: var(--ink);
  line-height: 1;
}
.pricing-unit {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--graphite-soft);
}
.pricing-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--chalk-blue-dark);
  background: var(--chalk-blue-tint);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  margin-top: 0.3rem;
}
.pricing-card-details h2 { margin-bottom: 0.6rem; }
.pricing-card-details p { margin-bottom: 1.4rem; }

/* Top-aligned variant of .list-plain, used where item text wraps to
   multiple lines and the tag should align with the first line, not
   float centered against the whole block (e.g. pricing page) */
.list-plain-top li {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: start;
  gap: 1rem;
}
.list-plain-top .tag {
  margin-top: 0.15rem;
  width: fit-content;
}
@media (max-width: 600px) {
  .list-plain-top li { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ==========================================================================
   Locations page — simple city chip list
   ========================================================================== */

.location-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.location-chip {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 560;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 0.7rem 1.5rem;
}

/* ==========================================================================
   Locations page — sketched UK map + city grid
   ========================================================================== */

.locations-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .locations-split { grid-template-columns: 1fr; } }

.uk-map-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  max-width: 480px;
}
.uk-map-card svg { width: 100%; height: auto; display: block; }

.locations-grid-wrap h2 { margin-bottom: 1.1rem; }
.locations-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
}
.locations-grid li {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 560;
  color: var(--ink);
}
@media (max-width: 480px) {
  .locations-grid { grid-template-columns: 1fr; }
}
