/* Lulutox Detox Tea — style.css
   Mobile-first, no dependencies, system font stack (no external requests). */

:root {
  --pink: #c4126f;
  --pink-dark: #8e0e52;
  --pink-soft: #fdeaf3;
  --leaf: #1f6b3a;
  --leaf-soft: #e8f3ec;
  --peach: #f7a072;
  --ink: #2a1420;
  --muted: #5c4653;
  --bg: #fff4f8;
  --card: #ffffff;
  --line: rgba(196, 18, 111, .14);
  --shadow: 0 24px 60px rgba(196, 18, 111, .14);
  --shadow-sm: 0 12px 30px rgba(42, 20, 32, .07);
  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-dark); }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(196, 18, 111, .1);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.25rem; letter-spacing: .01em;
  color: var(--pink); text-decoration: none;
}
.brand:hover { color: var(--pink-dark); }
.brand-leaf { color: var(--leaf); flex: none; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.main-nav a:not(.btn) {
  position: relative; display: inline-block; padding: 6px 0;
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.main-nav a:not(.btn):hover { color: var(--ink); }
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }
.main-nav { display: flex; align-items: center; gap: 24px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, background .2s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 14px;
  font: inherit; font-weight: 700; letter-spacing: .02em; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .26s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink), #a80f5e); color: #fff;
  box-shadow: 0 14px 30px rgba(196, 18, 111, .28);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 40px rgba(196, 18, 111, .34); }
