/* Taviwash — policy and contact pages. Same world as the product page: white ground, quiet type, forest green for actions. */

.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--faint); font-size: var(--t-small); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.page-hero h1 { max-width: 18ch; font-size: var(--t-h2); line-height: 1.06; }
.page-lead { max-width: 58ch; margin-top: 16px; color: var(--muted); font-size: var(--t-large); line-height: 1.55; }
.page-meta { margin-top: 16px; color: var(--faint); font-size: var(--t-small); }

/* Key facts under the title */
.page-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--r); background: var(--line); overflow: hidden; }
.page-facts > div { padding: 20px 22px; background: var(--surface); }
.page-facts dt { color: var(--muted); font-size: var(--t-small); }
.page-facts dd { margin-top: 6px; font-size: var(--t-xl); font-weight: 600; letter-spacing: -.01em; }

/* Body: contents list + reading column */
.page-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 6vw, 88px); }
.toc { position: sticky; top: calc(var(--header) + 24px); align-self: start; }
.toc p { margin-bottom: 12px; font-size: var(--t-small); font-weight: 600; }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); font-size: var(--t-small); line-height: 1.4; text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; }

.prose { max-width: 70ch; }
.prose section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.prose h2 { font-size: var(--t-xl); line-height: 1.25; letter-spacing: -.015em; }
.prose h3 { margin-top: 28px; font-size: var(--t-large); line-height: 1.3; }
.prose p, .prose li { color: #343b36; font-size: var(--t-body); line-height: 1.7; }
.prose h2 + p, .prose h2 + ul, .prose h2 + ol, .prose h3 + p, .prose h3 + ul { margin-top: 14px; }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p, .prose p + ol, .prose .table-wrap + p, .prose p + .table-wrap, .prose p + .note { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--faint); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }

.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.prose table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--surface); color: var(--muted); font-weight: 600; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody tr.is-market { background: var(--accent-tint); }
.prose tbody tr.is-market th { color: var(--accent); }

