/* Components: links, buttons, cards, plan, seats, lists, form. Colors come from tokens.css only. */

/* Text links: underline on hover */
.nav-link, .text-link {
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: text-decoration-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-link:hover, .nav-link:focus-visible, .text-link:hover, .text-link:focus-visible { text-decoration-color: currentColor; }
.text-link { text-decoration-color: var(--line-strong); }

/* Buttons: ink pill by default, blue pill (.btn--cta) for the Group offer only */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 1.375rem;
  background: var(--btn-bg); color: var(--btn-ink); border: 0; border-radius: var(--radius-pill);
  font: 500 0.9375rem/1 var(--font-body); text-decoration: none; cursor: pointer;
}
.btn--sm { min-height: 36px; padding: 0 1rem; font-size: var(--fs-micro); }
/* Keep a 44px tap target around the small button */
.btn--sm::after { content: ""; position: absolute; inset: -4px 0; }
.btn[disabled] { cursor: wait; }
.btn.is-loading { color: transparent; }
.btn.is-loading::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid var(--btn-ink-soft); border-top-color: var(--btn-ink); border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
  .btn span { display: inline-block; transition: transform var(--dur) var(--ease); }
  .btn:active { transform: translateY(1px); }
  .btn.is-loading::before { animation: spin 700ms linear infinite; }
}
@media (hover: hover) {
  .btn:hover { background: var(--btn-bg-hover); }
  .btn--cta:hover { background: var(--cta-bg-hover); }
}
.btn--cta { background: var(--cta-bg); color: var(--cta-ink); font-weight: 600; }
.btn--lg { min-height: 54px; padding: 0 1.75rem; font-size: 1rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (hover: hover) { .btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--ink); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover span { transform: translateX(3px); }
  .btn:hover:active { transform: translateY(1px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Cards: one recipe everywhere. Flat surface, 1px line. No shadow, no glass. */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--card-pad);
}
.card--lift { color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .card--lift { transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
}
@media (hover: hover) {
  .card--lift:hover { border-color: var(--line-strong); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card--lift:hover { transform: translateY(-2px); }
}
.card h3 { color: var(--ink); }

/* The pre-open plan */
.plan { padding: 0; overflow: hidden; }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px var(--card-pad); border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.plan-head p:first-child { font-weight: 600; }
.plan-head p:last-child { color: var(--muted); }
.plan-body { margin: 0; padding: 0 var(--card-pad); }
.plan-body > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.plan-body > div:last-child { border-bottom: 0; }
.plan-body dt { color: var(--muted); font-size: var(--fs-small); padding-top: 1px; }
.plan-body dd { margin: 0; color: var(--ink); }
.plan-body dd.mono { font-size: 0.9375rem; }
.plan-foot { padding: 16px var(--card-pad); border-top: 1px solid var(--line); font-size: var(--fs-micro); color: var(--muted); }
@media (max-width: 560px) {
  .plan-body > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Seats */
.seat { display: flex; flex-direction: column; gap: 12px; }
.seat-label { font-size: var(--fs-small); color: var(--muted); }
.seat--founding { border-color: var(--line-strong); }
.seat--founding .seat-label { color: var(--ink); }
@media (hover: hover) {
  .seat--founding:hover { border-color: var(--ink); }
}
.amount { font: 600 var(--fs-number)/1.1 var(--font-head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }

/* Lists with a quiet marker */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; color: var(--ink-2); }
.ticks li { position: relative; padding: 10px 0 10px 26px; max-width: var(--measure); }
.ticks li + li { border-top: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: calc(10px + 0.8em); width: 12px; height: 1px; background: var(--muted); }
.ticks--yes li::before { background: var(--mark); height: 2px; }
.ticks--no li::before { width: 7px; height: 7px; top: calc(10px + 0.8em - 3px); left: 2px; background: none; border: 1px solid var(--muted); border-radius: 50%; }

/* Form */
.form { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: var(--fs-small); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.875rem;
  font: 400 1rem var(--font-body); color: var(--ink);
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: no-preference) {
  .field input, .field select, .field textarea { transition: border-color var(--dur-fast) var(--ease); }
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 20px center, right 15px center; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
/* Fixed width, no drag handle. Grows taller with the text (field-sizing, or the app.js fallback). */
.field textarea { resize: none; overflow: hidden; min-height: 6.5rem; field-sizing: content; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); }

/* Checkbox */
.check { grid-template-columns: 24px 1fr; align-items: start; gap: 14px; }
.check input {
  appearance: none; position: relative; width: 22px; height: 22px; min-height: 22px; margin: 2px 0 0; padding: 0;
  border: 1px solid var(--field-border); border-radius: 6px; background: var(--field-bg); cursor: pointer;
}
.check input::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
}
.check input:checked { background: var(--blue-ink); border-color: var(--blue-ink); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .check input { transition: background-color var(--dur-fast), border-color var(--dur-fast); }
  .check input::after { transition: transform var(--dur-fast) var(--ease); }
}
.check label { font-weight: 400; color: var(--ink-2); font-size: var(--fs-body); cursor: pointer; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* Status */
.form-status { position: relative; font-weight: 500; font-size: var(--fs-small); }
.form-status[data-state="error"] { color: var(--error); }
.form-status[data-state="sent"] { padding-left: 28px; color: var(--ink); }
.form-status[data-state="sent"]::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 12px; margin-top: -8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.book-direct { margin: -8px 0 0; color: var(--muted); font-size: var(--fs-small); }
.book-direct a { color: var(--ink); text-underline-offset: 4px; display: inline-block; padding: 12px 0; }
