:root {
  --color-dark: #0a0a0c;
  --color-darker: #050507;
  --color-light: #f5f5f7;
  --color-white: #ffffff;
  --color-gray: #888888;
  --color-red: #d32f2f;
  --color-red-light: #ef5350;
  --color-red-dark: #c62828;
  --color-terracotta: #e53935;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-dark);
  color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.narrow {
  max-width: 800px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
}

.hl {
  color: var(--color-red);
}

.strike {
  text-decoration: line-through;
  color: var(--color-gray);
  margin-right: 0.5rem;
}

/* Top Bar */
.top-bar {
  background: var(--color-red-dark);
  color: var(--color-white);
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-xl) 0;
  text-align: center;
  background: radial-gradient(circle at center, #1a0808 0%, var(--color-dark) 100%);
  overflow: hidden;
}

.blueprint-grid-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(rgba(211, 47, 47, 0.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(211, 47, 47, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.kicker {
  color: var(--color-red-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-lg);
}

.hero-img-no-card {
  margin: var(--space-lg) auto;
  max-width: 640px;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(211, 47, 47, 0.15);
  transition: transform 0.3s ease;
}
.hero-img-no-card:hover {
  transform: translateY(-5px);
}
.hero-img-no-card img {
  border-radius: var(--border-radius);
}

.sub {
  font-size: 1.1rem;
  color: #cccccc;
  margin-bottom: var(--space-lg);
}

.cta-primary {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  padding: 20px 40px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  background: var(--color-red-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(211, 47, 47, 0.4);
}

.social-proof {
  margin-top: var(--space-lg);
  font-size: 0.9rem;
}

.stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-right: 5px;
}

.trust-row {
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-top: var(--space-sm);
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section-dark {
  background: var(--color-dark);
}

.section-darker {
  background: var(--color-darker);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-sub {
  text-align: center;
  color: #bbbbbb;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

/* Marquee */
.marquee, .learn-marquee, .dep-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track, .learn-marquee-track, .dep-marquee-track {
  display: inline-flex;
  animation: scroll 40s linear infinite;
}

.marquee-track:hover, .learn-marquee-track:hover, .dep-marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item, .learn-marquee-item {
  width: 300px;
  margin-right: 20px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pain Grid */
.pain-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: var(--space-lg);
}

.pain-card {
  background: #111;
  padding: 20px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-left: 4px solid var(--color-red);
}

.pain-icon {
  font-size: 1.5rem;
}

.pain-resolver {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-red-light);
}

/* Routine Section */
.section-routine {
  background: linear-gradient(180deg, var(--color-darker) 0%, #150a0a 100%);
}

.routine-list {
  max-width: 800px;
  margin: 0 auto;
}

.routine-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.bad-row {
  background: rgba(255,255,255,0.02);
  color: #999;
}

.good-row {
  background: rgba(211, 47, 47, 0.1);
  border: 1px solid rgba(211, 47, 47, 0.2);
}

.routine-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.routine-badge.bad {
  background: #333;
}

.routine-badge.good {
  background: var(--color-red);
  color: white;
}

.routine-cta-wrap {
  text-align: center;
  margin-top: var(--space-xl);
}

/* What You Receive */
.receive-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 768px) {
  .receive-split {
    grid-template-columns: 1fr;
  }
}

.receive-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(211,47,47,0.15);
}

.receive-badge {
  display: inline-block;
  background: rgba(211,47,47,0.1);
  color: var(--color-red-light);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.receive-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.receive-mini-card {
  display: flex;
  align-items: center;
  gap: 15px;
}

.receive-mini-badge {
  color: var(--color-red);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Bonuses */
.section-bonus {
  background: #111;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.bonus-card {
  background: var(--color-darker);
  border-radius: var(--border-radius);
  padding: 20px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}

.bonus-card:hover {
  transform: translateY(-5px);
}

.bonus-tag {
  position: absolute;
  top: -10px;
  left: 20px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.bonus-card__image {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.bonus-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-red-light);
}

.bonus-card p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 20px;
}

.bonus-price .free {
  color: #4caf50;
  font-weight: bold;
}

.bonus__summary {
  background: rgba(211,47,47,0.1);
  border: 1px solid rgba(211,47,47,0.3);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: var(--space-xl);
}

.bonus__summary-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.bonus__summary-prices {
  font-size: 2rem;
  font-weight: 800;
  margin: 10px 0;
}

.bonus__summary-old {
  text-decoration: line-through;
  color: #888;
}

.bonus__summary-free {
  color: #4caf50;
}

/* Testimonials */
.dep-card {
  background: var(--color-darker);
  padding: 25px;
  border-radius: var(--border-radius);
  width: 350px;
  margin-right: 20px;
  white-space: normal;
  border: 1px solid rgba(255,255,255,0.05);
}

.dep-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.dep-avatar {
  width: 40px;
  height: 40px;
  background: var(--color-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.dep-role {
  font-size: 0.8rem;
  color: #888;
}

/* Pricing */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: #111;
  padding: 40px;
  border-radius: var(--border-radius);
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.plan-card.premium {
  border: 2px solid var(--color-red);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(211,47,47,0.2);
}

@media (max-width: 768px) {
  .plan-card.premium {
    transform: scale(1);
  }
}

.ribbon {
  position: absolute;
  top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--color-red);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  white-space: nowrap;
}

.plan-label {
  text-transform: uppercase;
  color: #888;
  font-weight: bold;
  font-size: 0.9rem;
}

.plan-title {
  font-size: 1.8rem;
  margin: 10px 0 20px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-red-light);
}

.plan-list {
  list-style: none;
  text-align: left;
  margin: 30px 0;
}

.plan-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 0.95rem;
}

.plan-list li.ok::before {
  content: '\2713';
  color: var(--color-red);
  position: absolute;
  left: 0;
}

.plan-list li.locked {
  color: #666;
}
.plan-list li.locked::before {
  content: '\2715';
  position: absolute;
  left: 0;
}

.cta-secondary {
  display: inline-block;
  border: 1px solid #555;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: #222;
}

.cta-vip {
  width: 100%;
}

.bonus-list-mini {
  background: rgba(255,255,255,0.02);
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.85rem;
  margin-bottom: 30px;
}

/* FAQ */
.faq details {
  background: #111;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
}

.faq summary {
  font-weight: bold;
  font-size: 1.1rem;
}

.faq p {
  margin-top: 15px;
  color: #ccc;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #222;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-tag {
  color: #aaa;
  margin-bottom: 20px;
}

.footer-legal, .footer-copy {
  font-size: 0.8rem;
  color: #666;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-darker);
  border: 2px solid var(--color-red);
  border-radius: var(--border-radius);
  max-width: 800px;
  width: 90%;
  padding: 40px;
  position: relative;
  box-shadow: 0 0 40px rgba(211, 47, 47, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px; right: 20px;
  background: transparent;
  border: none;
  color: #888;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: white;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .modal-img {
    max-width: 200px;
    margin: 0 auto;
  }
  .modal-content {
    padding: 30px 20px;
  }
}

.modal-text h3 {
  font-size: 1.8rem;
  margin: 10px 0;
}

.modal-text p {
  color: #ccc;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.modal-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-red-light);
  margin-bottom: 20px;
}

.modal-decline {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #888;
  text-decoration: underline;
  font-size: 0.9rem;
  cursor: pointer;
}

.modal-decline:hover {
  color: white;
}

/* Modules Section */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.module-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 47, 47, 0.4);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.module-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.module-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-red-light);
  background: rgba(211, 47, 47, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.module-icon {
  font-size: 1.4rem;
}

.module-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-white);
}

.module-desc {
  font-size: 0.88rem;
  color: #aaa;
  line-height: 1.5;
}

.module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.module-tag {
  font-size: 0.72rem;
  color: #bbb;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Audience Section */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 35px;
}

.audience-card {
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
  transition: transform 0.3s ease;
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(211, 47, 47, 0.3);
}

.audience-badge {
  display: inline-block;
  background: rgba(211, 47, 47, 0.12);
  color: var(--color-red-light);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.audience-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-white);
}

.audience-card p {
  color: #aaa;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.audience-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: #ddd;
}

.audience-list li::before {
  content: '\2713';
  color: var(--color-red-light);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* How It Works */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  padding: 25px 20px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(211, 47, 47, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--color-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 15px auto;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.step-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-white);
}

.step-card p {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.45;
}

/* Device & App Compatibility Banner */
.device-banner {
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.12) 0%, rgba(20, 20, 25, 0.9) 100%);
  border: 1px solid rgba(211, 47, 47, 0.3);
  border-radius: var(--border-radius);
  padding: 25px 30px;
  margin: 40px auto 0 auto;
  max-width: 800px;
  text-align: center;
}

