/* ============================================
   EGGHEAD — Shared Styles
   ============================================ */

:root {
  --bg-deep: #7DB9E8;
  --bg-soft: #A8CFEC;
  --bg-cream: #FFF6E0;
  --ink: #1a1a2e;
  --ink-soft: #2d2d44;
  --accent: #FFC93C;
  --accent-glow: #FFD96A;
  --accent-deep: #E8A800;
  --shell: #FFF5DA;
  --shell-shadow: #d9c79a;
  --crack: #2a2a3f;
  --success: #4ADE80;
  --danger: #F87171;
  --pending: #94a3b8;

  --font-display: 'Fredoka', 'Comic Sans MS', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-lg: 0 24px 60px -20px rgba(20, 30, 60, 0.35);
  --shadow-md: 0 12px 30px -10px rgba(20, 30, 60, 0.25);
  --shadow-sm: 0 4px 14px -4px rgba(20, 30, 60, 0.2);
  --shadow-card: 8px 8px 0 0 var(--ink);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* ============================================
   Animated Background
   ============================================ */
.bg-wash {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255, 201, 60, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 90%, rgba(255, 255, 255, 0.15), transparent 60%),
    linear-gradient(180deg, #7DB9E8 0%, #A8CFEC 50%, #7DB9E8 100%);
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float-orb 18s ease-in-out infinite;
}
.orb-1 { width: 380px; height: 380px; background: #FFC93C; top: 10%; left: -8%; }
.orb-2 { width: 320px; height: 320px; background: #FFF5DA; top: 50%; right: -6%; animation-delay: -6s; animation-duration: 22s; }
.orb-3 { width: 260px; height: 260px; background: #C8E1F5; bottom: -8%; left: 30%; animation-delay: -12s; animation-duration: 26s; }

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Floating mini eggs decoration */
.floating-eggs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.mini-egg {
  position: absolute;
  width: 14px;
  height: 18px;
  background: var(--shell);
  border: 2px solid var(--ink);
  border-radius: 50% 50% 45% 45%;
  opacity: 0.35;
  animation: drift linear infinite;
}
@keyframes drift {
  from { transform: translateY(-30px) rotate(0deg); }
  to { transform: translateY(110vh) rotate(360deg); }
}

/* ============================================
   Navbar
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(125, 185, 232, 0.55);
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: white;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.nav-brand:hover img { transform: rotate(-8deg) scale(1.05); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  transition: opacity 0.2s ease;
  position: relative;
}
.nav-links a:not(.btn):hover { opacity: 0.7; }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  background: white;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 4px 4px 0 0 var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 0 var(--ink);
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.btn-primary:hover { background: var(--accent-glow); }
.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.4);
  box-shadow: none;
  transform: none;
}
.btn-block { width: 100%; justify-content: center; }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 4px 4px 0 0 var(--ink) !important;
}

/* ============================================
   Layout containers
   ============================================ */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 100px 0; position: relative; }
section.tight { padding: 60px 0; }

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 0 var(--ink);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 50px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 24px;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.hero-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero h1 .accent {
  color: var(--accent-deep);
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 12px;
  background: var(--accent);
  z-index: -1;
  border-radius: 6px;
  transform: skewX(-6deg);
}

.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 2px dashed rgba(26, 26, 46, 0.2);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero art */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: 36px;
  border: 3px solid var(--ink);
  background: linear-gradient(160deg, #FFF5DA 0%, #FFD96A 100%);
  box-shadow: 12px 12px 0 0 var(--ink);
  overflow: hidden;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
.hero-art-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticker {
  position: absolute;
  background: white;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 4px 4px 0 0 var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bob 5s ease-in-out infinite;
}
.sticker.s1 { top: -20px; right: -10px; background: var(--accent); animation-delay: -1s; }
.sticker.s2 { bottom: 20px; left: -30px; animation-delay: -2.5s; }
.sticker.s3 { bottom: -20px; right: 40px; background: #C8E1F5; animation-delay: -3.5s; }

/* ============================================
   Marquee
   ============================================ */
.marquee-wrap {
  padding: 40px 0;
  border-block: 2.5px solid var(--ink);
  background: var(--accent);
  overflow: hidden;
}
.marquee {
  display: flex;
  gap: 60px;
  animation: scroll 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee span::after {
  content: '✦';
  color: var(--ink);
  font-size: 28px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.gallery .card {
  border: 3px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: 6px 6px 0 0 var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1;
}
.gallery .card:hover {
  transform: translate(-3px, -5px) rotate(-1deg);
  box-shadow: 9px 11px 0 0 var(--ink);
}
.gallery .card img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery .card.wide { grid-column: span 2; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .card.wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .card.wide { grid-column: span 2; }
}

/* ============================================
   Feature cards
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  padding: 32px;
  background: white;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 0 var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 0 var(--ink);
}
.feature-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--accent);
  border: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ============================================
   Roadmap
   ============================================ */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.roadmap::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 5%;
  right: 5%;
  height: 3px;
  background-image: linear-gradient(to right, var(--ink) 50%, transparent 50%);
  background-size: 12px 3px;
  z-index: 0;
}
.road-step {
  position: relative;
  background: white;
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 5px 5px 0 0 var(--ink);
  z-index: 1;
}
.road-marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -50px auto 16px;
  box-shadow: 4px 4px 0 0 var(--ink);
}
.road-step.active .road-marker { background: var(--success); }
.road-step.done .road-marker { background: var(--success); }
.road-step.done .road-marker::after { content: '✓'; }
.road-step.done .road-marker { color: white; font-size: 26px; }
.road-step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.road-step p {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 4px 4px 0 0 var(--ink);
  transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: 6px 6px 0 0 var(--ink); }
.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 28px;
  font-weight: 400;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ============================================
   CTA Band
   ============================================ */
.cta-band {
  background: var(--ink);
  color: white;
  border-radius: 36px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 12px 12px 0 0 var(--accent);
  border: 3px solid var(--ink);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-band p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 560px;
  margin-inline: auto;
}
.cta-band .btn { font-size: 17px; padding: 16px 32px; }

/* ============================================
   Footer
   ============================================ */
footer {
  padding: 50px 32px 30px;
  text-align: center;
  border-top: 2px solid rgba(26, 26, 46, 0.1);
  margin-top: 60px;
}
.foot-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 12px;
}
.foot-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px 0;
}
.foot-socials a {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: white;
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform 0.2s ease;
}
.foot-socials a:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 0 var(--ink); }
.foot-copy { font-size: 14px; color: var(--ink-soft); }

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art-frame { max-width: 360px; }
  .features { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; gap: 36px; }
  .roadmap::before { display: none; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 70px 0; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* ============================================
   ====  APPLY PAGE  ====
   ============================================ */

.apply-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.apply-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
}

.apply-card {
  width: 100%;
  max-width: 720px;
  background: white;
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: 14px 14px 0 0 var(--ink);
  overflow: hidden;
}

.apply-head {
  padding: 32px 36px 24px;
  border-bottom: 2.5px solid var(--ink);
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-cream) 100%);
  text-align: center;
}
.apply-head h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.apply-head p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* Progress bar */
.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
  background: #FAF7EE;
  border-bottom: 2.5px solid var(--ink);
  gap: 8px;
}
.prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  gap: 6px;
}
.prog-step + .prog-step::before {
  content: '';
  position: absolute;
  left: -50%;
  top: 18px;
  width: 100%;
  height: 3px;
  background-image: linear-gradient(to right, var(--pending) 50%, transparent 50%);
  background-size: 10px 3px;
  z-index: 0;
}
.prog-step.done + .prog-step::before,
.prog-step.active::before {
  background-image: linear-gradient(to right, var(--success) 50%, transparent 50%);
}
.prog-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.prog-step.active .prog-circle {
  background: var(--accent);
  transform: scale(1.1);
}
.prog-step.done .prog-circle {
  background: var(--success);
  color: white;
}
.prog-step.done .prog-circle::after { content: '✓'; font-size: 17px; }
.prog-step.done .prog-circle .n { display: none; }
.prog-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.prog-step.active .prog-label { color: var(--ink); }

