/* 24 Hour Web start form (start.html). Uses the tokens on .page_root. */

.start-root { min-height: 100vh; background: var(--navy-3); }
.start-header { position: sticky; top: 0; inset: auto; background: var(--navy-3); border-bottom: 1px solid var(--line); }
.start-main { padding: clamp(28px, 5vw, 64px) var(--gutter) 96px; }
.start-app { max-width: 680px; margin: 0 auto; }
.start-app:has(.st-order) { max-width: 1120px; }

.st-card {
  background: var(--paper); color: var(--ink); border-radius: 16px;
  padding: clamp(24px, 4vw, 44px); box-shadow: 0 20px 60px oklch(0 0 0 / .35);
  --muted: oklch(0.46 0.035 250); --line: oklch(0.84 0.018 250);
}
.st-card + .st-card { margin-top: 20px; }
.st-eyebrow { margin: 0 0 10px; font-size: 14px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.st-title { margin: 0; font-size: clamp(28px, 3.6vw, 44px); font-stretch: 110%; font-weight: 820; line-height: 1.05; letter-spacing: -.015em; outline: none; }
.st-h2 { margin: 0 0 16px; font-size: 22px; font-stretch: 110%; font-weight: 800; }
.st-lede { margin: 16px 0 0; font-size: 19px; color: var(--muted); }
.st-note { margin: 14px 0 0; font-weight: 650; }
.st-help { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.st-autosave { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

.st-progress { margin-bottom: 26px; }
.st-count { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st-bar { height: 6px; border-radius: 99px; background: oklch(0.9 0.012 250); overflow: hidden; }
.st-bar span { display: block; height: 100%; background: var(--red); border-radius: inherit; transition: width .4s var(--ease); }

.st-box { margin: 0 0 22px; padding: 14px 16px; border-left: 4px solid var(--red); background: oklch(0.95 0.02 20); font-weight: 600; }

.st-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.st-fieldset legend { padding: 0; }
.st-input {
  display: block; width: 100%; margin-top: 18px; padding: 14px 16px;
  font: inherit; font-size: 18px; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: 10px;
}
.st-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px oklch(0.27 0.07 250 / .15); }
.st-input:disabled { opacity: .5; }
textarea.st-input { resize: vertical; min-height: 96px; }

.st-options { display: grid; gap: 10px; margin-top: 18px; }
.st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 560px) { .st-grid { grid-template-columns: 1fr; } }
.st-option {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px;
  padding: 12px 16px; border: 2px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; font-weight: 600; transition: border-color .15s, background-color .15s;
}
.st-option:hover { border-color: oklch(0.6 0.03 250); }
.st-option[data-checked=true] { border-color: var(--ink); background: oklch(0.96 0.01 250); }
.st-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); flex: none; }
.st-option:has(input:focus-visible) { outline: 3px solid var(--red-bright); outline-offset: 2px; }
.st-inline { display: inline-flex; margin-top: 14px; }

.st-follow:not(:empty) { margin-top: 22px; }
.st-subfield { margin-top: 4px; }
.st-sublabel { display: block; font-weight: 750; font-size: 17px; }
.st-sublabel + .st-input, .st-website .st-input { margin-top: 10px; }
.st-info { margin: 0; padding: 16px 18px; border-radius: 10px; background: oklch(0.95 0.015 250); }
.st-info p { margin: 0; }
.st-info ul { margin: 10px 0; padding-left: 20px; }

.st-file { display: block; margin-top: 12px; font: inherit; }
.st-file::file-selector-button { font: inherit; font-weight: 700; margin-right: 12px; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); cursor: pointer; }
.st-files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.st-fileitem { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.st-fileitem span { overflow-wrap: anywhere; }
.st-remove { font: inherit; font-size: 14px; background: none; border: 0; color: var(--red); cursor: pointer; text-decoration: underline; padding: 6px; }

.st-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.st-intro .st-actions, .st-done .st-actions { justify-content: flex-start; }
.st-btn {
  font: inherit; font-weight: 750; font-stretch: 110%; font-size: 18px; min-height: 52px; padding: 0 26px;
  border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: background-color .2s, translate .2s;
}
.st-primary { background: var(--red); color: var(--on-red); }
.st-primary:hover:not(:disabled) { background: var(--red-deep); translate: 0 -2px; }
.st-primary:disabled { opacity: .6; cursor: progress; }
.st-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.st-ghost:hover { border-color: var(--ink); }
.st-btn:focus-visible, .st-link:focus-visible, .st-remove:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 2px; }
.st-link { font: inherit; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 8px 0; margin-top: 8px; }

