/* Bagua site: sections, sub-pages and responsive rules (load right after site.css). */
.section { position: relative; z-index: 1; padding-top: clamp(88px, 10vw, 128px); }
.section.wash { margin-top: clamp(88px, 10vw, 128px); padding: clamp(72px, 9vw, 112px) 0; background: linear-gradient(180deg, transparent, var(--bg-well) 14%, var(--bg-well) 86%, transparent); }
.section.wash + .section { padding-top: clamp(64px, 8vw, 96px); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.label {
  display: inline-flex; align-items: center; gap: 10px; color: var(--accent-text);
  font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.section h2 { margin-top: 16px; font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.section-head p { margin-top: 18px; font-size: 1.1rem; }

/* the ritual, in order (bronze = change, teal = where it's heading) */
.chain { display: flex; flex-wrap: wrap; gap: 10px 0; margin: -12px 0 clamp(40px, 5vw, 56px); list-style: none; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; }
.chain li { display: inline-flex; align-items: center; color: var(--head); }
.chain li span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--glass); }
.chain li span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--text)); }
.chain li + li::before { content: ""; width: 22px; height: 1px; background: var(--line-3); }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.feature { padding: 28px 26px 26px; border-radius: var(--r-lg); }
.feature .key { display: flex; align-items: center; justify-content: space-between; }
.feature .key i { width: 30px; height: 3px; border-radius: 2px; background: var(--c, var(--text)); }
.feature .key b { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.feature h3 { margin-top: 20px; font-size: 1.4rem; }
.feature p { margin-top: 10px; font-size: .98rem; }
.feature .el { display: inline-flex; gap: 5px; }
.feature .el i { width: 8px; height: 8px; border-radius: 50%; box-shadow: none; }

/* deep dives: copy and a real crop, alternating */
.dives { border-top: 1px solid var(--line); }
.dive {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center;
  padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line);
}
.dive.flip .media { order: -1; }
.dive h3 { margin-top: 16px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.dive .copy > p { margin-top: 18px; font-size: 1.05rem; }
.facts { margin-top: 28px; list-style: none; border-top: 1px solid var(--line-2); }
.facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.facts li span:last-child { font-family: var(--mono); font-size: .83rem; color: var(--head); text-align: right; }
.facts li.change span:last-child { color: var(--accent-text); }
.facts li.relating span:last-child { color: var(--water-text); }
.media { position: relative; }
.media::before {
  content: ""; position: absolute; inset: 10% 6%; z-index: -1; filter: blur(60px); opacity: .55;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .5), transparent);
}
.media .frame { max-width: 460px; margin: 0 auto; }
.media .phone { max-width: 300px; }
.media figcaption { margin-top: 14px; text-align: center; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted); }

/* how it works */
.how { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.steps { list-style: none; counter-reset: step; border-top: 1px solid var(--line-2); }
.steps li { position: relative; padding: 22px 0 22px 64px; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: "0" counter(step); position: absolute; left: 0; top: 24px; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--accent-text);
}
.steps h3 { font-size: 1.45rem; }
.steps p { margin-top: 6px; font-size: .98rem; }

/* privacy band */
.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 52px); border-radius: var(--r-lg); }
.privacy-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.privacy-band p { margin-top: 14px; font-size: 1.05rem; }
.privacy-band .btn { margin-top: 24px; }
.ticks { display: grid; gap: 12px; list-style: none; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); text-wrap: pretty; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--accent); background: rgba(var(--accent-rgb), .14);
}
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 5px); width: 5px; height: 8px; border: solid var(--accent-text); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

/* specs */
.spec-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 64px); }
.spec-groups > div { padding: 22px 26px 8px; border-radius: var(--r-lg); }
.spec-groups > .wide { grid-column: 1 / -1; margin-top: 28px; padding-bottom: 24px; }
.spec-groups h3 { padding-bottom: 14px; font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.specs { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-2); font-size: .95rem; }
.specs th, .specs td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 36%; padding-right: 18px; font-weight: 500; color: var(--sub); }
.specs td { color: var(--head); }
.specs td small { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); }

