/* iTranquility — shared styles
   Palette carried from the original site. Arial-first typography throughout. */

:root {
  --page: #f7f3e9;
  --surface: #fffdf7;
  --surface-soft: #edf1e8;
  --sage: #7f9474;
  --sage-deep: #52684f;
  --sage-pale: #dfe8d8;
  --slate: #293738;
  --muted: #5d6a68;
  --line: #cbd3c5;
  --moon: #d7ad63;
  --breath: #6f8d90;
  --shadow: 0 10px 30px rgba(43, 55, 53, .08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--slate);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--sage-deep); }
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; color: var(--slate); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--sage-deep); color: #fff; padding: 8px 14px; border-radius: 8px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--breath); outline-offset: 2px; }

.soft-label {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--sage-deep); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
}
.soft-label::before { content: ""; width: 26px; height: 2px; background: var(--sage); }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; }
.brand-name em { font-style: normal; color: var(--sage-deep); }

.menu-button {
  display: none; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--surface-soft); color: var(--slate);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px;
}

.main-nav { border-top: 1px solid var(--line); }
.main-nav .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  padding-top: 9px; padding-bottom: 9px;
}
.main-nav a {
  color: var(--slate); text-decoration: none; font-size: .92rem; padding: 3px 2px; white-space: nowrap;
}
.main-nav a:hover { color: var(--sage-deep); text-decoration: underline; }
.main-nav a[aria-current="page"] { color: var(--sage-deep); font-weight: 700; border-bottom: 2px solid var(--sage); }
.nav-group-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-left: 10px;
}
.nav-group-label:first-child { margin-left: 0; }

.nav-panel { display: none; }

/* ---------- Slim page head / hero ---------- */
.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: 2rem; margin-bottom: 8px; }
.page-head .intro { font-size: 1.06rem; color: var(--muted); max-width: 46em; }

.hero { padding: 26px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; }
.hero h1 { font-size: 2rem; margin-bottom: 10px; }
.hero .intro { font-size: 1.06rem; color: var(--muted); margin-bottom: 16px; }
.hero-photo {
  width: 100%; height: 210px; object-fit: cover; object-position: center;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block;
}
.photo-caption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }

.text-link { font-weight: 700; }

/* ---------- Cards & sections ---------- */
.section { padding: 30px 0 6px; }
.section h2 { font-size: 1.5rem; margin-bottom: 6px; }
.section .section-intro { color: var(--muted); max-width: 46em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.cards.two-col { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; text-decoration: none; color: var(--slate); display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.08rem; margin-bottom: 6px; color: var(--sage-deep); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card .arrow { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--sage-deep); font-size: .92rem; }

/* ---------- Guide layout with side contents ---------- */
.guide-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 36px; padding-top: 8px; align-items: start; }
.toc { position: sticky; top: 16px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; }
.toc h2 { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--slate); font-size: .94rem; }
.toc a:hover { color: var(--sage-deep); text-decoration: underline; }
.toc-chips { display: none; }

.guide-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px; }
.guide-body h3 { font-size: 1.18rem; margin: 22px 0 8px; color: var(--sage-deep); }
.guide-body h3:first-child { margin-top: 0; }

.sequence { display: grid; gap: 10px; margin: 14px 0 18px; counter-reset: step; }
.sequence > div {
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 12px 14px 12px 48px; position: relative;
}
.sequence > div::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sage); color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}

.aside-note {
  background: var(--sage-pale); border-radius: var(--radius-md);
  padding: 14px 16px; margin: 18px 0 6px; font-size: .96rem;
}

.breath-visual { display: flex; gap: 18px; align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; margin: 10px 0 18px; }
.breath-circle {
  flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%;
  border: 2px solid var(--breath); color: var(--breath);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.02rem;
  background: var(--surface);
}
.breath-visual p { margin: 0; }

