/* ==========================================================================
   Duchenne — apple/iOS page extensions (loads after ../landing.css)
   ========================================================================== */

/* ---- Hero with phone ---- */
.store-badge { height: 52px; width: auto; }
.store-badge-lg { height: 60px; }
.store-badge-link {
  display: inline-flex;
  border-radius: 12px;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-fast) var(--ease-out-quart);
}
.store-badge-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge-link:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; }

.hero-stage-phone { min-height: 520px; }
.hero-phone {
  width: min(64%, 280px);
  z-index: 1;
}
.hero-peek {
  position: absolute;
  bottom: -10px; right: 4%;
  width: clamp(120px, 13vw, 175px);
  z-index: 2;
  filter: drop-shadow(0 14px 20px rgba(184, 79, 26, 0.25));
}
.hero-stage-phone .chip-score { top: 12%; left: 0; z-index: 2; }
.hero-stage-phone .chip-streak { top: 58%; right: 0; bottom: auto; z-index: 2; }

/* ---- Definition section (green drench reuse) ---- */
.define { margin-top: 0; }
.define-pron {
  font-style: italic;
  font-size: var(--text-small);
  color: rgba(242, 251, 241, 0.62) !important;
  margin-bottom: var(--sp-4) !important;
}
.define-compare {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  align-items: stretch;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  padding-bottom: 72px;
}
.compare-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-card);
  padding: var(--sp-6);
  text-align: center;
}
.compare-card img { margin: 0 auto var(--sp-3); }
.compare-card h3 {
  font-size: 1rem; font-weight: 700;
  color: rgba(242, 251, 241, 0.85);
  margin-bottom: var(--sp-3);
}
.compare-count {
  font-family: 'Baloo 2', sans-serif;
  font-size: 3rem; font-weight: 800; line-height: 1;
  color: rgba(242, 251, 241, 0.55);
}
.compare-card-real {
  background: rgba(123, 217, 140, 0.16);
  border-color: rgba(123, 217, 140, 0.4);
}
.compare-card-real .compare-count { color: var(--green-bright); }
.compare-label { font-size: var(--text-small); color: rgba(242, 251, 241, 0.6); }
.define-mascot {
  position: absolute;
  bottom: -16px; right: -8px;
  width: clamp(120px, 12vw, 160px);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3));
}

/* ---- Three signal rings ---- */
.howsignals { padding-top: var(--space-section); }
.howring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.howring-card {
  background: var(--card);
  border: 1px solid rgba(244, 81, 30, 0.08);
  border-radius: var(--r-card);
  padding: var(--sp-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.howring {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto var(--sp-6);
}
.howring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hr-track, .hr-fill { fill: none; stroke-width: 11; stroke-linecap: round; }
.hr-track { stroke: rgba(35, 31, 26, 0.07); }
.hr-fill {
  stroke: var(--ring-c, var(--brand-deep));
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
}
.howring-card h3 { font-size: var(--text-h3); margin-bottom: var(--sp-2); }
.howring-card p { color: var(--ink-soft); font-size: 0.95rem; max-width: 30ch; margin: 0 auto; }
.hr-num {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.9rem; font-weight: 800;
  color: var(--ring-c, var(--ink));
  font-variant-numeric: tabular-nums;
}

/* ---- Feature rows ---- */
.featrows { padding-top: var(--space-section); }
.featrow {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: var(--sp-12) 0;
}
.featrow + .featrow { border-top: 1px solid rgba(35, 31, 26, 0.07); }
.featrow-rev .featrow-text { order: 2; }
.featrow-rev .featrow-phone { order: 1; }
.featrow-text h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  margin-bottom: var(--sp-3);
}
.featrow-text p { color: var(--ink-soft); max-width: 48ch; font-size: 1.05rem; }
.feat-tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.feat-tags li {
  background: var(--bg-warm);
  border: 1px solid rgba(244, 81, 30, 0.12);
  color: var(--brand-deep);
  font-size: var(--text-small);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.featrow-phone { display: flex; justify-content: center; }
.phone-sm { width: min(70%, 250px); }

/* ---- Achievements marquee ---- */
.achieve { padding-top: var(--space-section); }
.achieve .features-intro { margin-bottom: var(--sp-8); }
.marquee {
  overflow: hidden;
  padding: var(--sp-2) 0 var(--sp-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--sp-3);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ach-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card);
  border: 1px solid rgba(244, 81, 30, 0.1);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  font-weight: 700; font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.ach-pill img { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track .ach-pill:nth-child(n+17) { display: none; } /* hide duplicates */
}

/* ---- Pricing ---- */
.pricing { padding-top: var(--space-section); }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(244, 81, 30, 0.08);
  border-radius: var(--r-card);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center;
}
.price-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink-soft); margin-bottom: var(--sp-3); }
.price-amount {
  font-family: 'Baloo 2', sans-serif;
  font-size: 2.6rem; font-weight: 800; line-height: 1;
}
.price-period { color: var(--ink-soft); font-size: var(--text-small); margin: var(--sp-2) 0 var(--sp-6); }
.price-btn { margin-top: auto; padding: 12px 24px; font-size: 0.95rem; }
.price-pop {
  border: 2px solid var(--brand-deep);
  box-shadow: var(--shadow-md);
}
.price-flag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, var(--brand-coral), var(--brand-deep));
  color: #fff;
  font-size: 0.78rem; font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.compare-table-wrap { max-width: 720px; margin: var(--sp-16) auto 0; }
