/* ═══════════════════════════════════════════════════════════════════════
   KOBAYASHI — SHARED PAGE STYLES
   Typography, hero, prose, cards, CTA. Pair with theme.css + shell.css.
   ═══════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: hsl(var(--background)); }
::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 4px; }

.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; fill: none; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.preview-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: hsl(var(--primary));
  color: hsl(0 0% 100%);
  padding: 5px 20px;
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center;
}

/* Generic page hero (for info pages: About, Lifetime Guarantee, Legal, etc.) */
.page-hero {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 32px 40px;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 90vw; max-width: 800px; height: 500px;
  background: radial-gradient(circle, hsl(var(--primary-glow)) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-condensed);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: hsl(var(--primary));
  padding: 6px 14px;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 100px;
  margin-bottom: 20px;
}
.page-hero__eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: 0 0 8px hsl(var(--primary));
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: hsl(var(--foreground));
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  font-weight: 400;
}
.page-hero h1 em { color: hsl(var(--primary)); font-style: normal; }
.page-hero p {
  font-size: 1.05rem;
  color: hsl(var(--muted-foreground));
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Containers */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 840px; margin: 0 auto; padding: 0 32px; }

/* Prose (long-form policy / legal content).
   Wider default so Iubenda privacy/cookie embeds fit without the sidebar
   getting clipped by the container. */
.prose {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 32px 80px;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  line-height: 1.75;
}
/* Use .prose--narrow for Terms / plain-text policies that don't need the
   extra room — easier line length to read. */
.prose--narrow { max-width: 760px; }

/* Iubenda embed safety: the injected policy iframe/content should fill the
   container width and never push past it. */
.prose .iub-container,
.prose [class*="iubenda"],
.prose iframe,
.prose > div > div,
.prose > div > iframe {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}
.prose a.iubenda-white,
.prose a.iubenda-black,
.prose a.iubenda-embed {
  display: inline-block;
  margin-top: 16px;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: hsl(var(--foreground));
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 48px 0 14px;
  font-weight: 400;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 28px 0 10px;
}
.prose p { margin: 0 0 18px; }
.prose a { color: hsl(var(--primary)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: hsl(var(--primary-hover)); }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; }
.prose ul li { list-style-type: none; position: relative; padding-left: 12px; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: -12px; top: 11px;
  width: 6px; height: 6px;
  background: hsl(var(--primary));
  border-radius: 1px;
}
.prose strong { color: hsl(var(--foreground)); font-weight: 600; }
.prose em { color: hsl(var(--foreground)); font-style: normal; font-weight: 500; }
.prose hr {
  border: none;
  height: 1px;
  background: hsl(var(--border));
  margin: 40px 0;
}
.prose blockquote {
  border-left: 3px solid hsl(var(--primary));
  padding: 12px 0 12px 20px;
  margin: 24px 0;
  color: hsl(var(--foreground));
  font-style: italic;
}
.prose .prose__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: hsl(var(--muted-foreground-2));
  padding: 12px 16px;
  background: hsl(var(--background-elev));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 32px;
  display: inline-block;
}

/* Feature grid (3-col cards for About, Lifetime Guarantee, Shipping, etc.) */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
  padding: 28px;
  background: hsl(var(--background-elev));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  transition: all 0.25s var(--ease);
}
.feat-card:hover {
  border-color: hsl(350 72% 44% / 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feat-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: hsl(350 72% 44% / 0.1);
  border: 1px solid hsl(350 72% 44% / 0.25);
  color: hsl(var(--primary));
  margin-bottom: 18px;
}
.feat-card__title {
  font-size: 1.05rem; font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 8px;
}
.feat-card__desc {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* CTA block (end-of-page "Request a Quote" bar) */
.cta-block {
  padding: 40px 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.cta-block__inner {
  background: hsl(var(--background-elev));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 700px) {
  .cta-block__inner { grid-template-columns: 1fr; text-align: center; }
}
.cta-block h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: hsl(var(--foreground));
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  font-weight: 400;
}
.cta-block h2 em { color: hsl(var(--primary)); font-style: normal; }
.cta-block p {
  color: hsl(var(--muted-foreground));
  max-width: 560px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500; font-size: 0.9rem;
  padding: 0 22px; height: 46px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary { background: hsl(var(--primary)); color: hsl(0 0% 100%); }
.btn--primary:hover { background: hsl(var(--primary-hover)); box-shadow: 0 8px 24px -4px hsl(var(--primary-glow)); }
.btn--ghost { background: transparent; color: hsl(var(--foreground)); border-color: hsl(var(--border)); }
.btn--ghost:hover { border-color: hsl(var(--border-strong)); background: hsl(var(--secondary)); }
.btn--lg { height: 50px; padding: 0 26px; font-size: 0.95rem; }
.btn .icon { width: 14px; height: 14px; }
