/* ============================================================
   workshop.dhilber.com — live workshop registration landing
   Standalone from the main site's violet theme: this page is
   its own orange world, matching the campaign artwork.
   ============================================================ */

:root {
  --bg: #0a0605;
  --bg-2: #150b07;
  --orange: #f0561f;
  --orange-lit: #ff7a45;
  --orange-deep: #c33e11;
  --line: rgba(240, 86, 31, 0.38);
  --line-soft: rgba(240, 86, 31, 0.16);
  --text: #ffffff;
  --text-dim: #c9b6ae;
  --text-faint: #8d7970;
  --live: #22c55e;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ml: 'Noto Sans Malayalam', 'Poppins', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Dotted texture over the whole page, like the artwork */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }

/* ------------------------------------------------------------
   Ambient glows + the curved streak from the artwork
   ------------------------------------------------------------ */

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.glow-a {
  width: 460px; height: 460px;
  top: -170px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(240, 86, 31, 0.42), transparent 68%);
}
.glow-b {
  width: 520px; height: 520px;
  bottom: -220px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(195, 62, 17, 0.32), transparent 70%);
}

.streak {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(520px, 118vw);
  height: 100%;
  pointer-events: none;
  z-index: 0;
  fill: none;
  stroke: rgba(255, 150, 105, 0.30);
  stroke-width: 2;
}
.streak .thin { stroke: rgba(255, 150, 105, 0.16); stroke-width: 1.2; }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: clamp(10px, 2.4vh, 30px) clamp(12px, 4vw, 30px);
}

/* Vertical rhythm is tied to viewport height (vh) as well as width, so the
   whole layout compresses to fit a short phone screen instead of pushing the
   title under the docked registration card. */
.frame {
  width: 100%;
  max-width: 430px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(14px, 2.4vh, 32px) clamp(16px, 5vw, 28px) clamp(12px, 1.6vh, 20px);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(240, 86, 31, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(9px, 1.7vh, 22px);
}

/* ------------------------------------------------------------
   Avatar
   ------------------------------------------------------------ */

.avatar {
  width: clamp(124px, min(50vw, 20.5vh), 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(160deg, var(--orange-lit), var(--orange-deep));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 22px 48px rgba(0, 0, 0, 0.55);
  flex: none;
}
.avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: radial-gradient(circle at 50% 34%, #3a1a0e, #1b0d07 72%);
}

/* ------------------------------------------------------------
   Live pill — green blinking dot
   ------------------------------------------------------------ */

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: clamp(7px, 1.2vh, 11px) clamp(20px, 5vw, 26px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(240, 86, 31, 0.07);
  font-weight: 700;
  font-size: clamp(15px, min(4.6vw, 2.3vh), 20px);
  letter-spacing: -0.01em;
}

.live-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--live);
  position: relative;
  flex: none;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  animation: liveBlink 1.6s ease-in-out infinite;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--live);
  animation: liveRing 1.6s ease-out infinite;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.88); }
}
@keyframes liveRing {
  0%   { transform: scale(.7); opacity: .85; }
  75%  { transform: scale(1.75); opacity: 0; }
  100% { opacity: 0; }
}

/* ------------------------------------------------------------
   Date / time
   ------------------------------------------------------------ */

.meta {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 1.1vh, 10px);
  align-items: flex-start;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 14px);
}
.ico {
  width: clamp(21px, min(7vw, 3.4vh), 30px);
  height: clamp(21px, min(7vw, 3.4vh), 30px);
  color: var(--orange);
  flex: none;
}
.meta-text {
  font-size: clamp(16px, min(5.1vw, 2.7vh), 23px);
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.meta-text sup { font-size: .58em; vertical-align: super; }

.duration {
  align-self: center;
  color: var(--text-dim);
  font-size: clamp(12.5px, min(3.8vw, 1.9vh), 16px);
  font-weight: 500;
  margin-top: -2px;
}

.rule {
  width: 88%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ------------------------------------------------------------
   Title lockup — Claude / Cowork / Malayalam
   ------------------------------------------------------------ */

.lockup {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(5px, 1vh, 12px);
}

.lock-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2.6vw, 12px);
  width: 100%;
  justify-content: center;
}

.spark {
  width: clamp(31px, min(11.5vw, 5.6vh), 58px);
  height: clamp(31px, min(11.5vw, 5.6vh), 58px);
  color: var(--orange);
  flex: none;
}

