/* ============================================================
   Fairway Watch — design system
   Aesthetic: private golf club. Deep fairway greens, warm cream,
   dark ink. Fraunces for display, Inter for everything else.
   ============================================================ */

:root {
  --cream: #f5f1e6;
  --cream-deep: #efe8d5;
  --paper: #fdfbf4;
  --ink: #1b2018;
  --ink-2: #454b40;
  --muted: #6f7461;
  --fairway: #1e4b2a;
  --fairway-deep: #10291a;
  --fairway-ink: #0d2115;
  --brass: #a87f2d;
  --brass-soft: #c9a227;
  --line: #e0d7bf;
  --line-soft: #ece5d2;
  --clay: #9a3b2e;
  --shadow-sm: 0 1px 2px rgba(27, 32, 24, 0.06), 0 2px 8px rgba(27, 32, 24, 0.06);
  --shadow-md: 0 2px 6px rgba(27, 32, 24, 0.08), 0 12px 32px rgba(27, 32, 24, 0.12);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 6.4vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 4.4vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a {
  color: var(--fairway);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
a:hover { color: var(--fairway-deep); }

::selection { background: var(--fairway); color: var(--cream); }

/* ---------- layout ---------- */

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap-narrow { max-width: 680px; }

.page {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
  animation: rise 0.5s ease both;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.page-head h1 { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.lede {
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 42rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--fairway); }
.brand svg { width: 26px; height: 26px; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.nav-links > a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-links > a:not(.btn):hover {
  color: var(--fairway-deep);
  border-bottom-color: var(--fairway);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

.btn-primary {
  background: var(--fairway);
  color: #f8f5ea;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  background: var(--fairway-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-cream {
  background: var(--cream);
  color: var(--fairway-deep);
  box-shadow: var(--shadow-sm);
}
.btn-cream:hover {
  background: #fff;
  color: var(--fairway-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.9;
}
.btn-ghost:hover { opacity: 1; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--fairway); color: var(--fairway-deep); }

.btn-short { display: none; }

.btn-compact { padding: 0.55rem 1.05rem; font-size: 0.88rem; border-radius: 8px; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.85rem; border-radius: 8px; }
.btn-block { width: 100%; }

.btn-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fairway);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.btn-link:hover { color: var(--clay); }

.btn-danger-text {
  background: none;
  border: 1px solid var(--line);
  color: var(--clay);
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-danger-text:hover { border-color: var(--clay); background: rgba(154, 59, 46, 0.06); }

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

/* ---------- hero (landing) ---------- */

.hero {
  position: relative;
  color: #f6f2e6;
  overflow: clip;
  background: var(--fairway-ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.04);
  animation: hero-settle 8s ease-out both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 18, 12, 0.62) 0%, rgba(9, 18, 12, 0.18) 42%, rgba(9, 18, 12, 0.78) 100%);
}
.hero-inner {
  position: relative;
  padding-block: clamp(5.5rem, 16vw, 10rem) clamp(3.5rem, 9vw, 6rem);
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}
.hero .eyebrow { color: var(--brass-soft); }
.hero h1 {
  color: #faf7ec;
  font-size: clamp(2.7rem, 10vw, 5.2rem);
  font-weight: 540;
  max-width: 14ch;
  margin-bottom: 1.2rem;
  animation: rise 0.7s 0.1s ease both;
}
.hero h1 em {
  font-style: italic;
  color: #e9d9a8;
}
.hero-sub {
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  line-height: 1.65;
  color: rgba(246, 242, 230, 0.88);
  max-width: 36rem;
  margin-bottom: 2.2rem;
  animation: rise 0.7s 0.22s ease both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  animation: rise 0.7s 0.34s ease both;
}
.hero-note {
  margin-top: 1.6rem;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: rgba(246, 242, 230, 0.72);
  animation: rise 0.7s 0.44s ease both;
}
.hero-note strong { color: #f6f2e6; font-weight: 600; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-settle {
  from { transform: scale(1.1); }
  to { transform: scale(1.04); }
}

/* ---------- landing sections ---------- */

.section { padding-block: clamp(3.5rem, 10vw, 6.5rem); }
.section + .section { border-top: 1px solid var(--line-soft); }

.steps {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1.2rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brass);
}
.steps h3 { margin-bottom: 0.35rem; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--ink-2); max-width: 40rem; }

/* pricing split */
.pricing-band {
  background: var(--fairway-deep);
  color: #f2eee0;
  border-radius: 20px;
  overflow: clip;
  display: grid;
  box-shadow: var(--shadow-md);
}
.pricing-photo { min-height: 220px; position: relative; }
.pricing-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pricing-body { padding: clamp(2rem, 6vw, 3.5rem); }
.pricing-body h2 { color: #faf7ec; }
.pricing-body p { color: rgba(242, 238, 224, 0.82); }
.price-line {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 1.4rem 0 1rem;
}
.price-figure {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 4.4rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.price-per { color: rgba(242, 238, 224, 0.7); font-size: 1rem; }
.price-fine {
  font-size: 0.88rem;
  color: rgba(242, 238, 224, 0.66);
  border-top: 1px solid rgba(242, 238, 224, 0.18);
  padding-top: 1.2rem;
  margin-top: 1.4rem;
}
.pricing-body .btn-cream { margin-top: 1.6rem; }

/* courses */
.course-list { margin: 2rem 0 0; padding: 0; list-style: none; }
.course-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0.2rem;
  border-top: 1px solid var(--line);
}
.course-list li:last-child { border-bottom: 1px solid var(--line); }
.course-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.course-loc { color: var(--muted); font-size: 0.92rem; margin-top: 0.15rem; }

/* faq */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0.2rem;
  font-weight: 600;
  font-size: 1.02rem;
  transition: color 0.18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--fairway); }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brass);
  flex: none;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 0.2rem 1.5rem;
  color: var(--ink-2);
  max-width: 44rem;
}

