/* Mantra Factory — guides. Shares the tokens used by the product pages. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-alt: #faf9f7;
  --text: #1e1e1e;
  --text-muted: #71717a;
  --accent: #e8604c;
  --accent-hover: #d44e3a;
  --accent-light: #fef2f0;
  --border: #e5e5e5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, "Iowan Old Style", Cambria, serif;
  --max-w: 1080px;
  --read-w: 720px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* NAV */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 400; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand em { font-style: italic; opacity: 0.45; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* BREADCRUMB */
.breadcrumb { max-width: var(--read-w); margin: 0 auto; padding: 1.25rem 1.5rem 0; font-size: 0.8125rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* ARTICLE */
.article { max-width: var(--read-w); margin: 0 auto; padding: 1.5rem 1.5rem 3rem; }
.article-meta { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.article h1 { font-family: var(--font-serif); font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1rem; }
.article .standfirst { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 2rem; }
.article h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -0.01em; margin: 2.75rem 0 0.875rem; }
.article h3 { font-size: 1.0625rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.article p { margin-bottom: 1.125rem; }
.article ul, .article ol { margin: 0 0 1.25rem 1.25rem; }
.article li { margin-bottom: 0.5rem; }
.article a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(232,96,76,0.3); }
.article a:hover { border-bottom-color: var(--accent); }
.article strong { font-weight: 600; }
.article hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* DISCLOSURE */
.disclosure { background: var(--accent-light); border: 1px solid rgba(232,96,76,0.25); border-radius: var(--radius); padding: 1.125rem 1.25rem; font-size: 0.9375rem; margin-bottom: 2rem; }
.disclosure strong { color: var(--accent); }
.disclosure p { margin-bottom: 0; }

/* CALLOUT */
.callout { background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.125rem 1.25rem; margin: 1.75rem 0; font-size: 0.9375rem; }
.callout p:last-child { margin-bottom: 0; }
.callout .callout-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.375rem; }

/* TABLE */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.75rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.875rem; }
th, td { text-align: left; padding: 0.75rem 0.875rem; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); border-bottom: 1px solid var(--text); }
tbody tr.ours { background: var(--accent-light); }
td a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(232,96,76,0.3); }

/* STEPS */
.steps { counter-reset: step; list-style: none; margin-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.5rem; margin-bottom: 1.25rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-size: 0.8125rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }

/* GUIDE CARDS */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.guide-card { display: block; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s; border-bottom: 1px solid var(--border); }
.guide-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.375rem; }
.guide-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0; }
.guide-card .guide-more { display: inline-block; margin-top: 0.75rem; font-size: 0.8125rem; color: var(--accent); font-weight: 500; }

/* PRODUCT BOX */
.prodbox { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 2.5rem 0; }
.prodbox img { width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.prodbox h3 { margin: 0 0 0.375rem; font-size: 1rem; font-weight: 600; }
.prodbox p { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.btn-store { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--text); color: #fff; padding: 0.625rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: opacity 0.2s; border: 0; }
.btn-store:hover { opacity: 0.85; border: 0; }
.btn-store svg { width: 18px; height: 18px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; }
.faq-item p { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 0; }

/* FOOTER */
footer { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; color: var(--text-muted); border-top: 1px solid var(--border); }
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }

/* Wide tables may break out of the reading column on large screens */
@media (min-width: 1040px) {
  .table-wrap { width: calc(100% + 240px); margin-left: -120px; }
}

@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .prodbox { flex-direction: column; }
}
