/* Tangent — coming-soon placeholder. Tokens mirror apps/website/styles.css. */

:root {
  --bg: #f7f5f3;
  --surface: #ffffff;
  --ink: #1d1a18;
  --ink-soft: #3f3a36;
  --muted: #6e6762;
  --line: #e3ddd8;
  --accent: #b9253a;
  --accent-text: #b9253a;
  --accent-deep: #8f1c2d;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --surface: #1e1a18;
    --ink: #f5f0ec;
    --ink-soft: #dad2cc;
    --muted: #a69d96;
    --line: #3a332f;
    --accent: #d63a52;
    --accent-text: #f2788a;
    --accent-deep: #b42e44;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* A soft warm light behind everything. */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      700px circle at 50% 30%,
      color-mix(in srgb, var(--accent) 9%, transparent),
      transparent 65%
    ),
    radial-gradient(
      500px circle at 85% 90%,
      color-mix(in srgb, var(--accent) 5%, transparent),
      transparent 60%
    );
}

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 16px 32px;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

/* ------------------------------------------------------------------ mark */

.mark {
  width: 96px;
  height: 96px;
  overflow: visible;
}

.mark-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 6.8;
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  stroke-linecap: round;
  transform: rotate(-45deg);
  transform-origin: 52px 66px;
  animation: draw 1s var(--ease) 0.2s forwards;
}

.mark-heart {
  fill: var(--accent);
  opacity: 0;
  transform: translate(60px, -60px);
  animation: heart-in 0.9s var(--spring) 0.7s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes heart-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ words */

.wordmark {
  margin: 20px 0 40px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 72;
  line-height: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  animation: pulse 2.2s infinite;
  flex: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 88px);
  font-variation-settings:
    'SOFT' 50,
    'opsz' 144;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--accent-text);
}

.lede {
  margin: 28px 0 0;
  max-width: 32em;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Words rise in after the mark settles. */
.wordmark,
.eyebrow,
.display,
.lede,
.interest {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s var(--ease) forwards;
}

.wordmark {
  animation-delay: 1s;
}
.eyebrow {
  animation-delay: 1.15s;
}
.display {
  animation-delay: 1.3s;
}
.lede {
  animation-delay: 1.45s;
}
.interest {
  animation-delay: 1.6s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ interest */

.interest {
  width: 100%;
  max-width: 520px;
  margin-top: 40px;
}

.field {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    0 20px 40px -24px rgba(70, 30, 20, 0.25);
  transition: box-shadow 0.25s var(--ease);
}

.field:focus-within {
  box-shadow:
    0 0 0 2px var(--accent),
    0 20px 40px -24px rgba(70, 30, 20, 0.25);
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  outline: none;
}

.field input::placeholder {
  color: var(--muted);
}

.pill {
  flex: none;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s var(--spring),
    background 0.2s;
}

.pill:hover {
  background: var(--accent-deep);
}

.pill:active {
  transform: scale(0.96);
}

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

.pill:disabled {
  cursor: progress;
  opacity: 0.7;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fine {
  margin: 14px auto 0;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.fine a {
  color: inherit;
}

.fine[data-kind='error'] {
  color: var(--accent-text);
  font-weight: 500;
}

.fine[data-kind='ok'] {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}

/* Signed up: the field folds away and the thank-you takes its place. */
.interest.done .field {
  display: none;
}

.interest.done .fine {
  margin-top: 0;
  animation: rise 0.6s var(--ease);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Phones: the button sits under the field. */
@media (max-width: 520px) {
  .field {
    flex-direction: column;
    border-radius: 28px;
  }

  .field input {
    padding: 14px 16px;
  }
}

/* ------------------------------------------------------------------ footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--muted);
}

.foot a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  .mark-ring,
  .mark-heart,
  .wordmark,
  .eyebrow,
  .display,
  .lede,
  .interest,
  .interest.done .fine {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }

  .dot {
    animation: none;
  }
}
