/* ==================================================================
   area.css  -  Hero, public site layout, and shared page components.
   Loaded after theme.css.
   ================================================================== */

/* ---------- Public navbar ---------- */
.pub-nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--pr-white);
  border-bottom: 1px solid var(--pr-border);
  padding: 14px 0;
}
.pub-nav .container { display: flex; align-items: center; justify-content: space-between; }
.pub-brand { display: flex; align-items: center; font-weight: 700; font-size: 20px; text-decoration: none; }
.pub-brand .b-accent { color: var(--pr-gold); }
.pub-brand .b-rest   { color: var(--pr-text-primary); }
.pub-nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.pub-nav-links a { color: var(--pr-text-secondary); text-decoration: none; font-weight: 500; font-size: 0.92rem; }
.pub-nav-links a:hover { color: var(--pr-gold-dark); }
.pub-nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; color: var(--pr-text-primary); }

/* ---------- Signature hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--pr-text-inverse);
  background:
    radial-gradient(circle at 78% 18%, rgba(245,110,15,0.28), transparent 45%),
    radial-gradient(circle at 12% 90%, rgba(42,74,138,0.30), transparent 40%),
    linear-gradient(135deg, var(--pr-navy-dark) 0%, var(--pr-navy) 55%, var(--pr-navy-mid) 100%);
  padding: 72px 0 80px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; top: -140px; right: -80px; width: 460px; height: 460px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(245,110,15,0.22), transparent 60%);
}
.hero .container { position: relative; z-index: 2; }
.hero, .hero * { color: var(--pr-text-inverse); }
.hero-eyebrow {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--pr-gold) !important; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.hero-eyebrow .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--pr-gold);
  display: inline-block; animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%,100% { transform: scale(1);   opacity: 1;   }
  50%     { transform: scale(1.6); opacity: 0.4; }
}
.hero h1 { font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--pr-text-inverse) !important; margin-bottom: 16px; line-height: 1.15; }
.hero-sub { font-size: 0.95rem; color: rgba(255,255,255,0.85) !important; max-width: 620px; }
.hero-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Public sections ---------- */
.section { padding: 64px 0; }
.section-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--pr-text-muted); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--pr-text-primary); margin: 8px 0 14px; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 22px; }
.feature-card {
  background: var(--pr-white); border: 0.5px solid var(--pr-border-light);
  border-radius: var(--pr-radius-lg); padding: 24px; box-shadow: var(--pr-shadow-xs);
  transition: var(--pr-transition);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--pr-shadow-sm); }
.icon-chip {
  width: 44px; height: 44px; border-radius: var(--pr-radius); display: inline-flex;
  align-items: center; justify-content: center; background: var(--pr-navy-tint);
  color: var(--pr-navy); margin-bottom: 14px;
}
.feature-card h4 { margin-bottom: 8px; }

/* ---------- Pricing cards ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--pr-white); border: 1px solid var(--pr-border);
  border-radius: var(--pr-radius-lg); padding: 28px; display: flex; flex-direction: column;
  box-shadow: var(--pr-shadow-xs);
}
.price-card.featured { border: 2px solid var(--pr-gold); box-shadow: var(--pr-shadow-md); position: relative; }
.price-card.featured::before {
  content: "Recommended"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--pr-gold); color: #fff; font-size: 0.68rem; font-weight: 600;
  padding: 4px 14px; border-radius: var(--pr-radius-pill); text-transform: uppercase; letter-spacing: 0.04em;
}
.price-amount { font-family: var(--pr-font-mono); font-size: 2.2rem; font-weight: 700; color: var(--pr-text-primary); }
.price-amount small { font-size: 0.9rem; color: var(--pr-text-muted); font-family: var(--pr-font); }
.price-features { list-style: none; padding: 0; margin: 20px 0; flex: 1; }
.price-features li { padding: 7px 0; font-size: 0.9rem; border-bottom: 1px solid var(--pr-border-light); display: flex; gap: 8px; }
.price-features li::before { content: "\2713"; color: var(--pr-green); font-weight: 700; }
.price-features li.off { color: var(--pr-text-muted); }
.price-features li.off::before { content: "\2013"; color: var(--pr-text-muted); }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 420px; margin: -48px auto 64px; position: relative; z-index: 3; }
.auth-wrap.wide { max-width: 480px; }
.auth-card { background: var(--pr-white); border: 0.5px solid var(--pr-border-light); border-radius: var(--pr-radius-lg); box-shadow: var(--pr-shadow); padding: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--pr-text-muted); font-size: 0.8rem; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--pr-border); }
.field-error { color: var(--pr-red); font-size: 0.78rem; margin-top: 4px; }
.form-label { font-size: 0.8rem; font-weight: 500; color: var(--pr-text-secondary); margin-bottom: 6px; }

/* ---------- Public footer ---------- */
.pub-footer { background: var(--pr-navy); color: rgba(255,255,255,0.8); padding: 48px 0 28px; }
.pub-footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
.pub-footer a:hover { color: var(--pr-gold-light); }
.pub-footer h6 { color: #fff; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.06em; margin-bottom: 14px; }
.pub-footer .foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.pub-footer .foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 18px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ---------- KPI stat cards (dashboard) ---------- */
.kpi-value { font-family: var(--pr-font-mono); font-weight: 700; font-size: 1.75rem; color: var(--pr-text-primary); }
.kpi-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pr-text-muted); }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .icon-chip { width: 64px; height: 64px; margin: 0 auto 16px; font-size: 28px; }
.empty-state h5 { color: var(--pr-text-primary); }
.empty-state p { color: var(--pr-text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .pub-nav-links { display: none; }
  .pub-nav-toggle { display: block; }
  .pub-footer .foot-cols { grid-template-columns: 1fr 1fr; }
}
