:root {
  color-scheme: light;
  --ink: #17242f;
  --muted: #667078;
  --paper: #f6f1e8;
  --paper-deep: #e9dfcf;
  --white: #fffdf9;
  --navy: #183a4a;
  --navy-bright: #255b70;
  --coral: #ed765f;
  --coral-dark: #c94f3f;
  --coral-soft: #f9ddd7;
  --sage: #dce7dd;
  --sage-ink: #36543c;
  --line: rgba(23, 36, 47, 0.14);
  --shadow: 0 20px 60px rgba(43, 43, 35, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

/* Author display rules can otherwise override the browser's hidden state. */
[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(237, 118, 95, 0.11), transparent 27rem),
    radial-gradient(circle at 88% 22%, rgba(37, 91, 112, 0.1), transparent 30rem),
    var(--paper);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(37, 91, 112, 0.28);
  outline-offset: 3px;
}

a {
  color: inherit;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.access-pill,
.eyebrow,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.access-pill {
  padding: 8px 12px;
  color: var(--sage-ink);
  background: var(--sage);
}

.header-link {
  font-size: 0.9rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

#app {
  min-height: calc(100vh - 170px);
}

#app:focus {
  outline: none;
}

.hero,
.page-shell,
.collector-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding: clamp(76px, 10vw, 140px) 0 100px;
}

.eyebrow {
  color: var(--coral-dark);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero h1 em {
  color: var(--coral-dark);
  font-weight: 500;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.legal-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 100px) 0 100px;
}

.legal-heading {
  max-width: 790px;
  margin-bottom: 52px;
}

.legal-heading h1 {
  margin: 18px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.legal-heading > p:not(.legal-effective) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal-effective {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.72);
}

