/* ==========================================================================
   Airople Flagship Brand Site — Subpages (Apple Pure White × Ghost Fibers)
   Note: Product Anatomy Showcase styles live in `anatomy.css`.
   ========================================================================== */

.page-hero { padding-block: clamp(56px, 7.5vw, 100px) clamp(32px, 4.5vw, 52px); background: transparent; }
.page-hero__inner { max-width: 780px; }
.page-hero__inner--center { margin-inline: auto; text-align: center; }
.page-hero .eyebrow { margin-block-end: 12px; }
.page-hero .page-lead { margin-block-start: 16px; font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.48; color: var(--muted); }
.page-hero__actions { margin-block-start: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero__inner--center .page-hero__actions { justify-content: center; }

/* ---------- 3-Step Ritual Cards (Nested Entrance Choreography) ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { display: flex; flex-direction: column; gap: 14px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #ffffff;
  font-size: 0.84rem; font-weight: 600;
  opacity: 0; transform: scale(0.35);
  transition:
    opacity 0.42s var(--ease-out) calc(var(--delay, 0s) + 0.14s),
    transform 0.54s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--delay, 0s) + 0.14s);
}
.step-media {
  background: var(--bg-alt); border-radius: 18px; padding: 18px;
  display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
}
.step-media img {
  max-height: 176px; width: auto; object-fit: contain;
  opacity: 0; transform: translateY(16px) scale(0.92);
  transition:
    opacity 0.62s var(--ease-out) calc(var(--delay, 0s) + 0.16s),
    transform 0.72s var(--ease-out) calc(var(--delay, 0s) + 0.16s);
}
.step-card.is-visible .step-num,
.shot .step-num { opacity: 1; transform: scale(1); }
.step-card.is-visible .step-media img,
.shot .step-media img { opacity: 1; transform: translateY(0) scale(1); }
.step-card:hover .step-media img { transform: translateY(-4px) scale(1.03); transition-delay: 0s; transition-duration: 0.3s; }
.step-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.step-card p { font-size: 0.94rem; color: var(--muted); }

/* ---------- Lifestyle Checklist Staggered Entrance ---------- */
.daily-checklist { list-style: none; display: grid; gap: 12px; color: var(--ink-soft); }
.daily-checklist li {
  opacity: 0; transform: translateX(-18px);
  transition: opacity 0.56s var(--ease-out), transform 0.62s var(--ease-out);
}
html[dir="rtl"] .daily-checklist li { transform: translateX(18px); }
.daily-checklist li:nth-child(1) { transition-delay: 0.16s; }
.daily-checklist li:nth-child(2) { transition-delay: 0.28s; }
.daily-checklist li:nth-child(3) { transition-delay: 0.4s; }
[data-reveal].is-visible .daily-checklist li,
.shot .daily-checklist li { opacity: 1; transform: translateX(0); }

/* ---------- Clean Apple Hairline Spec Table (Row-by-Row Cascade) ---------- */
.spec-table {
  width: 100%; border-collapse: collapse;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(16px);
  border: 1px solid var(--stroke); border-radius: var(--radius-lg); overflow: hidden;
}
.spec-table tr { border-bottom: 1px solid var(--stroke); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table tbody tr {
  opacity: 0; transform: translateY(16px);
  transition:
    opacity 0.56s var(--ease-out) var(--row-delay, 0s),
    transform 0.64s var(--ease-out) var(--row-delay, 0s),
    background-color 0.2s var(--ease-apple) 0s;
}
.spec-table tbody tr:nth-child(1) { --row-delay: 0.06s; }
.spec-table tbody tr:nth-child(2) { --row-delay: 0.12s; }
.spec-table tbody tr:nth-child(3) { --row-delay: 0.18s; }
.spec-table tbody tr:nth-child(4) { --row-delay: 0.24s; }
.spec-table tbody tr:nth-child(5) { --row-delay: 0.3s; }
.spec-table tbody tr:nth-child(6) { --row-delay: 0.36s; }
.spec-table tbody tr:nth-child(7) { --row-delay: 0.42s; }
.spec-table tbody tr:nth-child(8) { --row-delay: 0.48s; }
.spec-table tbody tr:nth-child(9) { --row-delay: 0.54s; }
.spec-table tbody tr:nth-child(10) { --row-delay: 0.6s; }
.spec-table.is-visible tbody tr,
.shot .spec-table tbody tr { opacity: 1; transform: translateY(0); }
.spec-table.is-visible tbody tr:hover { background: rgba(64, 118, 48, 0.045); }
.spec-table th, .spec-table td { padding: 20px 26px; text-align: start; vertical-align: top; }
.spec-table thead th { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; color: var(--ink); background: rgba(245, 245, 247, 0.85); border-bottom: 1px solid var(--stroke-strong); }
.spec-table tbody th { width: 28%; font-weight: 600; color: var(--ink); }
.spec-table td { color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  .step-num, .step-media img, .daily-checklist li, .spec-table tbody tr,
  .story-editorial__body p, .bp-scale-row, .tone-chip, .lang-pill, .faq-item {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ---------- Brand Story Editorial Card (Paragraph Cascade) ---------- */
.story-editorial {
  background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(18px);
  border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px); margin-block-end: 24px;
}
.story-editorial__body { display: grid; gap: 16px; margin-block-start: 18px; font-size: clamp(1.08rem, 1.45vw, 1.26rem); line-height: 1.6; color: var(--ink-soft); max-width: 780px; }
.story-editorial__body p {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.65s var(--ease-out) var(--p-delay, 0s), transform 0.72s var(--ease-out) var(--p-delay, 0s);
}
.story-editorial__body p:nth-child(1) { --p-delay: 0.08s; }
.story-editorial__body p:nth-child(2) { --p-delay: 0.2s; }
.story-editorial__body p:nth-child(3) { --p-delay: 0.32s; }
.story-editorial__body p:nth-child(4) { --p-delay: 0.44s; }
.story-editorial.is-visible .story-editorial__body p,
.shot .story-editorial__body p { opacity: 1; transform: translateY(0); }
.story-editorial__signoff { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.68rem); color: var(--brand); margin-block-start: 6px; }

.mission-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block-end: 24px; }
.mission-tile { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(16px); border: 1px solid var(--stroke); border-radius: var(--radius-md); padding: 28px; }
.mission-tile h3 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); margin-block-end: 10px; }
.mission-tile p { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.38; color: var(--ink); }

