/* Outfit and Fraunces are SIL Open Font License. See fonts/OFL-*.txt. */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2");
}

:root {
  --navy: #10243f;
  --ink: #142033;
  --muted: #3d4d5f;
  --teal: #0c5c56;
  --lime: #e3f56c;
  --line: #e2e8ee;
  --paper: #ffffff;
  --soft: #eef3f2;
  --warn: #fff6e8;
  --danger: #8d2c2c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: #dfe7ea;
  color: var(--ink);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.45;
}
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--navy);
  padding: 8px 12px;
  z-index: 9;
  border-radius: 8px;
}
.skip:focus { top: 12px; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(480px, 100%);
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
}
.limebar { height: 5px; background: var(--lime); }
.top {
  background: var(--navy);
  color: #fff;
  padding: 12px 18px 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 0.95rem;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--lime);
  color: var(--navy);
  font-weight: 750;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
h1:focus, h1:focus-visible { outline: none; }
.top h1 {
  font-family: Fraunces, Georgia, "Iowan Old Style", serif;
  font-weight: 650;
  font-size: 1.85rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 10px 0 10px;
  text-wrap: balance;
}
.steps {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d5deea;
  font-size: 0.92rem;
  font-weight: 650;
}
.steps li span {
  width: 24px;
  height: 24px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}
.steps li.on { color: var(--lime); }
.steps li.on span {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
}
.content { padding: 0 18px 24px; }
.demo {
  margin: 12px 0 0;
  background: var(--lime);
  color: var(--navy);
  font-weight: 750;
  border-radius: 12px;
  padding: 8px 12px;
  line-height: 1.3;
}
.page-title {
  font-family: Fraunces, Georgia, "Iowan Old Style", serif;
  font-weight: 650;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
  margin: 12px 0 4px;
  text-wrap: balance;
}
.lede { margin: 6px 0; font-size: 1rem; line-height: 1.35; }
.fine, .note, .bar-note, .optcount { color: var(--muted); }
.fine { font-size: 0.92rem; margin: 4px 0 0; }
.note { margin: 8px 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  border: 0;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 14px;
  touch-action: manipulation;
}
.btn svg { flex: none; }
.btn.secondary {
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.btn.ghost {
  background: transparent;
  color: var(--teal);
  min-height: 48px;
  margin-top: 4px;
}
.btn.small {
  width: auto;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.btn:disabled { background: #c5ced6; color: #4e5c6a; box-shadow: none; cursor: not-allowed; }
.linkbtn {
  background: none;
  border: 0;
  color: var(--teal);
  font-weight: 750;
  min-height: 44px;
  padding: 8px 0;
  touch-action: manipulation;
}
.navrow { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; }

.manual-link { text-align: center; margin: 6px 0 0; }
.empty {
  border: 1.5px dashed #b7c4c8;
  border-radius: 18px;
  padding: 8px 14px;
  text-align: center;
  color: var(--muted);
  margin: 6px 0;
  background: #f7faf9;
}
.empty p { margin: 4px 0; }
.empty strong { color: var(--navy); }
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #e7eeed;
}
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(16, 36, 63, 0.28);
}

.how { list-style: none; padding: 0; margin: 6px 0 4px; }
.how li { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 6px; }
.how li > span {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--lime);
  display: grid;
  place-items: center;
  font-weight: 750;
}
.how strong { display: block; color: var(--navy); }
.how p { margin: 2px 0 0; color: var(--muted); }

.alert {
  background: var(--warn);
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0 0;
}
.alert h2 { margin: 0 0 6px; font-size: 1.15rem; color: var(--navy); }
.alert p { margin: 0 0 12px; }
.alert .btn { margin-top: 4px; }

.group { margin: 16px 0; }
.group h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid #d5dee4;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  text-align: left;
  line-height: 1.25;
  max-width: 100%;
  touch-action: manipulation;
}
.chip svg { width: 18px; height: 18px; flex: none; }
.chip[aria-pressed="true"] {
  background: var(--lime);
  border-color: #c9dc45;
  color: var(--navy);
}
.chip.maybe { border-style: dashed; border-color: var(--teal); }
.maybe-tag {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

.choice { margin: 4px 0; }
.choice legend {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
  margin-bottom: 4px;
}
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border-radius: 14px;
}
.seg label { position: relative; }
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
}
.seg span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 11px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  padding: 6px 4px;
}
.seg input:checked + span {
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 36, 63, 0.12);
}
.seg input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

h2 {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 14px 0 6px;
}
.rowhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rowhead h2 { margin: 12px 0 6px; }
ol.plain { margin: 0 0 4px; padding: 0 0 0 1.15rem; }
ol.plain li { margin: 0 0 3px; line-height: 1.35; }
ol.warm { list-style: none; padding: 0; margin: 0; }
ol.warm li { margin: 0; }
ol.plain strong { color: var(--navy); }
.coach { margin: 0 0 8px; }

.ex {
  border: 1px solid var(--line);
  border-left: 6px solid #d6e85a;
  border-radius: 16px;
  padding: 14px 14px 12px;
  margin: 0 0 12px;
  background: #fff;
}
.eyebrow {
  margin: 0;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ex h3 {
  margin: 2px 0 4px;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.2;
}
.gear { margin: 0 0 8px; color: var(--muted); }
.rx { margin: 0; font-size: 1.06rem; }
.rest { margin: 2px 0 8px; color: var(--muted); }
.cue { margin: 0 0 10px; }
.ex-actions { display: flex; align-items: center; gap: 10px; }
.ex-actions button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--teal);
  background: #fff;
  color: var(--teal);
  font-weight: 750;
  touch-action: manipulation;
}

.lead {
  background: #e7f4f2;
  border-radius: 18px;
  padding: 16px;
  margin-top: 12px;
}
.lead h2 { margin: 4px 0 6px; font-size: 1.3rem; }
.lead p { margin: 0 0 8px; }
.field { display: block; font-weight: 700; margin: 12px 0 6px; }
input[type="text"], input[type="email"] {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
  border: 1.5px solid #b7c9c6;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 14px 0;
  font-weight: 600;
}
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.form-error { min-height: 0; color: var(--danger); font-weight: 700; margin: 0 0 8px; }
.form-error:empty { display: none; }

.foot { margin: 10px 0 0; text-align: center; font-size: 0.88rem; }
.foot a { color: var(--teal); font-weight: 750; }

.sheet.has-bar { padding-bottom: 148px; }
.bar {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(480px, 100%);
  box-sizing: border-box;
  padding: 18px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
}
.bar-note { margin: 0 0 8px; text-align: center; font-weight: 650; font-size: 0.92rem; }

.spin {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (hover: hover) {
  .btn:hover:not(:disabled) { background: #183456; }
  .btn.secondary:hover, .btn.small:hover, .ex-actions button:hover { background: #f4f7f8; }
  .chip:hover { border-color: var(--navy); }
}
@media (min-width: 840px) {
  body { padding: 28px 16px 40px; }
  .wrap {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(16, 36, 63, 0.1);
    min-height: calc(100vh - 56px);
  }
  .bar { bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 360px) {
  .split { grid-template-columns: 1fr; }
  .top h1, .page-title { font-size: 1.6rem; }
}