.device-banner h4 {
  font-size: 1.15rem;
  color: var(--color-white);
  margin-bottom: 10px;
}

.device-banner p {
  color: #bbb;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.device-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.device-tag {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #eee;
  font-weight: 600;
}

/* Guarantee Box */
.guarantee-box {
  background: rgba(255, 255, 255, 0.02);
  border: 2px dashed rgba(211, 47, 47, 0.4);
  border-radius: var(--border-radius);
  padding: 35px;
  max-width: 760px;
  margin: 50px auto 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
}

@media (max-width: 650px) {
  .guarantee-box {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }
}

.guarantee-badge-icon {
  font-size: 3.5rem;
  min-width: 80px;
  text-align: center;
}

.guarantee-box h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--color-white);
}

.guarantee-box p {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.5;
}

/* Payment Icons Row */
.payment-methods-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.pay-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ccc;
  letter-spacing: 0.5px;
}

/* ============ PLAN CHECKLIST CUSTOMIZATIONS ============ */
.plan-list li.locked-strike {
  color: #777;
  text-decoration: line-through;
  opacity: 0.75;
}

.plan-list li.locked-strike::before {
  content: '\2715';
  color: #888;
  position: absolute;
  left: 0;
  text-decoration: none;
  font-weight: 700;
}

.plan-list li.bonus-item {
  color: #fff;
  font-weight: 600;
}

