@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/urbanist-latin.woff2) format('woff2');
}

:root {
  --paper: #F3F1EC;
  --card: #FAF9F5;
  --ink: #0B0B0D;
  --ink-2: rgba(11, 11, 13, .64);
  --ink-3: rgba(11, 11, 13, .46);
  --line: rgba(11, 11, 13, .12);
  --blue: #4A4CF3;
  --violet: #A43EDC;
  --pink: #F53B78;
  --grad: linear-gradient(90deg, #4A4CF3 0%, #A43EDC 50%, #F53B78 100%);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(18px, 5vw, 44px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  font-family: 'Urbanist', system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  /* paper grain: fine speckle so the ground is never a flat colour */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .04 0 0 0 0 .05 0 0 0 -.42 .27'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 70% at 50% 0%, #F7F5F0 0%, rgba(247, 245, 240, 0) 60%),
    radial-gradient(90% 60% at 50% 110%, #ECE9E2 0%, rgba(236, 233, 226, 0) 70%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 12px; }

/* ---------------------------------------------------------------- header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) var(--pad) 0;
  height: 64px; box-sizing: content-box;
  max-width: 1180px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 14px; fill: var(--ink); }
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px 0 11px; border-radius: 99px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 8px rgba(11, 11, 13, .04);
}
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); background-size: 300% 100%; animation: dot 2.4s ease-in-out infinite; }
@keyframes dot { 0%, 100% { transform: scale(1); background-position: 0 0; } 50% { transform: scale(1.35); background-position: 100% 0; } }

/* ---------------------------------------------------------------- hero */
main { display: block; }
.hero { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); text-align: center; }
/* a touch wider than the text column on phones (the view box has drag room around the mark) */
.stage { position: relative; width: min(100vw - 8px, 560px); left: 50%; transform: translateX(-50%); aspect-ratio: 1230 / 760; }
.canvas-dots {
  position: absolute; inset: -6% -10%;
  background-image: radial-gradient(circle, rgba(11, 11, 13, .17) 1px, transparent 1.5px);
  background-size: 20px 20px; background-position: center;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  pointer-events: none;
}
.drop { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; cursor: grab;
  filter: drop-shadow(0 14px 18px rgba(124, 58, 220, .22)) drop-shadow(0 2px 3px rgba(11, 11, 13, .08)); -webkit-user-select: none; user-select: none; }
.drop.grabbing { cursor: grabbing; }
.drop circle { will-change: auto; }

/* design-tool selection box around the logo (positions are fractions of the 1230 x 760 view box) */
.sel {
  position: absolute; left: 17.2%; top: 24.1%; width: 65.5%; height: 51.8%;
  border: 1px solid rgba(164, 62, 220, .55); border-radius: 2px;
  transition: opacity .35s ease; pointer-events: none;
}
.sel i { position: absolute; width: 7px; height: 7px; background: #fff; border: 1px solid var(--violet); border-radius: 1.5px; }
.sel i:nth-child(1) { left: -4px; top: -4px; } .sel i:nth-child(2) { right: -4px; top: -4px; }
.sel i:nth-child(3) { left: -4px; bottom: -4px; } .sel i:nth-child(4) { right: -4px; bottom: -4px; }
.sel-tag {
  position: absolute; left: 50%; top: calc(75.9% + 10px); transform: translateX(-50%);
  height: 22px; padding: 0 9px; border-radius: 6px; display: flex; align-items: center;
  background: var(--violet); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; letter-spacing: .01em;
  transition: opacity .35s ease; pointer-events: none;
}
.stage.dragging .sel, .stage.dragging .sel-tag, .stage.intro .sel, .stage.intro .sel-tag { opacity: 0; }
.tip {
  position: absolute; left: 0; top: 0; z-index: 3;
  height: 26px; padding: 0 10px; border-radius: 8px; display: flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; white-space: nowrap; pointer-events: none;
  font: 600 12px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-variant-numeric: tabular-nums;
  opacity: 0; transform: translate(-9999px, 0); transition: opacity .18s ease;
}
.tip b { font-weight: 600; opacity: .4; }
.stage.dragging .tip { opacity: 1; }

/* ---------------------------------------------------------------- copy + form */
.copy { position: relative; z-index: 2; margin-top: clamp(-8px, -1vw, 0px); }
h1 {
  font-size: clamp(42px, 11.4vw, 92px); line-height: .96; font-weight: 800; letter-spacing: -.045em;
  text-wrap: balance;
}
.lead {
  margin: 14px auto 0; max-width: 32ch;
  font-size: clamp(16.5px, 4.3vw, 20px); line-height: 1.42; font-weight: 500; color: var(--ink-2); letter-spacing: -.005em;
  text-wrap: pretty;
}
.join { margin: clamp(22px, 5vw, 30px) auto 0; max-width: 460px; }
.field {
  position: relative; height: 60px; border-radius: 30px;
  background: #fff; border: 1px solid rgba(11, 11, 13, .14);
  box-shadow: 0 1px 2px rgba(11, 11, 13, .05), 0 10px 30px -12px rgba(74, 76, 243, .22), 0 1px 0 #fff inset;
  transition: border-color .2s ease, box-shadow .3s ease;
}
.field:focus-within { border-color: rgba(164, 62, 220, .55); box-shadow: 0 0 0 4px rgba(164, 62, 220, .12), 0 10px 30px -12px rgba(74, 76, 243, .3); }
.field input[type=email] {
  width: 100%; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 0 150px 0 22px; border-radius: 30px;
  font: 500 17px/1 'Urbanist', system-ui, sans-serif; color: var(--ink); letter-spacing: -.005em;
  transition: opacity .25s ease;
}
.field input::placeholder { color: rgba(11, 11, 13, .38); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.go {
  position: absolute; right: 6px; top: 6px; bottom: 6px; width: 136px;
  border-radius: 24px; background: var(--ink); color: #fff; overflow: hidden;
  font-weight: 700; font-size: 15.5px; letter-spacing: -.005em;
  transition: width .5s var(--spring), background-color .3s ease, transform .15s ease;
}
.go::before { content: ''; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .45s ease; }
.go:active { transform: scale(.97); }
.go-label { position: relative; display: block; transition: opacity .18s ease, transform .3s var(--out); }
.spin { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; opacity: 0; transition: opacity .2s ease; }
.spin .o { transform-origin: 0 0; animation: orbit 1.1s linear infinite; }
.spin .o2 { animation-duration: 1.45s; animation-direction: reverse; }
.spin .o3 { animation-duration: 1.9s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.done-text { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; overflow: visible; }
.done-text text { fill: #fff; font: 700 17px 'Urbanist', system-ui, sans-serif; letter-spacing: -.01em; }

.join[data-state=busy] .go { width: 48px; }
.join[data-state=busy] .go-label { opacity: 0; transform: scale(.8); }
.join[data-state=busy] .spin { opacity: 1; }
.join[data-state=done] .field { border-color: transparent; box-shadow: 0 14px 36px -14px rgba(164, 62, 220, .55); }
.join[data-state=done] input[type=email] { opacity: 0; pointer-events: none; }
.join[data-state=done] .go { width: calc(100% - 12px); cursor: default; }
.join[data-state=done] .go::before { opacity: 1; }
.join[data-state=done] .go-label, .join[data-state=done] .spin { opacity: 0; }
.join[data-state=done] .done-text { opacity: 1; }
.field.shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } 100% { transform: none; } }

.msg { min-height: 22px; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: #C2255C; }
.msg:empty { margin-top: 0; min-height: 0; }
.promise {
  margin-top: 14px; text-wrap: balance;
  font-size: clamp(14.5px, 4vw, 15.5px); font-weight: 700; letter-spacing: -.01em;
}
.promise i { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: var(--grad); vertical-align: 1px; }
.fine { margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.after { margin: 16px auto 0; max-width: 36ch; font-size: 15.5px; line-height: 1.45; font-weight: 500; color: var(--ink-2); }
.again { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.join.instant .go, .join.instant .go::before, .join.instant .done-text, .join.instant input { transition: none; }
.after a { color: var(--ink); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--violet); }
.joined .promise, .joined .fine { display: none; }

/* ---------------------------------------------------------------- taste */
.taste { max-width: 1180px; margin: clamp(72px, 14vw, 128px) auto 0; padding: 0 var(--pad); }
.taste-head { text-align: center; }
h2 { font-size: clamp(30px, 7.6vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.taste-head p { margin-top: 10px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.cards { display: grid; gap: 14px; margin-top: 30px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.card {
  position: relative; display: flex; flex-direction: column;
  min-height: 268px; padding: 18px 18px 16px; border-radius: 26px;
  background: linear-gradient(180deg, #FCFBF8 0%, var(--card) 100%);
  border: 1px solid rgba(11, 11, 13, .09);
  box-shadow: 0 1px 0 #fff inset, 0 1px 2px rgba(11, 11, 13, .04), 0 18px 40px -26px rgba(11, 11, 13, .28);
  cursor: pointer; -webkit-tap-highlight-color: transparent; outline-offset: 4px;
}
.card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; }
.free {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 99px;
  font-size: 12px; font-weight: 700; color: var(--violet); background: rgba(164, 62, 220, .09); white-space: nowrap;
}
.hint { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); text-align: center; }

/* OTP */
.otp { flex: 1; display: grid; place-items: center; padding: 12px 0 4px; }
.otp-svg { width: min(100%, 296px); height: auto; overflow: visible; }
.otp-box { fill: #fff; stroke: rgba(11, 11, 13, .16); stroke-width: 1.5; transition: stroke .3s ease; }
.otp-box.on { stroke: var(--violet); }
.otp-box.ok { stroke: url(#gOtp); stroke-width: 2.5; }
.otp-dig { font: 800 40px 'Urbanist', system-ui, sans-serif; fill: url(#gOtp); }
.otp-caret { fill: var(--ink); }
.otp-ok { font: 700 13px 'Urbanist', system-ui, sans-serif; fill: #138A5B; letter-spacing: .01em; }

/* tabs */
.tabs-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding-top: 8px; }
.tabs {
  position: relative; display: grid; grid-template-columns: repeat(3, auto); width: 100%; max-width: 330px;
  padding: 5px; border-radius: 99px; background: var(--ink);
}
.tabs-goo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tabs-goo rect { fill: url(#gTab); }
.tabs button {
  position: relative; z-index: 1; height: 38px; padding: 0 10px; border-radius: 99px;
  font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .58); letter-spacing: -.01em; transition: color .3s ease;
}
.tabs button[aria-selected=true] { color: #fff; }
.tabs-say { min-height: 22px; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: opacity .2s ease, transform .3s var(--out); }
.tabs-say.out { opacity: 0; transform: translateY(6px); }

/* revenue */
.rev { flex: 1; display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.rev-k { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.rev-num { width: min(100%, 260px); height: auto; overflow: visible; margin-top: -2px; }
.rev-num text { font: 800 60px 'Urbanist', system-ui, sans-serif; letter-spacing: -.04em; fill: var(--ink); }
.bars { display: flex; align-items: flex-end; justify-content: center; gap: 9px; height: 74px; width: 100%; margin-top: 2px; }
.bar { position: relative; width: 22px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar b { display: block; width: 100%; border-radius: 11px; background: var(--grad); background-size: 600% 100%; transform-origin: bottom; height: var(--h, 40%); transition: height .7s var(--spring); }
.bar span { position: absolute; bottom: -18px; font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.bar.peak span { color: var(--ink); }
.rev .bars { margin-bottom: 18px; }

/* ---------------------------------------------------------------- footer */
.foot { max-width: 1180px; margin: clamp(80px, 16vw, 140px) auto 0; padding: 0 var(--pad) max(28px, env(safe-area-inset-bottom)); text-align: center; }
.foot-big { font-size: clamp(26px, 6.4vw, 38px); font-weight: 800; letter-spacing: -.04em; }
.ig {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; height: 52px; padding: 0 22px 0 18px; border-radius: 26px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em;
  box-shadow: 0 12px 26px -14px rgba(11, 11, 13, .6); transition: transform .2s var(--out);
}
.ig:active { transform: scale(.97); }
.ig svg { width: 20px; height: 20px; }
.foot-fine { margin: 56px auto 0; max-width: 52ch; font-size: 12.5px; line-height: 1.5; font-weight: 500; color: var(--ink-3); }

/* ---------------------------------------------------------------- reveal */
.js .rise { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--out), transform .9s var(--out); transition-delay: var(--d, 0s); }
.js .rise.in { opacity: 1; transform: none; }

@media (hover: hover) {
  .go:hover { background-color: #1d1d22; }
  .ig:hover { transform: translateY(-1px); }
  .card:hover { border-color: rgba(164, 62, 220, .28); }
}

@media (max-width: 359px) {
  .go { width: 118px; font-size: 14.5px; }
  .field input[type=email] { padding-right: 130px; padding-left: 18px; }
}

@media (min-width: 860px) {
  .top { height: 76px; }
  .stage { width: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rise { transition: none; opacity: 1; transform: none; }
  .soon-dot { animation: none; }
  .spin .o { animation-duration: 3s; }
  .go, .bar b { transition-duration: .01s; }
}
