/* ==========================================================================
   BudgetDaily — design system
   ========================================================================== */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f3f4ef;
  --ink: #0b1f1a;
  --ink-2: #3d4f49;
  --ink-3: #6b7b75;
  --line: #e4e7e0;
  --brand: #0f8a5f;
  --brand-600: #0b7350;
  --brand-700: #095c41;
  --brand-50: #e8f6ef;
  --brand-100: #cdeede;
  --deep: #07241c;
  --deep-2: #0c3a2c;
  --accent: #f4b740;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 26, 0.06), 0 1px 1px rgba(11, 31, 26, 0.04);
  --shadow: 0 10px 30px -12px rgba(11, 31, 26, 0.18), 0 2px 6px rgba(11, 31, 26, 0.04);
  --shadow-lg: 0 30px 60px -24px rgba(7, 36, 28, 0.35), 0 6px 16px rgba(7, 36, 28, 0.06);
  --ring: 0 0 0 4px rgba(15, 138, 95, 0.25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-600);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

:focus-visible {
  outline: 0;
  box-shadow: var(--ring);
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(15, 138, 95, 0.7);
}

.btn-primary:hover {
  background: var(--brand-600);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink-3);
}

.btn-light {
  background: #fff;
  color: var(--deep);
}

.btn-sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--brand), var(--deep-2));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgba(15, 138, 95, 0.8);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:not(.btn):hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-links .btn {
  margin-left: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(15, 138, 95, 0.16), transparent);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(11, 31, 26, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-50);
  color: var(--brand-700);
  border: 1px solid var(--brand-100);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 138, 95, 0.2);
}

.hero h1 {
  margin: 1.25rem 0 1.25rem;
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand), #14b37d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.disclaimer {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-3);
  max-width: 56ch;
  display: flex;
  gap: 0.6rem;
}

.disclaimer svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.25rem;
}

/* Hero visual */

.hero-visual {
  position: relative;
}

.hero-visual .mock {
  transform: rotate(1.5deg);
}

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: bob 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.2;
}

.float-card span.sub {
  font-size: 0.78rem;
  color: var(--ink-3);
}

.float-card .ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
}

.float-card .ico svg {
  width: 20px;
  height: 20px;
}

.float-a {
  left: -2rem;
  bottom: 2.2rem;
}

.float-b {
  right: -1rem;
  top: -1.2rem;
  animation-delay: -3s;
}

.float-b .ico {
  background: #fdf3da;
  color: #a86f00;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- Mock spreadsheet ---------- */

.mock {
  --a: var(--brand);
  --a-soft: var(--brand-50);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d5d9d0;
}

.mock-bar i:nth-child(1) {
  background: #f2877d;
}

.mock-bar i:nth-child(2) {
  background: #f4c35a;
}

.mock-bar i:nth-child(3) {
  background: #6ccb8d;
}

.mock-bar b {
  margin-left: 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-3);
  font-family: var(--font);
}

.mock-body {
  padding: 1.25rem;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.kpi {
  background: var(--a-soft);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.kpi small {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
}

.kpi strong {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
}

.chart {
  margin-top: 1rem;
  height: 140px;
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  padding: 0.75rem 0.25rem 0;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 34px, var(--line) 34px 35px);
}

.chart span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--a), color-mix(in srgb, var(--a) 55%, #fff));
  border-radius: 6px 6px 0 0;
  opacity: 0.95;
}

.chart span.alt {
  background: var(--a-soft);
  border: 1px solid color-mix(in srgb, var(--a) 30%, transparent);
  border-bottom: 0;
}

.rows {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.rows div {
  display: grid;
  grid-template-columns: 1.2fr 2fr 0.6fr;
  gap: 0.6rem;
  align-items: center;
}

.rows b,
.rows em {
  height: 8px;
  border-radius: 6px;
  background: var(--surface-2);
}

.rows em {
  background: var(--a-soft);
  position: relative;
  overflow: hidden;
}

.rows em::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 60%);
  background: var(--a);
  border-radius: 6px;
}

.rows i {
  height: 8px;
  border-radius: 6px;
  background: var(--line);
}

/* ---------- Stats strip ---------- */

.stats {
  padding: 0 0 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat {
  padding: 1.5rem 1.6rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat .ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-600);
  display: grid;
  place-items: center;
}

.stat .ico svg {
  width: 20px;
  height: 20px;
}

.stat h2 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.stat p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ---------- Sections ---------- */

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 3.5rem;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-heading p.sub {
  margin: 1rem 0 0;
  font-size: 1.08rem;
  color: var(--ink-2);
}

/* ---------- Templates ---------- */

.template-list {
  display: grid;
  gap: 1.75rem;
}

.template-block {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s;
}

.template-block:hover {
  box-shadow: var(--shadow);
  border-color: #d3d8cd;
}

.template-block:nth-child(even) .template-media {
  order: 2;
}

