:root {
  --white: #fff;
  --ink: #171717;
  --ink-2: #242424;
  --grey-50: #f8f8f8;
  --grey-100: #f0f0f0;
  --grey-200: #e3e3e3;
  --grey-300: #cecece;
  --grey-500: #808080;
  --grey-700: #4a4a4a;
  --error: #b42318;
  --line: 1px solid var(--ink);
  --ease: cubic-bezier(.2,.75,.2,1);
  --page-x: clamp(18px, 4.25vw, 70px);
}

* { box-sizing: border-box; }
html { min-width: 320px; height: 100%; background: var(--white); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
body { margin: 0; height: 100%; overflow: hidden; background: var(--white); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { border-radius: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #a9a9a9; outline-offset: 2px; }
.honeypot { position: absolute !important; left: -9999px !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-shell {
  height: 100vh;
  height: 100dvh;
  padding: 0 var(--page-x) max(env(safe-area-inset-bottom), 0px);
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 36px;
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--line);
  min-width: 0;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.075em;
  transform: scaleX(.95);
  transform-origin: left center;
}

.header-domain { margin: 0; color: var(--grey-700); font-size: 10px; font-weight: 800; letter-spacing: .18em; }

.main-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .82fr);
  gap: clamp(42px, 7vw, 120px);
  align-items: center;
  padding: clamp(22px, 4vh, 48px) 0;
}

.brand-stage {
  min-width: 0;
  height: 100%;
  max-height: 680px;
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 4vw, 70px);
}

.sculpt-logo { display: block; width: 100%; max-width: 300px; max-height: min(58vh, 580px); object-fit: contain; }
.hero-copy { min-width: 0; }
.eyebrow, .step-kicker, .legal-kicker { margin: 0; color: var(--grey-700); font-size: 10px; font-weight: 800; letter-spacing: .2em; line-height: 1.35; }
.hero-copy h1 { margin: 16px 0 0; font-size: clamp(58px, 6.2vw, 108px); font-weight: 950; font-style: italic; letter-spacing: -.075em; line-height: .86; text-transform: uppercase; }
.hero-description { max-width: 470px; margin: 22px 0 0; color: var(--grey-700); font-size: clamp(13px, 1vw, 16px); line-height: 1.55; }

