/* ============================================================================
 * 183 PWA — hero.css
 * Split from the original single-file PWA. See styles/README.md for the
 * full layout map.
 * ========================================================================== */



/* ============================================================================
   Hero — three-number layout
   ========================================================================== */

.hero {
  background: linear-gradient(160deg, var(--bg-raised) 0%, var(--bg-base) 80%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pass);
  box-shadow: 0 0 8px var(--pass);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-status.fail .dot { background: var(--fail); box-shadow: 0 0 8px var(--fail); }
.hero-status.building .dot { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.hero-status.atsea .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.hero-status .text {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero-faildate {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-shadow: 0 0 32px rgba(0, 224, 255, 0.32);
  margin-bottom: 6px;
}

.hero-faildate.projected { color: var(--signal); text-shadow: 0 0 32px rgba(255, 184, 77, 0.28); }
.hero-faildate.fail { color: var(--fail); text-shadow: 0 0 32px rgba(255, 84, 112, 0.32); }
.hero-faildate.atsea {
  color: var(--accent);
  font-size: 2.4rem;
}

.hero-faildate-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-faildate-rel {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-top: 4px;
}

.hero-reason {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
}
.hero-reason strong { color: var(--accent); font-weight: 500; }

/* Underlying day counts — informational strip below the three tiles */
.hero-underline {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}
.hero-underline .k {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 5px;
}



/* ============================================================================
   Three-number breakdown
   ========================================================================== */

.numbers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.num {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px;
}

.num .num-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.num .num-value {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

.num.banked .num-value { color: var(--text); }
.num.planned .num-value {
  color: var(--text-muted);
  font-size: 1.7rem;
}
.num.planned.active .num-value {
  color: var(--signal);
  text-shadow: 0 0 12px rgba(255, 184, 77, 0.24);
}
.num.total .num-value {
  color: var(--text);
}
.num.total.active .num-value {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
  display: inline-block;
}

.num .num-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}



/* ============================================================================
   Active trip card (replaces fail-date when at sea)
   ========================================================================== */

.atsea-card {
  margin-top: 14px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-glow);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}

.atsea-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 224, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.atsea-card .label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.atsea-card .label svg { width: 14px; height: 14px; color: var(--accent); }

.atsea-card .vessel {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.atsea-card .row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 4px 0;
}
.atsea-card .row .k { color: var(--text-muted); }
.atsea-card .row .v { color: var(--accent); font-weight: 500; }
.atsea-card .row .v.tick { color: var(--pass); }



/* ============================================================================
   Section header
   ========================================================================== */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 10px;
}

.section-header .title {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

.section-header .meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.section-header .action {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}



/* ============================================================================
   Home screen — adaptive headline. The big number near the top adapts to
   the user's state: home-days for eligible users, days-to-bank for
   building users, fail date for failed users, "Add your first voyage"
   prompt for empty.
   ========================================================================== */

.hero-headline-num {
  font-family: var(--display);
  font-size: 4.4rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-align: center;
  margin: 14px 0 4px;
  text-shadow: 0 0 48px rgba(0, 224, 255, 0.18);
}
.hero-headline-num.atsea { color: var(--text-muted); text-shadow: none; }
.hero-headline-num.building { color: var(--signal); text-shadow: 0 0 36px rgba(255, 184, 77, 0.22); }

.hero-headline-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
  margin-bottom: 8px;
}

.hero-headline-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
  margin: 0 12px 16px;
}

/* Demoted fail-date line — supporting info in the eligible state */
.hero-faildate-supporting {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  margin: 8px 0 12px;
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
}
.hero-faildate-supporting .k {
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.hero-faildate-supporting .v {
  color: var(--text-soft);
}

/* "See your minimum-work plan" CTA on the home hero — invites the user
   to the planner sheet without making them go hunt for it */
.hero-plan-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  background: var(--accent-faint);
  border: 1px solid rgba(0, 224, 255, 0.3);
  border-radius: var(--r-md);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 120ms;
}
.hero-plan-cta:hover {
  background: rgba(0, 224, 255, 0.14);
  border-color: var(--accent);
}
.hero-plan-cta-arrow svg { width: 14px; height: 14px; }

/* At-sea state — home-days projection underneath the active trip card */
.hero-home-projection {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 6px;
  padding: 14px;
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.hero-home-num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.hero-home-sub {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