.st-error { margin: 18px 0 0; padding: 12px 14px; border-radius: 8px; background: oklch(0.95 0.04 20); color: #9b0028; font-weight: 650; }
.st-dev { margin: 8px 0 0; font-size: 13px; color: var(--muted); font-family: ui-monospace, monospace; }

/* Order screen */
.st-order-head { color: var(--paper); margin-bottom: 28px; }
.st-order-head .st-lede { color: oklch(0.8 0.03 250); }
.st-order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .st-order-grid { grid-template-columns: 1fr; } }
.st-included { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.st-included li { padding-left: 26px; position: relative; font-weight: 600; }
.st-included li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
@media (max-width: 560px) { .st-included { grid-template-columns: 1fr; } }

.st-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
@media (max-width: 560px) { .st-plans { grid-template-columns: 1fr; } }
.st-plan { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.st-plan[data-checked=true] { border-color: var(--ink); background: oklch(0.96 0.01 250); }
.st-plan input { position: absolute; opacity: 0; pointer-events: none; }
.st-plan:has(input:focus-visible) { outline: 3px solid var(--red-bright); outline-offset: 2px; }
.st-plan strong { font-size: 20px; }
.st-plan-price { font-weight: 750; }
.st-choose { justify-self: start; margin-top: 6px; padding: 8px 14px; border-radius: 99px; border: 2px solid var(--ink); font-weight: 750; font-size: 14px; }
.st-plan[data-checked=true] .st-choose { background: var(--red); border-color: var(--red); color: var(--on-red); }

.st-addons { display: grid; gap: 0; }
.st-addon { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.st-addon:first-child { border-top: 0; padding-top: 0; }
.st-addon input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--red); flex: none; margin: 0; }
.st-addon-text { flex: 1; display: grid; gap: 2px; }
.st-addon-price { font-weight: 750; white-space: nowrap; }
.st-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--red); color: var(--on-red); font-size: 12px; font-weight: 750; vertical-align: middle; }
.st-stepper { display: inline-flex; align-items: center; gap: 10px; }
.st-stepper button { width: 40px; height: 40px; font: inherit; font-size: 20px; font-weight: 700; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.st-stepper button:disabled { opacity: .4; cursor: default; }
.st-count-out { min-width: 1.5em; text-align: center; font-weight: 800; font-size: 20px; }

.st-receipt {
  position: sticky; top: 150px; background: #fff; color: var(--ink); border-radius: 4px; padding: 24px;
  border-top: 8px solid var(--red); box-shadow: 0 20px 60px oklch(0 0 0 / .35);
  --muted: oklch(0.46 0.035 250); --line: oklch(0.84 0.018 250);
}
@media (max-width: 900px) { .st-receipt { position: static; } }
.st-receipt-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.st-receipt ul { list-style: none; margin: 0; padding: 0; }
.st-receipt li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.st-due { display: grid; gap: 4px; margin: 18px 0 4px; }
.st-due span { font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.st-due strong { font-size: 40px; font-stretch: 75%; font-weight: 850; line-height: 1; }
.st-pay { width: 100%; margin-top: 18px; }
.st-agree { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.st-agree-title { margin: 0 0 6px; font-size: 16px; }
.st-agree .st-help { margin: 0; }
.st-agree .st-inline { display: flex; margin-top: 12px; }
.st-follow-group { display: grid; gap: 14px; }
.st-info-link { margin-top: 12px; }

/* Done screens */
.st-next { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.st-done .st-h2 { margin-top: 28px; }
.st-testnote { margin: 22px 0 0; padding: 10px 14px; border-radius: 8px; background: oklch(0.95 0.06 90); font-weight: 650; font-size: 15px; }

/* Stripe embedded checkout */
.st-paycard { padding: clamp(16px, 3vw, 28px); }
.st-stripe { min-height: 420px; }

/* A link styled as a button (payment received: start the intake form) */
.st-linkbtn { display: inline-flex; align-items: center; text-decoration: none; }
.st-actions + .st-testnote { margin-top: 18px; }
.start-footer { justify-content: center; text-align: center; }