.plan-list li.bonus-item::before {
  content: '\1F381';
  position: absolute;
  left: 0;
  font-size: 0.95rem;
}

/* ============ APP SHOWCASE (CARDIOLOGY VISUAL 360) ============
   Every size inside the phone is in "em", and 1em = phone width / 48.
   This makes each phone scale like a real screenshot (same proportions
   on desktop and mobile), instead of stretching the content.            */
.app-section {
  text-align: center;
  padding: 72px 0 90px;
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(211, 47, 47, 0.10) 0%, rgba(10, 10, 12, 0) 60%), var(--color-darker, #050507);
}

.app-kicker {
  color: var(--color-red-light, #ef5350);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0;
}

.app-kicker-line {
  display: block;
  width: 48px;
  height: 1px;
  margin: 12px auto 0;
  background: rgba(239, 83, 80, 0.7);
}

.app-main-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 14px 0 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.app-main-title span {
  color: var(--color-red-light, #ef5350);
}

.app-sub-title {
  color: #b5aeb0;
  font-size: 1.05rem;
  max-width: 620px;
  margin: 18px auto 0;
  line-height: 1.5;
}

/* ---------- GRID: 4 across on desktop, 2x2 on mobile ---------- */
.app-phones-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  max-width: 1040px;
  margin: 48px auto 0;
  align-items: start;
}

.phone-item {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  min-width: 0;
}

/* staggered like the reference: 2nd and 4th phones sit lower */
.app-phones-grid .phone-item:nth-child(2),
.app-phones-grid .phone-item:nth-child(4) {
  margin-top: 48px;
}

@media (max-width: 1023px) {
  .app-phones-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .app-section { padding: 56px 0 70px; }
  .app-main-title { font-size: 2rem; }
  .app-sub-title { font-size: 0.98rem; }
  .app-phones-grid {
    gap: 16px;
    margin-top: 36px;
  }
  .app-phones-grid .phone-item:nth-child(2),
  .app-phones-grid .phone-item:nth-child(4) {
    margin-top: 32px;
  }
}

.phone-caption {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #b9b0b2;
  line-height: 1.35;
  max-width: 230px;
  text-align: center;
}

@media (max-width: 640px) {
  .phone-caption { font-size: 0.8rem; margin-top: 12px; }
}

/* ---------- PHONE SHELL ---------- */
.phone-device {
  --ph-ink: #1c0c10;        /* deep wine (text / headers) */
  --ph-head: #1a0b0e;       /* app header background */
  --ph-red: #c62828;        /* main accent */
  --ph-red-soft: #ef5350;
  --ph-paper: #fbf7f6;      /* app background */
  --ph-line: #ecdcdc;
  --ph-muted: #6f5f62;

  font-size: calc(min(100cqw, 250px) / 48);
  width: 100%;
  max-width: 250px;
  aspect-ratio: 48 / 97.5;
  padding: 1.1em;
  border-radius: 7.2em;
  background: #0c0c0f;
  position: relative;
  box-shadow:
    0 0 0 0.3em #2c2e34,
    0 0 0 0.45em #55575d,
    0 3em 5em -1.5em rgba(0, 0, 0, 0.85),
    0 0 4.5em rgba(211, 47, 47, 0.14);
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.35;
}

/* side buttons */
.phone-device::before,
.phone-device::after {
  content: "";
  position: absolute;
  width: 0.45em;
  background: #3a3c42;
  border-radius: 0.3em;
}
.phone-device::before { left: -0.85em; top: 18em; height: 6em; }
.phone-device::after  { right: -0.85em; top: 22em; height: 9em; }

.ph-screen {
  height: 100%;
  border-radius: 6.1em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--ph-paper);
  color: var(--ph-ink);
  position: relative;
}