.btn-secondary { background: #fff; color: var(--pink-dark); border-color: rgba(196, 18, 111, .35); }
.btn-secondary:hover { color: var(--pink-dark); border-color: var(--pink); }
.btn-light { background: #fff; color: var(--pink-dark); }
.btn-light:hover { color: var(--pink); transform: translateY(-2px); }
.btn-nav { min-height: 44px; padding: 8px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 8px; }
.hero-grid {
  display: grid; gap: 28px; padding-top: 28px; padding-bottom: 28px;
  background:
    radial-gradient(60% 60% at 12% 10%, rgba(196, 18, 111, .10), transparent),
    radial-gradient(50% 50% at 92% 90%, rgba(31, 107, 58, .10), transparent),
    linear-gradient(135deg, #fff, #fff5f9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .9);
  width: calc(100% - 40px); margin: 0 auto;
  padding-left: 22px; padding-right: 22px;
}
.hero-text { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
h1 {
  margin: 0; font-size: clamp(1.7rem, 5.4vw, 2.6rem); line-height: 1.15;
  color: #3a0d27; font-weight: 800; text-wrap: balance;
}
.lead { margin: 0; font-size: 1.06rem; color: var(--muted); }
.hero-media { display: flex; justify-content: center; }
.hero-frame {
  width: 100%; max-width: 460px; padding: 14px; border-radius: 24px;
  background: linear-gradient(140deg, #fff, var(--pink-soft));
  border: 1px solid var(--line); box-shadow: 0 24px 48px rgba(196, 18, 111, .18);
}
.hero-frame img { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; }

/* ---------- Layout ---------- */
.layout { display: block; padding-top: 28px; padding-bottom: 64px; }
.content { display: grid; gap: 22px; min-width: 0; }

.toc-col { margin-bottom: 22px; }
.toc {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.toc summary {
  cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--pink-dark);
  list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 48px;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.toc details[open] summary::after { transform: rotate(-135deg); }
.toc ol { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; gap: 2px; }
.toc a {
  display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--muted); font-size: .94rem; line-height: 1.35;
}
.toc a:hover { background: var(--pink-soft); color: var(--ink); }
.toc a[aria-current="true"] { background: var(--pink-soft); color: var(--pink-dark); font-weight: 700; }

/* ---------- Cards / content ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow-sm); min-width: 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
h2 {
  margin: 0 0 14px; font-size: clamp(1.3rem, 3.8vw, 1.75rem); line-height: 1.25;
  color: #3a0d27; font-weight: 800; text-wrap: balance;
}
h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.3; color: #3a0d27; font-weight: 700; text-wrap: balance; }
.card p { margin: 0 0 14px; }
.card-warn { border-left: 6px solid var(--peach); }

.sub-grid { display: grid; gap: 16px; margin-top: 20px; }
.sub-card { background: var(--leaf-soft); border-radius: var(--radius-sm); padding: 18px; }
.sub-card p:last-child { margin-bottom: 0; }

.notice {
  margin-top: 18px; padding: 18px; border-radius: var(--radius-sm);
  background: var(--pink-soft); border: 1px solid var(--line);
}
.notice p:last-child { margin-bottom: 0; }

.check-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.7 2.7L13 6.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.steps { list-style: none; counter-reset: step; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 62px;
  background: var(--pink-soft); border-radius: var(--radius-sm); min-height: 56px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--pink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .96rem; background: #fff; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--pink); color: #fff; font-weight: 700; }
.data-table tbody th { font-weight: 700; color: var(--pink-dark); }
.data-table tbody tr:nth-child(even) { background: #fff8fb; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.price-table td, .price-table tbody th { font-variant-numeric: tabular-nums; }
.price-table tbody tr:last-child { background: var(--leaf-soft); }
.table-wrap:focus-visible { outline-offset: 2px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.faq-item[open] { background: #fff8fb; border-color: rgba(196, 18, 111, .3); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; list-style: none; padding: 14px 18px; min-height: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; }
.faq-item summary::after {
  content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item > p { margin: 0; padding: 0 18px 16px; }

/* ---------- Legal pages ---------- */
.legal-page { padding-top: 32px; padding-bottom: 64px; max-width: 860px; }
.legal h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 8px; }
.legal h2 { margin-top: 28px; font-size: clamp(1.15rem, 3.2vw, 1.4rem); }
.legal h3 { margin-top: 18px; color: var(--pink-dark); }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal-date { color: var(--muted); font-size: .95rem; }

/* ---------- CTA band + footer ---------- */
.cta-band {
  display: flex; justify-content: center; padding: 32px 20px;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.site-footer { background: #2a1420; color: #f3dfe8; padding: 32px 0; }
.footer-inner { display: grid; gap: 18px; }
.brand-footer, .brand-footer:hover { color: #fff; }
.site-footer .brand-leaf { color: #7bd49a; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { color: #f3dfe8; display: inline-block; padding: 6px 0; }
.footer-legal a:hover { color: #fff; }

/* ---------- Tablet / desktop ---------- */
@media (max-width: 979px) {
  .menu-toggle { display: inline-flex; }
  .js .main-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 20px 20px;
    background: #fff; box-shadow: 0 18px 30px rgba(42, 20, 32, .12);
    display: none;
  }
  .js .main-nav.is-open { display: flex; }
  .js .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .main-nav li a:not(.btn) { display: block; padding: 12px 4px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .js .main-nav a:not(.btn)::after { display: none; }
  /* Without JavaScript the nav simply wraps under the brand. */
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  html:not(.js) .main-nav { flex-wrap: wrap; }
  html:not(.js) .main-nav ul { flex-wrap: wrap; gap: 4px 16px; }
}

@media (min-width: 640px) {
  .wrap { padding: 0 28px; }
  .card { padding: 32px 32px; }
  .sub-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { width: calc(100% - 56px); padding-left: 36px; padding-right: 36px; }
  .data-table { font-size: 1rem; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 42px; padding-top: 44px; padding-bottom: 44px; padding-left: 48px; padding-right: 48px; }
}

@media (min-width: 980px) {
  :root { --header-h: 72px; }
  .layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
  .toc-col { position: sticky; top: calc(var(--header-h) + 20px); margin-bottom: 0; }
  .toc summary { pointer-events: none; }
  .toc summary::after { display: none; }
  .hero { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
