/* /start: one question per screen on a planner card. Loads after home.css. */
.start { padding: clamp(28px, 6vh, 72px) 0 clamp(56px, 9vh, 96px); }
.start-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 24px clamp(40px, 6vw, 88px); align-items: start; }
.start-copy { position: sticky; top: 32px; padding-top: 18px; }
.start-copy .h-big { margin-top: 14px; font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 11ch; }
.start-copy .lede { margin-top: 18px; }
.start .lead-by { margin-top: 34px; padding-top: 22px; max-width: 440px; }
.talk { grid-column: 2; font-size: 15px; color: var(--ink-2); }
.talk a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px 28px; box-shadow: 0 1px 0 var(--line-2), 0 18px 40px -28px rgba(16, 60, 62, .35); }

/* Progress: three phases of the form, drawn like the homepage phase bar */
.prog-wrap { display: flex; align-items: flex-end; gap: 16px; }
.prog { flex: 1; display: flex; gap: 6px; }
.prog li { position: relative; flex: 1; font-size: 12px; font-weight: 500; color: var(--ink-2); padding-top: 9px; border-top: 2px solid var(--line); }
.prog li::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s cubic-bezier(.3, .8, .2, 1); }
.prog li.on::before, .prog li.did::before { transform: scaleX(1); }
.prog li.on { color: var(--ink); }
.prog li.on::after { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.prog-n { font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* Answers so far, as small calendar entries */
.answers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.answers li { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 4px 4px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; box-shadow: inset 3px 0 0 var(--bar); }
.answers li.a-when { background: var(--seen-bg); color: var(--seen-fg); --bar: var(--seen-bar); }
.answers li.a-what { background: var(--build-bg); color: var(--build-fg); --bar: var(--build-bar); }
.answers li b { font: 500 11px/1 var(--mono); opacity: .8; }
.answers button { border: 0; background: none; font: 500 13px/1 var(--sans); color: inherit; padding: 8px; border-radius: 5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.answers button:hover { background: rgba(255, 255, 255, .5); }

.step { margin-top: 24px; }
.q { font-size: clamp(1.55rem, 2.6vw, 1.95rem); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.q:focus { outline: none; }
.q:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; }
.hint { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* Step 1: month tiles, one page each, circled when picked */
.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.mo { position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; text-align: left; transition: border-color .15s, background-color .15s; }
.mo:hover { border-color: var(--ink); }
.mo .y { font: 500 11px/1 var(--mono); color: var(--ink-2); padding: 8px 10px 7px; border-bottom: 1px solid var(--line-2); background: var(--cream); }
.mo .m { position: relative; align-self: flex-start; margin: 12px 10px 14px; padding: 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.ring ellipse { fill: none; stroke: var(--copper); stroke-width: 2.2; stroke-dasharray: 100; stroke-dashoffset: 0; stroke-linecap: round; }
.mo .ring, .tile-m .ring { position: absolute; overflow: visible; pointer-events: none; }
.mo .ring { inset: -9px -6px; width: calc(100% + 12px); height: calc(100% + 18px); opacity: 0; }
.mo[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.mo[aria-pressed="true"] .ring { opacity: 1; }
.mo[aria-pressed="true"] .ring ellipse { animation: draw .6s cubic-bezier(.6, 0, .2, 1) both; }
.unsure { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 10px; border: 1px dashed var(--line); border-radius: 10px; background: none; font: 500 16px/1 var(--sans); color: var(--ink); cursor: pointer; }
.unsure:hover { border-color: var(--ink); border-style: solid; }
.unsure[aria-pressed="true"] { border: 1px solid var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }

/* Step 2: kinds, single choice, the circle fills when picked */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.kinds button { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font: 500 15.5px/1.25 var(--sans); cursor: pointer; transition: border-color .15s; }
.kinds button:hover { border-color: var(--ink); }
.kinds .k { flex: none; position: relative; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); }
.kinds button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.kinds button[aria-pressed="true"] .k { border: 2px solid var(--copper); background: radial-gradient(circle, var(--copper-ink) 0 4px, transparent 4.5px); }

.field { display: block; margin-top: 18px; }
.lab { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.lab em { font-style: normal; font-weight: 400; color: var(--ink-2); font-size: 13px; }
.field input { display: block; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(16, 60, 62, .32); border-radius: 9px; background: #fff; font-size: 16px; }
.field input::placeholder { color: #6E8384; }
.field input:focus { outline: 3px solid var(--copper); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--err); box-shadow: inset 3px 0 0 var(--err); }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; font-size: 15px; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.consent input[aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 2px; }
.err { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--err); }
.consent + .err { margin-left: 34px; }
.err-sum { margin-top: 16px; padding: 12px 14px; border-radius: 9px; background: #F7E3DE; color: var(--err); font-size: 14.5px; font-weight: 500; box-shadow: inset 3px 0 0 var(--err); }
.err-sum a { color: inherit; }

.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.step-nav .btn { min-width: 150px; }
.step-nav > .btn:only-child { margin-left: auto; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.pair + .err { margin-top: 6px; }
.send-err { margin-top: 18px; padding: 12px 14px; border-radius: 9px; background: #F7E3DE; color: var(--err); font-size: 15px; line-height: 1.5; box-shadow: inset 3px 0 0 var(--err); }
.send-err b { display: block; }
.send-err a { color: inherit; font-weight: 600; white-space: nowrap; }
.ics { margin-top: 22px; }
.ics .btn { width: 100%; }
.ics-note { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }
.nojs { margin-top: 18px; }

/* Success */
.fin-head { display: flex; align-items: center; gap: 20px; }
.tile { flex: none; width: 108px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; text-align: center; }
.tile-y { display: block; font-size: 11px; padding: 8px 0 7px; background: var(--cream); border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.tile-m { position: relative; display: inline-block; margin: 18px 0 20px; padding: 2px 10px; font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.tile-m .ring { inset: -8px -10px; width: calc(100% + 20px); height: calc(100% + 16px); }
.tile-m .ring ellipse { animation: draw .9s cubic-bezier(.6, 0, .2, 1) .2s both; }
.next { margin-top: 26px; border-top: 1px solid var(--line); counter-reset: n; }
.next li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.next .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 13px; }
.next b { display: block; font-weight: 600; font-size: 17px; }
.next p { margin-top: 4px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.fin .actions { margin-top: 22px; }

/* Step change: a short slide, square the whole time */
@media (prefers-reduced-motion: no-preference) {
  .step.enter { animation: stepin .38s cubic-bezier(.2, .8, .2, 1) both; }
  .fin.enter { animation: stepin .45s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes stepin { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

.wide-only { display: inline; }
div.wide-only { display: flex; }

@media (max-width: 899px) {
  .start { padding: 18px 0 48px; }
  .start-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .start-copy { position: static; padding-top: 0; }
  .start-copy .h-big { margin-top: 8px; font-size: clamp(2.05rem, 9vw, 2.5rem); max-width: none; }
  .start-copy .lede { margin-top: 10px; font-size: 16px; }
  .kicker { font-size: 12px; }
  .wide-only, div.wide-only { display: none; }
  .talk { grid-column: 1; }
  .card { margin-inline: -8px; padding: 18px 16px 20px; border-radius: 16px; }
  .step { margin-top: 18px; }
  .months { gap: 8px; margin-top: 16px; }
  .mo .m { font-size: 22px; margin: 10px 8px 12px; padding: 0 6px; }
  .kinds { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .kinds button { min-height: 52px; }
  .step-nav .btn { flex: 1; min-width: 0; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .fin-head { gap: 16px; }
  .tile { width: 92px; }
  .tile-m { font-size: 26px; }
}
