/* ============================================================
   AdhdAgenda Homepage – Figma-faithful rebuild
   Single full-height hero layout with phone, copy, timeline
   ============================================================ */

/* ---- Page shell ---- */
.public-page-home {
  --home-bg: #1a3f6e;
  --home-bg-deep: #0e2544;
  --home-ink: #ffffff;
  --home-ink-soft: rgba(255, 255, 255, 0.72);
  --home-ink-muted: rgba(255, 255, 255, 0.48);
  --home-blue: #3a8fd4;
  --home-teal: #3cc8c8;
  --home-gold: #c4a74e;
  color: var(--home-ink);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(60, 140, 220, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(60, 200, 200, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(10, 25, 50, 0.9) 0%, transparent 60%),
    linear-gradient(180deg, #1e4a80 0%, #153a68 30%, #0f2d52 65%, #0a1e3a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.public-page-home h1,
.public-page-home h2,
.public-page-home h3 {
  font-family: "Sora", "Avenir Next", sans-serif;
}

/* Override site.css body bg completely */
body.public-page-home {
  background:
    radial-gradient(ellipse 60% 50% at 25% 18%, rgba(50, 120, 200, 0.22) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 80% 75%, rgba(50, 180, 180, 0.10) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 50% 95%, rgba(8, 18, 35, 0.95) 0%, transparent 100%),
    radial-gradient(ellipse 30% 25% at 70% 30%, rgba(40, 100, 180, 0.08) 0%, transparent 100%),
    linear-gradient(175deg, #1d4878 0%, #163c66 22%, #112e50 50%, #0c2240 75%, #081a30 100%) !important;
}

/* Kill site.css pseudo-element blobs */
body.public-page-home::before,
body.public-page-home::after {
  display: none !important;
}

/* ---- Nav bar ---- */
.public-page-home .site-header {
  position: relative;
  z-index: 10;
  padding: 28px 0 0;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.home-nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

.home-nav-links a:hover,
.home-nav-links a:focus-visible {
  color: #ffffff;
}

.home-nav-login {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid var(--home-gold);
  color: var(--home-gold);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 160ms ease, color 160ms ease;
}

.home-nav-login:hover,
.home-nav-login:focus-visible {
  background: rgba(196, 167, 78, 0.12);
  color: #ddc460;
}

/* ---- Full-page hero container ---- */
.home-hero-fullpage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 70px);
  padding-bottom: 32px;
}

/* ---- Particle dots ---- */
.home-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 6px 1px rgba(180, 210, 255, 0.15);
  animation: particlePulse 4s ease-in-out infinite alternate;
}

@keyframes particlePulse {
  0%   { opacity: 0.4; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.3); }
}

.p1  { top: 8%;  left: 6%;  width: 3px; height: 3px; animation-delay: 0s; }
.p2  { top: 15%; left: 20%; width: 4px; height: 4px; animation-delay: 0.6s; box-shadow: 0 0 8px 2px rgba(180,210,255,0.2); }
.p3  { top: 32%; left: 4%;  width: 3px; height: 3px; animation-delay: 1.2s; }
.p4  { top: 50%; left: 12%; width: 3px; height: 3px; animation-delay: 0.3s; }
.p5  { top: 68%; left: 8%;  width: 4px; height: 4px; animation-delay: 2s; box-shadow: 0 0 8px 2px rgba(180,210,255,0.18); }
.p6  { top: 6%;  right: 10%; width: 3px; height: 3px; animation-delay: 1.5s; }
.p7  { top: 22%; right: 5%;  width: 3px; height: 3px; animation-delay: 0.8s; }
.p8  { top: 42%; right: 15%; width: 4px; height: 4px; animation-delay: 2.5s; box-shadow: 0 0 8px 2px rgba(180,210,255,0.2); }
.p9  { top: 60%; right: 7%;  width: 3px; height: 3px; animation-delay: 1s; }
.p10 { top: 78%; left: 42%;  width: 3px; height: 3px; animation-delay: 1.8s; }
.p11 { top: 25%; left: 35%;  width: 2px; height: 2px; animation-delay: 3s; }
.p12 { top: 45%; left: 28%;  width: 3px; height: 3px; animation-delay: 0.4s; }
.p13 { top: 85%; left: 22%;  width: 2px; height: 2px; animation-delay: 2.2s; }
.p14 { top: 38%; right: 30%; width: 2px; height: 2px; animation-delay: 1.6s; }
.p15 { top: 55%; right: 25%; width: 3px; height: 3px; animation-delay: 3.2s; }
.p16 { top: 12%; left: 50%;  width: 2px; height: 2px; animation-delay: 0.9s; }
.p17 { top: 75%; right: 20%; width: 2px; height: 2px; animation-delay: 2.8s; }
.p18 { top: 90%; left: 60%;  width: 3px; height: 3px; animation-delay: 1.4s; }

/* ---- AA Logo lockup ---- */
.home-brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 24px;
}