.signup-panel {
  width: 100%;
  max-height: 100%;
  padding: clamp(24px, 3.5vw, 46px);
  background: var(--white);
  border: var(--line);
  box-shadow: 12px 12px 0 var(--grey-200);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.panel-topline { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(24px, 3.5vh, 40px); }
.panel-step { color: var(--grey-500); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.panel-step.is-active { color: var(--ink); }
.panel-rule { width: 36px; height: 1px; background: var(--grey-300); }
.form-step { display: none; }
.form-step.is-active { display: block; animation: reveal .34s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-heading { margin-bottom: clamp(22px, 3.2vh, 34px); }
.step-heading h2, .success-step h2 { margin: 11px 0 0; font-size: clamp(40px, 4.2vw, 64px); font-weight: 950; font-style: italic; letter-spacing: -.065em; line-height: .9; }

.role-stack { display: grid; gap: 10px; }
.role-button {
  position: relative;
  width: 100%;
  min-height: 116px;
  padding: 18px 58px 18px 18px;
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  text-align: left;
  border: var(--line);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s ease;
}
.role-button--dark { color: var(--white); background: var(--ink); }
.role-button--light { color: var(--ink); background: var(--grey-100); }
.role-button:hover { transform: translateY(-3px); box-shadow: 0 5px 0 var(--grey-300); }
.role-button:active { transform: none; box-shadow: none; }
.role-index { align-self: start; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.role-content { min-width: 0; display: grid; gap: 6px; }
.role-content strong { font-size: clamp(30px, 3vw, 46px); font-weight: 950; font-style: italic; letter-spacing: -.055em; line-height: .9; }
.role-content small { max-width: 320px; opacity: .66; font-size: 11px; line-height: 1.35; }
.role-arrow { position: absolute; top: 18px; right: 18px; font-size: 20px; }

.details-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 18px; }
.back-button { padding: 0; color: var(--grey-700); background: transparent; border: 0; font-size: 9px; font-weight: 800; letter-spacing: .16em; cursor: pointer; }
.selected-role { margin: 0; color: var(--grey-700); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.step-heading--details { margin-bottom: 20px; }
.step-heading--details h2 { font-size: clamp(34px, 3.8vw, 54px); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-group label { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.field-group input { width: 100%; height: 50px; padding: 0 13px; color: var(--ink); background: var(--white); border: var(--line); outline: 0; font-size: 13px; font-weight: 700; }
.field-group input::placeholder { color: var(--grey-500); font-size: 9px; letter-spacing: .08em; }
.field-group input:focus { box-shadow: 4px 4px 0 var(--grey-200); }
.field-group input.is-invalid { border-color: var(--error); }
.field-error { min-height: 13px; margin: 4px 0 0; color: var(--error); font-size: 10px; }

.consent-list { margin: 8px 0 0; padding: 0; border: 0; display: grid; gap: 7px; }
.consent-row { position: relative; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 3px; color: var(--grey-700); font-size: 10.5px; line-height: 1.35; }
.consent-row input { position: absolute; opacity: 0; pointer-events: none; }
.consent-row label { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.consent-row--marketing label { flex: 1; }
.custom-check { width: 15px; height: 15px; flex: 0 0 15px; margin-top: -1px; display: inline-grid; place-items: center; border: 1px solid var(--ink); background: var(--white); }
.consent-row input:checked + label .custom-check { background: var(--ink); }
.consent-row input:checked + label .custom-check::after { content: "✓"; color: var(--white); font-size: 10px; font-weight: 900; }
.consent-row input:focus-visible + label .custom-check { outline: 3px solid #a9a9a9; outline-offset: 2px; }
.consent-row.is-invalid .custom-check { border-color: var(--error); }
.legal-link, .inline-legal-link { padding: 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid currentColor; font: inherit; font-weight: 800; cursor: pointer; }
.form-error { min-height: 15px; margin: 8px 0 0; color: var(--error); font-size: 10px; }
.submit-button { width: 100%; min-height: 54px; margin-top: 8px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: var(--white); background: var(--ink); border: var(--line); font-size: 11px; font-weight: 900; letter-spacing: .14em; cursor: pointer; }
.submit-button:hover { background: var(--ink-2); }
.submit-button:disabled { opacity: .62; cursor: wait; }
.success-step { padding: clamp(28px, 5vh, 70px) 0; }
.success-icon { width: 38px; height: 38px; margin-bottom: 20px; display: grid; place-items: center; background: var(--grey-200); border: var(--line); font-weight: 900; }
.success-step p:last-child { max-width: 380px; margin: 20px 0 0; color: var(--grey-700); font-size: 14px; line-height: 1.5; }

.site-footer { min-width: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; border-top: var(--line); color: var(--grey-700); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.site-footer > span:last-child { text-align: right; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer button { padding: 0; color: inherit; background: transparent; border: 0; font-size: inherit; font-weight: inherit; letter-spacing: inherit; cursor: pointer; }
.site-footer button:hover { color: var(--ink); }

.legal-dialog { width: min(920px, calc(100vw - 28px)); max-width: none; height: min(820px, calc(100dvh - 28px)); max-height: none; margin: auto; padding: 0; color: var(--ink); background: transparent; border: 0; overflow: visible; }
.legal-dialog::backdrop { background: rgba(15,15,15,.72); backdrop-filter: blur(3px); }
.legal-container { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; background: var(--white); border: var(--line); box-shadow: 12px 12px 0 rgba(210,210,210,.55); }
.legal-header { min-height: 110px; padding: 22px 26px; display: flex; justify-content: space-between; gap: 22px; border-bottom: var(--line); }
.legal-header h2 { margin: 8px 0 5px; font-size: clamp(28px, 4vw, 48px); font-weight: 950; font-style: italic; letter-spacing: -.055em; line-height: .92; }
.legal-header p:last-child { margin: 0; color: var(--grey-700); font-size: 10px; font-weight: 700; }
.dialog-close { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--ink); background: var(--grey-100); border: var(--line); font-size: 26px; line-height: 1; cursor: pointer; }
.legal-body { overflow-y: auto; overscroll-behavior: contain; padding: 26px clamp(24px, 5vw, 60px) 34px; scrollbar-width: thin; }
.legal-body p, .legal-body li { color: #3f3f3f; font-size: 13px; line-height: 1.62; }
.legal-body > p:first-child { margin-top: 0; color: var(--ink); font-size: 14px; }
.legal-body h3 { margin: 27px 0 8px; color: var(--ink); font-size: 13px; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; }
.legal-body ul { margin: 8px 0 0; padding-left: 20px; }
.legal-body a { font-weight: 800; }
.legal-footer { min-height: 64px; padding: 10px 16px; display: flex; justify-content: flex-end; align-items: center; border-top: var(--line); }
.legal-footer button { min-width: 170px; height: 42px; color: var(--white); background: var(--ink); border: var(--line); font-size: 10px; font-weight: 900; letter-spacing: .14em; cursor: pointer; }

@media (max-width: 1080px) {
  .main-grid { grid-template-columns: minmax(0, .9fr) minmax(390px, 1fr); gap: 34px; }
  .brand-stage { grid-template-columns: minmax(110px, .32fr) minmax(0,1fr); gap: 28px; }
  .hero-copy h1 { font-size: clamp(48px, 6vw, 76px); }
}

@media (max-width: 820px) {
  .site-shell { grid-template-rows: 52px minmax(0,1fr) 30px; }
  .header-domain { font-size: 8px; }
  .main-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); gap: 14px; padding: 14px 0 12px; }
  .brand-stage { height: auto; display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 18px; align-items: center; }
  .sculpt-logo { width: 82px; max-height: 120px; }
  .eyebrow { font-size: 8px; }
  .hero-copy h1 { margin-top: 7px; font-size: clamp(34px, 9.5vw, 52px); line-height: .9; }
  .hero-description { display: none; }
  .signup-panel { height: 100%; padding: 20px; box-shadow: 8px 8px 0 var(--grey-200); }
  .panel-topline { margin-bottom: 18px; }
  .step-heading { margin-bottom: 18px; }
  .step-heading h2, .success-step h2 { font-size: clamp(34px, 9vw, 48px); }
  .role-button { min-height: 92px; padding-top: 14px; padding-bottom: 14px; }
  .role-content strong { font-size: clamp(28px, 8vw, 38px); }
  .role-content small { font-size: 10px; }
  .step-heading--details { margin-bottom: 14px; }
  .step-heading--details h2 { font-size: clamp(30px, 8vw, 42px); }
  .field-group input { height: 46px; }
  .site-footer { font-size: 7px; }
}

@media (max-width: 560px) {
  :root { --page-x: 14px; }
  .wordmark { font-size: 23px; }
  .header-domain { letter-spacing: .12em; }
  .main-grid { gap: 10px; padding-top: 10px; }
  .brand-stage { grid-template-columns: 64px minmax(0,1fr); gap: 14px; }
  .sculpt-logo { width: 64px; max-height: 92px; }
  .hero-copy h1 { font-size: clamp(30px, 9.2vw, 42px); }
  .signup-panel { padding: 16px; box-shadow: 6px 6px 0 var(--grey-200); }
  .panel-topline { margin-bottom: 13px; }
  .step-heading h2 { font-size: clamp(32px, 9.5vw, 43px); }
  .role-stack { gap: 8px; }
  .role-button { min-height: 82px; grid-template-columns: 23px minmax(0,1fr); gap: 10px; padding: 12px 48px 12px 12px; }
  .role-content strong { font-size: clamp(27px, 8.4vw, 36px); }
  .role-content small { max-width: 250px; font-size: 9px; }
  .role-arrow { top: 12px; right: 13px; }
  .details-header { margin-bottom: 10px; }
  .field-grid { grid-template-columns: 1fr; gap: 3px; }
  .field-group label { margin-bottom: 4px; }
  .field-group input { height: 42px; }
  .field-error { min-height: 11px; margin-top: 2px; }
  .consent-list { margin-top: 4px; gap: 5px; }
  .consent-row { font-size: 9.5px; }
  .custom-check { width: 14px; height: 14px; flex-basis: 14px; }
  .form-error { min-height: 12px; margin-top: 5px; }
  .submit-button { min-height: 46px; margin-top: 5px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > span:last-child { display: none; }
  .legal-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .legal-header { min-height: 92px; padding: 16px; }
  .legal-header h2 { font-size: 28px; }
  .legal-body { padding: 20px 18px 28px; }
  .legal-body p, .legal-body li { font-size: 12px; }
  .legal-footer { min-height: 56px; }
  .legal-footer button { width: 100%; }
}

@media (max-height: 720px) and (min-width: 821px) {
  .site-shell { grid-template-rows: 54px minmax(0,1fr) 30px; }
  .main-grid { padding: 18px 0; }
  .signup-panel { padding: 24px 28px; }
  .panel-topline { margin-bottom: 18px; }
  .step-heading { margin-bottom: 18px; }
  .role-button { min-height: 95px; }
  .hero-copy h1 { font-size: clamp(48px, 5.4vw, 76px); }
}

@media (max-height: 640px) and (max-width: 820px) {
  .site-shell { grid-template-rows: 46px minmax(0,1fr) 26px; }
  .main-grid { grid-template-rows: 58px minmax(0,1fr); padding: 6px 0; gap: 7px; }
  .brand-stage { grid-template-columns: 46px minmax(0,1fr); gap: 10px; }
  .sculpt-logo { width: 46px; max-height: 58px; }
  .eyebrow { display: none; }
  .hero-copy h1 { margin: 0; font-size: 28px; line-height: .9; }
  .signup-panel { padding: 12px 14px; }
  .panel-topline { margin-bottom: 8px; }
  .step-heading { margin-bottom: 9px; }
  .step-heading h2 { font-size: 30px; }
  .role-button { min-height: 66px; }
  .role-content strong { font-size: 27px; }
  .role-content small { display: none; }
  .details-header { margin-bottom: 5px; }
  .step-heading--details { margin-bottom: 7px; }
  .step-heading--details h2 { font-size: 28px; }
  .field-group input { height: 38px; }
  .consent-row { font-size: 8.7px; line-height: 1.25; }
  .submit-button { min-height: 40px; }
}

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

/* Compact landscape treatment: keeps both signup steps visible without page or panel scrolling. */
@media (orientation: landscape) and (max-height: 500px) {
  .site-shell { grid-template-rows: 42px minmax(0,1fr) 24px; }
  .site-header { min-height: 0; }
  .wordmark { font-size: 22px; }
  .header-domain { font-size: 7px; }
  .main-grid { grid-template-columns: minmax(0,.9fr) minmax(390px,1fr); gap: 22px; padding: 6px 0; }
  .brand-stage { grid-template-columns: 62px minmax(0,1fr); gap: 16px; }
  .sculpt-logo { width: 62px; max-height: 110px; }
  .eyebrow, .hero-description { display: none; }
  .hero-copy h1 { margin: 0; font-size: clamp(32px, 5.2vw, 48px); line-height: .86; }
  .signup-panel { height: 100%; padding: 10px 12px; overflow: hidden; box-shadow: 5px 5px 0 var(--grey-200); }
  .panel-topline { display: none; }
  .step-heading { margin-bottom: 7px; }
  .step-kicker { font-size: 7px; }
  .step-heading h2, .success-step h2 { margin-top: 4px; font-size: 27px; line-height: .88; }
  .role-stack { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .role-button { min-height: 118px; padding: 10px 28px 10px 10px; grid-template-columns: 18px minmax(0,1fr); gap: 7px; }
  .role-index { font-size: 7px; }
  .role-content strong { font-size: clamp(24px, 3vw, 31px); }
  .role-content small { font-size: 8px; line-height: 1.25; }
  .role-arrow { top: 9px; right: 9px; font-size: 16px; }
  .details-header { margin: 0 0 3px; }
  .back-button, .selected-role { font-size: 7px; }
  .step-heading--details { margin-bottom: 5px; }
  .step-heading--details .step-kicker { display: none; }
  .step-heading--details h2 { margin-top: 0; font-size: 25px; }
  .field-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .field-group label { margin-bottom: 3px; font-size: 7px; }
  .field-group input { height: 34px; padding: 0 9px; font-size: 10px; }
  .field-group input::placeholder { font-size: 7px; }
  .field-error { min-height: 8px; margin-top: 1px; font-size: 7px; }
  .consent-list { margin-top: 1px; gap: 2px; }
  .consent-row { gap: 2px; font-size: 7.2px; line-height: 1.18; }
  .consent-row label { gap: 5px; }
  .custom-check { width: 11px; height: 11px; flex-basis: 11px; margin-top: 0; }
  .consent-row input:checked + label .custom-check::after { font-size: 8px; }
  .form-error { min-height: 8px; margin-top: 2px; font-size: 7px; }
  .submit-button { min-height: 34px; margin-top: 2px; padding: 0 10px; font-size: 8px; }
  .success-step { padding: 28px 0; }
  .site-footer { font-size: 6px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .main-grid {
    grid-template-rows: minmax(0,1fr);
    grid-template-columns: minmax(100px, .42fr) minmax(0, 1fr);
  }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 700px) {
  :root { --page-x: 10px; }
  .main-grid { gap: 10px; }
  .brand-stage { grid-template-columns: 40px minmax(0,1fr); gap: 8px; }
  .sculpt-logo { width: 40px; max-height: 72px; }
  .hero-copy h1 { font-size: clamp(23px, 5vw, 30px); }
  .signup-panel { padding: 8px 10px; }
  .role-button { min-height: 105px; }
}

/* Google Apps Script submission target */
.submission-frame {
  position: fixed;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}
