/* ============================================================
   Court Squad — marketing site styles
   Builds on the design-system tokens (link styles.css first).
   Master brand only (Court Indigo) — NO team accent here.
   Mobile-first; scales to one responsive page. AA contrast.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface-elevated);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-primary); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- layout ---- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section--tight { padding: 44px 0; }

.eyebrow {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--brand-600); margin: 0 0 14px;
}
.eyebrow--onDark { color: var(--brand-200); }

h1, h2, h3 { font-weight: var(--weight-bold); letter-spacing: -0.02em; text-wrap: balance; margin: 0; line-height: var(--leading-snug); color: var(--text-primary); }
.h-display { font-size: clamp(2.1rem, 6.2vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); }
.h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; margin: 0; }
.muted { color: var(--text-secondary); }
.fine { font-size: var(--type-caption); color: var(--text-muted); line-height: 1.55; text-wrap: pretty; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface-elevated) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-header .btn { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.brand b { font-weight: 800; color: var(--brand-primary); }
.nav { display: none; align-items: center; gap: 28px; }
.nav a { color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--text-primary); }
@media (min-width: 880px) { .nav { display: flex; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 11px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: var(--type-body); font-weight: var(--weight-bold);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.btn--primary { background: var(--brand-primary); color: #fff; }
.btn--primary:hover { background: var(--brand-primary-variant); }
.btn--onDark { background: #fff; color: var(--brand-700); }
.btn--onDark:hover { background: var(--brand-50); }
.btn--ghost { background: transparent; color: var(--brand-primary); border-color: var(--brand-200); }
.btn--ghost:hover { background: var(--brand-50); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: var(--type-body-sm); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn--energy { background: var(--energy-400); color: var(--energy-ink); }
.btn--energy:hover { background: var(--energy-300); }
.btn--energy:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--energy-400) 55%, transparent); }

/* ---- store badges ---- */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 56px; padding: 9px 18px 9px 16px; border-radius: 12px;
  background: #0B0E16; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.12);
  transition: background var(--duration-fast) var(--ease-standard);
}
.store-badge:hover { background: #161B28; }
.store-badge:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.5); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge__txt small { font-size: 11px; font-weight: 500; opacity: 0.82; letter-spacing: 0.01em; white-space: nowrap; }
.store-badge__txt b { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.store-badge--light { background: #fff; color: #0B0E16; border-color: var(--border-default); }
.store-badge--light:hover { background: var(--gray-50); }

/* ---- phone mockup ---- */
.phone { width: min(241px, 72vw); border-radius: 29px; overflow: hidden; box-shadow: 0 26px 60px rgba(18,22,22,0.30), 0 8px 20px rgba(18,22,22,0.14); flex: none; }
.phone img { width: 100%; height: auto; display: block; aspect-ratio: 241 / 524; object-fit: cover; }
.phone--tilt { transform: rotate(-2deg); }
.outcome__viz .phone--viz { width: min(290px, 76vw); box-shadow: 0 24px 56px rgba(18,22,42,0.22), 0 8px 20px rgba(18,22,42,0.12); }

/* ---- hero ---- */
.hero { background: var(--brand-800); color: #fff; position: relative; overflow: hidden; }
.hero::after { /* faint court-lines motif */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06;
  background-image: linear-gradient(#fff 1.5px, transparent 1.5px), linear-gradient(90deg, #fff 1.5px, transparent 1.5px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 90% at 80% 10%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 80% 10%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 52px 0 8px; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { color: var(--brand-100); }
.hero__phone { display: flex; justify-content: center; padding-bottom: 8px; }
@media (min-width: 880px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; padding: 72px 0 24px; }
  .hero__phone { justify-content: flex-end; }
  .phone { width: 250px; }
}

/* ---- benefit cards ---- */
.benefit-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
@media (min-width: 600px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .benefit-grid { grid-template-columns: repeat(4, 1fr); } }
.benefit {
  background: var(--surface-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.benefit__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; margin-bottom: 16px; }
.benefit__icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.benefit p { margin: 0; font-size: var(--type-body-sm); color: var(--text-secondary); line-height: 1.5; text-wrap: pretty; }

/* ---- problem strip ---- */
.problem { background: var(--surface); }
.problem__pain { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pain-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--radius-pill); background: var(--surface-elevated); border: 1px solid var(--border-default); font-size: var(--type-body-sm); color: var(--text-secondary); }
.pain-chip svg { width: 17px; height: 17px; color: var(--text-muted); flex: none; }

/* ---- feature rows ---- */
.feature { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.feature + .feature { margin-top: 64px; }
.feature__media { display: flex; justify-content: center; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature + .feature { margin-top: 96px; }
  .feature--reverse .feature__media { order: -1; }
}
.feature__body { max-width: 460px; }
.feature__body .h2 { margin-bottom: 12px; }

/* ---- bands ---- */
.band { text-align: center; }
.band--tint { background: var(--brand-50); }
.band--dark { background: var(--brand-800); color: #fff; }
.band--dark h2 { color: #fff; }
.band--dark .lead { color: var(--brand-100); }
.band__inner { max-width: 720px; margin: 0 auto; }
.band .store-row { justify-content: center; margin-top: 26px; }

/* ---- trust ---- */
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust { display: flex; gap: 14px; align-items: flex-start; }
.trust__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }
.trust__icon svg { width: 21px; height: 21px; }
.trust h3 { font-size: 16px; margin: 2px 0 4px; }
.trust p { margin: 0; font-size: var(--type-body-sm); color: var(--text-secondary); line-height: 1.5; text-wrap: pretty; }

/* ---- footer ---- */
.site-footer { background: var(--brand-900); color: var(--brand-100); padding: 52px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; } }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: #fff; }
.footer__tag { margin: 16px 0 0; font-size: var(--type-body-sm); color: var(--brand-200); max-width: 32ch; line-height: 1.55; }
.footer__col h4 { font-size: 12px; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--brand-300); margin: 0 0 14px; font-family: var(--font-mono); font-weight: 600; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--brand-100); text-decoration: none; font-size: 15px; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 720px) { .footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer__bottom p { margin: 0; font-size: var(--type-caption); color: var(--brand-300); line-height: 1.55; }

/* ---- legal / doc pages ---- */
.doc { padding: 44px 0 72px; }
.doc__inner { max-width: 760px; margin: 0 auto; }
.doc__back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--type-body-sm); font-weight: 600; color: var(--brand-primary); text-decoration: none; margin-bottom: 24px; }
.doc__back svg { width: 16px; height: 16px; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 8px; }
.doc__updated { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text-secondary); line-height: var(--leading-relaxed); text-wrap: pretty; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc__note { background: var(--warning-50); border: 1px solid var(--warning-100); border-radius: var(--radius-md); padding: 14px 16px; font-size: var(--type-body-sm); color: var(--warning-700); margin: 0 0 28px; line-height: 1.55; }
.doc__toc { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 18px 20px; margin: 0 0 32px; }
.doc__toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.doc__toc a { color: var(--text-secondary); text-decoration: none; font-size: var(--type-body-sm); }
.doc__toc a:hover { color: var(--brand-primary); }

/* ---- support cards ---- */
.support-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 8px; }
@media (min-width: 720px) { .support-grid { grid-template-columns: 1fr 1fr; } }
.support-card { background: var(--surface-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.support-card .benefit__icon { margin-bottom: 14px; }
.support-card h3 { font-size: 18px; margin: 0 0 6px; }
.support-card p { margin: 0 0 14px; color: var(--text-secondary); font-size: var(--type-body-sm); line-height: 1.5; }

/* ---- faq ---- */
.faq { border-top: 1px solid var(--border-subtle); }
.faq details { border-bottom: 1px solid var(--border-subtle); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--type-body); list-style: none; display: flex; justify-content: space-between; gap: 16px; color: var(--text-primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-500); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--text-secondary); font-size: var(--type-body-sm); line-height: 1.6; }

/* ---- invite (deep-link fallback) ---- */
.invite { min-height: 100vh; display: flex; flex-direction: column; }
.invite__main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--surface); }
.invite__card { width: 100%; max-width: 480px; background: var(--surface-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 32px 28px; text-align: center; }
.invite__team { display: inline-flex; align-items: center; gap: 12px; background: var(--brand-50); border-radius: var(--radius-pill); padding: 8px 18px 8px 8px; margin: 0 0 22px; }
.invite__team .av { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-forest); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; }
.invite__team span { font-weight: 700; font-size: 17px; color: var(--brand-800); }
.invite__card h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 10px; }
.invite__card p { color: var(--text-secondary); margin: 0 0 22px; line-height: 1.5; }
.invite__card .store-row { justify-content: center; }
.invite__steps { margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--border-subtle); text-align: left; }
.invite__steps ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text-secondary); font-size: var(--type-body-sm); line-height: 1.5; }
.invite__steps b { color: var(--text-primary); }
/* 긴 팀 이름/특수문자에도 레이아웃이 안 깨지도록 보호 */
.invite__team span { max-width: min(60vw, 320px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite__card h1 { overflow-wrap: anywhere; }

/* ============================================================
   REDESIGN — landing (v2): value/empathy-led, screenshot-light.
   Court-line motif, editorial type, conceptual data visuals.
   Master brand only; status colors used only for real status viz.
   ============================================================ */

.sec-eyebrow { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--brand-600); margin: 0 0 18px; }
.sec-eyebrow i { font-style: normal; color: var(--brand-300); }
.sec-eyebrow--onDark { color: var(--brand-200); }
.sec-eyebrow--onDark i { color: var(--brand-400); }
.section--line { border-top: 1px solid var(--border-subtle); }

/* ---- hero (v3 · night court) ---- */
.nhero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--brand-900) 0%, var(--brand-800) 100%); color: #fff; }
.nhero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.08;
  background-image: linear-gradient(#fff 1.5px, transparent 1.5px), linear-gradient(90deg, #fff 1.5px, transparent 1.5px);
  background-size: 72px 72px;
  mask-image: radial-gradient(130% 110% at 85% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(130% 110% at 85% 0%, #000 20%, transparent 70%); }
.nhero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; padding: 52px 0 60px; }
.nhero__kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--energy-300); margin: 0 0 20px; }
.nhero__kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--energy-400); flex: none; }
.nhero h1 { color: #fff; font-size: clamp(2.2rem, 5.6vw, 3.7rem); line-height: 1.05; letter-spacing: -0.035em; }
.nhero__y { color: var(--energy-400); }
.nhero__sub { font-size: clamp(1.05rem, 1.7vw, 1.26rem); line-height: 1.5; color: var(--brand-100); text-wrap: pretty; margin: 18px 0 0; max-width: 46ch; }
.nhero__import { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 540px; }
.nhero__import input { flex: 1 1 240px; min-width: 0; min-height: 54px; padding: 0 20px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); color: #fff;
  font-family: var(--font-sans); font-size: 16px; }