.ph-screen.ph-dark {
  background: #120709;
  color: #ffffff;
}

.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- STATUS BAR ---------- */
.ph-status {
  flex: 0 0 auto;
  height: 5.6em;
  padding: 1em 4.4em 0 5.4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ph-head);
  color: #ffffff;
  position: relative;
}

.ph-dark .ph-status { background: #120709; }

.ph-time {
  font-size: 1.65em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ph-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16em;
  height: 3.2em;
  background: #000000;
  border-radius: 0 0 2.2em 2.2em;
}

.ph-status-icons {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.ph-status-icons svg { height: 1.2em; width: auto; }
.ph-status-icons .ph-batt { height: 1.3em; }

/* ---------- APP HEADER ---------- */
.ph-nav {
  flex: 0 0 auto;
  height: 6em;
  padding: 0 2.2em;
  display: flex;
  align-items: center;
  gap: 1.1em;
  background: var(--ph-head);
  border-bottom: 0.1em solid rgba(239, 83, 80, 0.22);
  color: #f3eaea;
}

.ph-logo {
  width: 3.4em;
  height: 3.4em;
  border-radius: 0.9em;
  flex: 0 0 auto;
  background: #ffffff url('assets/carousel4.webp') no-repeat;
  background-size: 260%;
  background-position: 48% 17%;
}

.ph-nav-sep {
  width: 0.1em;
  height: 2.6em;
  background: rgba(255, 255, 255, 0.35);
}

.ph-nav-title {
  font-size: 1.6em;
  font-weight: 500;
  white-space: nowrap;
}

.ph-nav-title span {
  color: var(--ph-red-soft);
  font-weight: 700;
}

.ph-back {
  width: 2.2em;
  height: 2.2em;
  margin-right: 0.2em;
}

/* ---------- BODY / TABBAR / HOME BAR ---------- */
.ph-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;   /* content continues "below" the tab bar */
  padding: 2em 2em 0;
}

.ph-tabbar {
  flex: 0 0 auto;
  height: 7.6em;
  padding-top: 1.1em;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  background: var(--ph-paper);
  border-top: 0.1em solid var(--ph-line);
  color: #8a7b7e;
  position: relative;
  z-index: 2;
}

.ph-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
}

.ph-tab .ico { width: 2.3em; height: 2.3em; }
.ph-tab span { font-size: 1.2em; font-weight: 600; }
.ph-tab.active { color: var(--ph-red); }
.ph-tab.active span { font-weight: 800; }

.ph-homebar {
  position: absolute;
  left: 50%;
  bottom: 0.8em;
  transform: translateX(-50%);
  width: 15em;
  height: 0.55em;
  border-radius: 1em;
  background: var(--ph-ink);
  z-index: 3;
}

.ph-dark .ph-homebar { background: #ffffff; }

/* shared */
.ph-kicker {
  font-size: 1.3em;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ph-red);
}

.ph-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 2.6em 0 1.4em;
}

.ph-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3em;
  font-weight: 700;
  color: var(--ph-ink);
  letter-spacing: -0.01em;
}

.ph-section-count {
  font-size: 1.4em;
  color: var(--ph-muted);
}

