/* ============================================================
   NURSEMATE HOME — page-specific styles (tokens in tokens.css)
   ============================================================ */

/* ---------- hero ---------- */
.hero {
  padding: var(--s-8) 0 var(--s-7);
  background:
    radial-gradient(ellipse 55% 45% at 72% -5%, rgba(77, 159, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 100%, rgba(56, 210, 192, 0.1), transparent 70%),
    var(--bg-0);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  margin: 0 0 var(--s-4);
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin: 0 auto var(--s-6);
  max-width: 620px;
  color: var(--text-2);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-bottom: var(--s-4);
}

.hero-note {
  margin: 0 0 var(--s-8);
  color: var(--text-3);
  font-size: 0.88rem;
}

/* Hero product mockup — browser window of Florence chat */
.hero-mockup {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  text-align: left;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 16px;
  background: var(--glass);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-url {
  flex: 1;
  margin-left: 8px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

.mockup-body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background:
    radial-gradient(ellipse 50% 40% at 85% 0%, rgba(77, 159, 255, 0.08), transparent 70%),
    var(--bg-2);
}

.mock-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: mock-fade 0.6s var(--ease) both;
}

.mock-bubble.ai {
  align-self: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  color: var(--text-1);
}

.mock-bubble.user {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 16px rgba(77, 159, 255, 0.3);
}

.mock-bubble:nth-child(1) { animation-delay: 0.15s; }
.mock-bubble:nth-child(2) { animation-delay: 0.45s; }
.mock-bubble:nth-child(3) { animation-delay: 0.75s; }

@keyframes mock-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- products ---------- */
.products {
  padding: var(--s-8) 0 var(--s-7);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-4);
}

.product-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  position: relative;
  overflow: hidden;
  transition: transform var(--t) var(--ease-spring),
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(77, 159, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 159, 255, 0.4);
  box-shadow: var(--glow);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card.product-soon:hover {
  border-color: rgba(240, 180, 41, 0.4);
  box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.2), 0 16px 48px rgba(0, 0, 0, 0.4);
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-1);
}

.product-icon {
  font-size: 1.6rem;
  line-height: 1;
  filter: saturate(0.9);
}

.product-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(22, 42, 64, 0.08);
  object-fit: contain;
  padding: 3px;
}

/* SwiftCare's outline-style logo renders lighter than solid-filled marks;
   display it ~23% larger so it visually matches NursePrep at tile size. */
.product-logo-lg {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  background: rgba(52, 201, 143, 0.14);
  color: var(--success);
}

.status-soon {
  background: rgba(240, 180, 41, 0.14);
  color: var(--warning);
}

.product-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.product-desc {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  flex: 1;
}

.product-link {
  margin-top: var(--s-2);
  font-weight: 600;
  font-size: 0.92rem;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.product-actions .product-link {
  margin-top: 0;
}

.product-link-alt {
  color: var(--text-3);
  font-weight: 500;
}

.product-link-alt:hover {
  color: var(--text-1);
}

.product-link-muted {
  color: var(--text-3);
  cursor: default;
}

/* ---------- previews ---------- */
.previews {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 45% 35% at 20% 0%, rgba(56, 210, 192, 0.06), transparent 70%),
    var(--bg-0);
}

.preview-block {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--s-7);
  align-items: center;
  margin-bottom: var(--s-8);
}

.preview-block:last-child {
  margin-bottom: 0;
}

.preview-copy .preview-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s-2);
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}

.preview-title {
  margin: 0 0 var(--s-3);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.preview-desc {
  margin: 0 0 var(--s-4);
  color: var(--text-2);
  font-size: 1rem;
  max-width: 520px;
}

.preview-window {
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* SwiftCare mock */
.swift-mock {
  display: flex;
  min-height: 280px;
  text-align: left;
}

.swift-side {
  width: 128px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  font-size: 11px;
}

.swift-side-logo {
  font-size: 18px;
  margin-bottom: 8px;
}

.swift-side-logo-img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: contain;
  background: #fff;
  padding: 1px;
}

.swift-side-item {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text-3);
  font-weight: 600;
}

.swift-side-item.active {
  background: var(--accent-soft);
  color: var(--text-1);
}

.swift-main {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.swift-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.swift-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
}

.swift-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.swift-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.swift-card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-1);
}