.nhero__import input::placeholder { color: var(--brand-200); }
.nhero__import input:focus-visible { outline: none; border-color: rgba(255,255,255,0.65); box-shadow: 0 0 0 3px rgba(255,255,255,0.22); }
.nhero__import .btn { min-height: 54px; font-size: 16.5px; }
.nhero__soon { font-size: 13.5px; line-height: 1.55; color: var(--brand-200); margin: 14px 0 0; max-width: 54ch; text-wrap: pretty; }
.nhero__msg { margin: 12px 0 0; font-size: 14.5px; line-height: 1.5; max-width: 54ch; }
.nhero__msg.ok { color: var(--energy-300); font-weight: 600; }
.nhero__msg.ok a { color: #fff; }
.nhero__msg.err { color: #FBD3E0; font-weight: 600; }
.nhero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); }
.nhero__proof span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--brand-100); white-space: nowrap; }
.nhero__proof svg { width: 14px; height: 14px; color: var(--energy-400); flex: none; }
.nhero__proof-free b { color: #fff; font-weight: 700; }
.nhero__shot { position: relative; display: flex; justify-content: center; }
.nhero__ball { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(430px, 92vw); aspect-ratio: 1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--energy-400) 26%, transparent) 0%, transparent 68%); }
.nhero__shot .phone { position: relative; width: min(272px, 72vw); box-shadow: 0 34px 80px rgba(5, 8, 24, 0.55), 0 10px 26px rgba(5, 8, 24, 0.35); }
@media (min-width: 920px) {
  .nhero__inner { grid-template-columns: 1.08fr 0.92fr; gap: 64px; padding: 84px 0 92px; }
  .nhero__shot { justify-content: flex-end; padding-right: 18px; }
}