/* closing cta */
.closing {
  background: var(--fairway-ink);
  color: #f2eee0;
  text-align: center;
  border-radius: 20px;
  padding: clamp(3rem, 9vw, 5rem) clamp(1.5rem, 6vw, 4rem);
  position: relative;
  overflow: clip;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 50% 110%, rgba(201, 162, 39, 0.16), transparent 70%);
  pointer-events: none;
}
.closing h2 { color: #faf7ec; font-size: clamp(1.9rem, 6vw, 3rem); position: relative; }
.closing p { color: rgba(242, 238, 224, 0.78); max-width: 34rem; margin-inline: auto; position: relative; }
.closing .btn-cream { margin-top: 1.4rem; position: relative; }

/* ---------- panels, ledger rows ---------- */

.panel {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 4.5vw, 2.2rem);
}

.panel + .panel { margin-top: 1.75rem; }

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.panel-head h2 { margin: 0; }

.ledger { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.ledger > li {
  padding: 1.25rem 0.15rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.ledger > li:last-child { border-bottom: 1px solid var(--line-soft); }
.ledger-main { min-width: 0; flex: 1 1 220px; }
.ledger-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.ledger-meta {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
}
.ledger-side {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.ledger-actions { display: flex; gap: 0.9rem; align-items: center; }

/* definition rows */
.dl { margin: 0.5rem 0 0; }
.dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0.15rem;
  border-top: 1px solid var(--line-soft);
}
.dl > div:last-child { border-bottom: 1px solid var(--line-soft); }
.dl dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}
.dl dd { margin: 0; font-weight: 550; text-align: right; }

/* ---------- badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38em 0.85em;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-active   { background: rgba(30, 75, 42, 0.1);  color: var(--fairway-deep); border-color: rgba(30, 75, 42, 0.22); }
.badge-booked   { background: rgba(168, 127, 45, 0.12); color: #7c5c1d; border-color: rgba(168, 127, 45, 0.3); }
.badge-failed   { background: rgba(154, 59, 46, 0.09);  color: var(--clay); border-color: rgba(154, 59, 46, 0.25); }
.badge-pending  { background: rgba(27, 32, 24, 0.06);  color: var(--ink-2); border-color: rgba(27, 32, 24, 0.14); }
.badge-inactive { background: rgba(27, 32, 24, 0.05);  color: var(--muted); border-color: rgba(27, 32, 24, 0.12); }

/* ---------- alerts ---------- */

.alert {
  border-radius: 12px;
  padding: 1.05rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  border: 1px solid;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  animation: rise 0.4s ease both;
}
.alert p { margin: 0; }
.alert strong { font-weight: 650; }
.alert-warn {
  background: rgba(168, 127, 45, 0.1);
  border-color: rgba(168, 127, 45, 0.35);
  color: #5f4718;
}
.alert-error {
  background: rgba(154, 59, 46, 0.08);
  border-color: rgba(154, 59, 46, 0.32);
  color: #7c2f24;
}
.alert-success {
  background: rgba(30, 75, 42, 0.09);
  border-color: rgba(30, 75, 42, 0.3);
  color: var(--fairway-deep);
}
.alert a { color: inherit; font-weight: 650; }

/* ---------- forms ---------- */

.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}
.form-group label .opt {
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}
input::placeholder { color: #a3a894; }
input:focus, select:focus {
  outline: none;
  border-color: var(--fairway);
  box-shadow: 0 0 0 3px rgba(30, 75, 42, 0.14);
}
select {
  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='%231e4b2a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
  cursor: pointer;
}

.form-row {
  display: grid;
  gap: 0 1.1rem;
  grid-template-columns: 1fr;
}
.form-foot {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.form-foot svg { flex: none; margin-top: 0.15rem; }

.stripe-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.stripe-card.StripeElement--focus {
  border-color: var(--fairway);
  box-shadow: 0 0 0 3px rgba(30, 75, 42, 0.14);
}
#card-errors {
  color: var(--clay);
  font-size: 0.9rem;
  min-height: 1.4em;
  margin: 0.6rem 0;
}
#card-errors:empty { display: none; }

.auth-shell {
  max-width: 460px;
  margin-inline: auto;
}
.auth-shell .panel { margin-top: 1.5rem; }
.auth-switch { text-align: center; margin-top: 1.4rem; font-size: 0.94rem; color: var(--muted); }

/* ---------- notifications ---------- */

.notif {
  padding: 1.1rem 0.15rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  justify-content: space-between;
}
.notif:last-child { border-bottom: 1px solid var(--line-soft); }
.notif-body p { margin: 0 0 0.3rem; font-size: 0.96rem; }
.notif time { font-size: 0.82rem; color: var(--muted); }
.notif-unread .notif-body { position: relative; padding-left: 1rem; }
.notif-unread .notif-body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass-soft);
}

