/* =====================================================================
   COACH SIR — entry.css
   Single-screen WhatsApp entry gate. Same world as landing.css:
   WhatsApp dark (green-on-ink), Instrument Serif italics, kohl gold.
   HARD RULE: one viewport, zero scrolling, zero scrollbars.
   ===================================================================== */

:root {
  --ink:        #0b141a;
  --ink-deep:   #060a0d;
  --ink-card:   #1f2c34;
  --ink-soft:   #2a3942;
  --paper:      #e9edef;
  --paper-mute: #8696a0;
  --accent:     #25d366;
  --accent-d:   #1ab856;
  --accent-glow: rgba(37, 211, 102, 0.32);
  --kohl:       #ffd876;
  --hair:       rgba(233, 237, 239, 0.10);
  --hair-2:     rgba(233, 237, 239, 0.18);

  --serif: "Instrument Serif", "Georgia", serif;
  --sans:  "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --pad-x: clamp(18px, 4vw, 64px);
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* one screen, no scroll, ever */
html, body { height: 100%; overflow: hidden; }
html { background: var(--ink-deep); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--paper);
  background: var(--ink-deep);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--ink-deep); }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }

/* ---- responsive mode switches --------------------------------------
   The two queries are exact complements, so exactly one mode is ever
   visible. !important so no later display rule can leak a section
   into the wrong mode. */
@media (max-width: 767.98px), (hover: none), (pointer: coarse) {
  .only-desktop { display: none !important; }
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .only-mobile { display: none !important; }
}

/* =====================================================================
   ATMOSPHERE
   ===================================================================== */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-img {
  position: absolute; inset: -4%;
  background-size: cover;
  background-position: 78% 18%;
  opacity: 0.42;
  filter: saturate(0.9) contrast(1.05);
  animation: bg-drift 36s var(--ease) infinite alternate;
}
@keyframes bg-drift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.06) translateY(-1.5%); }
}
.bg-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink-deep) 0%, rgba(6,10,13,0.88) 34%, rgba(6,10,13,0.45) 62%, rgba(6,10,13,0.72) 100%),
    linear-gradient(180deg, rgba(6,10,13,0.85) 0%, rgba(6,10,13,0.25) 40%, rgba(6,10,13,0.92) 100%);
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(3,5,7,0.82) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* =====================================================================
   FRAME — header / stage / footer (flex column fills viewport)
   ===================================================================== */
.top {
  position: relative; z-index: 10;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(12px, 2.4vh, 26px) var(--pad-x);
  animation: rise 0.9s var(--ease) both;
}
.brand {
  font-family: var(--serif); font-size: clamp(20px, 2.4vh, 26px);
  color: var(--paper); text-decoration: none; letter-spacing: -0.02em;
  line-height: 1;
}
.brand em { font-style: italic; color: var(--accent); }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-mute);
  border: 1px solid var(--hair); border-radius: 999px;
  padding: 6px 12px;
  background: rgba(11, 20, 26, 0.45);
  backdrop-filter: blur(6px);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.stage {
  position: relative; z-index: 10;
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 3vh, 30px);
  padding: 0 var(--pad-x);
  width: 100%;
}

.foot {
  position: relative; z-index: 10;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: clamp(10px, 2vh, 22px) var(--pad-x);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper-mute);
  border-top: 1px solid var(--hair);
  animation: rise 0.9s var(--ease) 0.5s both;
}
.foot :only-child { margin-inline: auto; }

/* =====================================================================
   COPY
   ===================================================================== */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: clamp(10px, 1.4vh, 12px);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-mute);
  animation: rise 0.9s var(--ease) 0.08s both;
}
.kicker-dot {
  flex: 0 0 auto;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--kohl);
  animation: pulse-gold 2.6s ease-out infinite;
}
@keyframes pulse-gold {
  0%   { box-shadow: 0 0 0 0 rgba(255, 216, 118, 0.35); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 216, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 216, 118, 0); }
}

.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 9.5vh, 96px);
  line-height: 0.98; letter-spacing: -0.03em;
  margin: clamp(8px, 1.6vh, 18px) 0 clamp(8px, 1.8vh, 20px);
}
.display .line { display: block; animation: rise 1s var(--ease) both; }
.display .line:nth-child(1) { animation-delay: 0.16s; }
.display .line:nth-child(2) { animation-delay: 0.28s; }
.display em { font-style: italic; color: var(--kohl); }
.display em.hl { color: var(--accent); text-shadow: 0 0 42px var(--accent-glow); }