/* ---- sound familiar: the group chat vs Court Squad ---- */
.duel { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 40px; align-items: stretch; }
@media (min-width: 800px) { .duel { grid-template-columns: 1fr 1fr; gap: 22px; } }
.duel__pane { background: var(--surface-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 20px; display: flex; flex-direction: column; }
.duel__pane--calm { border-top: 3px solid var(--brand-primary); }
.duel__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.duel__badge { background: var(--danger-600); color: #fff; border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 10.5px; white-space: nowrap; }
.duel__ready { color: var(--success-700); background: var(--success-50); border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 10.5px; white-space: nowrap; }
.duel__chat { display: flex; flex-direction: column; gap: 8px; }
.duel__time { align-self: center; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); margin: 4px 0 2px; }
.dbub { max-width: 88%; padding: 9px 13px; border-radius: 15px; font-size: 14px; line-height: 1.45; }
.dbub--me { align-self: flex-end; background: var(--brand-primary); color: #fff; border-bottom-right-radius: 5px; }
.dbub--them { align-self: flex-start; background: var(--gray-100); color: var(--text-primary); border-bottom-left-radius: 5px; }
.duel__rows { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.drow { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px; border-top: 1px solid var(--border-subtle); font-size: 14.5px; }
.drow:first-child { border-top: none; }
.drow__k { color: var(--text-secondary); }
.drow__v { font-weight: 600; color: var(--text-primary); text-align: right; }
.drow__v.ok { color: var(--success-700); }
.problem-foot { margin-top: 30px; font-size: clamp(1.1rem,1.8vw,1.35rem); font-weight: 600; letter-spacing: -0.01em; color: var(--text-primary); max-width: 50ch; text-wrap: pretty; }
.problem-foot b { color: var(--brand-primary); }

/* ---- outcomes (value, conceptual visuals) ---- */
.outcome { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.outcome + .outcome { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--border-subtle); }
.outcome__body { max-width: 460px; }
.outcome__body h3 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -0.025em; line-height: 1.12; }
.outcome__body p { font-size: var(--type-body); color: var(--text-secondary); line-height: 1.55; margin: 12px 0 0; text-wrap: pretty; }
.outcome__tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--brand-600); margin: 0 0 12px; }
.outcome__viz { display: flex; justify-content: center; }
@media (min-width: 840px) {
  .outcome { grid-template-columns: 0.92fr 1.08fr; gap: 56px; }
  .outcome--rev .outcome__viz { order: -1; }
}