/* ---------- AHA/ACC & Voice Cards (Row-by-Row Cascade) ---------- */
.two-col-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bp-scale { display: grid; gap: 10px; margin-block-start: 18px; }
.bp-scale-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-radius: 14px; background: var(--bg-alt); font-size: 0.92rem;
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.54s var(--ease-out) var(--row-delay, 0s), transform 0.6s var(--ease-out) var(--row-delay, 0s);
}
html[dir="rtl"] .bp-scale-row { transform: translateX(16px); }
.bp-scale-row:nth-child(1) { --row-delay: 0.1s; }
.bp-scale-row:nth-child(2) { --row-delay: 0.2s; }
.bp-scale-row:nth-child(3) { --row-delay: 0.3s; }
.bp-scale-row:nth-child(4) { --row-delay: 0.4s; }
[data-reveal].is-visible .bp-scale-row,
.shot .bp-scale-row { opacity: 1; transform: translateX(0); }
.bp-scale-label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.bp-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.tone-chips { display: grid; gap: 10px; margin-block-start: 18px; }
.tone-chip {
  padding: 14px 16px; border-radius: 14px; background: var(--bg-alt); font-size: 0.92rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.54s var(--ease-out) var(--chip-delay, 0s), transform 0.6s var(--ease-out) var(--chip-delay, 0s);
}
.tone-chip:nth-child(1) { --chip-delay: 0.12s; }
.tone-chip:nth-child(2) { --chip-delay: 0.24s; }
.tone-chip:nth-child(3) { --chip-delay: 0.36s; }
[data-reveal].is-visible .tone-chip,
.shot .tone-chip { opacity: 1; transform: translateY(0); }
.tone-chip strong { display: block; color: var(--ink); margin-block-end: 2px; }
.tone-chip span { color: var(--muted); }

