/* Jack Kuenzle Coaching — intake site */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f4f0;
  /* Soft translucent white so the watercolor reads subtly through surfaces */
  --surface: rgba(255, 255, 255, 0.9);
  --surface-muted: rgba(28, 30, 33, 0.06);
  --ink: #1c1e21;
  --muted: #5b6068;
  --placeholder: #6d727a;
  --line: rgba(28, 30, 33, 0.13);
  --line-strong: rgba(28, 30, 33, 0.3);
  /* Muted sage / alpine green sampled from the watercolor mountains */
  --accent: #6f8a78;
  --accent-hover: #5f7767;
  /* Deeper shade of the accent for small text — keeps AA contrast on light surfaces */
  --accent-text: #56705f;
  --accent-ink: #ffffff;
  --accent-tint: rgba(239, 244, 240, 0.94);
  --accent-soft: rgba(111, 138, 120, 0.16);
  --focus: #5f7767;
  --shadow: 0 1px 2px rgba(28, 30, 33, 0.05), 0 8px 24px -12px rgba(28, 30, 33, 0.18);
  --shadow-hover: 0 1px 2px rgba(28, 30, 33, 0.06), 0 10px 28px -12px rgba(28, 30, 33, 0.24);
  --radius: 14px;
  /* Warm misty wash over the watercolor background — raise alpha to soften it more */
  --overlay: rgba(250, 247, 242, 0.34);
  --bg-image: url("images/alpine-watercolor-bg.webp");
  color-scheme: light;
}

@media (max-width: 800px) {
  :root { --bg-image: url("images/alpine-watercolor-bg-800.webp"); }
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
button, label { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Fixed full-viewport watercolor with light overlay. A fixed pseudo-element is used
   instead of background-attachment: fixed, which iOS Safari ignores. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    var(--bg-image) center / cover no-repeat,
    var(--bg);
  /* Keep the watercolor airy and luminous rather than muddy */
  filter: saturate(0.95) brightness(1.03);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding: 28px 0 0;
}
a:not([class]) { color: var(--accent-text); text-underline-offset: 2px; }
a:not([class]):hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  /* Matches the height of the former logo mark so header spacing is unchanged */
  min-height: 26px;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.015em;
  color: var(--ink);
  text-decoration: none;
}

/* Intro */
.intro { padding: 56px 0 8px; }
.intro h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.intro p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
}

/* Sections */
.section { padding: 40px 0 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-head .num {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}
.section-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Tier cards */
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
@media (min-width: 640px) {
  .tiers { grid-template-columns: 1fr 1fr; }
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.tier:hover { border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.tier input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.tier-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tier-name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.tier-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.15s ease;
}
.tier-check::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-ink);
  transform: scale(0);
  transition: transform 0.15s ease;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
.tier-price strong {
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.tier-price span { color: var(--muted); font-size: 15px; }
.tier-desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.tier-tag {
  align-self: flex-start;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
}
.tier:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-hover);
}
.tier:has(input:checked) .tier-check {
  background: var(--accent);
  border-color: var(--accent);
}
.tier:has(input:checked) .tier-check::after { transform: scale(1); }
.tier:has(input:checked) .tier-tag { background: var(--accent-soft); }
.tier:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.tier-undecided {
  padding: 16px 22px;
}
@media (min-width: 640px) {
  .tier-undecided {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .tier-undecided .tier-top {
    flex: none;
  }
  .tier-undecided .tier-desc {
    margin: 0;
    flex: 1;
  }
}
.fineprint {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* "Why two tiers?" disclosure */
.why-tiers { margin: 10px 2px 0; }
.why-tiers summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
}
.why-tiers summary::-webkit-details-marker { display: none; }
.why-tiers summary:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.why-tiers summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.why-tiers .chevron {
  width: 11px;
  height: 8px;
  flex: none;
  transition: transform 0.2s ease;
}
.why-tiers[open] .chevron { transform: rotate(180deg); }
.why-tiers-panel {
  margin-top: 12px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.why-tiers-panel p { margin: 0 0 14px; }
.why-tiers-panel p:last-child { margin-bottom: 0; }
@media (max-width: 639px) {
  .why-tiers-panel { padding: 18px; }
}

/* Fields */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label,
.field > .label {
  font-size: 15px;
  font-weight: 500;
}
.req { color: var(--accent-text); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: 13.5px; margin-left: 4px; }
.hint { margin: -2px 0 0; color: var(--muted); font-size: 13.5px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(28, 30, 33, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
select {
  padding-right: 40px;
  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 1.5 6 6.5 11 1.5' fill='none' stroke='%235b6068' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
select:invalid { color: var(--placeholder); }
select option { color: var(--ink); }
input::placeholder,
textarea::placeholder { color: var(--placeholder); opacity: 1; }
input:hover,
select:hover,
textarea:hover { border-color: var(--line-strong); }
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) {
  .grid.three { gap: 18px; }
}

/* Link list with + */
.links { display: flex; flex-direction: column; gap: 10px; }
.link-row { display: flex; gap: 8px; }
.link-row[hidden] { display: none; }
.link-row input { flex: 1; min-width: 0; }
.icon-btn {
  flex: none;
  width: 50px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(28, 30, 33, 0.04);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.icon-btn.remove { color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }

/* Chip radios */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: inline-block;
  padding: 9px 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(28, 30, 33, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.chip span:hover { border-color: var(--line-strong); }
.chip input:checked + span {
  background: var(--accent-tint);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  color: var(--ink);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
legend.label { padding: 0; margin-bottom: 9px; font-size: 15px; font-weight: 500; }

/* Visually hidden */
.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; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Submit */
.submit-row {
  padding: 40px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 26px;
  font: inherit;
  /* 19px semibold counts as large text, so white on the sage accent meets WCAG AA */
  font-size: 19px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28, 30, 33, 0.08), 0 8px 20px -10px rgba(79, 102, 87, 0.5);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; }
@media (min-width: 640px) {
  .submit-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .btn { width: auto; }
}
/* Health-data consent */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 40px 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.consent input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent label { cursor: pointer; }
.consent + .submit-row { padding-top: 24px; }
.privacy { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 400px; }

/* Error summary */
.form-error {
  display: none;
  margin: 24px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-size: 15px;
}
.form-error.show { display: block; }

/* Footer */
.site-footer {
  margin-top: 72px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

/* Thanks page */
.thanks {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
}
.thanks .mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 24px;
}
.thanks .mark svg { width: 24px; height: 24px; }
.thanks h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.thanks p { margin: 0 0 8px; color: var(--muted); font-size: 17px; max-width: 480px; }
.thanks a.back { margin-top: 24px; color: var(--ink); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