/* viz shell */
.viz { width: 100%; max-width: 460px; background: var(--surface-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: 24px; }
.viz__cap { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; }

/* season risk strip */
.season { display: flex; flex-direction: column; gap: 8px; }
.srow { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 12px; }
.srow__wk { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.sbar { height: 26px; border-radius: var(--radius-sm); display: flex; align-items: center; padding: 0 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.sbar--ready { background: var(--success-50); color: var(--success-700); box-shadow: inset 0 0 0 1.5px var(--success-100); width: 100%; }
.sbar--ok { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 1.5px var(--brand-100); width: 78%; }
.sbar--risk { background: var(--warning-50); color: var(--warning-700); box-shadow: inset 0 0 0 1.5px var(--warning-100); width: 54%; }
.sbar--alert { background: var(--danger-50); color: var(--danger-700); box-shadow: inset 0 0 0 1.5px var(--danger-100); width: 40%; }

/* lineup mini board */
.lboard { display: flex; flex-direction: column; gap: 8px; }
.lspot { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface); }
.lspot__pos { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--brand-600); width: 38px; flex: none; }
.lspot__av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.lspot__nm { font-size: 14px; color: var(--text-primary); font-weight: 500; flex: 1; min-width: 0; }
.lspot__ntrp { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lspot--empty { border-style: dashed; background: transparent; }
.lspot--empty .lspot__av { background: var(--gray-100); }
.lspot--empty .lspot__nm { color: var(--text-muted); }

/* season default-risk flag */
.sflag { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; background: var(--danger-50); border: 1px solid var(--danger-100); border-radius: var(--radius-md); }
.sflag svg { width: 18px; height: 18px; color: var(--danger-600); flex: none; }
.sflag span { font-size: 13px; color: var(--danger-700); line-height: 1.4; text-wrap: pretty; }
.sflag b { color: var(--danger-700); }

/* lineup rule validation */
.lvalid { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 9px; }
.lcheck { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-secondary); }
.lcheck__ic { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--success-50); color: var(--success-700); }
.lcheck__ic svg { width: 11px; height: 11px; }
.lcheck b { color: var(--text-primary); font-weight: 600; }
.lcheck__v { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* team chat viz */
.chatviz { display: flex; flex-direction: column; gap: 12px; }
.cpin { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-md); }
.cpin__ic { width: 26px; height: 26px; border-radius: 7px; background: var(--brand-primary); color: #fff; display: grid; place-items: center; flex: none; }
.cpin__ic svg { width: 14px; height: 14px; }
.cpin__b { min-width: 0; }
.cpin__t { font-size: 11px; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-600); margin: 0 0 3px; }
.cpin__m { font-size: 13.5px; color: var(--text-primary); margin: 0; line-height: 1.4; font-weight: 500; }
.cmsg { display: flex; gap: 10px; align-items: flex-end; }
.cmsg--me { flex-direction: row-reverse; }
.cmsg__av { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.cmsg--me .cmsg__av { background: var(--brand-primary); color: #fff; }
.cbub { max-width: 76%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.cmsg__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cmsg--them .cbub { background: var(--surface); border: 1px solid var(--border-subtle); border-bottom-left-radius: 5px; color: var(--text-primary); }
.cmsg--me .cbub { background: var(--brand-primary); color: #fff; border-bottom-right-radius: 5px; }
.cmsg__nm { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.cmsg--me .cmsg__nm { text-align: right; }
.cpoll { padding: 12px 13px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface); }
.cpoll__q { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0 0 10px; }
.cpoll__opt { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.cpoll__bar { flex: 1; height: 22px; border-radius: 6px; background: var(--gray-100); position: relative; overflow: hidden; }
.cpoll__fill { position: absolute; inset: 0 auto 0 0; background: var(--brand-100); border-radius: 6px; }
.cpoll__lbl { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-primary); font-weight: 500; z-index: 1; }
.cpoll__pct { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); width: 34px; text-align: right; flex: none; }

/* ---- switching: import preview ---- */
.switch-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; margin-top: 38px; }
@media (min-width: 900px) { .switch-grid { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; } }
.vsteps { list-style: none; margin: 0; padding: 0; }
.vstep { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border-subtle); }
.vstep:first-child { border-top: none; padding-top: 0; }
.vstep__n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-primary); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.vstep__b h3 { font-size: 16.5px; letter-spacing: -0.01em; margin: 4px 0 3px; }
.vstep__b p { font-size: var(--type-body-sm); color: var(--text-secondary); margin: 0; line-height: 1.5; text-wrap: pretty; }
.vstep__tag { display: inline-block; margin-top: 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--success-700); background: var(--success-50); border-radius: 999px; padding: 4px 10px; }

