/* Smart Toilet Clearance — static trust site */

:root {
  --accent: #e5231b;
  --accent-dark: #b81b15;
  --accent-soft: #fdeceb;
  --ink: #12190f;
  --ink-2: #1a1f1c;
  --body: #4a5148;
  --body-2: #3a423c;
  --muted-1: #6b7268;
  --muted-2: #5c6459;
  --muted-3: #8a8f85;
  --muted-4: #9a9d92;
  --white: #ffffff;
  --bg-section: #f7f6f2;
  --bg-footer: #fbfaf8;
  --border: #e7e5df;
  --border-input: #e5e3db;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Work Sans', sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  font-family: var(--font-body);
  color: var(--ink);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px; width: 1px;
  margin: -1px; padding: 0; border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 10px; left: 10px;
  z-index: 999;
  height: auto; width: auto;
  clip: auto;
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

/* ---------- Header ---------- */
.site-header { background: var(--accent); }
.site-header--sticky { position: sticky; top: 0; z-index: 50; }
.site-header__row {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { height: 48px; width: auto; }
.site-header__label { font-size: 14px; color: #fff; font-weight: 500; }
.site-header__nav { display: flex; align-items: center; gap: 36px; }
.site-header__nav a { font-size: 14px; color: #fff; font-weight: 500; }
.site-header__nav a:hover { color: #fff; opacity: 0.85; text-decoration: none; }
.site-header__nav a.site-header__cta {
  background: #fff; color: var(--accent-dark);
  padding: 11px 24px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.01em;
  transition: transform 0.15s ease;
}
.site-header__nav a.site-header__cta:hover { color: var(--accent-dark); transform: translateY(-1px); text-decoration: none; }
.site-header__back { font-size: 14px; color: #fff; font-weight: 500; }
.site-header__back:hover { color: #fff; opacity: 0.85; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-footer); }
.site-footer__grid {
  padding: 48px 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
.site-footer__grid img { height: 30px; width: auto; margin-bottom: 14px; }
.site-footer__blurb { font-size: 13.5px; line-height: 1.6; color: var(--muted-1); margin: 0; max-width: 320px; }
.site-footer__heading {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
}
.site-footer__body { font-size: 13.5px; color: var(--muted-1); line-height: 2; }
.site-footer__body a { color: var(--muted-1); }
.site-footer__legal {
  border-top: 1px solid var(--border); padding-top: 20px; padding-bottom: 20px;
  font-size: 12px; color: var(--muted-4);
}
.site-footer__legal p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  background: var(--accent); color: #fff;
  padding: 17px 34px; font-size: 16px; font-weight: 600;
  border-radius: 999px; display: inline-block; border: none; cursor: pointer;
  box-shadow: 0 8px 24px -8px var(--accent);
  transition: transform 0.15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; color: #fff; }
.btn--block { width: 100%; text-align: center; }
.btn--secondary { background: #fff; color: var(--accent-dark); border: 1.5px solid var(--border-input); box-shadow: none; }
.btn--secondary:hover { color: var(--accent-dark); }

/* ---------- Shared text tokens ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.badge--tint { background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 28px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 10px;
}
.h2 { font-family: var(--font-heading); letter-spacing: -0.01em; font-size: 34px; font-weight: 600; color: var(--ink); }
.body-copy { font-size: 15px; color: var(--body); line-height: 1.65; margin: 0 0 28px; }
.body-copy--center { max-width: 640px; margin: 0 auto; }
.fine-print { font-size: 13.5px; color: var(--muted-3); margin: 0 0 32px; }
.fine-print--block { font-size: 13px; color: var(--muted-3); margin-top: 12px; }

.price-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.price-compare { font-size: 15px; color: var(--muted-3); text-decoration: line-through; }
.price-main { font-family: var(--font-heading); letter-spacing: -0.01em; font-weight: 600; color: var(--accent-dark); font-size: 30px; }
.price-main--hero { font-size: 44px; }
.price-main--card { font-size: 26px; }

/* ---------- Hero intro (home) ---------- */
.hero-intro { padding: 72px 32px 48px; text-align: center; }
.hero-intro__heading {
  font-family: var(--font-heading); letter-spacing: -0.02em;
  font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; font-weight: 600;
  margin: 0 0 16px; color: var(--ink);
}
.hero-intro__sub { font-size: 16.5px; line-height: 1.6; color: var(--body); margin: 0 auto; max-width: 560px; }

/* ---------- Product grid / cards (home) ---------- */
.grid-wrap { padding-bottom: 96px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.card {
  display: block; border-radius: 20px; background: var(--bg-section); overflow: hidden;
  box-shadow: 0 2px 16px rgba(20, 20, 40, 0.06); transition: transform 0.15s ease; color: inherit;
}
.card:hover { transform: translateY(-4px); text-decoration: none; }
.card__image { width: 100%; height: 260px; background: var(--border); overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px; }
.card__row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.card__badge { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-dark); }
.card__units { font-size: 12px; color: var(--muted-3); }
.card__title { font-family: var(--font-heading); letter-spacing: -0.01em; font-size: 21px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.card__tagline { font-size: 13.5px; line-height: 1.5; color: var(--muted-2); margin: 0 0 18px; min-height: 40px; }

/* ---------- Sections shared ---------- */
.section-tinted { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Product hero ---------- */
.product-hero { padding: 64px 32px 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 48px; align-items: center; }
.product-hero__heading {
  font-family: var(--font-heading); letter-spacing: -0.02em;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 600;
  margin: 0 0 22px; color: var(--ink);
}
.product-hero__body { font-size: 17.5px; line-height: 1.65; color: var(--body); margin: 0 0 32px; max-width: 480px; }
.product-hero__cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.units-note { font-size: 14px; color: var(--body); }
.units-note strong { color: var(--accent-dark); font-weight: 600; }
.hero-img { width: 100%; height: 520px; object-fit: cover; border-radius: 24px; box-shadow: 0 20px 60px -20px rgba(20, 20, 40, 0.25); background: var(--bg-section); }

/* ---------- Product featured ---------- */
.product-featured { padding: 80px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; }
.product-featured__gallery { min-width: 0; }
.gallery-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.gallery-img { border-radius: 18px; object-fit: cover; width: 100%; background: var(--border); }
.gallery-img--half { height: 220px; }
.gallery-img--full { height: 280px; }
.gallery-img--single { height: 514px; }
.product-featured__body { min-width: 0; }
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.feature-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #2b3229; line-height: 1.5; }
.feature-check { color: var(--accent); font-weight: 700; margin-top: 1px; }
.spec-card { border-radius: 16px; padding: 22px 26px; margin-bottom: 28px; background: #fff; box-shadow: 0 2px 16px rgba(20, 20, 40, 0.06); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 13.5px; color: var(--body); }
.spec-grid strong { color: var(--ink); }

/* ---------- Lifestyle gallery ---------- */
.lifestyle-gallery { padding: 0 32px 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.lifestyle-img { width: 100%; height: 320px; object-fit: cover; border-radius: 18px; background: var(--border); }

/* ---------- Why Us ---------- */
.why-us { padding: 88px 32px; }
.why-us__intro { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.trust-card { text-align: center; padding: 24px 16px; border-radius: 18px; background: var(--bg-footer); transition: transform 0.15s ease; }
.trust-card:hover { transform: translateY(-3px); }
.trust-icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 600; margin: 0 auto 16px;
}
.trust-title { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.trust-body { font-size: 13.5px; line-height: 1.55; color: var(--muted-2); }

/* ---------- FAQ ---------- */
.faq { padding: 88px 32px; max-width: 760px; }
.faq__heading { text-align: center; margin-bottom: 48px; }
.faq__list { display: flex; flex-direction: column; gap: 0; }
.faq-item { background: #fff; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 2px 12px rgba(20, 20, 40, 0.05); overflow: hidden; }
.faq-item__summary { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 20px; }
.faq-item__question { font-size: 16px; font-weight: 600; color: var(--ink); }
.faq-item__toggle { flex-shrink: 0; width: 14px; height: 14px; position: relative; }
.faq-item__toggle::before, .faq-item__toggle::after {
  content: ''; position: absolute; background: var(--accent); border-radius: 2px;
}
.faq-item__toggle::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-item__toggle::after { top: 0; left: 6px; width: 2px; height: 14px; transition: transform 0.15s ease; }
.faq-item[open] .faq-item__toggle::after { transform: scaleY(0); }
.faq-item__answer { padding: 0 24px 24px; font-size: 14.5px; line-height: 1.65; color: var(--body); max-width: 660px; }

/* ---------- Order / Buy Now ---------- */
.order { max-width: 640px; padding: 88px 32px; margin: 0 auto; }
.order__heading { text-align: center; margin-bottom: 40px; }
.order-panel { display: flex; flex-direction: column; gap: 16px; text-align: center; background: var(--bg-section); border-radius: 20px; padding: 40px 36px; }
/* Hidden until Stripe is activated (references the Stripe button) - remove display:none once it goes live */
.order-panel__note { display: none; font-size: 12.5px; color: var(--muted-3); }

/* ---------- Terms page ---------- */
.terms { max-width: 760px; padding: 64px 32px 96px; margin: 0 auto; }
.terms__heading {
  font-family: var(--font-heading); letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 600; margin: 0 0 8px; color: var(--ink);
}
.terms__updated { font-size: 14px; color: var(--muted-3); margin: 0 0 40px; }
.terms__body { display: flex; flex-direction: column; gap: 36px; font-size: 15px; line-height: 1.7; color: var(--body-2); }
.terms__body p { margin: 0; }
.terms__clause-title { font-family: var(--font-heading); letter-spacing: -0.01em; font-size: 19px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .container, .product-hero, .hero-intro, .product-featured, .why-us, .faq, .order, .terms {
    padding-left: 20px; padding-right: 20px;
  }
  /* Narrow phones (e.g. iPhone 13 mini, 375px) - drop the CTA so the nav row doesn't get squished */
  .site-header__nav a.site-header__cta {
    display: none;
  }
  /* These grids have a minmax() floor (380px / 340px) wider than a 375px viewport,
     which was forcing an overflow that clipped the badge/heading text. Force a single column. */
  .product-hero, .product-featured {
    grid-template-columns: 1fr;
  }
}
