/* Entry offers. Tokens and both themes come from site.css. */

html { scroll-padding-top: calc(var(--header-h) + 16px); }

.page-offers .section,
.page-offer .section {
  content-visibility: visible;
  contain: none;
  contain-intrinsic-size: none;
}

:root { --offer-team: #d5ebe6; }
@media (prefers-color-scheme: dark) {
  :root { --offer-team: #1e4d46; }
}

#offers, #where-to-start, #twelve { scroll-margin-top: calc(var(--header-h) + 12px); }
#where-to-start {
  content-visibility: visible;
  contain: none;
  contain-intrinsic-size: none;
}
.chooser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--text);
  margin-top: 0.5rem;
}
.chooser a {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.25rem 1rem;
  text-decoration: none;
  color: inherit;
}
.chooser a + a { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.chooser a:hover { background: var(--offer-team); }
@media (prefers-color-scheme: dark) {
  .chooser a:hover .a { color: var(--accent-hover); }
  .chooser a:hover .a small { color: var(--text-2); }
}
.chooser a:focus-visible {
  outline: 3px solid var(--tape);
  outline-offset: -3px;
}
.chooser .q {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 0.55rem;
}
.chooser .scope {
  display: block;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.4;
  margin-bottom: 0.85rem;
}
.chooser .a { color: var(--accent); font-weight: 600; margin-top: auto; }
.chooser .a small { display: block; color: var(--muted); font-weight: 400; margin-top: 0.15rem; }
.chooser .ask {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--tape);
  text-underline-offset: 0.2em;
}
.start-here {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--tape);
  color: var(--tape-ink);
  padding: 0.32rem 0.62rem;
  border-radius: 4px;
  margin-bottom: 0.55rem;
}

.offer-block { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem); }
.offer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.for { color: var(--accent); font-weight: 600; margin: 0 0 0.75rem; }
.covers { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0 0 1.25rem; list-style: none; }
.covers li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text-2);
  background: var(--panel);
}
.outcome { list-style: none; padding: 0; margin: 0; }
.outcome li {
  padding: 0.65rem 0 0.65rem 1.7rem;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--text-2);
}
.outcome li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.05rem;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--protect);
  border-bottom: 2px solid var(--protect);
  transform: rotate(-45deg);
}

.request-card {
  border: 2px solid var(--text);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--panel);
  position: sticky;
  top: calc(var(--header-h) + 12px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
@media (max-height: 1100px) {
  .request-card { position: static; }
}
.request-card select { color-scheme: light dark; }
.request-card h2 { font-size: 1.45rem; margin: 0 0 0.35rem; }
.request-card .quiet { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.9rem; }
.request-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.request-card dt { color: var(--muted); }
.request-card dd { margin: 0; font-weight: 600; }
.request-card .btn { width: 100%; }
.request-card form label { margin-bottom: 0.65rem; }
.request-card textarea { min-height: 4.5rem; }
.request-card .fine {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.offer-detail h2 { margin: 2rem 0 1rem; font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem); }
.timeline { display: grid; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.timeline .phase { padding: 1rem 1.05rem; background: var(--panel); border-right: 1px solid var(--line); }
.timeline .phase:last-child { border-right: 0; }
.timeline .phase.client {
  background: var(--offer-team);
  box-shadow: inset 3px 0 0 var(--accent);
}
.timeline .when { font-weight: 700; font-size: 0.85rem; color: var(--accent); margin-bottom: 0.2rem; }
.timeline h3 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 0.35rem; }
.timeline p { margin: 0; font-size: 0.92rem; color: var(--text-2); }
.tl-key { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.85rem; color: var(--muted); margin-top: 0.65rem; }
.tl-key span::before {
  content: "";
  display: inline-block;
  width: 1.15rem;
  height: 0.7rem;
  border-radius: 2px;
  margin-right: 0.4rem;
  vertical-align: -1px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
}
.tl-key .k-team::before {
  background: var(--offer-team);
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 1.75rem; }
.two-col h3 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.55rem; }
.two-col ul { margin: 0; padding-left: 1.15rem; }
.two-col li { margin-bottom: 0.4rem; color: var(--text-2); }
.two-col .not li { color: var(--muted); }
.faq dt { font-weight: 600; margin-top: 0.9rem; color: var(--text); }
.faq dd { margin: 0.2rem 0 0; color: var(--text-2); max-width: 65ch; }
.cols-4 { grid-template-columns: 1fr 1.3fr 1.3fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.tablewrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 0.95rem; }
table.compare th, table.compare td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare thead th { color: var(--muted); font-size: 0.85rem; border-bottom: 2px solid var(--text); }
table.compare tbody th { font-family: var(--serif); font-size: 1.02rem; }
table.compare a { font-weight: 700; }

.ladder { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; margin-top: 1.25rem; }
.rung { border: 1px solid var(--line); border-right: 0; background: var(--panel); padding: 1.1rem; }
.rung:last-child { border-right: 1px solid var(--line); }
.rung h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.rung p { margin: 0; font-size: 0.92rem; color: var(--text-2); }

.other-offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1rem; }
.other-offers a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
}
.other-offers a:hover { border-color: var(--accent); }
.other-offers strong { display: block; font-family: var(--serif); color: var(--text); margin-bottom: 0.2rem; }
.other-offers span { color: var(--muted); font-size: 0.88rem; }

.path-note { margin-top: 1.5rem; color: var(--muted); max-width: 62ch; }

@media (max-width: 860px) {
  .chooser, .offer-hero, .two-col, .ladder, .other-offers { grid-template-columns: 1fr; }
  .chooser a + a { padding-left: 1rem; border-left: 0; border-top: 1px solid var(--line); }
  .request-card { position: static; order: -1; }
  .offer-hero { display: flex; flex-direction: column; }
  .timeline, .cols-4, .cols-3 { grid-template-columns: 1fr !important; }
  .timeline .phase { border-right: 0; border-bottom: 1px solid var(--line); }
  .rung { border-right: 1px solid var(--line); border-bottom: 0; min-height: 0 !important; }
  .rung:last-child { border-bottom: 1px solid var(--line); }
  table.compare thead { display: none; }
  table.compare, table.compare tbody, table.compare tr, table.compare th, table.compare td { display: block; width: auto; }
  table.compare tr { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  table.compare th, table.compare td { border: 0; padding: 0.15rem 0; }
  table.compare td::before { color: var(--muted); font-weight: 600; }
  table.compare td:nth-child(2)::before { content: "Answers"; display: block; }
  table.compare td:nth-child(3)::before { content: "Stage"; display: block; }
  table.compare td:nth-child(4)::before { content: "Length"; display: block; }
  table.compare td:nth-child(5)::before { content: "Studio effort"; display: block; }
}

.book-form {
  max-width: 40rem;
  border: 2px solid var(--text);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--panel);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.book-form .btn { width: 100%; }
.book-form fieldset {
  border: 0;
  margin: 0.2rem 0 0.35rem;
  padding: 0;
}
.book-form legend {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0;
  margin-bottom: 0.35rem;
}
.book-form .hint {
  margin: -0.15rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.pref-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.75rem;
}
.pref-grid > * { min-width: 0; }
.book-form select,
.book-form input[type="date"] {
  color-scheme: light dark;
}
.book-form input[type="date"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  font-size: 16px;
  min-height: 44px;
}
.book-form input[type="date"]:focus {
  outline: 3px solid var(--tape);
  outline-offset: 2px;
  border-color: var(--accent);
}
.book-form .fine {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .pref-grid { grid-template-columns: 1fr; }
}