@media (max-width: 600px) {
  .prog-label { display: none; }
  .progress { padding: 20px 24px; }
}

/* Task panels */
.task-stage {
  padding: 40px 40px 36px;
  min-height: 320px;
  display: none;
  animation: slideIn 0.4s ease;
}
.task-stage.show { display: block; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.task-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.task-stage h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.task-stage > p.desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.action-block {
  background: var(--bg-cream);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 18px;
}
.action-block .row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.action-block .x-icon {
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 20px;
  flex-shrink: 0;
}
.action-block .x-target {
  flex: 1;
  min-width: 160px;
}
.action-block .x-target .handle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}
.action-block .x-target .sub {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Form fields */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  outline: none;
}
.field input:focus,
.field textarea:focus {
  box-shadow: 4px 4px 0 0 var(--ink);
  transform: translate(-2px, -2px);
}
.field .hint {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.field .err {
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  display: none;
}
.field.error .err { display: block; }
.field.error input,
.field.error textarea { border-color: var(--danger); }

.task-foot {
  padding: 20px 40px 32px;
  border-top: 2px dashed rgba(26, 26, 46, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.task-counter {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.task-counter strong { color: var(--ink); font-size: 15px; }

.task-actions { display: flex; gap: 10px; }

/* Verify check */
.verify-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 14px;
  margin-top: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
  transition: background 0.2s ease;
}
.verify-check:hover { background: #FFFBEC; }
.verify-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
  cursor: pointer;
}

/* Success screen */
.success-stage {
  padding: 60px 40px;
  text-align: center;
  display: none;
}
.success-stage.show { display: block; animation: slideIn 0.5s ease; }
.success-egg {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  background: var(--accent);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  box-shadow: 8px 8px 0 0 var(--ink);
  animation: bob 4s ease-in-out infinite;
}
.success-stage h2 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.success-stage p {
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 auto 28px;
}
.ticket {
  display: inline-block;
  padding: 16px 28px;
  background: var(--ink);
  color: white;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.ticket .num {
  color: var(--accent);
  font-size: 22px;
  margin-left: 8px;
  letter-spacing: 0.08em;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Confetti */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  width: 10px;
  height: 14px;
  top: -20px;
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}
