/* SwoopDay holding site. Tokens follow DESIGN.md ("The Pastel Shelf"). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --action: #7a4fd6;
  --ink: #2b2a40;
  --muted: #6c6a80;
  --bg: #fbf6fa;
  --line: #ece4ef;
  --night: #f1eafc;
  --sky: #e8f1fd;
  --lavender: #f0ebfd;
  --hold: #d9cffb;
  --hold-ink: #2b2160;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --action: #b79bff;
    --ink: #ece9f7;
    --muted: #a9a5c0;
    --bg: #17152a;
    --line: #38345a;
    --night: #1e1a36;
    --sky: #1f2f4a;
    --lavender: #2f2759;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--hold);
  color: var(--hold-ink);
}

a {
  color: var(--action);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 6px;
}

.brand {
  margin: 0;
  font: 800 1.375rem/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--action);
  text-decoration: none;
}

.pill-soft {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--action);
  font: 600 0.9375rem/1 var(--body);
  text-decoration: none;
}

h1 {
  margin: 0;
  font: 800 clamp(3.25rem, 11vw, 6.5rem) / 0.95 var(--display);
  letter-spacing: -0.045em;
}
h1 em {
  font-style: normal;
  color: var(--action);
}

/* Cover (home) */
.cover {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.cover-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 16px;
}
.cover-sub {
  max-width: 30rem;
  margin: 0;
  font-size: 1.1875rem;
  color: var(--muted);
}
.cover-foot {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 28px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.cover-foot p {
  margin: 0 0 8px;
}
.cover-foot nav,
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

/* Cover motion: headline rises in, the swoop draws under "smarter", soft shapes drift behind. */
.cover {
  position: relative;
  overflow-x: hidden;
}
.cover-main,
.cover-foot {
  position: relative;
  z-index: 1;
}
.word {
  display: inline-block;
}

.rise {
  opacity: 0;
  transform: translateY(0.45em);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms) forwards;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  max-width: calc(100vw - 32px);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 1.1s ease;
}
.ghost.is-on {
  opacity: 1;
}
.ghost-line {
  max-width: 20ch;
  margin: 0;
  font: 700 clamp(1.5rem, 3.2vw, 2.6rem) / 1.15 var(--display);
  letter-spacing: -0.025em;
  color: var(--ink);
  opacity: var(--ghost-ink);
}
.ghost-caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--action);
  border-radius: 2px;
  opacity: 0;
}
.ghost.is-typing .ghost-caret {
  opacity: 1;
}
.ghost-catch {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 0;
  font: 500 0.875rem/1.3 var(--body);
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ghost.show-catch .ghost-catch {
  opacity: var(--ghost-catch);
  transform: none;
}
.ghost-dot {
  align-self: center;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f7d4f;
}
.ghost-label {
  color: var(--muted);
}
.ghost-price {
  font: 800 1.375rem/1 var(--display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ghost-was {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
:root {
  --ghost-ink: 0.2;
  --ghost-catch: 0.5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ghost-ink: 0.16;
    --ghost-catch: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ghost,
  .ghost-catch {
    transition: none;
  }
}
/* Soft circles drifting slowly behind everything. */
.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: var(--orb-op);
  will-change: transform;
}
.orb-a {
  top: -14vmax;
  right: -10vmax;
  width: 44vmax;
  height: 44vmax;
  background: var(--orb-a);
  animation: drift-a 13s ease-in-out infinite alternate;
}
.orb-b {
  bottom: -18vmax;
  right: 14vmax;
  width: 38vmax;
  height: 38vmax;
  background: var(--orb-b);
  animation: drift-b 15s ease-in-out infinite alternate;
}
.orb-c {
  bottom: -20vmax;
  left: -14vmax;
  width: 34vmax;
  height: 34vmax;
  background: var(--orb-c);
  animation: drift-c 12s ease-in-out infinite alternate;
}
@keyframes drift-a {
  50% {
    transform: translate(-16vmax, 12vmax) scale(1.2);
  }
  to {
    transform: translate(-5vmax, 24vmax) scale(0.9);
  }
}
@keyframes drift-b {
  50% {
    transform: translate(-20vmax, -10vmax) scale(0.85);
  }
  to {
    transform: translate(-6vmax, -20vmax) scale(1.15);
  }
}
@keyframes drift-c {
  50% {
    transform: translate(16vmax, -12vmax) scale(1.2);
  }
  to {
    transform: translate(26vmax, 2vmax) scale(0.88);
  }
}
:root {
  --orb-a: #ddd0fb;
  --orb-b: #fbd8e7;
  --orb-c: #d6e6fb;
  --orb-op: 0.75;
}
@media (prefers-color-scheme: dark) {
  :root {
    --orb-a: #3a2a86;
    --orb-b: #4e2148;
    --orb-c: #1c3766;
    --orb-op: 0.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Legal pages */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.bar {
  background: var(--night);
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.bar .pill-soft {
  height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
}
.legal {
  max-width: 44rem;
  padding: 48px 0 56px;
}
.legal h1 {
  font-size: clamp(2.5rem, 7vw, 3.75rem);
}
.legal .updated {
  margin: 12px 0 28px;
  color: var(--muted);
}
.legal h2 {
  margin: 32px 0 10px;
  font: 750 1.5rem/1.1 var(--display);
  letter-spacing: -0.02em;
}
.legal p,
.legal li {
  line-height: 1.6;
}
.legal ul {
  padding-left: 1.2rem;
}
.legal li {
  margin-bottom: 8px;
}
.note {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--sky);
}
.foot {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.foot p {
  margin: 0 0 12px;
  max-width: 60rem;
}
