/* ============================================================================
   OFFIQA — Extension UI Synchronized Homepage
   Aesthetic: Slate Canvas (#F4F6F9), Pure White Surface (#FFFFFF),
   Midnight Navy Hero (#112240), Royal Blue Accent (#2563EB).
   ============================================================================ */

/* ── 0. Page-level override ────────────────────────────────────────────────── */
body {
  background-color: var(--paper) !important;
  color: var(--ink) !important;
}

/* ── 1. HERO — Modern Slate Zone ───────────────────────────────────────────── */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0;
  overflow: hidden;
  background: var(--paper);
}

.home-hero::before { display: none; }
.home-hero::after { display: none; }

/* ── 2. HERO INNER CONTENT ────────────────────────────────────────────────── */
.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 44px), var(--site-page-width));
  margin: 0 auto;
  padding: clamp(5rem, 10vh, 8rem) 0 clamp(3rem, 6vh, 5rem);
}

.home-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
}

/* ── 3. HERO COPY ─────────────────────────────────────────────────────────── */
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 1rem;
  border-right: none;
}

/* Eyebrow tag stamp */
.hero-copy .tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  background: #EBF5FF;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  color: #2563EB;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
}

.tag-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #2563EB;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.6);
}

/* H1 */
.home-hero-split h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #0F172A;
}

/* Lead paragraph */
.hero-copy .lead {
  max-width: 48ch;
  margin: 0 0 1rem;
  color: #475569;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
}

/* Review line */
.hero-copy .review {
  margin: 0 0 1.8rem;
  font-size: 0.82rem;
  color: #64748B;
  font-family: var(--font-mono);
}

/* ── 4. CTA BUTTONS ───────────────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 0;
}

.btn-magnetic { display: inline-block; }

/* Primary Button */
.hero-actions .button.btn-dark,
.hero-actions .button.btn-shine {
  position: relative;
  padding: 0.85rem 1.8rem;
  background: #2563EB !important;
  color: #FFFFFF !important;
  font-size: 0.95rem;
  font-weight: 700;
  border: none !important;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.25s ease !important;
}

.hero-actions .button.btn-dark:hover,
.hero-actions .button.btn-shine:hover {
  background: #1D4ED8 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45) !important;
  color: #FFFFFF !important;
  text-decoration: none;
}

/* Outline button */
.hero-actions .button.btn-outline {
  padding: 0.85rem 1.8rem;
  background: #FFFFFF !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  transition: all 0.25s ease !important;
}
.hero-actions .button.btn-outline:hover {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
  transform: translateY(-2px) !important;
  text-decoration: none;
}

/* ── 5. HERO VISUAL (Chrome Extension App Mockup) ────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
}

/* Chrome Extension App Window */
.ext-app-window {
  width: 100%;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ext-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
}

.ext-search-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.72rem;
  color: #64748B;
}

.ext-app-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 480px;
}

/* Extension Sidebar */
.ext-sidebar {
  background: #FFFFFF;
  border-right: 1px solid #F1F5F9;
  padding: 1rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ext-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0F172A;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #F1F5F9;
}

.ext-sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ext-sidebar-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.ext-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
}

.ext-sidebar-item.active {
  background: #EBF5FF;
  color: #2563EB;
}

.ext-sidebar-badge {
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #F1F5F9;
  color: #64748B;
}

.ext-pro-card {
  margin-top: auto;
  padding: 0.85rem;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ext-pro-btn {
  padding: 0.4rem 0.75rem;
  background: #2563EB;
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  border: none;
}

/* Extension Main Area */
.ext-main {
  background: #F4F6F9;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Top Workspace Tab Bar */
.ext-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.ext-tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.ext-tab-chip.pink { background: #FCE7F3; color: #9D174D; }
.ext-tab-chip.blue { background: #E0F2FE; color: #075985; }
.ext-tab-chip.teal { background: #CCFBF1; color: #115E59; }
.ext-tab-chip.green { background: #DCFCE7; color: #166534; }
.ext-tab-chip.mint { background: #E0E7FF; color: #3730A3; }

/* Extension Grid Layout */
.ext-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1rem;
}

/* Midnight Navy Banner */
.ext-navy-hero {
  background: #112240;
  border-radius: 16px;
  padding: 1.4rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 10px 25px -5px rgba(17, 34, 64, 0.3);
}

.ext-navy-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94A3B8;
  text-transform: uppercase;
}

.ext-navy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.7rem;
  margin-top: 0.4rem;
}

.ext-navy-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0.4rem 0 0.2rem;
  color: #FFFFFF;
}

.ext-navy-sub {
  font-size: 0.78rem;
  color: #CBD5E1;
}

.ext-navy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0F172A;
  font-size: 0.75rem;
  font-weight: 700;
}

.ext-navy-ring {
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Today Focus Card */
.ext-focus-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ext-focus-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ext-focus-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #334155;

}

.ext-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ext-checkbox.checked {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

/* Workday Routine Card */
.ext-routine-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ext-routine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

}
.nt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.nt-tags span {
  display: inline-flex;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--violet-border);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--violet-d);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nt-resume h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nt-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.nt-apps span {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  font-size: 0.60rem;
  font-weight: 600;
  color: var(--blue-d);
}
.nt-note {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}
.nt-note em { color: var(--faint); font-style: normal; }
.nt-note .dot { color: var(--line-2); }

.nt-next {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-2);
}

.nt-pulse {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--violet);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.nt-resume-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 4px 14px var(--violet-glow);
}

.nt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.nt-mini {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.nt-mini-h {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: #D4AF37;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.nt-mini p {
  margin: 0;
  font-size: 0.68rem;
  color: #CBD5E1;
  line-height: 1.4;
}

  line-height: 1.4;
}

/* ── 6. OMBRE TRANSITION BAND (Removed for Pure Light theme) ─────────────── */
.home-ombre-band {
  display: none;
}

/* ── 7. LIGHT CONTENT ZONE ────────────────────────────────────────────────── */
.home-content {
  background: var(--paper);
  position: relative;
  z-index: 2;
  /* Add subtle top border since hero and content are both light */
  border-top: 1px solid var(--line-soft);
}

/* Cards hover — violet accent */
.home-content .card:hover {
  border-color: var(--violet-border);
  box-shadow: var(--shadow-glow-sm);
  transform: translateY(-4px);
}

/* ── 8. STAGGERED REVEAL ANIMATIONS ──────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    transform: translateY(22px);
    animation: ph-reveal-up var(--dur-slow) var(--ease-expo) forwards;
  }
  .hero-copy .tag-pill     { animation-delay: 0.05s; }
  .hero-copy h1            { animation-delay: 0.15s; }
  .hero-copy .lead         { animation-delay: 0.24s; }
  .hero-copy .review       { animation-delay: 0.30s; }
  .hero-copy .hero-actions { animation-delay: 0.38s; }

  .hero-visual {
    opacity: 0;
    transform: translateY(20px);
    animation: ph-reveal-up var(--dur-lazy) var(--ease-expo) 0.22s forwards;
  }

  @keyframes ph-reveal-up {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ── 9. RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-copy {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 2.5rem;
  }
  .hero-visual {
    padding-left: 0;
    max-width: 460px;
    margin: 0 auto;
  }
  .nt { transform: none; }
  .nt:hover { transform: none; }
}

@media (max-width: 580px) {
  .home-hero-inner {
    padding-top: clamp(4rem, 10vh, 6rem);
    padding-bottom: clamp(2rem, 5vh, 4rem);
  }
  .home-hero-split h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }
  .nt-grid { grid-template-columns: 1fr; }
}