.template-media {
  background: linear-gradient(145deg, var(--a-soft), color-mix(in srgb, var(--a-soft) 40%, #fff));
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.template-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--a) 22%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.8;
}

.template-media .mock {
  position: relative;
  box-shadow: var(--shadow);
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rank {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--deep);
  border-radius: 10px;
  padding: 0.3rem 0.7rem;
  letter-spacing: 0;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--a, var(--brand-700));
  background: var(--a-soft, var(--brand-50));
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.template-content h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.template-content p {
  margin: 0 0 0.9rem;
  color: var(--ink-2);
}

.template-content h4 {
  margin: 1.4rem 0 0.8rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.checks {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.checks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink);
  font-size: 0.97rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--brand-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7350' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 70% no-repeat;
}

.template-note {
  font-size: 0.9rem;
  color: var(--ink-2);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 0.75rem 1rem;
  margin: 0 0 1.5rem !important;
}

.template-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--deep);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s, gap 0.2s;
}

.template-link:hover {
  background: var(--brand-600);
  gap: 0.8rem;
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--deep);
  color: #d7ebe2;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  white-space: nowrap;
}

tbody tr {
  transition: background 0.15s;
}

tbody tr:hover {
  background: var(--brand-50);
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  font-weight: 700;
  font-family: var(--display);
}

td:first-child span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 0.7rem;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.78rem;
  color: var(--ink-2);
}

td {
  color: var(--ink-2);
}

.level {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}

.level::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.level.low {
  background: var(--brand-50);
  color: var(--brand-700);
}

.level.med {
  background: #fdf3da;
  color: #8a5a00;
}

/* ---------- How to ---------- */

.howto-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.howto-step {
  grid-column: span 2;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  transition: transform 0.2s, box-shadow 0.2s;
}

.howto-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.howto-step:nth-child(4),
.howto-step:nth-child(5) {
  grid-column: span 3;
}

.howto-step::before {
  content: "0" counter(step);
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand), #7fd4b0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.howto-step h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.howto-step p {
  margin: 0.7rem 0 0;
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.faq-layout .section-heading {
  margin-bottom: 0;
  position: sticky;
  top: 110px;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

details[open] {
  border-color: var(--brand-100);
  box-shadow: var(--shadow);
}

summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f1a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: transform 0.25s, background-color 0.2s;
}

details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--brand-50);
}

details p {
  margin: 0;
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------- CTA ---------- */

.cta {
  padding: 1rem 0 6rem;
}

.cta-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
  color: #fff;
  border-radius: 32px;
  padding: 4.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-box::before,
.cta-box::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-box::before {
  width: 420px;
  height: 420px;
  top: -200px;
  right: -100px;
  background: radial-gradient(closest-side, rgba(20, 179, 125, 0.45), transparent);
}

.cta-box::after {
  width: 360px;
  height: 360px;
  bottom: -200px;
  left: -80px;
  background: radial-gradient(closest-side, rgba(244, 183, 64, 0.22), transparent);
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 20ch;
  margin: 0 auto;
}

.cta-box p {
  margin: 1.1rem auto 2rem;
  color: #b9d6ca;
  font-size: 1.1rem;
  max-width: 46ch;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-top p {
  color: var(--ink-3);
  max-width: 38ch;
  margin: 1rem 0 0;
  font-size: 0.93rem;
}

.footer-company {
  margin-top: 1rem !important;
  gap: 0.3rem !important;
}

.footer-company li {
  color: var(--ink-3);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer-top h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.footer-top ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-top ul a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.footer-top ul a:hover {
  color: var(--brand-600);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Reveal animation ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .float-card {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .template-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .template-block:nth-child(even) .template-media {
    order: 0;
  }

  .howto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .howto-step,
  .howto-step:nth-child(4),
  .howto-step:nth-child(5) {
    grid-column: span 1;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .faq-layout .section-heading {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.btn) {
    padding: 0.8rem 1rem;
  }

  .nav-links .btn {
    margin: 0.5rem 0 0;
    justify-content: center;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .float-a {
    left: -0.5rem;
  }

  .float-b {
    right: -0.5rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section-heading {
    margin-bottom: 2.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat + .stat,
  .stat:nth-child(n + 3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .template-media {
    padding: 1.1rem;
  }

  .howto-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-box {
    padding: 3rem 1.5rem;
    border-radius: 24px;
  }
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-info h3 { margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-weight: 600; font-size: 0.95rem; }
.form-field input, .form-field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; box-sizing: border-box; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.form-field textarea { resize: vertical; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; margin-bottom: 20px; }
.form-consent input { margin-top: 4px; }
.form-note { font-size: 0.85rem; margin: 12px 0 0; opacity: 0.7; }
.form-alert { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 20px; border: 1px solid; }
.form-alert[hidden] { display: none; }
.form-alert p { margin: 6px 0 0; }
.form-alert .btn { margin-top: 12px; }
.form-alert-success { background: #e8f6ef; border-color: #0f8a5f; color: #07442f; }
.form-alert-error { background: #fdeceb; border-color: #d33b2f; color: #7a1a12; }
@media (max-width: 800px) { .contact-grid, .form-row { grid-template-columns: 1fr; } }

.footer-advertorial { font-size: 0.8rem; opacity: 0.75; margin-top: 12px; line-height: 1.5; }

.table-note { font-size: 0.85rem; color: var(--ink-2); margin-top: 14px; }
table { min-width: 1100px; }
td:not(:first-child) { font-size: 0.92rem; vertical-align: top; }
th, td { padding: 1rem 1.1rem; }

.contact-info h4 { margin: 18px 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-700); }
.contact-info p { margin: 0 0 8px; font-size: 0.93rem; }