/* ---------- Legal Links Grid ---------- */
.legal-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.legal-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.legal-card h3 { font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; }
.legal-card p { font-size: 0.93rem; color: var(--muted); }
.legal-card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--link); font-size: 0.94rem; transition: gap 0.22s var(--ease-apple); }
.legal-card__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- About Banner & Language Cloud (18-Pill Dewdrop Wave) ---------- */
.banner-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7; margin-block-end: 32px; }
.banner-frame img { width: 100%; height: 100%; object-fit: cover; }
.lang-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 18px; }
.lang-pill {
  padding: 7px 14px; border-radius: var(--radius-pill); background: var(--bg-alt); font-size: 0.86rem; color: var(--ink);
  opacity: 0; transform: translateY(10px) scale(0.92);
  transition:
    opacity 0.42s var(--ease-out) var(--pill-delay, 0s),
    transform 0.48s var(--ease-out) var(--pill-delay, 0s),
    background-color 0.2s var(--ease-apple) 0s, color 0.2s var(--ease-apple) 0s;
}
.lang-pill:nth-child(n+1) { --pill-delay: 0.06s; }
.lang-pill:nth-child(n+4) { --pill-delay: 0.14s; }
.lang-pill:nth-child(n+7) { --pill-delay: 0.22s; }
.lang-pill:nth-child(n+10) { --pill-delay: 0.3s; }
.lang-pill:nth-child(n+13) { --pill-delay: 0.38s; }
.lang-pill:nth-child(n+16) { --pill-delay: 0.46s; }
[data-reveal].is-visible .lang-pill,
.shot .lang-pill { opacity: 1; transform: translateY(0) scale(1); }
.lang-pill:hover { background: var(--brand-wash); color: var(--brand-deep); }

/* ---------- Apple Clean Hairline FAQ (Item-by-Item Cascade) ---------- */
.faq-list { display: grid; max-width: 820px; margin-inline: auto; border-top: 1px solid var(--stroke); }
.faq-item {
  border-bottom: 1px solid var(--stroke); padding: 4px 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.52s var(--ease-out) var(--faq-delay, 0s), transform 0.58s var(--ease-out) var(--faq-delay, 0s);
}
.faq-item:nth-child(1) { --faq-delay: 0.06s; }
.faq-item:nth-child(2) { --faq-delay: 0.14s; }
.faq-item:nth-child(3) { --faq-delay: 0.22s; }
.faq-item:nth-child(4) { --faq-delay: 0.3s; }
.faq-item:nth-child(5) { --faq-delay: 0.38s; }
.faq-list.is-visible .faq-item,
.shot .faq-item { opacity: 1; transform: translateY(0); }
.faq-item summary { list-style: none; cursor: pointer; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; color: var(--ink); transition: color 0.2s var(--ease-apple); }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.45rem; font-weight: 300; color: var(--muted); transition: transform 0.22s var(--ease-apple); }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--ink); }
.faq-answer { padding-block-end: 20px; color: var(--muted); font-size: 0.96rem; line-height: 1.62; }
.notice-callout { margin-block-start: 20px; padding: 15px 18px; border-radius: 14px; background: var(--bg-alt); font-size: 0.88rem; color: var(--muted); }

@media (max-width: 900px) {
  .mission-band, .steps-grid, .two-col-grid, .legal-cards { grid-template-columns: 1fr; }
  .spec-table tbody th { width: 36%; }
}
@media (max-width: 600px) {
  .spec-table tbody th, .spec-table td { display: block; width: 100%; padding: 12px 18px; }
  .spec-table tbody th { padding-block-end: 4px; }
  .banner-frame { aspect-ratio: 16 / 10; }
}
