/* Shared website-template layout. Visuals come from theme tokens. */
.tpl { margin: 0; }
.tpl a { color: inherit; }
.tpl-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.tpl-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: var(--bd, 1px) solid var(--line);
}
.tpl-nav .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; letter-spacing: -.03em; font-size: 18px;
}
.tpl-nav .brand i {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: var(--radius-sm, 10px); background: var(--accent); color: var(--accent-ink, #fff);
  font-style: normal; font-weight: 800;
}
.tpl-nav nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-weight: 650; font-size: 14px; }
.tpl-nav nav a { text-decoration: none; color: var(--muted); }
.tpl-nav nav a:hover { color: var(--ink); }
.tpl-hero { padding: 72px 0 56px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.tpl-hero .kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--accent-deep, var(--accent)); margin: 0 0 12px; }
.tpl-hero h1 { font-family: var(--font-display, var(--font)); font-size: clamp(40px, 6vw, 72px); line-height: .98; letter-spacing: -.04em; margin: 0 0 16px; font-weight: 800; }
.tpl-hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 36em; }
.tpl-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tpl-panel {
  background: var(--surface); border: var(--bd, 1px) solid var(--line);
  border-radius: var(--radius, 16px); box-shadow: var(--shadow-lg, var(--shadow-n));
  padding: 22px; min-height: 280px;
}
.tpl-section { padding: 72px 0; }
.tpl-section h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; margin: 0 0 10px; }
.tpl-section .sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.tpl-bento {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto;
  gap: 16px;
}
.tpl-bento article {
  background: var(--surface); border: var(--bd, 1px) solid var(--line);
  border-radius: var(--radius, 16px); box-shadow: var(--shadow-n);
  padding: 22px;
}
.tpl-bento article.wide { grid-column: 1 / 2; grid-row: 1 / 3; }
.tpl-bento h3 { margin: 8px 0 6px; font-size: 20px; }
.tpl-bento p { margin: 0; color: var(--muted); }
.tpl-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tpl-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tpl-cta-box {
  text-align: center; padding: 64px 24px; border-radius: var(--radius);
  background: var(--accent-soft); border: var(--bd, 0) solid var(--line);
}
.tpl-foot {
  border-top: var(--bd, 1px) solid var(--line); padding: 32px 0 48px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.tpl-foot a { font-weight: 700; text-decoration: none; }
.tpl-page { padding: 48px 0 80px; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .tpl-hero, .tpl-bento, .tpl-pricing, .tpl-quotes, .tpl-grid { grid-template-columns: 1fr; }
  .tpl-bento article.wide { grid-column: auto; grid-row: auto; }
  .tpl-nav nav .hide-sm { display: none; }
  .tpl-hero { padding: 40px 0 32px; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tpl * { scroll-behavior: auto; }
}

html, body { max-width: 100%; overflow-x: clip; }
.tpl-hero, .tpl-bento, .tpl-pricing, .tpl-quotes, .tpl-grid, .tpl-nav, .tpl-wrap, .tpl-hero > * { min-width: 0; }
.tpl-hero h1, .tpl-section h2 { overflow-wrap: anywhere; }
.tpl-nav { max-width: 100%; }
.tpl img, .tpl video { aspect-ratio: auto; max-width: 100%; }
@media (max-width: 700px) {
  .tpl-nav { padding-left: 0; padding-right: 0; }
}