.import-card { background: var(--surface-elevated); border: 1px solid var(--border-default); border-top: 3px solid var(--brand-primary); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 24px; }
.import-card__h { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.import-card__lp { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.import-card__h b { font-size: 14.5px; color: var(--text-primary); }
.import-card__conn { margin-left: auto; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--success-700); background: var(--success-50); border-radius: 999px; padding: 5px 10px; display: inline-flex; align-items: center; gap: 6px; }
.import-card__conn i { width: 7px; height: 7px; border-radius: 50%; background: var(--success-600); }
.irow { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.irow:first-of-type { border-top: none; }
.irow__ic { width: 24px; height: 24px; border-radius: 50%; background: var(--success-50); color: var(--success-700); display: grid; place-items: center; flex: none; }
.irow__ic svg { width: 14px; height: 14px; }
.irow__k { font-size: 14.5px; color: var(--text-primary); flex: 1; min-width: 0; }
.irow__v { font-family: var(--font-mono); font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.import-card__f { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.import-card__sync { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--brand-700); font-weight: 600; }
.import-card__sync svg { width: 16px; height: 16px; }
.import-card__time { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ---- conversion flow (stepper) ---- */
.flow { background: var(--surface); }
.flow__steps { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 36px; counter-reset: step; }
.fstep { position: relative; display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--border-subtle); }
.fstep:first-child { border-top: none; }
.fstep__num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-primary); color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 16px; display: grid; place-items: center; }
.fstep__b h3 { font-size: 18px; letter-spacing: -0.01em; margin: 4px 0 4px; }
.fstep__b p { font-size: var(--type-body-sm); color: var(--text-secondary); margin: 0; line-height: 1.5; text-wrap: pretty; }
.fstep__tag { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--success-700); background: var(--success-50); border-radius: 999px; padding: 4px 10px; }
@media (min-width: 820px) {
  .flow__steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .fstep { flex-direction: column; gap: 16px; padding: 0 26px 0 0; border-top: none; }
  .fstep::after { content: ""; position: absolute; top: 22px; left: 56px; right: 8px; height: 2px; background: var(--brand-100); }
  .fstep:last-child { padding-right: 0; }
  .fstep:last-child::after { display: none; }
}

