/* Google Ads, variant A "Flow": light, Manrope, orange accent. The budget machine is the centrepiece. */

.hero { padding-top: clamp(124px, 16vh, 176px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.hero__copy { display: grid; gap: clamp(22px, 2.4vw, 32px); }
.hero .display { font-size: clamp(40px, 5vw, 76px); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__note { max-width: 30ch; color: var(--ink-3); font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.hero__proof { display: grid; gap: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__proof .review blockquote { font-size: clamp(17px, 1.4vw, 20px); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* budget machine */
.leak-section { padding-top: clamp(40px, 5vw, 72px); }
.leak { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.leak__stage { order: 2; padding: clamp(12px, 2vw, 28px); border-radius: 20px; background: var(--paper-2); }
.leak__stage canvas { width: 100%; height: clamp(420px, 44vw, 600px); }
.leak__fixes { order: 1; border-top: 1px solid var(--line); }
.leak__fixes li { border-bottom: 1px solid var(--line); }
.leak__fixes button { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; width: 100%; padding: clamp(16px, 1.8vw, 24px) 4px; text-align: left; }
.leak__switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: rgba(16, 34, 53, 0.16); transition: background 0.35s; }
.leak__switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(16, 34, 53, 0.3); transition: translate 0.45s var(--ease); }
[aria-checked="true"] .leak__switch { background: var(--accent); }
[aria-checked="true"] .leak__switch::after { translate: 22px 0; }
.leak__text { display: grid; gap: 4px; }
.leak__text b { color: var(--ink); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.015em; }
.leak__text small { color: var(--ink-3); font-size: 14.5px; font-weight: 500; }
@media (max-width: 900px) {
  .leak { grid-template-columns: 1fr; }
  .leak__stage { order: 1; }
  .leak__fixes { order: 2; }
  .leak__stage canvas { height: 440px; }
}

.tint { background: var(--paper-2); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }
.own-section { padding-top: 0; }
.final { padding-top: clamp(40px, 5vw, 72px); }

/* Space held for the blocks under the hero that JavaScript draws (see components.css, "space for blocks rendered by ui.js"). */
/* Google Ads case grid: right under the hero from 762px up, so its space is held there. Below 762px it starts
   under the first screen and keeps its natural size. */
@media (scripting: enabled) { .case-grid[data-ui="cases"]:empty { min-height: 904.5px; } }
@media (scripting: enabled) and (max-width: 1525px) { .case-grid[data-ui="cases"]:empty { min-height: calc(592.4px + 20.477vw); } }
@media (scripting: enabled) and (max-width: 1041px) { .case-grid[data-ui="cases"]:empty { min-height: calc(548.7px + 27.083vw); } }
@media (scripting: enabled) and (max-width: 1015px) { .case-grid[data-ui="cases"]:empty { min-height: calc(635.4px + 20.900vw); } }
@media (scripting: enabled) and (max-width: 913px) { .case-grid[data-ui="cases"]:empty { min-height: calc(798.6px + 5.769vw); } }
@media (scripting: enabled) and (max-width: 833px) { .case-grid[data-ui="cases"]:empty { min-height: 871.7px; } }
@media (scripting: enabled) and (max-width: 801px) { .case-grid[data-ui="cases"]:empty { min-height: calc(1035.5px + -17.273vw); } }
@media (scripting: enabled) and (max-width: 777px) { .case-grid[data-ui="cases"]:empty { min-height: 922.9px; } }
@media (max-width: 761px) { .case-grid[data-ui="cases"]:empty { min-height: 0; } }
/* Google Ads budget leak scene (canvas drawn by leak.js), fitted to within 4px. */
@media (scripting: enabled) { [data-leak]:empty { min-height: calc(648.2px + 0.487vw); } }
@media (scripting: enabled) and (max-width: 1373px) { [data-leak]:empty { min-height: calc(8.5px + 47.112vw); } }
@media (scripting: enabled) and (max-width: 959px) { [data-leak]:empty { min-height: calc(349.1px + 14.545vw); } }
@media (scripting: enabled) and (max-width: 935px) { [data-leak]:empty { min-height: calc(382.4px + 14.063vw); } }
@media (scripting: enabled) and (max-width: 901px) { [data-leak]:empty { min-height: calc(793.9px + 9.500vw); } }
@media (scripting: enabled) and (max-width: 599px) { [data-leak]:empty { min-height: calc(844.1px + 5.000vw); } }
@media (scripting: enabled) and (max-width: 517px) { [data-leak]:empty { min-height: calc(867.3px + 5.000vw); } }
@media (scripting: enabled) and (max-width: 489px) { [data-leak]:empty { min-height: calc(910.5px + 0.909vw); } }
@media (scripting: enabled) and (max-width: 443px) { [data-leak]:empty { min-height: 937.7px; } }
@media (scripting: enabled) and (max-width: 421px) { [data-leak]:empty { min-height: 966.5px; } }
@media (scripting: enabled) and (max-width: 411px) { [data-leak]:empty { min-height: 995.3px; } }
@media (scripting: enabled) and (max-width: 389px) { [data-leak]:empty { min-height: 1024.1px; } }
@media (scripting: enabled) and (max-width: 365px) { [data-leak]:empty { min-height: 1047.3px; } }
@media (scripting: enabled) and (max-width: 337px) { [data-leak]:empty { min-height: 1070.5px; } }
@media (scripting: enabled) and (max-width: 323px) { [data-leak]:empty { min-height: 1084.9px; } }