.legal-nav a {
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.legal-content {
  min-width: 0;
}

.legal-content section {
  scroll-margin-top: 24px;
}

.legal-content section + section {
  margin-top: 42px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.legal-content h3 {
  margin: 26px 0 9px;
  font-size: 1rem;
}

.legal-content p,
.legal-content li {
  color: #4f5b63;
  line-height: 1.72;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  display: grid;
  gap: 11px;
  padding-left: 22px;
}

.legal-content strong {
  color: var(--ink);
}

.legal-content a {
  color: var(--navy-bright);
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-summary {
  padding: 28px;
  border: 1px solid #b9d1bd;
  border-radius: var(--radius-md);
  background: var(--sage);
}

.legal-summary h2 {
  margin-bottom: 10px;
}

.legal-summary p:last-child {
  margin-bottom: 0;
  color: var(--sage-ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.actions-center {
  justify-content: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 760;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  color: white;
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(24, 58, 74, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: var(--navy-bright);
  box-shadow: 0 14px 30px rgba(24, 58, 74, 0.22);
}

.button-coral {
  color: white;
  background: var(--coral-dark);
}

.button-support {
  border-color: rgba(201, 79, 63, 0.22);
  color: var(--coral-dark);
  background: rgba(255, 253, 249, 0.7);
}

.button-support:hover:not(:disabled) {
  background: var(--coral-soft);
  box-shadow: 0 10px 24px rgba(201, 79, 63, 0.12);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 253, 249, 0.66);
}

.button-quiet {
  min-height: 42px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
}

.button-danger {
  color: #8b3028;
  background: #f9ddd7;
}

.button-delete {
  border-color: rgba(139, 48, 40, 0.28);
  color: #8b3028;
  background: transparent;
}

.button-delete:hover {
  border-color: rgba(139, 48, 40, 0.5);
  background: #f9ddd7;
}

.hero-proof {
  display: grid;
  gap: 15px;
  padding: 32px;
  border: 1px solid rgba(23, 36, 47, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.proof-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proof-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.status-chip {
  padding: 7px 10px;
  color: var(--sage-ink);
  background: var(--sage);
}

.status-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b8a59;
}

.proof-folder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px dashed rgba(23, 36, 47, 0.24);
  border-radius: var(--radius-sm);
  color: var(--navy-bright);
  background: var(--paper);
  font-weight: 700;
}

.proof-folder span {
  color: var(--coral);
  font-size: 1.05rem;
}

.proof-files {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-files li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  min-height: 47px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.proof-files li:first-child {
  border-top: 0;
}

.proof-files b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  font-size: 0.62rem;
}

.proof-files .folder-file {
  color: var(--sage-ink);
  background: var(--sage);
}

.proof-files .text-file {
  color: var(--navy-bright);
  background: rgba(37, 91, 112, 0.12);
  font-weight: 800;
}

.proof-files .nested-file {
  margin-left: 34px;
}

.proof-files code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
}

.promise-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.42);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.promise {
  padding: 34px clamp(20px, 4vw, 50px);
  border-right: 1px solid var(--line);
}

.promise:first-child {
  padding-left: 0;
}

.promise:last-child {
  border-right: 0;
}

.promise strong {
  display: block;
  margin-bottom: 7px;
}

.promise span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.page-shell {
  padding: 54px 0 96px;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.page-heading h1 {
  margin: 8px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
}

.connection-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 15px 18px;
  border: 1px solid #e5c88e;
  border-radius: var(--radius-sm);
  color: #68522a;
  background: #fff1cb;
  font-size: 0.9rem;
  line-height: 1.5;
}

.connection-banner::before {
  content: "i";
  display: grid;
  flex: 0 0 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #a98238;
  font-family: Georgia, serif;
  font-weight: 700;
}

.connection-banner.connected-banner {
  border-color: #b9d1bd;
  color: var(--sage-ink);
  background: var(--sage);
}

.connection-banner.connected-banner::before {
  content: "✓";
  background: #4b8a59;
  font-family: inherit;
}

.dashboard-shell {
  min-height: calc(100vh - 170px);
}

.dashboard-heading {
  align-items: center;
}

.dashboard-top-actions {
  flex-wrap: nowrap;
  margin-top: 0;
}

.collector-list {
  display: grid;
  gap: 16px;
}

.collector-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 9px 30px rgba(43, 43, 35, 0.05);
}

.collector-list-card.is-paused {
  background: rgba(255, 253, 249, 0.52);
}

.collector-list-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 7px;
}

.collector-list-title-row h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.status-paused {
  color: #68522a;
  background: #fff1cb;
}

.status-paused::before {
  background: #a98238;
}

.collector-link {
  color: var(--navy-bright);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.collector-share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.collector-share-row .copy-link {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.8rem;
}

.collector-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.collector-stats strong {
  color: var(--ink);
}

.collector-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.collector-card-actions .button {
  min-height: 42px;
  padding: 0 15px;
}

.dashboard-empty {
  margin: 80px auto 0;
}

.dashboard-empty h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 30px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 12px 40px rgba(43, 43, 35, 0.07);
}

.form-panel {
  padding: clamp(24px, 4vw, 42px);
}

.form-section + .form-section {
  margin-top: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.section-title-row h2,
.form-section > h2 {
  margin: 0 0 18px;
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.section-title-row h2 {
  margin: 0;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.field:last-child {
  margin-bottom: 0;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.optional-label {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-label {
  font-size: 0.88rem;
  font-weight: 730;
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(23, 36, 47, 0.18);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--white);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input,
select {
  min-height: 49px;
  padding: 0 14px;
}

textarea {
  min-height: 110px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--navy-bright);
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 91, 112, 0.09);
}

.slug-field {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(23, 36, 47, 0.18);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.slug-field:focus-within {
  border-color: var(--navy-bright);
  box-shadow: 0 0 0 4px rgba(37, 91, 112, 0.09);
}

.slug-prefix {
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.slug-field input {
  min-width: 120px;
  border: 0;
  box-shadow: none;
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
}

.question-number {
  display: grid;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #8b3028;
  background: #f9ddd7;
  font-size: 1.2rem;
}

.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.toggle-copy strong,
.toggle-copy span {
  display: block;
}

.toggle-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.switch {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #bdc1c1;
  transition: background 160ms ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}

.switch input:checked + .switch-track {
  background: var(--navy-bright);
}

.switch input:checked + .switch-track::after {
  transform: translateX(20px);
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid rgba(37, 91, 112, 0.28);
  outline-offset: 3px;
}

.dropbox-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid #b7c6ee;
  border-radius: var(--radius-md);
  background: #edf3ff;
}

.dropbox-copy {
  display: flex;
  align-items: center;
  gap: 13px;
}

.dropbox-logo {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 2px;
  transform: rotate(45deg);
}

.dropbox-logo span {
  width: 10px;
  height: 10px;
  background: #0061ff;
}

.dropbox-copy strong,
.dropbox-copy small {
  display: block;
}

.dropbox-copy small {
  margin-top: 4px;
  color: #51617b;
}

.builder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 34px;
}

.preview-panel {
  position: sticky;
  top: 28px;
  overflow: hidden;
}

.preview-label {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-body {
  min-height: 500px;
  padding: 46px 32px;
  background:
    radial-gradient(circle at 80% 15%, rgba(237, 118, 95, 0.16), transparent 13rem),
    var(--white);
}

.preview-question-count {
  color: var(--coral-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

.preview-body h2 {
  margin: 15px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.preview-body p {
  color: var(--muted);
  line-height: 1.6;
}

.preview-url {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--navy-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  word-break: break-all;
}

.collector-shell {
  display: grid;
  min-height: calc(100vh - 170px);
  place-items: center;
  padding: 50px 0 84px;
}

.collector-page-stack {
  display: grid;
  width: min(760px, 100%);
  gap: 16px;
}

.recording-page-stack {
  width: min(1180px, 100%);
}

.organizer-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid #b9d1bd;
  border-radius: var(--radius-md);
  color: var(--sage-ink);
  background: var(--sage);
}

.organizer-preview-bar strong,
.organizer-preview-bar span {
  display: block;
}

.organizer-preview-bar span {
  margin-top: 3px;
  font-size: 0.82rem;
}

.organizer-preview-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.organizer-preview-actions .button {
  min-height: 42px;
  padding: 0 15px;
}

.collector-card {
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.collector-card-recording {
  width: 100%;
}

.collector-card-recording .collector-content {
  padding: clamp(24px, 3vw, 38px);
}

.recording-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(430px, 1.28fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.recording-copy {
  min-width: 0;
}

.recording-copy .collector-kicker {
  margin-bottom: 12px;
}

.recording-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
}

.recording-copy .collector-lead {
  font-size: 0.92rem;
  line-height: 1.55;
}

.recording-media {
  min-width: 0;
}

.recording-media .camera-stage {
  margin: 0 0 12px;
}

.recording-support {
  display: grid;
  gap: 10px;
}

.collector-progress {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  appearance: none;
  background: var(--paper-deep);
}

.collector-progress::-webkit-progress-bar {
  background: var(--paper-deep);
}

.collector-progress::-webkit-progress-value {
  background: var(--coral);
  transition: width 300ms ease;
}

.collector-progress::-moz-progress-bar {
  background: var(--coral);
}

.collector-content {
  padding: clamp(30px, 6vw, 64px);
}

.collector-kicker {
  margin-bottom: 18px;
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collector-content h1,
.collector-content h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.048em;
  line-height: 1.05;
}

.collector-content h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.collector-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.collector-lead {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

.privacy-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.8rem;
}

.privacy-line::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid var(--sage-ink);
  border-radius: 50%;
}

.welcome-expectations {
  display: grid;
  gap: 11px;
  margin: 30px 0 4px;
}

.welcome-expectations > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.welcome-expectations > div > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.welcome-expectations p,
.welcome-expectations strong,
.welcome-expectations small {
  display: block;
  margin: 0;
}

.welcome-expectations strong {
  font-size: 0.9rem;
}

.welcome-expectations small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.collector-legal-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.collector-legal-note a {
  color: var(--navy-bright);
  font-weight: 700;
  text-underline-offset: 3px;
}

.why-we-ask,
.recording-help {
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.why-we-ask summary,
.recording-help summary {
  padding: 13px 15px;
  cursor: pointer;
  color: var(--navy-bright);
  font-size: 0.82rem;
  font-weight: 780;
}

.why-we-ask p {
  margin: 0;
  padding: 0 15px 15px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.camera-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 24px 0 18px;
  border-radius: var(--radius-md);
  background: #10171c;
  box-shadow: 0 0 0 0 rgba(237, 118, 95, 0);
  transition: box-shadow 180ms ease;
}

.camera-stage.is-recording {
  box-shadow: 0 0 0 4px var(--coral);
}

.camera-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-stage video.playback {
  object-fit: contain;
  transform: none;
}

.framing-guide {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(to right, transparent 33.2%, rgba(255, 255, 255, 0.8) 33.2%, rgba(255, 255, 255, 0.8) 33.5%, transparent 33.5%, transparent 66.5%, rgba(255, 255, 255, 0.8) 66.5%, rgba(255, 255, 255, 0.8) 66.8%, transparent 66.8%),
    linear-gradient(to bottom, transparent 33.2%, rgba(255, 255, 255, 0.8) 33.2%, rgba(255, 255, 255, 0.8) 33.5%, transparent 33.5%, transparent 66.5%, rgba(255, 255, 255, 0.8) 66.5%, rgba(255, 255, 255, 0.8) 66.8%, transparent 66.8%);
}

.framing-guide span {
  position: absolute;
  top: 30%;
  right: 32%;
  left: 32%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.camera-placeholder,
.orientation-blocker,
.countdown-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: #d9e0e3;
  text-align: center;
}

.countdown-overlay {
  z-index: 4;
  background: rgba(10, 16, 20, 0.68);
  backdrop-filter: blur(3px);
}

.countdown-overlay span,
.countdown-overlay strong {
  display: block;
}

.countdown-overlay span {
  margin-bottom: 4px;
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.countdown-overlay strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6rem, 18vw, 10rem);
  font-weight: 500;
  line-height: 0.9;
}

.camera-placeholder-inner {
  max-width: 400px;
}

.camera-icon {
  display: grid;
  width: 66px;
  height: 48px;
  place-items: center;
  margin: 0 auto 16px;
  border: 3px solid #d9e0e3;
  border-radius: 12px;
}

.camera-icon::before {
  content: "";
  width: 19px;
  height: 19px;
  border: 3px solid #d9e0e3;
  border-radius: 50%;
}

.orientation-blocker {
  z-index: 3;
  background: rgba(16, 23, 28, 0.94);
}

.orientation-phone {
  width: 70px;
  height: 112px;
  margin: 0 auto 20px;
  border: 4px solid white;
  border-radius: 13px;
  animation: turn-phone 1.8s ease-in-out infinite;
}

@keyframes turn-phone {
  0%, 25% { transform: rotate(0); }
  60%, 100% { transform: rotate(90deg); }
}

.recording-hud {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(12, 15, 18, 0.78);
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  font-weight: 760;
}

.recording-hud::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5648;
  animation: pulse 1s ease-in-out infinite;
}

.recording-hud time {
  font: inherit;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

.recorder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.recorder-actions-top {
  justify-content: flex-start;
  margin: 22px 0 14px;
}

.recording-copy .recorder-actions-top .button {
  width: 100%;
}

.mic-meter-compact {
  margin: 14px 0;
}

.device-settings {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.device-settings summary {
  padding: 12px 14px;
  cursor: pointer;
  color: var(--navy-bright);
  font-size: 0.78rem;
  font-weight: 780;
}

.device-settings .device-panel {
  margin: 0 10px 10px;
  padding: 10px;
  background: var(--white);
}

.device-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.device-panel label,
.mic-meter-wrap {
  display: grid;
  gap: 6px;
}

.device-panel label > span,
.mic-meter-wrap > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.device-panel select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(23, 36, 47, 0.16);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 0.84rem;
}

.mic-meter-wrap {
  grid-column: 1 / -1;
}

.mic-meter {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 36, 47, 0.12);
}

.mic-meter i {
  display: block;
  width: 3%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4b8a59 0%, #78a952 70%, #d69a3b 100%);
  transition: width 80ms linear;
}

.recording-help {
  margin-top: 0;
}

.recording-help ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0 20px 16px 34px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.upload-status {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #b9d1bd;
  border-radius: var(--radius-sm);
  background: var(--sage);
}

.upload-status > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--sage-ink);
  font-size: 0.78rem;
}

.upload-status progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: rgba(54, 84, 60, 0.14);
}

.upload-status progress::-webkit-progress-bar {
  background: rgba(54, 84, 60, 0.14);
}

.upload-status progress::-webkit-progress-value,
.upload-status progress::-moz-progress-bar {
  background: #4b8a59;
}

.recorder-note,
.error-box,
.success-box {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  line-height: 1.5;
}

.recorder-note {
  color: var(--muted);
  background: var(--paper);
}

.error-box {
  color: #7f2d25;
  background: #f9ddd7;
}

.success-box {
  color: var(--sage-ink);
  background: var(--sage);
}

.empty-state {
  width: min(680px, 100%);
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow);
}

.empty-state h1 {
  margin-bottom: 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 500;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.footer-identity {
  display: grid;
  gap: 7px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

.footer-support {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(201, 79, 63, 0.22);
  border-radius: 999px;
  color: var(--coral-dark);
  background: rgba(255, 253, 249, 0.68);
  font-weight: 760;
  text-decoration: none;
}

.footer-support:hover {
  background: var(--coral-soft);
}

.footer-note {
  text-align: right;
}

.notice-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 90px rgba(17, 27, 34, 0.3);
}

.delete-collector-dialog {
  max-width: 520px;
}

.delete-dialog-content {
  padding: 38px;
}

.delete-warning-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a53c32;
  font-size: 1.25rem;
  font-weight: 850;
}

.delete-dialog-content h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.delete-dialog-content p {
  color: var(--muted);
  line-height: 1.55;
}

.delete-warning-copy {
  color: #8b3028 !important;
  font-weight: 800;
}

.delete-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}

.notice-dialog::backdrop {
  background: rgba(20, 27, 31, 0.5);
  backdrop-filter: blur(5px);
}

#dialog-content {
  padding: 42px;
}