.lede {
  max-width: 46ch;
  font-size: clamp(14px, 2.1vh, 18px);
  line-height: 1.55;
  color: rgba(233, 237, 239, 0.82);
  animation: rise 1s var(--ease) 0.4s both;
}
.lede em { font-family: var(--serif); font-style: italic; color: var(--kohl); font-size: 1.08em; }

.meta-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: clamp(10px, 2vh, 20px);
  animation: rise 1s var(--ease) 0.5s both;
}
.pill {
  font-family: var(--mono); font-size: clamp(10px, 1.4vh, 11.5px);
  letter-spacing: 0.08em;
  color: var(--paper-mute);
  border: 1px solid var(--hair-2); border-radius: 999px;
  padding: 5px 12px;
  background: rgba(31, 44, 52, 0.35);
}
.pill b { color: var(--paper); font-weight: 500; }

.autologin {
  margin-top: clamp(12px, 2.6vh, 26px);
  max-width: 44ch;
  font-size: clamp(12px, 1.8vh, 14px);
  color: var(--paper-mute);
  animation: rise 1s var(--ease) 0.6s both;
}
.autologin b { color: var(--paper); font-weight: 500; }
.autologin-arrow {
  color: var(--accent); font-size: 1.15em; line-height: 1;
  display: inline-block; margin-right: 6px;
  animation: spin 5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   DESKTOP — QR TICKET
   ===================================================================== */
.qr-card {
  position: relative;
  width: clamp(280px, 40vh, 360px);
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(14px, 2.2vh, 20px);
  box-shadow:
    0 0 0 1px rgba(233, 237, 239, 0.14),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(37, 211, 102, 0.14);
  animation: rise 1s var(--ease) 0.35s both, card-breathe 5s ease-in-out 1.4s infinite;
}
@keyframes card-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(233,237,239,0.14), 0 30px 80px rgba(0,0,0,0.55), 0 0 90px rgba(37,211,102,0.14); }
  50%      { box-shadow: 0 0 0 1px rgba(233,237,239,0.14), 0 30px 80px rgba(0,0,0,0.55), 0 0 130px rgba(37,211,102,0.26); }
}
.qr-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: clamp(10px, 1.8vh, 14px);
}
.wa-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: clamp(12px, 1.8vh, 14px);
  letter-spacing: -0.01em; color: var(--ink);
}
.qr-head-meta {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(11, 20, 26, 0.45);
}
.qr-frame {
  position: relative;
  width: 100%; aspect-ratio: 1;
  min-width: 240px;
  background: #ffffff;
  border-radius: 10px;
  padding: clamp(10px, 1.6vh, 14px);
  display: grid; place-items: center;
  overflow: hidden;
}
.qr-frame svg { width: 100%; height: 100%; display: block; }
.qr-wait {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(11, 20, 26, 0.4);
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.qr-tear {
  height: 0;
  border-top: 2px dashed rgba(11, 20, 26, 0.18);
  margin: clamp(10px, 1.8vh, 14px) -6px clamp(8px, 1.4vh, 12px);
}
.qr-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--mono);
}
.qr-code-label {
  font-size: clamp(13px, 2vh, 16px); font-weight: 600;
  letter-spacing: 0.14em; color: var(--ink);
}
.qr-ttl {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(11, 20, 26, 0.45);
}

/* =====================================================================
   MOBILE — PHONE FORM
   ===================================================================== */
.phone-card {
  width: 100%; max-width: 420px;
  background: rgba(31, 44, 52, 0.72);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: clamp(14px, 2.4vh, 20px);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: rise 1s var(--ease) 0.45s both;
}
.phone-head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: clamp(13px, 1.9vh, 15px);
  margin-bottom: clamp(10px, 1.8vh, 14px);
}
.phone-row {
  display: flex; gap: 8px;
}
.dial, .num {
  background: var(--ink);
  border: 1px solid var(--hair-2);
  border-radius: 12px;
  padding: clamp(11px, 1.9vh, 14px) 12px;
  font-size: clamp(15px, 2.2vh, 17px);
  color: var(--paper);
  outline: none;
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dial { width: 74px; text-align: center; font-family: var(--mono); flex: 0 0 auto; }
.num  { flex: 1 1 auto; letter-spacing: 0.02em; }
.dial:focus, .num:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}
.num::placeholder { color: var(--paper-mute); opacity: 0.7; }