/* ---- testimonials ---- */
.testi { background: var(--brand-900); color: #fff; }
.testi h2 { color: #fff; }
.testi .lead { color: var(--brand-100); }
/* ---- founder note ---- */
.founder { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-left: 4px solid var(--energy-400); border-radius: var(--radius-lg); padding: 30px 30px 26px; margin-top: 36px; max-width: 760px; }
.founder p { margin: 0 0 16px; font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.65; color: var(--brand-50); text-wrap: pretty; }
.founder p:last-of-type { margin-bottom: 22px; }
.founder__sign { display: flex; align-items: center; gap: 14px; }
.founder__av { width: 46px; height: 46px; border-radius: 50%; background: var(--energy-400); color: var(--energy-ink); display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.founder__meta b { display: block; font-size: 15.5px; color: #fff; font-weight: 600; }
.founder__meta span { font-family: var(--font-mono); font-size: 11.5px; color: var(--brand-200); letter-spacing: 0.02em; display: block; margin-top: 2px; }

.trustbar { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); }
.trustbar span { display: inline-flex; align-items: center; gap: 9px; font-size: var(--type-body-sm); color: var(--brand-100); }
.trustbar svg { width: 18px; height: 18px; color: var(--brand-200); flex: none; }
.testi__fine { margin-top: 22px; font-size: var(--type-caption); color: var(--brand-300); line-height: 1.55; max-width: 80ch; }

/* ---- final CTA ---- */
.final { background: var(--brand-primary); color: #fff; position: relative; overflow: hidden; }
.final::after { content: ""; position: absolute; inset: 0; opacity: 0.08; pointer-events: none;
  background-image: linear-gradient(#fff 1.5px, transparent 1.5px), linear-gradient(90deg, #fff 1.5px, transparent 1.5px); background-size: 64px 64px;
  mask-image: radial-gradient(120% 120% at 12% 100%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(120% 120% at 12% 100%, #000 20%, transparent 70%); }
.final__inner { position: relative; z-index: 1; max-width: 720px; }
.final h2 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.03em; line-height: 1.08; }
.final .lead { color: var(--brand-100); margin-top: 14px; }

/* ---- waitlist form (on the indigo final section) ---- */
.waitlist { margin-top: 26px; max-width: 540px; }
.waitlist__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.waitlist__full { grid-column: 1 / -1; }
@media (max-width: 560px) { .waitlist__grid { grid-template-columns: 1fr; } .waitlist__full { grid-column: auto; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--brand-100); }
.field > span i { font-style: normal; font-weight: 400; color: var(--brand-200); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.28); background: #fff; color: var(--text-primary);
  font-family: var(--font-sans); font-size: 16px;
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.55); }
.field--choice { border: 0; margin: 0; padding: 0; }
.field--choice legend { font-size: 13px; font-weight: 600; color: var(--brand-100); margin: 0 0 6px; padding: 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-row label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 50px; border: 1px solid rgba(255,255,255,0.34); border-radius: var(--radius-pill); color: #fff; font-weight: 700; cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label:has(input:checked) { background: #fff; border-color: #fff; color: var(--brand-700); }
.choice-row label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255,255,255,0.55); }
.waitlist > .btn { margin-top: 18px; min-height: 52px; padding: 0 30px; }
.waitlist > .btn[disabled] { opacity: 0.7; cursor: default; }
.waitlist__msg { margin: 14px 0 0; font-size: 14.5px; line-height: 1.45; }
.waitlist__msg.ok { color: #BFF0D2; font-weight: 600; }
.waitlist__msg.err { color: #FBD3E0; font-weight: 600; }
.waitlist__fine { margin: 12px 0 0; font-size: 12.5px; color: var(--brand-200); line-height: 1.5; }

/* ============================================================
   MOTION (v3) — three deliberate moments. Reduced-motion safe:
   entrance/stagger effects are gated behind no-preference.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .nhero__inner > div:first-child { animation: rise-in 0.6s var(--ease-standard) both; }
  .nhero__shot { animation: rise-in 0.7s 0.12s var(--ease-standard) both; }
}

/* import card: rows check in one by one when scrolled into view (JS toggles classes) */
.import-card--pending .irow { opacity: 0; transform: translateY(8px); }
.import-card--in .irow { opacity: 1; transform: none; transition: opacity 0.45s var(--ease-standard), transform 0.45s var(--ease-standard); }
.import-card--in .irow:nth-of-type(2) { transition-delay: 0.18s; }
.import-card--in .irow:nth-of-type(3) { transition-delay: 0.36s; }
.import-card--in .irow:nth-of-type(4) { transition-delay: 0.54s; }
.import-card--pending .import-card__f { opacity: 0; }
.import-card--in .import-card__f { opacity: 1; transition: opacity 0.4s 0.75s var(--ease-standard); }


/* hero import ticket: TennisLink → rows check in → done, on a loop */
.iticket { position: absolute; left: 4px; bottom: 18px; z-index: 2; width: 234px;
  background: var(--surface-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  box-shadow: 0 22px 48px rgba(5, 8, 24, 0.45), 0 6px 16px rgba(5, 8, 24, 0.28);
  padding: 13px 15px 12px; transform: rotate(1.5deg); }
@media (min-width: 920px) { .iticket { left: -34px; bottom: 30px; } }
.iticket__t { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
.iticket__t i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brand-100); border-top-color: var(--brand-primary); flex: none; }
.iticket__row { position: relative; height: 26px; display: flex; align-items: center; }
.iticket__sk { position: absolute; left: 0; top: 7px; height: 11px; border-radius: 6px; background: var(--gray-100); }
.iticket__row--1 .iticket__sk { width: 88%; }
.iticket__row--2 .iticket__sk { width: 72%; }
.iticket__row--3 .iticket__sk { width: 80%; }
.iticket__c { display: flex; align-items: center; gap: 7px; width: 100%; font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.iticket__c svg { width: 12px; height: 12px; color: var(--success-600); flex: none; }
.iticket__c b { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.iticket__done { margin: 8px 0 0; padding-top: 9px; border-top: 1px solid var(--border-subtle); font-size: 11.5px; font-weight: 700; color: var(--success-700); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes it-spin { to { transform: rotate(360deg); } }
  .iticket__t i { animation: it-spin 0.9s linear infinite; }
  /* 7초 루프 — 스켈레톤 → 행별 체크 → 완료 → 리셋 */
  @keyframes it-c1 { 0%, 14% { opacity: 0; } 18%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
  @keyframes it-c2 { 0%, 26% { opacity: 0; } 30%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
  @keyframes it-c3 { 0%, 38% { opacity: 0; } 42%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
  @keyframes it-dn { 0%, 52% { opacity: 0; } 56%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
  @keyframes it-s1 { 0%, 14% { opacity: 1; } 18%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
  @keyframes it-s2 { 0%, 26% { opacity: 1; } 30%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
  @keyframes it-s3 { 0%, 38% { opacity: 1; } 42%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
  .iticket__row--1 .iticket__c { animation: it-c1 7s linear infinite; }
  .iticket__row--2 .iticket__c { animation: it-c2 7s linear infinite; }
  .iticket__row--3 .iticket__c { animation: it-c3 7s linear infinite; }
  .iticket__done { animation: it-dn 7s linear infinite; }
  .iticket__row--1 .iticket__sk { animation: it-s1 7s linear infinite; }
  .iticket__row--2 .iticket__sk { animation: it-s2 7s linear infinite; }
  .iticket__row--3 .iticket__sk { animation: it-s3 7s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .iticket__sk { display: none; }
}
