/* Every Bottleneck site styles. Values come from the Brand Guidelines (colours, type scale, spacing, components). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #14213D;
  --amber: #FFB81C;
  --white: #FFFFFF;
  --mist: #F4F5F6;
  --steel: #5B6472;
  --line: #DDE0E4;
  --field: #7A828D;
  --focus: #2350D8;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-btn: 10px;
  --radius-card: 16px;
  --wrap: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 18px; } }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0 0 16px; line-height: 1.1; }
h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: 0; margin-bottom: 6px; }
@media (min-width: 768px) {
  h1 { font-size: 60px; line-height: 1.04; }
  h2 { font-size: 36px; }
  h3 { font-size: 18px; }
}
p { margin: 0 0 16px; max-width: 65ch; }
.lead { font-size: 19px; color: var(--steel); max-width: 34ch; }
.no-cap { max-width: none; }
@media (min-width: 768px) { .lead { font-size: 20px; } }
.muted { color: var(--steel); }
.small { font-size: 14px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 196px; height: auto; }
@media (min-width: 768px) { .brand img { width: 220px; } }

.nav-toggle {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--navy);
  background: none; border: 1px solid var(--field); border-radius: 8px;
  padding: 8px 14px; min-height: 44px; cursor: pointer;
}
.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 72px; background: var(--white); border-bottom: 1px solid var(--line); z-index: 50; }
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 20px; }
.site-nav li a { display: block; padding: 12px 0; text-decoration: none; font-weight: 500; }
.site-nav .btn { margin-top: 8px; }
.site-header { position: relative; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; border: 0; }
  .site-nav ul { display: flex; align-items: center; gap: 28px; padding: 0; }
  .site-nav li a { padding: 8px 0; font-size: 15px; color: var(--steel); }
  .site-nav li a:hover { color: var(--navy); }
  .site-nav li a.btn { color: var(--white); margin: 0; padding: 10px 16px; font-size: 14px; min-height: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--navy); color: var(--white);
  font-weight: 600; font-size: 17px; line-height: 1.2;
  padding: 15px 24px; border-radius: var(--radius-btn);
  text-decoration: none; text-align: center; border: 0; min-height: 48px;
}
.btn:hover { background: #0D1730; text-decoration: none; }
.btn-block { display: block; width: 100%; }
.reassure { font-size: 14px; color: var(--steel); margin-top: 14px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section.mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 32px; }

/* Hero */
.hero { padding: 48px 0 64px; }
@media (min-width: 768px) { .hero { padding: 88px 0 104px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }
.brandline { font-size: 17px; color: var(--steel); margin-bottom: 16px; }
.brandline strong { color: var(--navy); font-weight: 600; }
.hero .lead { margin-bottom: 32px; }

/* The "Fix first" list: the brand's signature illustration (one amber element only) */
.fixlist { background: var(--mist); border-radius: var(--radius-card); padding: 20px; }
.fixlist-cap { font-size: 13px; color: var(--steel); margin: 0 0 12px; }
.fixlist ul { list-style: none; margin: 0; padding: 0; }
.fixlist li { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 10px; padding: 14px; margin-bottom: 8px; font-size: 16px; line-height: 1.35; }
.fixlist li:last-child { margin-bottom: 0; }
.fixlist .bar { width: 5px; align-self: stretch; border-radius: 3px; background: var(--line); flex: none; }
.fixlist li.first { box-shadow: inset 0 0 0 1.5px var(--navy); }
.fixlist li.first .bar { background: var(--amber); }
.fixlist .tag { margin-left: auto; font-size: 13px; font-weight: 600; background: var(--amber); color: var(--navy); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }

/* Problem story */
.story p { font-size: 19px; max-width: 60ch; }
@media (min-width: 768px) { .story p { font-size: 21px; line-height: 1.5; } }

/* What I look at: four points, deliberately not identical cards */
.points { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .points { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.points > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.points p { margin: 0; color: var(--steel); }

/* How it works: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--navy); font-weight: 600; font-size: 16px; margin-bottom: 14px; }
.steps p { margin: 0; color: var(--steel); }
/* Button under the steps: left on phones (in line with the stacked steps), centred from tablet up */
.steps-cta { margin: 40px 0 0; max-width: none; }
@media (min-width: 768px) { .steps-cta { text-align: center; } }

/* For / not for */
.fit { display: grid; gap: 24px; }
@media (min-width: 768px) { .fit { grid-template-columns: 1fr 1fr; gap: 32px; } }
.fit > div { background: var(--white); border-radius: var(--radius-card); padding: 24px; }
.section.mist .fit > div { background: var(--white); }
.fit p { margin: 0; }

/* Ladder and prices */
.ladder { display: grid; gap: 16px; margin-bottom: 24px; }
@media (min-width: 768px) { .ladder { grid-template-columns: 1fr 1fr; } }
.ladder > div { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.price { font-weight: 600; }

.offers { display: grid; gap: 24px; }
.offer { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; max-width: 800px; }
.offer.feature { background: var(--mist); border-color: var(--mist); }
.offer h2 { font-size: 24px; margin-bottom: 4px; }
@media (min-width: 768px) { .offer h2 { font-size: 28px; } }
.offer .price { font-size: 18px; margin-bottom: 16px; }
.guarantee { border-left: 3px solid var(--navy); padding-left: 14px; }
.offer .btn { margin-top: 8px; }

/* Check form section */
.check-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .check-grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } }
.founder { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; }
.photo-slot { width: 88px; height: 88px; border-radius: 50%; background: var(--white); border: 1.5px dashed var(--field); flex: none; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; line-height: 1.2; color: var(--steel); padding: 8px; }
.founder p { margin: 0; }
.form-slot { background: var(--white); border: 1.5px dashed var(--field); border-radius: var(--radius-card); padding: 32px 24px; min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.form-slot p { margin: 0 0 8px; }

/* Placeholder marker: visible on purpose until the real content exists */
.ph { background: #FFF4D6; color: var(--navy); padding: 1px 4px; border-radius: 4px; font-size: 0.92em; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 32px 20px 0; font-weight: 600; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 22px; font-weight: 400; color: var(--steel); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--steel); padding-bottom: 20px; margin: 0; }

/* Closing call to action */
.closing { text-align: center; }
/* Line break that only applies from tablet width up; phones wrap naturally */
.wide-only { display: none; }
@media (min-width: 768px) { .wide-only { display: inline; } }

/* Long-form pages (About, Privacy, Terms) */
.page-head { padding-top: 56px; padding-bottom: 8px; }
@media (min-width: 768px) { .page-head { padding-top: 88px; padding-bottom: 16px; } }
.prose { padding-bottom: 72px; }
.prose > * { max-width: 70ch; }
.prose h2 { font-size: 22px; margin-top: 36px; }
@media (min-width: 768px) { .prose h2 { font-size: 24px; } }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.letter p { font-size: 19px; }
@media (min-width: 768px) { .letter p { font-size: 20px; } }
.signoff { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: 56px 0 40px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer .brand img { width: 196px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.footer-links a { display: inline-block; padding: 6px 0; }
.legal { font-size: 14px; color: #C9CFD8; margin-top: 32px; max-width: 70ch; }
.site-footer .ph { background: #2A3A5E; color: var(--white); }

/* ---------- Sticky phone call to action ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); z-index: 40; }
.sticky-cta[hidden] { display: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { body.has-sticky { padding-bottom: 76px; } }