/* ========== PHONE 1: LOGIN ========== */
.ph-login {
  padding: 4.4em 2.2em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ph-login-icon {
  width: 9em;
  height: 9em;
  border-radius: 2.2em;
  background: #ffffff url('assets/carousel4.webp') no-repeat;
  background-size: 250%;
  background-position: 48% 17%;
  box-shadow: 0 0.6em 1.6em rgba(26, 11, 14, 0.18), 0 0 0 0.25em var(--ph-head);
}

.ph-login .ph-kicker { margin-top: 1.6em; }

.ph-login-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ph-ink);
  margin-top: 0.3em;
}

.ph-login-sub {
  font-size: 1.6em;
  line-height: 1.45;
  color: var(--ph-muted);
  margin: 0.6em 0 0;
}

.ph-login-card {
  width: 100%;
  margin-top: 2.8em;
  padding: 2.2em 2em 2em;
  background: #ffffff;
  border: 0.1em solid var(--ph-line);
  border-radius: 1.8em;
  box-shadow: 0 0.6em 2em rgba(26, 11, 14, 0.06);
  text-align: left;
}

.ph-login-label {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--ph-ink);
}

.ph-login-input {
  height: 3.4em;
  display: flex;
  align-items: center;
  margin: 0.6em 0 0.8em;
  padding: 0 1em;
  font-size: 1.6em;
  color: #9a8d8f;
  background: #ffffff;
  border: 0.07em solid #e2d2d2;
  border-radius: 0.7em;
}

.ph-login-btn {
  height: 3.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  font-weight: 700;
  color: #ffffff;
  background: var(--ph-red);
  border-radius: 0.7em;
  box-shadow: 0 0.4em 1em rgba(198, 40, 40, 0.3);
}

.ph-login-fine {
  font-size: 1.4em;
  line-height: 1.45;
  color: var(--ph-muted);
  margin: 1.8em 0 0;
}

/* ========== PHONE 2: DASHBOARD ========== */
.ph-welcome {
  padding: 2.3em 2.4em 2.3em;
  border-radius: 2em;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 15%, rgba(239, 83, 80, 0.28) 0%, rgba(239, 83, 80, 0) 55%),
    linear-gradient(160deg, #2a0f14 0%, #170709 100%);
  box-shadow: 0 0.6em 1.6em rgba(26, 11, 14, 0.18);
}

.ph-welcome-kicker {
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #f28b82;
}

.ph-welcome-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 0.3em;
}

.ph-welcome-desc {
  font-size: 1.5em;
  line-height: 1.45;
  color: #eadede;
  margin: 0.5em 0 0;
}

.ph-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.4em;
  color: #eadede;
  margin-top: 1.3em;
}

.ph-progress-track {
  height: 0.7em;
  margin-top: 0.8em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.18);
}

.ph-install {
  margin-top: 2em;
  padding: 1.6em;
  display: flex;
  align-items: center;
  gap: 1.3em;
  border: 0.12em dashed #e0a9a9;
  border-radius: 1.6em;
  background: #fffafa;
}

.ph-install-icon {
  width: 4.6em;
  height: 4.6em;
  flex: 0 0 auto;
  border-radius: 1.1em;
  background: #ffffff url('assets/carousel4.webp') no-repeat;
  background-size: 260%;
  background-position: 48% 17%;
  box-shadow: 0 0 0 0.2em var(--ph-head);
}

.ph-install-text { flex: 1 1 auto; min-width: 0; }

.ph-install-text strong {
  display: block;
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ph-ink);
}

.ph-install-text span {
  display: block;
  font-size: 1.45em;
  line-height: 1.35;
  color: var(--ph-muted);
  margin-top: 0.15em;
}

.ph-install-btn {
  flex: 0 0 auto;
  padding: 0.75em 1.2em;
  font-size: 1.55em;
  font-weight: 700;
  color: #ffffff;
  background: var(--ph-red);
  border-radius: 0.8em;
  box-shadow: 0 0.3em 0.8em rgba(198, 40, 40, 0.3);
}

.ph-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em;
  align-items: start;
}

.ph-module {
  background: #ffffff;
  border: 0.1em solid var(--ph-line);
  border-radius: 1.3em;
  padding: 1.1em 0.9em 0;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0.4em 1.2em rgba(26, 11, 14, 0.06);
}