.banner {
  display: inline-block;
  background: linear-gradient(100deg, var(--orange), var(--orange-deep));
  transform: skewX(-9deg);
  padding: clamp(4px, .7vh, 6px) clamp(22px, 6vw, 30px) clamp(5px, .9vh, 8px) clamp(18px, 5vw, 24px);
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(240, 86, 31, 0.32);
}
.banner-in {
  display: inline-block;
  transform: skewX(9deg);
  font-size: clamp(30px, min(12vw, 5.7vh), 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
}

.bolt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(33px, min(12vw, 5.8vh), 60px);
  height: clamp(29px, min(10.5vw, 5vh), 52px);
  background: #fff;
  transform: skewX(-9deg);
  border-radius: 3px;
  flex: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.bolt svg {
  width: 62%;
  transform: skewX(9deg);
  color: var(--orange);
}

.plain {
  font-size: clamp(31px, min(12.5vw, 6.4vh), 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
}

.ml-box {
  border: 1.5px solid var(--orange);
  transform: skewX(-9deg);
  border-radius: 4px;
  padding: clamp(6px, 1.1vh, 10px) clamp(16px, 5vw, 22px);
  margin-top: clamp(1px, .4vh, 4px);
  max-width: 100%;
}
.ml-in {
  display: block;
  transform: skewX(9deg);
  font-family: var(--font-ml);
  font-weight: 700;
  font-size: clamp(16.5px, min(6.2vw, 2.9vh), 30px);
  line-height: 1.3;
  text-align: center;
}

/* ------------------------------------------------------------
   Registration card — sticks to the bottom of the viewport
   ------------------------------------------------------------ */

.reg-card {
  position: sticky;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(10px, 1.3vh, 16px) 16px clamp(11px, 1.5vh, 18px);
  text-align: center;
  background: linear-gradient(180deg, rgba(32, 15, 9, 0.94), rgba(16, 8, 5, 0.97));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  z-index: 3;
}

.prices {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
}
.now {
  font-size: clamp(27px, min(9.5vw, 4.8vh), 42px);
  font-weight: 800;
  color: var(--orange-lit);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.was {
  font-size: clamp(17px, min(5.6vw, 2.9vh), 25px);
  font-weight: 600;
  color: #7c6a63;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.urgency {
  margin: clamp(1px, .4vh, 4px) 0 clamp(8px, 1.3vh, 14px);
  font-size: clamp(12.5px, min(3.9vw, 1.9vh), 16px);
  font-weight: 500;
  color: var(--text);
}
.urgency strong { color: var(--orange-lit); font-weight: 700; }

/* ------------------------------------------------------------
   Register button — gentle pulse to invite the tap
   ------------------------------------------------------------ */

.reg-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  padding: clamp(11px, 1.6vh, 16px) 20px;
  background: linear-gradient(100deg, var(--orange-lit), var(--orange) 55%, var(--orange-deep));
  color: #fff;
  font-family: inherit;
  font-size: clamp(15.5px, min(4.8vw, 2.4vh), 21px);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(240, 86, 31, 0.36);
  animation: btnPulse 2.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.reg-btn svg { width: 21px; height: 21px; flex: none; }

/* Light sweep across the button */
.reg-btn::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 42%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  animation: btnSheen 2.6s ease-in-out infinite;
}

.reg-btn:hover { filter: brightness(1.06); }
.reg-btn:active { transform: scale(.985); }
.reg-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.reg-btn:disabled { opacity: .75; cursor: default; animation: none; }
.reg-btn:disabled::after { display: none; }

@keyframes btnPulse {
  0%, 72%, 100% { transform: scale(1);    box-shadow: 0 10px 26px rgba(240, 86, 31, 0.36); }
  82%           { transform: scale(1.028); box-shadow: 0 14px 34px rgba(240, 86, 31, 0.55); }
  92%           { transform: scale(.995); }
}
@keyframes btnSheen {
  0%, 55%  { left: -60%; }
  85%, 100% { left: 120%; }
}

/* ------------------------------------------------------------
   Modal
   ------------------------------------------------------------ */

body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 2, 1, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn .22s ease;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 26px 22px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #1a0d07, #0d0705);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.7);
  animation: slideUp .28s cubic-bezier(.22, 1, .36, 1);
  max-height: 92dvh;
  overflow-y: auto;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(26px); opacity: .6; } to { transform: none; opacity: 1; } }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  cursor: pointer;
}
.modal-close svg { width: 17px; height: 17px; }
.modal-close:hover { color: #fff; border-color: var(--line); }

.modal-card h2 {
  font-size: clamp(21px, 5.6vw, 25px);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-right: 40px;
}
.modal-sub {
  margin: 5px 0 20px;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
}

.modal-card label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}
.modal-card input {
  width: 100%;
  margin-bottom: 15px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  font-weight: 500;
}
.modal-card input::placeholder { color: #7b6a63; font-weight: 400; }
.modal-card input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(240, 86, 31, 0.09);
  box-shadow: 0 0 0 3px rgba(240, 86, 31, 0.18);
}

/* ---- Country picker ---- */

.phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.phone-row #phone-input { margin-bottom: 15px; }

.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 0 10px 0 12px;
  height: 51px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cc-btn:hover { border-color: var(--line); }
.cc-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.cc-btn svg { width: 15px; height: 15px; opacity: .6; }
.cc-flag { font-size: 19px; line-height: 1; }
.cc-dial { font-variant-numeric: tabular-nums; }

.cc-panel {
  position: relative;
  margin: -8px 0 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #170c07;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 5;
}
.cc-panel[hidden] { display: none; }

.cc-search {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line-soft) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.03) !important;
}
.cc-search:focus { box-shadow: none !important; }

.cc-list {
  list-style: none;
  max-height: 210px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14.5px;
}
.cc-list li:hover { background: rgba(240, 86, 31, 0.13); }
.cc-list li.sel { background: rgba(240, 86, 31, 0.2); }
.cc-list .cc-f { font-size: 18px; line-height: 1; flex: none; }
.cc-list .cc-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-list .cc-d { color: var(--text-faint); font-variant-numeric: tabular-nums; flex: none; }
.cc-list .cc-empty { color: var(--text-faint); cursor: default; justify-content: center; }
.cc-list .cc-empty:hover { background: none; }

.err {
  margin: -11px 0 13px;
  color: #ff8b6b;
  font-size: 13px;
  font-weight: 500;
}

.submit-btn { margin-top: 6px; animation: none; }
.submit-btn::after { display: none; }

.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
  color: var(--text-faint);
  font-size: 12.5px;
  font-weight: 500;
}
.secure svg { width: 14px; height: 14px; flex: none; }

/* ------------------------------------------------------------
   Wider screens: centre the card, modal becomes a dialog
   ------------------------------------------------------------ */

@media (min-width: 600px) {
  .modal { align-items: center; padding: 24px; }
  .modal-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding-bottom: 26px;
  }
  @keyframes slideUp { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ------------------------------------------------------------
   Respect reduced-motion preferences
   ------------------------------------------------------------ */

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