.home-aa-mark {
  flex-shrink: 0;
  width: 36px;
  height: 40px;
}

@media (min-width: 700px) {
  .home-aa-mark {
    width: 44px;
    height: 48px;
  }
}

@media (min-width: 1360px) {
  .home-aa-mark {
    width: 50px;
    height: 55px;
  }
}

.home-brand-name {
  font-family: "Space Grotesk", "Sora", "Avenir Next", sans-serif;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #f5fbff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-brand-name .brand-adhd {
  color: #e8eef4;
  font-weight: 500;
}

.home-brand-name .brand-agenda {
  color: #5bbf9a;
  font-weight: 500;
}

/* ---- Hero layout (3-col on desktop) ---- */
.home-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  flex: 1;
  padding-top: 8px;
  padding-bottom: 24px;
}

/* ---- Phone mockup ---- */
.home-phone-col {
  display: flex;
  justify-content: center;
}

.home-phone {
  width: 280px;
  background: linear-gradient(180deg, #0a1828 0%, #132840 100%);
  border-radius: 42px;
  border: 2.5px solid rgba(140, 185, 230, 0.18);
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 8px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.home-phone-notch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.phone-island {
  width: 80px;
  height: 22px;
  border-radius: 999px;
  background: #000;
}

.phone-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.phone-screen {
  padding: 0 16px 8px;
}

.phone-header {
  margin-bottom: 12px;
}

.phone-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-header-top strong {
  font-size: 1.1rem;
  color: #fff;
}

.phone-info-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}

.phone-date {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Med card */
.phone-med-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}

.phone-med-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-med-icon {
  flex-shrink: 0;
}

.phone-med-row strong {
  font-size: 0.95rem;
  color: #fff;
}

.phone-med-row p {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.phone-med-row div {
  flex: 1;
}

.phone-chevron {
  color: rgba(255, 255, 255, 0.3);
}

/* Log dose */
.phone-log-dose {
  margin-bottom: 12px;
}

.phone-log-label {
  margin: 0 0 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.phone-log-buttons {
  display: flex;
  gap: 8px;
}

.phone-log-buttons button {
  flex: 1;
  padding: 7px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: default;
  font-family: inherit;
}

.phone-log-buttons button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

/* Symptoms */
.phone-symptoms {
  margin-bottom: 14px;
}

.phone-symptoms-label {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.phone-symptoms-scale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.phone-dots {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.phone-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.phone-dots .dot.active {
  background: #3a8fd4;
  border-color: #3a8fd4;
}

/* Next dose */
.phone-next-dose {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}

.phone-next-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-next-top strong {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.phone-next-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(60, 200, 200, 0.18);
  color: #5ee0d0;
  font-size: 0.72rem;
  font-weight: 700;
}

.phone-next-time {
  margin: 4px 0 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.phone-next-note {
  margin: 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Tracking today */
.phone-tracking {
  margin-bottom: 10px;
}

.phone-tracking-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.phone-tracking-row {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-tracking-time {
  flex-shrink: 0;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

/* Tab bar */
.phone-tab-bar {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-icon {
  color: rgba(255, 255, 255, 0.25);
}

.tab-icon.tab-active {
  color: #3cc8c8;
}

/* ---- Center hero copy ---- */
.home-hero-center {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.home-hero-center h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: rgba(245, 251, 255, 0.88);
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
}

.home-hero-sub {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

/* CTA button */
.home-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a7ac4 0%, #38b8c8 50%, #4dd4a8 100%);
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow:
    0 18px 44px rgba(30, 120, 180, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-cta-button:hover,
.home-cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 22px 52px rgba(30, 120, 180, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ---- Timeline / schedule ---- */
.home-timeline-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 340px;
  margin: 0 auto;
}

.home-timeline-title {
  margin: 0 0 12px;
  padding-left: 22px;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ---- Vertical track with line ---- */
.tl-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 22px;
}

/* Vertical line */
.tl-track::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, rgba(100, 170, 230, 0.5) 0%, rgba(100, 170, 230, 0.15) 100%);
  border-radius: 2px;
}

/* ---- Each timeline entry ---- */
.tl-entry {
  position: relative;
  padding-bottom: 16px;
}

/* ---- Dot on the line ---- */
.tl-dot {
  position: absolute;
  left: -19px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  z-index: 1;
}

.tl-dot-blue {
  background: #4a9ede;
  box-shadow: 0 0 10px 3px rgba(74, 158, 222, 0.5), 0 0 20px 6px rgba(74, 158, 222, 0.2);
}

.tl-dot-gold {
  background: #e8b840;
  box-shadow: 0 0 6px 2px rgba(232, 184, 64, 0.3);
}

.tl-dot-grey {
  background: #8ca0b4;
  box-shadow: 0 0 4px 1px rgba(140, 160, 180, 0.2);
}

/* ---- Time label ---- */
.tl-time {
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  -webkit-font-smoothing: antialiased;
}

.tl-time span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---- White card ---- */
.tl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.tl-card strong {
  display: block;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a2d44;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.tl-card p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: #5a6e82;
  line-height: 1.3;
}

/* ---- Card emoji icon ---- */
.tl-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.4rem;
}

.tl-card-icon-med {
  background: linear-gradient(135deg, #e3f0ff, #d0e4f8);
}

.tl-card-icon-note {
  background: linear-gradient(135deg, #fff8e0, #ffeeb8);
}

.tl-card-icon-prep {
  background: linear-gradient(135deg, #e8f5e4, #d4ecd0);
}

.tl-card-icon-visit {
  background: linear-gradient(135deg, #e3eeff, #d0dff8);
}

/* Active entry glow */
.tl-entry-active .tl-card {
  box-shadow:
    0 4px 24px rgba(74, 158, 222, 0.12),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ---- Benefits strip ---- */
.home-benefits-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  padding: 0 20px;
}

.home-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.benefit-icon-appt {
  background: rgba(28, 181, 169, 0.14);
  color: #3cc8c8;
}

.benefit-icon-notes {
  background: rgba(232, 160, 64, 0.14);
  color: #e8a040;
}

.benefit-icon-patterns {
  background: rgba(90, 140, 220, 0.14);
  color: #5a8cdc;
}

.home-benefit p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.58);
}

/* ---- Pagination dots ---- */
.home-page-dots {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.pdot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

/* ---- Disclaimer ---- */
.home-disclaimer {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 20px;
}

/* ---- Footer row ---- */
.home-footer-row {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px 20px 0;
}

.home-footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  max-width: var(--container);
  margin: 0 auto;
}

.home-footer-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  transition: color 160ms ease;
}

.home-footer-links a:hover,
.home-footer-links a:focus-visible {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Hide default site header/footer chrome ---- */
.public-page-home .site-header-inner,
.public-page-home .site-footer {
  display: none;
}

/* ---- Focus states ---- */
.public-page-home a:focus-visible {
  outline: 2px solid rgba(60, 200, 200, 0.7);
  outline-offset: 4px;
}

/* ============================================================
   Responsive: tablet (700px+)
   ============================================================ */
@media (min-width: 700px) {
  .home-brand-lockup {
    margin-top: 48px;
    gap: 20px;
  }

  .home-brand-name {
    font-size: 3.4rem;
  }

  .home-hero-center h1 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
  }

  .home-benefits-strip {
    gap: 48px;
  }
}

/* ============================================================
   Responsive: desktop (1080px+)
   ============================================================ */
@media (min-width: 1080px) {
  .home-hero-layout {
    grid-template-columns: 280px 1fr 320px;
    gap: 40px;
    align-items: center;
  }

  .home-phone-col {
    justify-content: flex-start;
  }

  .home-timeline-col {
    margin: 0;
    max-width: none;
  }

  .home-hero-center h1 {
    font-size: 2.1rem;
    max-width: 18ch;
  }

  .home-brand-lockup {
    margin-top: 36px;
    margin-bottom: 16px;
  }

  .home-benefits-strip {
    margin-top: 40px;
    gap: 56px;
  }
}

/* ============================================================
   Responsive: large desktop (1360px+)
   ============================================================ */
@media (min-width: 1360px) {
  .home-hero-layout {
    grid-template-columns: 300px 1fr 340px;
    gap: 52px;
  }

  .home-phone {
    width: 300px;
  }

  .home-hero-center h1 {
    font-size: 2.2rem;
  }

  .home-brand-name {
    font-size: 3.8rem;
  }
}

/* ============================================================
   Responsive: mobile (max-width: 699px)
   ============================================================ */
@media (max-width: 699px) {
  .home-hero-layout {
    gap: 28px;
    padding-top: 0;
  }

  .home-phone-col {
    order: 2;
  }

  .home-hero-center {
    order: 1;
  }

  .home-timeline-col {
    order: 3;
  }

  .home-brand-lockup {
    margin-top: 28px;
    margin-bottom: 16px;
    gap: 10px;
  }

  .home-aa-mark {
    width: 30px;
    height: 33px;
  }

  .home-brand-name {
    font-size: 2rem;
  }

  .home-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-nav-links {
    gap: 18px;
  }

  .home-nav-links a {
    font-size: 0.88rem;
  }

  .home-nav-login {
    position: static;
    min-height: 36px;
    padding: 0 18px;
    font-size: 0.84rem;
  }

  .home-benefits-strip {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .home-footer-links {
    justify-content: center;
  }
}