/* ---------- Timer ---------- */
.timer { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin: 16px 0; text-align: center; }
.timer-display { font-size: 2.6rem; font-weight: 700; color: var(--sage-deep); line-height: 1.1; }
.timer-state { color: var(--muted); margin-top: 4px; }
.progress { height: 8px; background: var(--sage-pale); border-radius: 99px; margin: 16px auto; max-width: 420px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--sage); transition: width 1s linear; }
.timer-actions { display: flex; gap: 10px; justify-content: center; }
.timer-actions button {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 10px; padding: 9px 20px;
  border: 1px solid var(--sage-deep); background: var(--sage-deep); color: #fff;
}
.timer-actions button#timer-reset { background: var(--surface); color: var(--sage-deep); }

/* ---------- Buying pages ---------- */
.category-lead {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; margin: 14px 0 20px;
}
.category-lead h2 { font-size: 1.15rem; color: var(--sage-deep); margin-bottom: 6px; }
.category-lead p { margin-bottom: 8px; }
.category-browse { margin: 0; font-size: .95rem; }

.product-list { display: grid; gap: 14px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px 18px; transition: box-shadow .15s ease;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-main-link { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--slate); }
.product-main-link:hover .product-title { color: var(--sage-deep); }
.thumb {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: var(--radius-md);
  background: var(--sage-pale); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--sage-deep);
}
.thumb svg { width: 30px; height: 30px; }
.thumb-initial { font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.product-brand { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.product-title { display: block; font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.product-price { font-weight: 700; color: var(--sage-deep); margin: 10px 0 4px; }
.product-price small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.product-evidence { color: var(--muted); font-size: .94rem; }
.product-evidence p { margin-bottom: 6px; }
.source-link { font-size: .88rem; }

.research-note {
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 14px 16px; font-size: .88rem; color: var(--muted); margin-top: 20px;
}

/* ---------- About / FAQ ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.principles > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; }
.principles strong { display: block; color: var(--sage-deep); margin-bottom: 2px; }
.principles span { color: var(--muted); font-size: .94rem; }

.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 10px; }
.faq-list summary { font-weight: 700; cursor: pointer; color: var(--slate); }
.faq-list details p { margin: 8px 0 2px; color: var(--muted); }

.disclaimer-box { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; margin-top: 22px; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 44px; }
.footer-inner { padding-top: 20px; padding-bottom: 24px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--sage-deep); text-decoration: underline; }
.footer-disclaimer { font-size: .82rem; color: var(--muted); margin-top: 12px; max-width: 70em; }
.affiliate-disclosure { font-size: .72rem; color: var(--muted); margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-photo { height: 190px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .menu-button { display: inline-block; }
  .main-nav { display: none; }
  .nav-panel {
    display: none; border-top: 1px solid var(--line); background: var(--surface);
    padding: 14px 20px 18px; max-height: 70vh; overflow-y: auto;
  }
  .nav-panel.open { display: block; }
  .nav-panel h2 { font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 12px 0 6px; }
  .nav-panel h2:first-child { margin-top: 0; }
  .nav-panel a { display: block; padding: 7px 0; color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--surface-soft); }
  .nav-panel a[aria-current="page"] { color: var(--sage-deep); font-weight: 700; }

  .guide-layout { grid-template-columns: 1fr; gap: 14px; }
  .toc { display: none; }
  .toc-chips {
    display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px;
  }
  .toc-chips a {
    flex: 0 0 auto; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 99px;
    padding: 6px 13px; font-size: .88rem; color: var(--slate); text-decoration: none;
  }
  .guide-body { padding: 20px 18px; }
  .breath-visual { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .cards, .cards.two-col { grid-template-columns: 1fr; }
  .page-head h1, .hero h1 { font-size: 1.7rem; }
  .hero-photo { height: 170px; }
  .product-main-link { gap: 12px; }
  .thumb { width: 68px; height: 68px; }
  .principles { grid-template-columns: 1fr; }
}
