:root {
  /* Brand palette: public/brand/palette.css */
  --teal: #073F43;
  --gold: #C99B3B;
  --white: #FFFFFF;
  --pale-teal: #D9E9E8;
  --ink: #152D30;
  /* Supporting tints derived from the palette */
  --tint: #EEF5F4;
  --rule: #C3D9D7;
  --muted: #3A5457;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 { color: var(--teal); line-height: 1.2; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); letter-spacing: -0.02em; font-weight: 750; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem); letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: 1.1875rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--teal);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--white); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  padding-block: 0.25rem;
}
/* The logo artwork has generous built-in padding; trim it slightly without cropping the art. */
.brand { display: block; width: clamp(190px, 30vw, 260px); margin-block: -0.75rem; border-radius: 4px; }
.brand:focus-visible { outline-offset: -0.6rem; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 0.5rem 0.1rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover { text-decoration: underline; }
@media (min-width: 48rem) { .nav-list { margin: 0; } }
@media (max-width: 22.5rem) { .nav-list { gap: 0.25rem 0.9rem; font-size: 0.97rem; } }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6.5rem);
}
.orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.orbit ellipse { fill: none; stroke: var(--gold); stroke-width: 5; opacity: 0.5; }
/* Only shown where there is empty space beside the copy. */
@media (max-width: 63.99rem) { .orbit { display: none; } }
.hero-inner { position: relative; }
.hero h1 { max-width: 20ch; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); color: var(--ink); max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}
.button:hover { background: var(--ink); border-color: var(--ink); }
.button-quiet { background: transparent; color: var(--teal); }
.button-quiet:hover { background: var(--tint); color: var(--teal); border-color: var(--teal); }
.button-on-dark {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}
.button-on-dark:hover { background: var(--white); border-color: var(--white); color: var(--teal); }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-tint { background: var(--tint); }
.section-intro { color: var(--muted); font-size: 1.125rem; margin-bottom: 2rem; }

.explainers {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-top: 1.5rem;
}
.explainers article { border-top: 3px solid var(--pale-teal); padding-top: 1rem; }
.explainers p { margin: 0; }

/* Plans */
.plans {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.price { margin: 0.25rem 0 0.25rem; color: var(--teal); }
.amount { font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1; }
.per { font-size: 1.0625rem; color: var(--muted); }
.hours { font-size: 1.125rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gold); }
.plan-list { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.plan-list li { margin-bottom: 0.5rem; }
.plan-list li::marker { color: var(--teal); }
.plan-note { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.975rem; }

.hours-rules { margin-top: 2.5rem; }
.hours-rules ul {
  display: grid;
  gap: 0.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  margin: 0;
  padding-left: 1.2rem;
}

/* Support terms */
.terms {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  margin: 0 0 2rem;
}
.term { border-left: 4px solid var(--pale-teal); padding: 0.25rem 0 0.25rem 1.1rem; }
.term-accent { border-left-color: var(--gold); }
.term dt { color: var(--teal); font-weight: 700; font-size: 1.1875rem; margin-bottom: 0.4rem; }
.term dd { margin: 0; }
.fine { color: var(--muted); font-size: 0.975rem; }

.two-col { display: grid; gap: 0 3rem; }
@media (min-width: 52rem) { .two-col { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }

/* Contact and footer */
.contact { background: var(--teal); color: var(--white); }
.contact h2 { color: var(--white); }
.contact p { font-size: 1.125rem; }

.site-footer { background: var(--ink); color: var(--pale-teal); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 2rem; padding-block: 1.25rem; }
.footer-inner p { margin: 0.25rem 0; }
.site-footer a { color: var(--white); }
.site-footer :focus-visible, .contact :focus-visible { outline-color: var(--white); }