/* pricing */
.price-card { max-width: 600px; margin: 0 auto; padding: clamp(28px, 5vw, 44px); border-radius: 14px; text-align: center; border-color: rgba(var(--accent-rgb), .45); }
.price-card .top { display: flex; justify-content: center; align-items: center; gap: 12px; }
.price-card .name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .06em; color: var(--head); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--pill); border: 1px solid var(--line-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); }
.price { margin-top: 18px; font-size: clamp(4rem, 9vw, 5.4rem); font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1; color: var(--head); }
.price sup { margin-right: 4px; font-size: .42em; vertical-align: .9em; letter-spacing: 0; color: var(--sub); }
.price-note { margin-top: 10px; font-size: .95rem; text-wrap: balance; }
.price-card .ticks { margin: 28px 0 30px; text-align: left; }
.price-card .btn { width: 100%; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 22px; }
.badges img { height: 40px; width: auto; }
.badges img.gp { height: 60px; margin: -10px -6px; }
a[data-store-url] { opacity: .55; cursor: default; pointer-events: none; }
.store-soon { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; text-wrap: balance; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 48px 22px 0; list-style: none; cursor: pointer; font-size: 1.1rem; font-weight: 500; color: var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; border-radius: 1px; background: var(--sub); transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .a { max-width: 740px; padding: 0 0 24px; }
.site-end { height: clamp(40px, 5vw, 64px); }

/* ── Sub-pages (contact, privacy) ────────────────────── */
.page { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(56px, 8vw, 96px); }
.page h1 { margin-top: 14px; font-size: clamp(2.4rem, 5vw, 3.3rem); }
.page .lead { margin-top: 14px; font-size: 1.08rem; }
.page .note { margin-top: 22px; font-size: .95rem; }
.card { margin-top: 32px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-lg); }
.form { display: flex; flex-direction: column; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; margin-bottom: 7px; font-size: .86rem; font-weight: 500; color: var(--sub); }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-3); background: var(--surface);
  color: var(--head); font: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .3); }
.form select option { background: var(--surface); color: var(--head); }
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { align-self: flex-start; }
.form .btn:disabled { opacity: .6; cursor: default; transform: none; }
.form-status { min-height: 1.2em; font-size: .92rem; color: #9b3b2e; }
[data-theme="dark"] .form-status { color: #e8a598; }
.success-state { display: none; padding: 24px 0; text-align: center; }
.success-state.visible { display: block; }
.success-state h2 { font-size: 1.6rem; }
.success-state p { margin-top: 8px; }
.success-state .btn { margin-top: 20px; }
.policy .updated { margin-top: 10px; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.policy h2 { margin: 40px 0 10px; font-size: 1.45rem; }
.policy p + p { margin-top: 12px; }
.policy ul { margin: 10px 0 12px 1.3rem; }
.policy li + li { margin-top: 6px; }
.policy code { font-size: .86em; color: var(--head); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li:nth-child(4) { border-left: 0; }
  .stats li:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .wordmark { margin-right: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .dive, .how, .privacy-band, .spec-groups { grid-template-columns: 1fr; }
  .dive.flip .media { order: 0; }
  .spec-groups > div + div { margin-top: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-inner { gap: 12px; }
  .wordmark { font-size: 1.1rem; }
  .overview { margin-top: -20px; }
  .trio { grid-template-columns: 1fr; gap: 28px; }
  .trio figure:not(.main) { display: none; }
  .trio .main .phone { max-width: 290px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li { border-left: 0; border-top: 1px solid var(--line); padding: 18px; }
  .stats li:nth-child(1), .stats li:nth-child(2) { border-top: 0; }
  .stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .stats li:last-child { grid-column: 1 / -1; border-left: 0; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 24px 22px 22px; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts li span:last-child { text-align: left; }
  .steps li { padding-left: 48px; }
  .specs th { width: 40%; }
  .cta-row .btn { flex: 1 1 100%; }
  .chain { gap: 8px; font-size: .72rem; }
  .chain li + li::before { display: none; }
  .form .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .nav { position: static; }
  .hero-art, .aura, canvas { display: none !important; }
}
