/* The holding page for handcuffsports.com. Same look as the product: navy, bordered panels, condensed
   uppercase headlines, one gold accent. One idea per screen. */
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/barlow-condensed-800.woff2") format("woff2"); }

:root {
  --bg: #0b0f1a; --panel: #131a2b; --panel2: #1a2338; --line: #232d45;
  --ink: #eef1f8; --muted: #9aa5bf; --accent: #f5b921; --win: #3ecf8e; --loss: #f0686a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.display { font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; margin: 0; text-wrap: balance; }
.line { display: block; }
.gold { color: var(--accent); }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.fine a { text-decoration: underline; text-underline-offset: 2px; }
.fine a:hover { color: var(--ink); }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.mark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 26px; }
.mark .display { letter-spacing: 0.03em; line-height: 1; }
.rings { width: 38px; height: 26px; display: block; }
.ghost { font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px; transition: border-color 0.2s; }
.ghost:hover { border-color: var(--accent); }

/* 1. Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; padding-top: 28px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(54px, 13.5vw, 104px); }
.lede { margin: 22px 0 0; font-size: clamp(17px, 2.3vw, 20px); color: var(--muted); max-width: 520px; }
#notify { margin-top: 30px; max-width: 520px; scroll-margin-top: 24px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; padding-top: 44px; padding-bottom: 104px; }
  .hero h1 { font-size: clamp(56px, min(5.8vw, 12.5vh), 88px); }
}

/* The sign-up box */
.signup { display: flex; gap: 8px; padding: 6px; background: var(--panel); border: 1px solid #4a5677; border-radius: 12px; transition: border-color 0.2s; }
.signup:focus-within { border-color: var(--accent); }
.signup input[type="email"] { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 17px; padding: 10px 12px; border-radius: 8px; }
.signup input[type="email"]::placeholder { color: #7d88a6; }
.signup input[type="email"]:focus { outline: none; }
.signup button { flex: none; background: var(--accent); color: var(--bg); border: 0; border-radius: 8px; padding: 10px 18px; font-size: 24px; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.signup button:hover { background: var(--ink); transform: translateY(-1px); }
.signup button[disabled] { opacity: 0.6; cursor: default; transform: none; }
.signup.bad { border-color: var(--loss); }
.status { margin: 10px 0 0; min-height: 0; font-size: 14px; color: var(--loss); }
.status:empty { margin: 0; }
.status a { color: var(--ink); }

/* After signing up */
.joined { background: var(--panel); border: 1px solid var(--accent); border-radius: 12px; padding: 18px 18px 16px; text-align: left; }
.joined:focus { outline: none; }
.joined .done { font-size: 34px; display: flex; align-items: center; gap: 10px; }
.tick { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--bg); font: 800 17px/1 -apple-system, "Helvetica Neue", Arial, sans-serif; animation: punch 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
.ask { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ask p { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { background: var(--panel2); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 15px; cursor: pointer; transition: border-color 0.2s; }
.chips button:hover { border-color: var(--accent); }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.chips button[aria-disabled="true"] { cursor: default; }
.chips button[aria-disabled="true"]:not([aria-pressed="true"]) { opacity: 0.45; }

/* The email service's own "are you a person" check, when it asks for one */
.veil { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(7, 10, 18, 0.86); }
.veil-box { width: min(100%, 460px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.veil-box iframe { width: 100%; height: min(70vh, 520px); border: 0; border-radius: 8px; background: #fff; }
.veil-close { align-self: flex-end; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.veil-close:hover { color: var(--ink); border-color: var(--accent); }

/* The video */
.hero-video { display: flex; justify-content: center; }
.screen { position: relative; width: min(100%, 340px); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #070a12; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(35, 45, 69, 0.35); }
.screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Before it plays: a big gold button in the middle, with rings spreading out from it, over a dimmed still. */
.play { position: absolute; inset: 0; width: 100%; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; color: var(--ink); font: inherit; cursor: pointer; background: radial-gradient(circle at 50% 50%, rgba(7, 10, 18, 0.74), rgba(7, 10, 18, 0.78)); }
.play .big { display: flex; flex-direction: column; align-items: center; text-align: center; }
.disc { position: relative; width: 104px; height: 104px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); transition: transform 0.2s; }
.disc svg { width: 60px; height: 60px; position: relative; }
.disc::before, .disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--accent); animation: ping 2s cubic-bezier(0.2, 0.6, 0.3, 1) 2 both; opacity: 0; }
.play:hover .disc::before, .play:focus-visible .disc::before { animation: ping-again 2s cubic-bezier(0.2, 0.6, 0.3, 1) 1 both; }
.disc::after { animation-delay: 1s; }
@keyframes ping-again { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
.play:hover .disc { transform: scale(1.06); }
.say { margin-top: 30px; font-size: 38px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8); }
.how { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.screen.playing .play { display: none; }
@media (min-width: 900px) { .screen { width: min(100%, 372px); } }

/* 2. What a league gets */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(19, 26, 43, 0.55), rgba(19, 26, 43, 0)); padding: 72px 0 80px; }
.band h2, .last h2 { font-size: clamp(42px, 9.5vw, 76px); }
.sub { margin: 16px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 600px; }
.grid { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px 22px; transition: border-color 0.25s, transform 0.25s; }
.card:hover { border-color: rgba(245, 185, 33, 0.6); transform: translateY(-2px); }
.card svg { width: 40px; height: 40px; display: block; margin-bottom: 18px; }
.card h3 { font-size: clamp(32px, 6vw, 42px); }
.card p { margin: 10px 0 0; color: var(--muted); }

/* 3. The same ask again */
.last { text-align: center; padding-top: 84px; padding-bottom: 96px; }
.rings.big { width: 132px; height: 91px; margin: 0 auto 22px; }
.last .sub { margin-left: auto; margin-right: auto; }
.last .signup { max-width: 520px; margin: 28px auto 0; text-align: left; }
.last .joined { max-width: 520px; margin: 28px auto 0; }

/* Foot */
.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.tm { font: 700 0.42em/1 -apple-system, "Helvetica Neue", Arial, sans-serif; vertical-align: 0.9em; margin-left: 1px; color: var(--muted); }
.foot .small { font-size: 24px; letter-spacing: 0.03em; }
.socials { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 6px 0 0 -8px; font-size: 15px; }
.socials a { text-decoration: none; color: var(--muted); padding: 11px 8px; min-width: 44px; text-align: center; }
.socials a:hover { color: var(--accent); }
.socials:empty { display: none; }

/* The privacy page */
.plain { max-width: 680px; padding-top: 28px; padding-bottom: 80px; }
.plain h1 { font-size: clamp(44px, 9vw, 68px); margin-bottom: 8px; }
.plain h2 { font: 700 13px/1.3 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 34px 0 8px; }
.plain p, .plain li { color: #c9d0e2; }
.plain ul { padding-left: 20px; }
.plain a { text-decoration: underline; text-underline-offset: 2px; }

/* --- Motion. One story: the two rings link up. Everything else stays quiet. --- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.rise { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ring-draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 0.85s cubic-bezier(0.6, 0, 0.2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes punch { 0% { transform: scale(2.2) rotate(-18deg); opacity: 0; } 60% { transform: scale(0.9) rotate(4deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes clickshut { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.06); } 60% { transform: scale(0.985); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(245, 185, 33, 0)); } 30% { filter: drop-shadow(0 0 26px rgba(245, 185, 33, 0.95)); } }

/* Things rise into place as you reach them. Only switched on once the script is running (html.anim),
   so nothing is ever hidden if it isn't. */
.anim [data-reveal] { transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.anim [data-reveal]:not([data-shown]) { opacity: 0; transform: translateY(18px); }
/* The big rings draw when you reach them, then click shut with a flash of gold. */
.anim [data-reveal] .ring-on-show { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s cubic-bezier(0.6, 0, 0.2, 1); transition-delay: var(--d, 0s); }
.anim [data-reveal]:not([data-shown]) .ring-on-show { stroke-dashoffset: 1; }
.shut { transform-origin: 350px 240px; }
.anim [data-shown] .shut { animation: clickshut 0.45s ease-out 1.4s both; }
.anim [data-shown] .glow { animation: glow 1.1s ease-out 1.4s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .tick { animation: none; }
  .ring-draw { animation: none; stroke-dashoffset: 0; }
  .anim [data-reveal], .anim [data-reveal]:not([data-shown]) { opacity: 1; transform: none; transition: none; }
  .anim [data-reveal] .ring-on-show, .anim [data-reveal]:not([data-shown]) .ring-on-show { stroke-dashoffset: 0; transition: none; }
  .anim [data-shown] .shut, .anim [data-shown] .glow { animation: none; }
  .card, .signup button, .disc { transition: none; }
  .disc::before, .disc::after { animation: none; }
  .disc::before, .disc::after { display: none; }
}
