/* OUTWILL — local signup preview, v3 candidate.
   System fonts only, no remote assets. Draft visual proposal, not a locked identity. */

:root {
  --paper: #f2f1ed;
  --white: #ffffff;
  --ink: #0e0f11;
  --ink-2: #3d4045;
  --ink-3: #5b5f65;
  --line: #cfcfc9;
  --field-border: #8a8e94;
  --graphite: #17191c;
  --graphite-2: #222428;
  --error: #a1231b;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --pad-x: clamp(20px, 5vw, 72px);
  --pad-y: clamp(20px, 3.2vh, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
p,
fieldset {
  margin: 0;
}

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

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

/* ---------- Page frame ---------- */

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

.column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--pad-y) var(--pad-x);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

.wordmark {
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.36em;
  margin-right: -0.36em; /* optical: trailing tracking */
}

.stage {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.stage__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #7d8186, #eef0f2, #50545a, #fbfbfb, #8a8e94, #7d8186);
  box-shadow: 0 0 0 1px rgba(14, 15, 17, 0.25);
}

/* ---------- Main ---------- */

.main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  padding-block: clamp(24px, 5vh, 56px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lead {
  max-width: 34ch;
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.45;
  color: var(--ink-2);
}

/* ---------- Form ---------- */

.form {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin-top: clamp(24px, 4vh, 36px);
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.field__input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--field-border);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
}

.field__input::placeholder {
  color: #6b6f75;
  opacity: 1;
}

.field__input:focus-visible {
  border-color: var(--ink);
  outline-offset: 2px;
}

.field__input[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.field__hint {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
}

.field__error {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--error);
}

.field__error--check {
  margin-top: -8px;
  padding-left: 34px;
}

.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.check__box {
  width: 22px;
  height: 22px;
  margin: 11px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.check__box[aria-invalid="true"] {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

.check__label {
  min-height: 44px;
  padding-block: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  cursor: pointer;
}

.sms__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.sms__sign {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease;
}

.sms__toggle[aria-expanded="true"] .sms__sign {
  transform: rotate(45deg);
}

.sms__optional {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sms__fields {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 6px 0 0;
  padding: 4px 0 0 16px;
  border: 0;
  border-left: 1px solid var(--line);
}

.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit:hover {
  background: #2a2c30;
}

.submit[aria-disabled="true"] {
  background: #3a3d42;
  cursor: progress;
}

/* ---------- Status ---------- */

.status {
  max-width: 440px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Kept rendered (not display:none) so screen readers track the live region. */
.status:empty {
  margin: 0;
}

.status[data-state="error"] {
  color: var(--error);
  font-weight: 500;
}

.status[data-state="success"] {
  margin-top: clamp(24px, 4vh, 36px);
  padding: 18px 20px;
  border-left: 3px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
}

.status[data-state="success"]:focus {
  outline: none;
}

/* ---------- Footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

.foot__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.foot__note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.privacy {
  flex: 1 1 100%;
}

.privacy__summary {
  display: list-item;
  padding-block: 12px;
  color: var(--ink);
  cursor: pointer;
}

.privacy__body {
  display: grid;
  gap: 8px;
  max-width: 62ch;
  padding-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ---------- Material study (decorative) ---------- */

.material {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(200px, 56vw, 340px);
  background:
    radial-gradient(80% 60% at 70% 12%, rgba(64, 68, 75, 0.85) 0%, rgba(34, 36, 40, 0) 65%),
    linear-gradient(180deg, var(--graphite-2) 0%, var(--graphite) 55%, #0f1012 100%);
}

.material__film {
  position: absolute;
  inset: 14% 12% 26% 12%;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, rgba(0, 0, 0, 0.03) 1px 3px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 22%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(98deg,
      #5d6167 0%, #c9ccd0 7%, #f7f8f8 11%, #8f9399 18%, #3f4348 26%,
      #a9adb2 34%, #eef0f1 40%, #7b7f85 49%, #2f3236 57%, #b7babf 66%,
      #fafafa 71%, #8a8e94 79%, #4a4e53 88%, #c4c7cb 95%, #6f7378 100%);
  box-shadow:
    0 50px 90px -35px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  -webkit-box-reflect: below 3px linear-gradient(transparent 72%, rgba(255, 255, 255, 0.16));
}

.material__film::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, 0) 0 38%, rgba(255, 255, 255, 0.28) 44%, rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.18) 68%, rgba(0, 0, 0, 0) 74%);
}

.material__caption {
  position: absolute;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(14px, 2.4vw, 28px);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.4;
  color: #a3a7ad;
}

/* ---------- Desktop ---------- */

@media (min-width: 960px) {
  .page {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .column {
    min-height: 100vh;
    min-height: 100svh;
  }

  .material {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }

  .material__film {
    inset: 13% 17% 22% 17%;
  }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .main > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .main > :nth-child(2) { animation-delay: 0.04s; }
  .main > :nth-child(3) { animation-delay: 0.08s; }
  .main > :nth-child(4) { animation-delay: 0.12s; }

  .material__film {
    animation: fade 1s ease 0.1s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Forced colors ---------- */

@media (forced-colors: active) {
  .material {
    display: none;
  }

  .submit,
  .sms__sign {
    border: 1px solid ButtonText;
  }
}
.honeypot{position:absolute;width:1px;height:1px;overflow:hidden;left:-9999px}.manage-link{color:var(--ink,#101114);font-size:14px}#manage-link{margin:14px 0;line-height:1.5}button[aria-disabled="true"]{opacity:.6;pointer-events:none}