.ph-module-pill {
  display: inline-block;
  padding: 0.3em 0.9em;
  font-size: 0.95em;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #b71c1c;
  background: #fde7e7;
  border: 0.1em solid #f3c0c0;
  border-radius: 0.5em;
}

.ph-module-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2em;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ph-ink);
  margin: 0.3em 0 0.4em;
  letter-spacing: -0.01em;
}

.ph-module-title span {
  display: block;
  color: var(--ph-red);
}

/* cover art: zoomed into the main heart illustration of the page */
.ph-module-art {
  aspect-ratio: 3 / 4;
  border-radius: 0.8em 0.8em 0 0;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-size: 230%;
  background-position: 50% 19%;
}

/* ========== PHONE 3: MODULE PAGE ========== */
.ph-module-page { padding-top: 2.2em; }

.ph-mod-top {
  display: flex;
  gap: 1.8em;
  align-items: flex-start;
}

.ph-mod-thumb {
  width: 14.5em;
  height: 14.5em;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 0.6em;
  border: 0.1em solid var(--ph-line);
  box-shadow: 0 0.5em 1.3em rgba(26, 11, 14, 0.15);
  background: #ffffff;
}

.ph-mod-info { flex: 1 1 auto; min-width: 0; }

.ph-mod-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.9em;
  font-weight: 700;
  line-height: 1.07;
  color: var(--ph-ink);
  margin-top: 0.15em;
  letter-spacing: -0.01em;
}

.ph-mod-desc {
  font-size: 1.45em;
  line-height: 1.4;
  color: var(--ph-muted);
  margin: 0.5em 0 0;
}

.ph-mod-viewed {
  font-size: 1.35em;
  color: var(--ph-muted);
  margin-top: 0.9em;
}

.ph-mod-track {
  height: 0.55em;
  margin-top: 0.7em;
  border-radius: 1em;
  background: #ead9d9;
}

/* font-size 1.6em here, so inner em values are relative to it */
.ph-btn {
  font-size: 1.6em;
  font-weight: 600;
  height: 3em;
  margin-top: 0.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  border-radius: 0.75em;
  background: #ffffff;
  border: 0.06em solid var(--ph-line);
  color: var(--ph-ink);
}

.ph-btn .ico { width: 1.25em; height: 1.25em; }

.ph-btn-primary {
  height: 3.15em;
  margin-top: 1.5em;
  background: var(--ph-red);
  border-color: var(--ph-red);
  color: #ffffff;
  box-shadow: 0 0.3em 0.75em rgba(198, 40, 40, 0.28);
}

.ph-pages-head { margin-top: 2.6em; }

.ph-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

.ph-page {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 0.7em;
  overflow: hidden;
  background: #ffffff;
  border: 0.1em solid var(--ph-line);
  box-shadow: 0 0.4em 1em rgba(26, 11, 14, 0.08);
}

.ph-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-page-num {
  position: absolute;
  left: 0.6em;
  bottom: 0.6em;
  width: 2.3em;
  height: 2.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ph-head);
  color: #ffffff;
  font-size: 1.15em;
  font-weight: 700;
  box-shadow: 0 0 0 0.15em #ffffff;
}

/* ========== PHONE 4: FULL-SCREEN READER ========== */
.ph-reader-top {
  flex: 0 0 auto;
  height: 7em;
  padding: 0 2.6em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph-reader-count {
  font-size: 1.65em;
  font-weight: 500;
  color: #f3eaea;
}

.ph-reader-actions {
  display: flex;
  align-items: center;
  gap: 2.6em;
}

.ph-reader-actions .ico {
  width: 2.4em;
  height: 2.4em;
  color: #ffffff;
}

.ph-reader-page {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-reader-page img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 0 3em rgba(239, 83, 80, 0.12);
}

.ph-reader-arrow {
  position: absolute;
  top: 50%;
  width: 3em;
  height: 3em;
  transform: translateY(-50%);
  color: #ffffff;
  filter: drop-shadow(0 0 0.4em rgba(0, 0, 0, 0.8));
}

.ph-reader-arrow.left { left: 0.2em; }
.ph-reader-arrow.right { right: 0.2em; }

.ph-reader-caption {
  flex: 0 0 auto;
  font-size: 1.55em;
  height: 4.9em;
  padding-bottom: 0.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  color: #e9dede;
}

.ph-reader-caption strong { color: var(--ph-red-soft); font-weight: 700; }
