/* Cyfr coming soon page.
   Values are carried over verbatim from the Claude Design prototype in
   project/Cyfr Coming Soon.dc.html, so this file is the pixel reference. */

:root {
  --purple: #1e1033;
  --purple-band: #1a0d2c;
  --purple-deep: #150a26;
  --cream: #f8e7c0;
  --cream-78: rgba(248, 231, 192, 0.78);
  --cream-70: rgba(248, 231, 192, 0.7);
  --cream-68: rgba(248, 231, 192, 0.68);
  --cream-62: rgba(248, 231, 192, 0.62);
  --cream-55: rgba(248, 231, 192, 0.55);
  --cream-line: rgba(248, 231, 192, 0.34);
  --cream-rule: rgba(248, 231, 192, 0.22);
  --cream-hair: rgba(248, 231, 192, 0.12);
  --pink: #ff4696;
  --gutter: clamp(24px, 5vw, 72px);
  --shell: 1180px;
}

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

/* Panels below set their own display, which would otherwise beat the attribute. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--purple);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: Switzer, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--cream);
}

a { color: var(--cream); }
a:hover { color: var(--pink); }

input::placeholder { color: var(--cream-55); }

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

/* Layout shell ---------------------------------------------------------- */

.page {
  position: relative;
  /* svh rather than vh so mobile browser chrome does not cause a jump, and
     capped so the hero does not stretch into a void on a tall display. */
  min-height: min(100svh, 960px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--purple);
  color: var(--cream);
}

.drift {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 62% 12%, rgba(255, 70, 150, 0.15), transparent 44%),
    radial-gradient(circle at 10% 84%, rgba(248, 231, 192, 0.06), transparent 50%);
  animation: cyfrDrift 42s ease-in-out infinite alternate;
  pointer-events: none;
}

.network {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 680px;
  pointer-events: none;
  opacity: 0.42;
  mask-image: radial-gradient(88% 108% at 96% 34%, #000 0%, rgba(0, 0, 0, 0.7) 26%, rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0.08) 72%, transparent 88%);
  -webkit-mask-image: radial-gradient(88% 108% at 96% 34%, #000 0%, rgba(0, 0, 0, 0.7) 26%, rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0.08) 72%, transparent 88%);
}

@keyframes cyfrDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2.5%, -2%) scale(1.05); }
}

@keyframes cyfrBlink {
  0%, 45%   { opacity: 1; }
  55%, 100% { opacity: 0.15; }
}

/* Header ---------------------------------------------------------------- */

.header {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px var(--gutter) 0;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  font-size: 33px;
  letter-spacing: -0.02em;
}

.wordmark-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--cream);
}

.header-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px clamp(16px, 3vw, 28px);
}

.tagline {
  font-size: 14px;
  color: var(--cream-70);
}

.signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid var(--cream-line);
  border-radius: 3px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.signin:hover,
.signin:focus-visible {
  background: var(--cream);
  color: var(--purple-deep);
  border-color: var(--cream);
}

/* Hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) var(--gutter) clamp(56px, 8vw, 88px);
  /* centred in whatever room is left, so any spare height sits evenly above
     and below rather than all of it falling underneath the copy */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  margin: 0 0 28px;
  font-weight: 700;
  font-size: clamp(42px, 5.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 24ch;
  text-wrap: pretty;
}

.hero .lead {
  margin: 0 0 16px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.58;
  color: var(--cream-78);
  max-width: 44ch;
}

.hero .sub {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--cream-68);
  max-width: 44ch;
}

/* Capture band ---------------------------------------------------------- */

.capture {
  position: relative;
  border-top: 1px solid var(--cream-rule);
  border-bottom: 1px solid var(--cream-rule);
  background: var(--purple-band);
}

.capture-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  padding: 26px var(--gutter);
}

.capture-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
}

/* Sits on the first line when the label wraps, rather than between the two. */
.capture-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--pink);
  animation: cyfrBlink 2.8s steps(1, end) infinite;
}

.capture-note {
  font-size: 14px;
  color: var(--cream-62);
  margin-top: 5px;
  padding-left: 17px;
}

.capture-slot {
  flex: 1;
  min-width: 320px;
  max-width: 460px;
}

/* Step one: email */

.signup {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--cream-line);
  border-radius: 3px;
  background: var(--purple);
}

.signup:focus-within { border-color: var(--cream-70); }

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--cream);
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.signup button {
  padding: 14px 24px;
  margin: -1px;
  border: none;
  border-radius: 3px;
  background: var(--pink);
  color: var(--purple-deep);
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms ease;
}

.signup button:hover,
.signup button:focus-visible { background: var(--cream); }

.signup button[disabled] {
  cursor: default;
  opacity: 0.6;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Step two: the optional detail */

.details,
.done { animation: cyfrRise 320ms ease both; }

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

.details-confirm {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pink);
}

.details-prompt {
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream-62);
}

.details-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.details-form input,
.details-form select {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--cream-line);
  border-radius: 3px;
  background: var(--purple);
  color: var(--cream);
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.details-form input:focus,
.details-form select:focus { border-color: var(--cream-70); }

.details-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--cream-62) 50%), linear-gradient(135deg, var(--cream-62) 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* `.is-empty` is toggled in waitlist.js so the placeholder option reads as one. */
.details-form select.is-empty { color: var(--cream-55); }

.details-form option { background: var(--purple); color: var(--cream); }

.details-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2px;
}

.details-actions button[type="submit"] {
  padding: 11px 20px;
  border: none;
  border-radius: 3px;
  background: var(--pink);
  color: var(--purple-deep);
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.details-actions button[type="submit"]:hover,
.details-actions button[type="submit"]:focus-visible { background: var(--cream); }

.details-actions button[disabled] { cursor: default; opacity: 0.6; }

.details-skip {
  padding: 0;
  border: none;
  background: none;
  color: var(--cream-62);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--cream-rule);
}

.details-skip:hover { color: var(--cream); }

.done-note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream-62);
}

.form-error {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--pink);
}

/* Features -------------------------------------------------------------- */

.features {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px clamp(32px, 4vw, 56px);
  padding: clamp(48px, 6vw, 56px) var(--gutter) clamp(56px, 7vw, 64px);
}

.feature-title {
  display: block;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.feature-body {
  font-size: 16px;
  line-height: 1.58;
  color: var(--cream-68);
}

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

.footer {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px var(--gutter) 26px;
  border-top: 1px solid var(--cream-hair);
  font-size: 13px;
  color: var(--cream-62);
}

/* Narrow screens -------------------------------------------------------- */

@media (max-width: 400px) {
  .signup button { padding: 14px 18px; }
}

@media (max-width: 640px) {
  .capture-slot { min-width: 0; }
  .details-row { grid-template-columns: 1fr; }
  .header { padding-top: 32px; }
  /* Wordmark on its own line, then the tagline and button share the next one. */
  .header-end { flex: 1 0 100%; justify-content: space-between; }
}

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