#dialog-content h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

#dialog-content p {
  color: var(--muted);
  line-height: 1.6;
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  background: var(--paper);
  font-size: 1.35rem;
}

@media (max-width: 860px) {
  .hero,
  .builder-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 70px;
  }

  .hero-proof {
    transform: none;
  }

  .preview-panel {
    position: static;
  }

  .collector-list-card {
    grid-template-columns: 1fr;
  }

  .collector-card-actions {
    justify-content: flex-start;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .promise,
  .promise:first-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .promise:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  .recording-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .identity-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-header,
  .hero,
  .page-shell,
  .collector-shell,
  .legal-shell,
  .site-footer,
  .promise-grid {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 66px;
  }

  .access-pill,
  .header-link {
    display: none;
  }

  .hero {
    gap: 44px;
    padding: 54px 0 70px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.7rem);
  }

  .legal-shell {
    padding-top: 48px;
  }

  .legal-heading {
    margin-bottom: 38px;
  }

  .legal-heading h1 {
    font-size: clamp(2.8rem, 14vw, 4.3rem);
  }

  .legal-nav {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    padding: 22px;
  }

  .page-shell {
    padding-top: 36px;
  }

  .page-heading {
    display: block;
  }

  .dashboard-top-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    margin-top: 24px;
  }

  .dashboard-top-actions .button,
  .collector-card-actions .button {
    width: 100%;
    min-height: 50px;
  }

  .collector-list-card {
    padding: 22px;
  }

  .collector-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .delete-dialog-content {
    padding: 28px 22px;
  }

  .delete-dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .delete-dialog-actions .button {
    width: 100%;
  }

  .collector-share-row,
  .organizer-preview-bar,
  .organizer-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .collector-share-row .button,
  .organizer-preview-actions .button {
    width: 100%;
    min-height: 50px;
  }

  .device-panel {
    grid-template-columns: 1fr;
  }

  .mic-meter-wrap {
    grid-column: auto;
  }

  .device-panel select {
    min-height: 46px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .form-panel,
  .collector-content {
    padding: 25px;
  }

  .dropbox-card,
  .toggle-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .builder-actions,
  .recorder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-actions .button,
  .recorder-actions .button {
    width: 100%;
  }

  .question-row {
    grid-template-columns: 29px 1fr auto;
    gap: 7px;
  }

  .question-number {
    height: 29px;
  }

  .slug-prefix {
    display: none;
  }

  .camera-stage {
    margin-right: -13px;
    margin-left: -13px;
    border-radius: 13px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 25px 0;
  }

  .footer-links {
    gap: 10px 15px;
  }

  .footer-note {
    text-align: left;
  }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 1000px) {
  body.collector-recording-active {
    min-height: 100dvh;
    overflow: hidden;
  }

  body.collector-recording-active .site-header,
  body.collector-recording-active .site-footer,
  body.collector-recording-active .organizer-preview-bar {
    display: none;
  }

  body.collector-recording-active #app {
    height: 100dvh;
  }

  body.collector-recording-active .collector-shell {
    width: 100%;
    min-height: 100dvh;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .recording-page-stack {
    width: 100%;
    height: 100%;
    gap: 0;
  }

  .collector-card-recording {
    height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    border-radius: 18px;
  }

  .collector-card-recording .collector-content {
    height: calc(100% - 5px);
    padding: 12px 14px;
  }

  .recording-layout {
    height: 100%;
    grid-template-columns: minmax(185px, 0.62fr) minmax(0, 1.38fr);
    gap: 14px;
  }

  .recording-copy {
    max-height: 100%;
    overflow: auto;
    padding-right: 3px;
  }

  .recording-copy .collector-kicker {
    margin-bottom: 7px;
    font-size: 0.65rem;
  }

  .recording-copy h2 {
    margin-bottom: 8px;
    font-size: clamp(1.35rem, 3.8vw, 2rem);
    line-height: 1;
  }

  .recording-copy .collector-lead {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .recording-copy .recorder-actions-top {
    margin: 9px 0;
  }

  .recording-copy .recorder-actions-top .button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .mic-meter-compact {
    margin: 9px 0;
  }

  .mic-meter-compact > span {
    font-size: 0.62rem;
  }

  .device-settings {
    margin-top: 8px;
  }

  .device-settings summary {
    padding: 9px 10px;
    font-size: 0.7rem;
  }

  .device-settings .device-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 7px 7px;
    padding: 7px;
  }

  .device-panel select {
    min-height: 38px;
    font-size: 0.72rem;
  }

  .recording-media .camera-stage {
    height: clamp(180px, calc(100dvh - 101px), 500px);
    margin: 0 0 8px;
    border-radius: 13px;
    aspect-ratio: auto;
  }

  .camera-placeholder,
  .orientation-blocker,
  .countdown-overlay {
    padding: 14px;
  }

  .camera-placeholder-inner p {
    margin-bottom: 0;
    font-size: 0.75rem;
  }

  .camera-icon {
    width: 48px;
    height: 35px;
    margin-bottom: 9px;
  }

  .orientation-phone {
    width: 48px;
    height: 77px;
    margin-bottom: 12px;
  }

  .recording-support {
    grid-template-columns: minmax(110px, 0.4fr) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .recording-help summary {
    padding: 9px 10px;
    font-size: 0.7rem;
  }

  .recording-help ul {
    max-height: 150px;
    overflow: auto;
    gap: 4px;
    padding: 0 12px 10px 25px;
    font-size: 0.68rem;
  }

  .recording-support .recorder-note {
    margin: 0;
    padding: 8px 10px;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .recording-copy .error-box {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
