/* DressMe waitlist: the app's brand, light, mobile first */
@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/PlayfairDisplay_700Bold.ttf) format("truetype"); }
@font-face { font-family: "Playfair Display"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/PlayfairDisplay_400Regular_Italic.ttf) format("truetype"); }
@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url(fonts/Jost_400Regular.ttf) format("truetype"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url(fonts/Jost_500Medium.ttf) format("truetype"); }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url(fonts/Jost_600SemiBold.ttf) format("truetype"); }

:root {
  --wine: #950000; --wine-deep: #6E0000; --blush: #FFBDBD; --tint: #FFE6E6; --ground: #FFF9F9; --ox: #3C0000; --ink: #2A0707;
  --muted: #7A5656; --line: #F2D6D6; --white: #fff;
  --display: "Playfair Display", Georgia, serif; --ui: "Jost", "Segoe UI", system-ui, sans-serif;
  --r: 24px; --gutter: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--wine); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 8px; }

/* soft light, like the deck */
.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .6; }
.glow i:nth-child(1) { width: 520px; height: 520px; left: -200px; top: -180px; background: #FFE1E1; }
.glow i:nth-child(2) { width: 460px; height: 460px; right: -220px; top: 38%; background: #FFD7D7; }
.glow i:nth-child(3) { width: 320px; height: 320px; left: 20%; bottom: -160px; background: #FFF0E6; }

.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }
header.bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wine); font: 700 22px/1 var(--display); letter-spacing: .02em; }
.brand small { font-size: .8em; }
.brand svg { width: 30px; height: 30px; }
.bar .tag { font: 500 13px/1 var(--ui); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* hero */
.hero { display: grid; gap: 8px; padding: 18px 0 36px; text-align: center; }
.hero figure { margin: 0 auto; width: min(340px, 78vw); aspect-ratio: 1; position: relative; }
.hero figure img { width: 100%; height: 100%; object-fit: contain; animation: float 6s ease-in-out infinite; }
.kicker { font: 600 13px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }
h1 { font: italic 400 clamp(40px, 11vw, 76px)/1.08 var(--display); color: var(--wine); margin: 10px 0 0; letter-spacing: -.01em; }
.lead { font-size: clamp(18px, 4.6vw, 21px); line-height: 1.55; color: var(--ox); max-width: 620px; margin: 14px auto 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border-radius: 99px; border: 0;
  background: var(--wine); color: #fff; font: 600 17px/1 var(--ui); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  box-shadow: 0 18px 36px -18px rgba(149,0,0,.6); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(149,0,0,.7); }
.btn:active { transform: translateY(0); background: var(--wine-deep); }
.btn.ghost { background: transparent; color: var(--wine); box-shadow: inset 0 0 0 2px var(--wine); }
.hero .btn { justify-self: center; margin-top: 22px; }

/* three things */
.points { display: grid; gap: 14px; padding: 8px 0 40px; }
.point { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; background: rgba(255,255,255,.85); border: 1.5px solid var(--line);
  border-radius: var(--r); padding: 20px; box-shadow: 0 26px 50px -40px rgba(149,0,0,.45); }
.point .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--tint); display: grid; place-items: center; }
.point .ic svg { width: 26px; height: 26px; }
.point h3 { font: 700 22px/1.2 var(--display); margin: 2px 0 4px; }
.point p { margin: 0; color: var(--ox); font-size: 16px; }

/* offer */
.offer { position: relative; overflow: hidden; border-radius: 30px; background: var(--wine); color: #fff; padding: 30px 24px; text-align: center; margin: 4px 0 34px; }
.offer::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -170px; border-radius: 50%; background: rgba(255,189,189,.18); }
.offer .kicker { color: var(--blush); }
.offer .big { font: 700 clamp(46px, 13vw, 64px)/1 var(--display); margin: 12px 0 6px; }
.offer p { margin: 0 auto; max-width: 460px; color: #FFE6E6; font-size: 17px; }

/* form */
.join { background: rgba(255,255,255,.92); border: 1.5px solid var(--line); border-radius: 30px; padding: 26px 22px; box-shadow: 0 40px 80px -50px rgba(60,0,0,.4); }
.join h2 { font: 700 clamp(28px, 7.4vw, 36px)/1.15 var(--display); margin: 0 0 6px; }
.join > p { margin: 0 0 18px; color: var(--muted); }
label.f { display: block; font: 600 14px/1.3 var(--ui); color: var(--ox); margin: 16px 0 8px; }
input[type=email] { width: 100%; min-height: 54px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--ground); padding: 0 16px;
  font: 400 17px/1 var(--ui); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input[type=email]:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px rgba(149,0,0,.12); }
input[type=email]:user-invalid { border-color: #B3262E; }
.err { display: none; color: #9B1C22; font-size: 14px; margin-top: 6px; }
input:user-invalid ~ .err { display: block; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font: 600 14px/1.3 var(--ui); color: var(--ox); margin: 18px 0 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line);
  background: #fff; font: 500 15px/1 var(--ui); color: var(--ox); cursor: pointer; transition: all .2s; }
.chips input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--wine); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: center; margin: 18px 0 4px; font-size: 16px; color: var(--ox); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--wine); flex: none; }
.join .btn { width: 100%; margin-top: 22px; }
.btn[aria-busy=true] { pointer-events: none; opacity: .85; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.btn[aria-busy=true] .spin { display: block; }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; text-align: center; }

footer { padding: 40px 0 34px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.6; }
footer .slogan { font: italic 400 22px/1.3 var(--display); color: var(--wine); margin-bottom: 10px; }

/* success */
.done { min-height: 78svh; display: grid; place-items: center; text-align: center; padding: 20px 0 10px; }
.done .mark { width: 150px; margin: 0 auto 10px; transform-origin: 50% 13%; animation: swing 2.4s cubic-bezier(.3,.6,.4,1) both; }
.done h1 { font-style: normal; font-weight: 700; color: var(--ink); }
.done .card { margin: 26px auto 0; max-width: 460px; background: rgba(255,255,255,.92); border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; }
.done .card b { color: var(--wine); }
.done .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; background: var(--tint); color: var(--wine); font: 600 14px/1 var(--ui); }
.thread { position: fixed; top: -20px; width: 10px; height: 10px; border-radius: 3px; pointer-events: none; animation: fall linear forwards; z-index: 5; }

/* motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes swing { 0% { transform: translateY(-60px) rotate(-14deg); opacity: 0; } 30% { opacity: 1; } 45% { transform: translateY(0) rotate(9deg); } 65% { transform: rotate(-5deg); } 82% { transform: rotate(2deg); } 100% { transform: none; } }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* larger screens */
@media (min-width: 760px) {
  body { font-size: 18px; }
  .hero { grid-template-columns: 1.05fr .95fr; text-align: left; align-items: center; padding: 30px 0 60px; gap: 30px; }
  .hero figure { order: 2; width: 100%; max-width: 440px; }
  .hero .lead { margin-left: 0; }
  .hero .btn { justify-self: start; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 56px; }
  .point { grid-template-columns: 1fr; padding: 26px; }
  .split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: stretch; }
  .offer { margin: 0; display: grid; align-content: center; padding: 40px 34px; text-align: left; }
  .offer p { margin: 0; }
  .join { padding: 34px; }
  .bar .tag { display: inline; }
}
@media (max-width: 420px) { .bar .tag { display: none; } }
