/* Kwik survey. Follows BRAND.md: the phone's own font, light grounds,
   Ink text, and Emerald kept for "paid" only (here it appears only in the mark). */
:root {
  --ink: #12201A;
  --ink-2: #33433B;
  --muted: #4A5A52;
  --line: #D5DDD7;
  --line-soft: #E4EAE6;
  --field: #C9D3CC;
  --counter: #F4F6F2;
  --white: #FFFFFF;
  --error: #A1261B;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--counter);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); }

button, input { font: inherit; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

h1, h2, h3 { margin: 0; font-weight: 700; }

p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.wordmark { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); }
.hero h1 { max-width: 860px; font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
.lead { max-width: 640px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 10px;
  background: var(--ink); color: var(--white);
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:disabled { opacity: 0.6; cursor: progress; }
.button-secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--field); font-weight: 600; font-size: 16px; min-height: 48px; }

/* What Kwik Links would do */
.what { padding-bottom: 56px; display: flex; flex-direction: column; gap: 32px; }
.section-intro { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.section-intro h2 { font-size: clamp(28px, 4vw, 36px); line-height: 1.1; letter-spacing: -0.01em; }
.section-intro p { font-size: 17px; color: var(--ink-2); }
/* One example order, shown the way the seller app records it */
.order-log { max-width: 760px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.order-log-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.order-log-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.order-log-item { font-size: 17px; font-weight: 600; }
.order-log-total { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.order-log-rows { list-style: none; margin: 0; padding: 0; }
.order-log-rows li { display: grid; grid-template-columns: 72px 150px minmax(0, 1fr); gap: 4px 16px; align-items: baseline; padding: 14px 20px; border-top: 1px solid var(--line-soft); }
.order-log-rows li:first-child { border-top: 0; }
.log-time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-status { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.log-paid { color: #0A7B55; }
.log-detail { font-size: 16px; color: var(--ink-2); }
.also { max-width: 640px; font-size: 17px; color: var(--ink-2); }
@media (max-width: 640px) {
  .order-log-head { padding: 16px; }
  .order-log-rows li { grid-template-columns: 64px minmax(0, 1fr); padding: 14px 16px; }
  .log-detail { grid-column: 2; }
}
.wont { max-width: 640px; display: flex; flex-direction: column; gap: 6px; }
.wont h3 { font-size: 16px; }
.wont p { color: var(--ink-2); }

/* Survey card */
.survey { max-width: 1120px; margin: 0 auto; padding: 0 16px 56px; }
.survey-card { max-width: 760px; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 5vw, 48px); }
.survey-card h2 { font-size: clamp(28px, 4vw, 34px); line-height: 1.1; letter-spacing: -0.01em; }
#survey-form > .muted { margin-top: 10px; }

.progress { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress-track { height: 6px; background: var(--line-soft); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--ink); transition: width 0.2s ease; }

.question { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.question fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.question legend { padding: 0; margin-bottom: 14px; }
.q-head { display: flex; gap: 14px; align-items: baseline; }
label.q-head { margin-bottom: 14px; }
.q-number { font-size: 15px; font-weight: 700; color: var(--muted); min-width: 24px; font-variant-numeric: tabular-nums; }
.q-text { display: flex; flex-direction: column; gap: 2px; }
.q-prompt { font-size: 19px; font-weight: 600; line-height: 1.35; }
.q-hint { font-size: 14px; color: var(--muted); }
.q-body { padding-left: 38px; display: flex; flex-direction: column; gap: 8px; }

.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 8px;
  border: 1.5px solid var(--field); background: var(--white); color: var(--ink);
  font-size: 15px; font-weight: 500; line-height: 1.3; text-align: left; cursor: pointer;
}
.option[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.option .tick { display: none; flex: 0 0 auto; }
.option[aria-pressed="true"] .tick { display: inline-block; }

.text-input {
  width: 100%; max-width: 420px; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--field); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 16px;
}
.other-field { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.other-field label { font-size: 15px; font-weight: 600; }

.phone-field { display: flex; align-items: stretch; width: 100%; max-width: 360px; border: 1.5px solid var(--field); border-radius: 8px; overflow: hidden; background: var(--white); }
.phone-field.invalid { border-color: var(--error); }
.phone-prefix { display: inline-flex; align-items: center; padding: 0 12px; background: var(--counter); color: var(--ink-2); font-weight: 600; border-right: 1.5px solid var(--field); }
.phone-field input { flex: 1 1 auto; min-width: 0; min-height: 46px; border: 0; padding: 12px 14px; background: var(--white); color: var(--ink); font-size: 16px; }
.phone-field input:focus-visible { outline: none; }
.phone-field:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }

.field-error, .form-error { color: var(--error); font-size: 15px; font-weight: 600; }
.form-error { margin-top: 20px; }

.ts-widget { margin-top: 28px; }
.ts-widget:empty { margin-top: 0; }

.submit-row { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

.thanks { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0; }
.thanks h2:focus { outline: none; }
.thanks p { max-width: 560px; font-size: 17px; color: var(--ink-2); }
.thanks p.small { font-size: 15px; font-weight: 600; color: var(--muted); }

.loading { margin-top: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.footer-row a { color: var(--muted); }

/* Privacy page */
.doc { max-width: 720px; padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 18px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.doc h2 { font-size: 20px; margin-top: 12px; }
.doc p, .doc li { font-size: 17px; color: var(--ink-2); }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 520px) {
  .q-body { padding-left: 0; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-fill { transition: none; }
}