.swift-card-meta {
  font-size: 9.5px;
  color: var(--text-3);
}

.swift-badge {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
}

.swift-badge.ok {
  background: rgba(52, 201, 143, 0.14);
  color: var(--success);
}

.swift-badge.warn {
  background: rgba(240, 180, 41, 0.14);
  color: var(--warning);
}

.swift-emar {
  padding: 10px 12px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.swift-emar-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 6px;
}

.swift-emar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 10.5px;
  color: var(--text-2);
}

.swift-check {
  color: var(--success);
  font-weight: 700;
}

/* NursePrep mock */
.prep-mock {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
  background:
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(77, 159, 255, 0.08), transparent 70%),
    var(--bg-2);
}

.prep-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-3);
}

.prep-timer {
  color: var(--accent);
}

.prep-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  overflow: hidden;
}

.prep-progress-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gradient);
}

.prep-q {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.5;
  padding: 4px 0 2px;
}

.prep-opt {
  padding: 8px 12px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-2);
}

.prep-opt.correct {
  border-color: rgba(52, 201, 143, 0.5);
  background: rgba(52, 201, 143, 0.1);
  color: var(--text-1);
  font-weight: 600;
}

.prep-explain {
  padding: 9px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(77, 159, 255, 0.3);
  border-radius: 10px;
  font-size: 10.5px;
  color: var(--text-2);
  line-height: 1.45;
}

/* ---------- coming soon strip ---------- */
.soon-strip {
  padding: var(--s-7) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.soon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  flex-wrap: wrap;
}

.soon-title {
  margin: 0 0 var(--s-2);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.soon-text {
  margin: 0;
  color: var(--text-2);
  max-width: 720px;
  font-size: 1rem;
}

.soon-text strong {
  color: var(--text-1);
}

/* ---------- about ---------- */
.about {
  padding: var(--s-8) 0 var(--s-7);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

.about-copy p {
  margin: 0 0 var(--s-4);
  color: var(--text-2);
}

.about-copy .btn {
  margin-top: var(--s-2);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.stat {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
}

.stat-num {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-label {
  color: var(--text-2);
  font-size: 0.92rem;
  text-align: right;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .stat {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-1);
  }
  .stat-label {
    text-align: left;
  }
  .hero {
    padding: var(--s-7) 0 var(--s-6);
  }
  .preview-block {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .preview-block.reverse .preview-copy {
    order: 2;
  }
}

@media (max-width: 560px) {
  .hero-actions .btn {
    width: 100%;
  }
  .soon-inner .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
  .mock-bubble {
    max-width: 90%;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------- blog ---------- */
.blog-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}
.blog-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}
.blog-content p {
  margin: 0 0 1.25rem;
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}
.blog-content li {
  margin-bottom: 0.4rem;
}
.blog-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-content strong {
  font-weight: 600;
}
.blog-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.blog-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}
.blog-card a.btn:hover {
  text-decoration: none;
}

/* ---------- nursemate-4b homepage feature ---------- */
.n4b-feature {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 55% 60% at 80% 10%, rgba(56, 210, 192, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 55% at 10% 90%, rgba(77, 159, 255, 0.10), transparent 70%),
    var(--bg-1);
}

.n4b-feature-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}

.n4b-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
}

.n4b-feature-badge {
  display: inline-flex;
  padding: 3px;
  border-radius: 14px;
  background: var(--gradient, linear-gradient(135deg, #4d9fff, #38d2c0));
  box-shadow: 0 6px 18px rgba(77, 159, 255, 0.25);
}

.n4b-feature-badge img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  background: #fff;
}

.n4b-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 210, 192, 0.35);
  background: var(--accent-2-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.n4b-feature-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success, #34c98f);
  animation: n4b-pulse 2s ease-in-out infinite;
}

@keyframes n4b-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 201, 143, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(52, 201, 143, 0); }
}

.n4b-feature-title {
  margin: var(--s-1) 0 0;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.n4b-feature-desc {
  margin: 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

.n4b-feature-copy .btn {
  margin-top: var(--s-2);
}

.n4b-feature-visual {
  border-radius: var(--r-lg, 22px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(10, 12, 15, 0.16);
}

.n4b-feature-visual img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .n4b-feature-inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .n4b-feature-copy .btn {
    margin-top: var(--s-3);
    margin-bottom: var(--s-1);
  }
}