/* ---------- empty states ---------- */

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}
.empty-state svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.2rem;
  opacity: 0.9;
}
.empty-state h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--muted);
  max-width: 26rem;
  margin: 0 auto 1.5rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--fairway-ink);
  color: rgba(242, 238, 224, 0.72);
  margin-top: 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: 3rem 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #faf7ec;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.footer-brand svg { width: 24px; height: 24px; }
.footer-tag { font-size: 0.9rem; max-width: 24rem; margin-top: 0.6rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.9rem; }
.footer-links a, .footer-links button {
  color: rgba(242, 238, 224, 0.78);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer-links a:hover, .footer-links button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-fine {
  border-top: 1px solid rgba(242, 238, 224, 0.14);
  padding-block: 1.4rem;
  font-size: 0.82rem;
  color: rgba(242, 238, 224, 0.5);
}

/* ---------- misc ---------- */

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--ink-2);
  margin-bottom: 1.4rem;
}
.back-link:hover { color: var(--fairway-deep); }
.inline-form { display: inline; }
.mono { font-variant-numeric: tabular-nums; }

/* confirmation code chip */
.conf-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  background: rgba(30, 75, 42, 0.08);
  border: 1px dashed rgba(30, 75, 42, 0.35);
  color: var(--fairway-deep);
  padding: 0.3em 0.7em;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

/* ---------- MemberSports connection ---------- */

.ms-panel { margin-bottom: 1.75rem; }

.ms-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.ms-mark {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--fairway-deep);
  color: var(--brass-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.ms-mark svg { width: 27px; height: 27px; }
.ms-mark-ok { background: var(--fairway); color: #f5f1e6; }

.ms-copy { flex: 1 1 auto; min-width: 0; }
.ms-copy h2 { margin: 0 0 0.3rem; font-size: 1.32rem; }
.ms-copy p { margin: 0; font-size: 0.94rem; }
.ms-copy strong { color: var(--ink); font-weight: 650; }

/* "Sign in with …" style branded button: white, bordered, mark on the left */
.btn-ms {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-ms:hover {
  background: #fff;
  border-color: var(--fairway);
  color: var(--fairway-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ms svg {
  width: 21px;
  height: 21px;
  color: var(--fairway);
  flex: none;
}
.btn-ms:disabled svg { color: inherit; }

/* numbered explainer on the connect page */
.ms-how {
  list-style: none;
  margin: 0 0 1.9rem;
  padding: 0;
}
.ms-how li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--line-soft);
}
.ms-how li:first-child { border-top: 0; padding-top: 0.2rem; }
.ms-how-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(30, 75, 42, 0.1);
  border: 1px solid rgba(30, 75, 42, 0.2);
  color: var(--fairway-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.ms-how strong { display: block; font-size: 0.99rem; margin-bottom: 0.15rem; }
.ms-how .muted { font-size: 0.9rem; line-height: 1.55; }

/* ---------- responsive ---------- */

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .pricing-band { grid-template-columns: 1fr 1.15fr; }
  .pricing-photo { min-height: 100%; }
  .steps li { grid-template-columns: 5rem 1fr; }
}

@media (max-width: 520px) {
  .nav-links { gap: 0.7rem; }
  .nav-links > a:not(.btn) { font-size: 0.85rem; }
  .brand { font-size: 1.08rem; }
  .nav .btn-full { display: none; }
  .nav .btn-short { display: inline; }
  .ledger > li { align-items: flex-start; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head .btn { align-self: stretch; }
  .ms-row { flex-wrap: wrap; }
  .ms-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- terms checkbox / cancel rows ---------- */

.terms-check .terms-label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  cursor: pointer;
}

.terms-check input[type="checkbox"] {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--green, #1e4b2a);
}

.terms-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--green, #1e4b2a);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.terms-toggle:hover {
  color: var(--ink, #1a1a1a);
}

.terms-panel {
  margin-top: 0.7rem;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  background: var(--cream-2, #f7f3e8);
  border: 1px solid var(--line, #e3dcc8);
  border-radius: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.terms-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.terms-panel li + li {
  margin-top: 0.45rem;
}

.ledger > li.cancel-row {
  display: block;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

/* ---------- courses page ---------- */
.state-heading { margin-top: 3rem; }
.state-heading .badge { vertical-align: middle; margin-left: 0.5rem; }
.county-heading {
  margin: 1.75rem 0 0;
  font-size: 1.05rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.stars { color: #a87f2d; font-weight: 600; white-space: nowrap; }
.view-all-courses {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--fairway-deep);
}