.compare-title {
  text-align: center;
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: var(--sp-6);
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid rgba(244, 81, 30, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  font-size: 0.95rem;
  text-align: center;
}
.compare-table thead th {
  background: var(--bg-warm);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
}
.compare-table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
}
.compare-table tbody td { color: var(--ink-soft); }
.compare-table tbody tr:nth-child(even) { background: rgba(255, 245, 230, 0.5); }
.compare-table td:last-child { font-weight: 700; color: var(--ink); }
.td-yes { color: var(--score-green); font-size: 1.1rem; font-weight: 800; }
.td-no { color: rgba(35, 31, 26, 0.3); font-size: 1.1rem; }

/* ---- Smile science ---- */
.science { padding-top: var(--space-section); }
.science-list {
  list-style: none;
  columns: 2;
  column-gap: var(--sp-12);
  max-width: 980px;
}
.science-list li {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  break-inside: avoid;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid rgba(35, 31, 26, 0.08);
  color: var(--ink-soft);
  line-height: 1.55;
}
.science-list img { flex-shrink: 0; margin-top: 2px; }

/* ---- Privacy band ---- */
.privacyband {
  margin-top: var(--space-section);
  background: #241D15;
  color: #EFE7DC;
  padding: var(--space-section) 0;
}
.privacyband h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sp-3);
}
.privacyband-sub { color: rgba(239, 231, 220, 0.65); font-size: var(--text-lede); margin-bottom: var(--sp-12); }
.privacy-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-8);
}
.privacy-col img { margin-bottom: var(--sp-3); filter: invert(92%) sepia(8%) saturate(388%) hue-rotate(346deg) brightness(103%) contrast(87%); }
.privacy-col h3 { font-size: 1.05rem; font-weight: 700; color: var(--brand-gold); margin-bottom: var(--sp-2); }
.privacy-col p { color: rgba(239, 231, 220, 0.7); font-size: 0.95rem; line-height: 1.6; }

/* ---- FAQ ---- */
.faq { padding-top: var(--space-section); }
.faq-list {
  max-width: 780px;
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.faq-item {
  background: var(--card);
  border: 1px solid rgba(244, 81, 30, 0.08);
  border-radius: 20px;
  padding: var(--sp-4) var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-mid) var(--ease-out-quart);
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: var(--sp-2) 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; border-radius: 8px; }
.faq-item summary h3 {
  font-size: 1.05rem; font-weight: 700; line-height: 1.35;
}
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.7rem; font-weight: 700; line-height: 1;
  color: var(--brand-deep);
  transition: transform var(--dur-mid) var(--ease-out-quart);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: var(--sp-3) 0 var(--sp-2); color: var(--ink-soft); line-height: 1.7; max-width: 65ch; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .science-list { columns: 1; }
}
@media (max-width: 860px) {
  .hero-stage-phone { min-height: 460px; }
  .hero-phone { width: min(58%, 250px); }
  .featrow { grid-template-columns: 1fr; gap: var(--sp-8); padding: var(--sp-8) 0; }
  .featrow-rev .featrow-text { order: 1; }
  .featrow-rev .featrow-phone { order: 2; }
  .define-compare { padding-bottom: 56px; max-width: 380px; }
  .define-mascot { right: -4px; width: 110px; }
}
@media (max-width: 560px) {
  .store-badge { height: 48px; }
  .hero-stage-phone { min-height: 400px; }
  .hero-peek { width: 100px; right: 0; }
  .compare-table th, .compare-table td { padding: 11px 10px; font-size: 0.85rem; }
  .price-grid { grid-template-columns: 1fr; }
  .price-pop { order: -1; }
}