.note { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.note p { font-size: var(--t-small); }
.prose .note { margin-top: 18px; }

/* Text the store owner must fill in before going live */
.slot { padding: 1px 6px; border-radius: 4px; background: #fff3cd; color: #6b4e00; font-size: .92em; }

/* Help band at the bottom of each page */
.page-help { padding-block: clamp(48px, 6vw, 80px); background: var(--surface); border-top: 1px solid var(--line); }
.page-help-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.page-help h2 { font-size: clamp(1.5rem, 1.6vw + .9rem, 2.25rem); }
.page-help p { margin-top: 10px; color: var(--muted); font-size: var(--t-large); }
.page-help-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-help .btn-outline { min-height: 52px; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 6vw, 88px); }
.contact-ways { display: grid; gap: 1px; align-self: start; border: 1px solid var(--line); border-radius: var(--r); background: var(--line); overflow: hidden; }
.contact-ways > a, .contact-ways > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 22px; background: #fff; color: inherit; text-decoration: none; transition: background .2s; }
.contact-ways > a:hover { background: var(--surface); }
.contact-ways svg { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--accent-tint); fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-ways b { font-size: var(--t-body); }
.contact-ways span { color: var(--muted); font-size: var(--t-small); line-height: 1.5; }
.contact-biz { margin-top: 28px; color: var(--muted); font-size: var(--t-small); line-height: 1.7; }
.contact-biz b { display: block; margin-bottom: 4px; color: var(--ink); }

.form h2 { font-size: var(--t-xl); line-height: 1.25; }
.form > p { margin-top: 8px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; margin-top: 24px; }
.field-full { grid-column: 1 / -1; }
.form label { display: grid; gap: 6px; font-size: var(--t-small); font-weight: 600; }
.form label small { color: var(--faint); font-weight: 400; }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; color: var(--ink); font: 400 var(--t-body)/1.4 var(--font); transition: border-color .2s, box-shadow .2s; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.form [aria-invalid="true"] { border-color: var(--save); }
.field-error { color: var(--save); font-size: var(--t-small); font-weight: 400; }
.form .btn { margin-top: 24px; min-width: 200px; }
.form-status { margin-top: 16px; font-size: var(--t-small); color: var(--muted); }
.form-status:empty { display: none; }

@media (max-width: 1023px) {
  .page-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-body { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); }
  .toc ol { columns: 2; column-gap: 24px; border: 0; }
  .toc a { padding-left: 0; border: 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .page-facts { grid-template-columns: minmax(0, 1fr); }
  .page-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 18px; }
  .page-facts dd { margin: 0; font-size: var(--t-large); text-align: right; }
  .toc ol { columns: 1; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form .btn, .page-help-actions .btn { width: 100%; }
  .page-help-actions { width: 100%; }
}
.form select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b211d' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }

/* ===== Trust pages: about, how to use, warranty, FAQ ===== */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 7vw, 112px); }
.split-flip .split-media { order: 2; }
.split-media { overflow: hidden; border-radius: var(--r); background: var(--surface); }
.split-media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .8s var(--ease); }
.split-media:hover img { transform: scale(1.025); }
.split-copy h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); line-height: 1.1; }
.split-copy p { max-width: 54ch; margin-top: 16px; color: var(--muted); font-size: var(--t-large); line-height: 1.6; }
.tick-list { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.tick-list li { position: relative; padding-left: 32px; color: var(--muted); line-height: 1.6; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4a35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 12px; }
.tick-list b { color: var(--ink); }

.promises { padding-block: clamp(56px, 7vw, 112px); background: var(--surface); border-block: 1px solid var(--line); }
.promises h2 { max-width: 20ch; font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); line-height: 1.1; }
.promise-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.promise-grid a { display: grid; align-content: start; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: inherit; text-decoration: none; transition: transform .25s var(--ease), border-color .25s; }
.promise-grid a:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.promise-grid svg { width: 28px; height: 28px; margin-bottom: 10px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promise-grid b { font-size: var(--t-large); }
.promise-grid span { color: var(--muted); font-size: var(--t-small); line-height: 1.55; }

.who { padding-block: 0 clamp(56px, 7vw, 112px); }
.who h2 { font-size: clamp(1.5rem, 1.6vw + .9rem, 2.25rem); }
.who p { max-width: 62ch; margin-top: 16px; color: var(--muted); font-size: var(--t-large); line-height: 1.6; }
.who .who-biz { font-size: var(--t-small); }
.who-biz a { color: var(--accent); }

/* How to use */
.howto-video { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.howto-video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--r); background: var(--surface); object-fit: cover; }
.howto-video h2 { font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); line-height: 1.1; }
.howto-video p { max-width: 50ch; margin-top: 16px; color: var(--muted); font-size: var(--t-large); line-height: 1.6; }
.mini-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; max-width: 440px; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--line); overflow: hidden; }
.mini-specs > div { padding: 14px 18px; background: #fff; }
.mini-specs dt { color: var(--muted); font-size: var(--t-small); }
.mini-specs dd { margin-top: 2px; font-size: var(--t-large); font-weight: 600; }

.howto { padding-block: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.howto > h2 { max-width: 22ch; font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem); line-height: 1.1; }
.howto-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; list-style: none; }
.howto-media { overflow: hidden; border-radius: var(--r); background: var(--surface); aspect-ratio: 4 / 5; }
.howto-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.howto-step:hover .howto-media img { transform: scale(1.025); }
.howto-copy { position: relative; padding-top: 18px; }
.howto-n { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--accent); color: #fff; font-size: var(--t-small); font-weight: 700; }
.howto-copy h3 { font-size: var(--t-xl); line-height: 1.25; }
.howto-copy p { margin-top: 8px; color: var(--muted); line-height: 1.6; }
.howto-step.no-media .howto-copy { height: 100%; padding: 28px; border-radius: var(--r); background: var(--accent-tint); }
.howto-step.no-media { display: flex; }
.howto-step.no-media .howto-copy { display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: auto; }

/* FAQ page */
.faq-page { padding-block: clamp(32px, 4vw, 56px) clamp(56px, 7vw, 112px); }
.faq-chips { position: sticky; top: var(--header); z-index: 5; padding-block: 12px; background: rgba(255, 255, 255, .94); }
.faq-chips ul { display: flex; gap: 8px; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.faq-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink); font-size: var(--t-small); font-weight: 500; white-space: nowrap; text-decoration: none; transition: border-color .2s, background .2s; }
.faq-chips a:hover { border-color: var(--accent); }
.faq-chips a[aria-current="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.faq-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 64px); padding-top: clamp(40px, 5vw, 72px); scroll-margin-top: calc(var(--header) + 72px); }
.faq-group h2 { font-size: var(--t-xl); line-height: 1.25; }
.faq-group .faq-list p a { color: var(--accent); text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howto-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-group { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 699px) {
  .split, .howto-video { grid-template-columns: minmax(0, 1fr); }
  .split-flip .split-media { order: 0; }
  .howto-video video { max-width: 300px; }
  .promise-grid, .howto-steps { grid-template-columns: minmax(0, 1fr); }
  .howto-media { aspect-ratio: 4 / 3; }
}