.field-err {
  margin-top: 8px;
  font-size: 12.5px; color: #ff9d8a;
}
.phone-card.shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.cta {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: clamp(10px, 1.8vh, 14px);
  padding: clamp(13px, 2.2vh, 16px) 18px;
  border: none; border-radius: 14px;
  background: linear-gradient(180deg, #35e078, var(--accent) 55%, var(--accent-d));
  color: #06130b;
  font-weight: 700; font-size: clamp(15px, 2.2vh, 17px);
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s var(--ease), box-shadow 0.2s ease, filter 0.2s ease;
}
.cta:active { transform: scale(0.98); }
.cta[disabled] { filter: saturate(0.4) brightness(0.8); cursor: default; }
.cta-arrow { font-weight: 500; transition: transform 0.2s var(--ease); }
.cta:hover .cta-arrow { transform: translateX(3px); }

.microcopy {
  margin-top: clamp(9px, 1.6vh, 12px);
  font-size: 12px; line-height: 1.5;
  color: var(--paper-mute);
}
.microcopy b { color: var(--paper); font-weight: 500; }

/* =====================================================================
   NET STATUS — unobtrusive reconnect line
   ===================================================================== */
.net {
  position: fixed; left: 50%; bottom: clamp(52px, 8vh, 74px);
  transform: translateX(-50%) translateY(6px);
  z-index: 30;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--kohl);
  background: rgba(11, 20, 26, 0.8);
  border: 1px solid rgba(255, 216, 118, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
  white-space: nowrap;
}
.net.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================================================================
   LINKED — success overlay
   ===================================================================== */
.linked {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: rgba(6, 10, 13, 0.92);
  backdrop-filter: blur(8px);
  animation: fade-in 0.35s ease both;
}
.linked[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.linked-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.linked-mark {
  font-family: var(--serif); font-size: clamp(52px, 11vh, 96px);
  line-height: 1; letter-spacing: -0.03em; color: var(--paper);
  animation: rise 0.7s var(--ease) both;
}
.linked-mark em { font-style: italic; color: var(--accent); text-shadow: 0 0 60px var(--accent-glow); }
.linked-sub {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-mute);
  animation: rise 0.7s var(--ease) 0.1s both;
}
.linked-bar {
  width: 220px; height: 1px; overflow: hidden;
  background: var(--hair);
}
.linked-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--kohl), var(--accent));
  animation: fill 1.1s ease forwards;
}
@keyframes fill { to { width: 100%; } }

/* =====================================================================
   SHARED MOTION
   ===================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================================
   DESKTOP LAYOUT
   ===================================================================== */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .stage {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(32px, 5vw, 80px);
    max-width: 1240px;
    margin: 0 auto;
  }
  .copy { flex: 1 1 auto; min-width: 0; }
  .action { flex: 0 0 auto; display: flex; justify-content: flex-end; }
  .bg-img { background-position: 72% 12%; opacity: 0.5; }
}

/* =====================================================================
   MOBILE LAYOUT (default) — must fit 360x640
   ===================================================================== */
@media (max-width: 767.98px), (hover: none), (pointer: coarse) {
  .display { font-size: clamp(38px, 7.4vh, 64px); }
  .stage { justify-content: center; gap: clamp(10px, 2.2vh, 20px); }
  .action { display: flex; justify-content: center; }
  .bg-img { background-position: 70% 8%; opacity: 0.3; }
  .live-pill { font-size: 9.5px; padding: 5px 10px; }
  .foot { font-size: 9px; letter-spacing: 0.1em; justify-content: center; text-align: center; }
}

/* very short screens (e.g. 360x640 landscape-ish density) */
@media (max-height: 660px) {
  .top { padding-top: 10px; padding-bottom: 6px; }
  .foot { padding-top: 8px; padding-bottom: 8px; }
  .meta-row { display: none; }
  .lede { font-size: 13.5px; max-width: 40ch; }
}
@media (max-height: 560px) {
  .kicker { display: none; }
  .display { margin-top: 0; }
}
