/* The Havstock template style, locked for every template (Nate, 10 Oct 2026). The Ecom OS look.
   Copy this file unchanged into every template. Colours and the font live in brand.css; everything here stays.
   The rules, each one used the same way on every page:
   1  Spacing: sections 104px apart on desktop, 56px on phones. Gaps inside use the --gap steps below.
   2  Widths: page 1240px, text 65 characters a line, sides 16px on phones and 28px on desktop.
   3  Buttons: one style. Black, arrow, 58px tall, full width on phones, one line, 4 words max, sentence case.
   4  Corners: 8px on everything, 12px on pop-ups.
   5  Sections take turns: white, then light grey (.sec.soft). No borders or boxes around things you can't click.
   6  Pictures: guide and product 4:3, people square, video 16:9. Placeholders are line drawings on grey.
   7  Icons: line icons only, 22px, or 16px in small print.
   8  Motion: one hover, one press, one pop-up animation. None for people who turn motion off.
   9  Shared sections below: steps, reviews, FAQ, video, calendar, price, countdown, phone button bar, cookie banner.
   10 Readable: text passes contrast checks, every tap target is at least 44px.
   Type: H1 50px desktop / 30px phone. H2 36px / 26px. Headlines 2 lines max on desktop, 3 on phones.
   Sub lines and quotes 18px / 16px, 2 lines max on desktop, 3 on phones. Paragraphs, bullets, forms 16px.
   Bullets one line on every screen. Small print 14px. One size per headline, never a bigger part.
   Sentence case everywhere. Light mode only. Check every page with test/check-type.js. */

:root {
  --r: 8px;
  --r-pop: 12px;
  --page: 1240px;
  --text: 65ch;
  --pad: clamp(56px, 8vw, 104px);
  --gap-1: 8px;
  --gap-2: 16px;
  --gap-3: 24px;
  --gap-4: 40px;
  --gap-5: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: .2s;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
img, svg { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; stroke-width: 2.4; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Type */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); }
h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.1; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
p, li, blockquote, figcaption { text-wrap: pretty; }
p { margin: 0 0 1em; max-width: var(--text); }
p:last-child { margin-bottom: 0; }
.accent { color: var(--head-accent); }
.lead { font-size: 18px; line-height: 1.5; color: var(--sub); }
.lead strong { color: var(--ink); font-weight: 600; }
.small { font-size: 14px; color: var(--sub); }
@media (max-width: 699px) { .lead { font-size: 16px; } }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 12px/1.3 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; flex: none; }

/* Layout */
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 808px; }
.sec { padding: var(--pad) 0; }
.sec.soft { background: var(--soft); }
.sec-head { max-width: 808px; margin: 0 auto var(--gap-4); text-align: center; }
.sec-head h2 + .lead { margin-top: var(--gap-2); }
.hero-head p, .sec-head p, .center p { margin-left: auto; margin-right: auto; }
.sec-head .eyebrow, .center .eyebrow { justify-content: center; }
.center { text-align: center; }
.cta-row { display: flex; flex-direction: column; align-items: center; margin-top: var(--gap-4); }

/* Buttons: one style, one size */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 34px; border: 0; border-radius: var(--r); background: var(--button); color: var(--button-ink); font: 600 16px/1 var(--font-body); letter-spacing: .01em; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background var(--fast), transform var(--fast); }
.btn:hover { background: var(--button-hover); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--fast); }
.btn:hover .arr { transform: translateX(3px); }
.btn.wide { width: 100%; }
.btn[disabled] { background: var(--line); color: var(--sub); cursor: wait; }
@media (max-width: 699px) { .btn { width: 100%; } }
.reassure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.reassure .ic { width: 16px; height: 16px; stroke-width: 2.4; }

/* Stars, rating line, sample tag */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 0 18px; font-size: 14px; font-weight: 600; }
.sample-tag { display: inline-block; padding: 1px 6px; border: 1px solid currentColor; border-radius: 4px; font: 600 10px/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; color: var(--sub); }

/* Bullets */
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--sub); }
.ticks b { color: var(--ink); font-weight: 600; }
.ticks .ic { color: var(--accent); margin-top: 1px; }

/* Pictures: fixed shapes */
.pic { width: 100%; border-radius: var(--r); background: var(--photo); object-fit: cover; }
.pic-4x3 { aspect-ratio: 4 / 3; }
.pic-1x1 { aspect-ratio: 1 / 1; }
.pic-16x9 { aspect-ratio: 16 / 9; }

/* Header: the logo only on funnel pages, no links away */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: center; min-height: 64px; }
.site-header.left .wrap { justify-content: flex-start; }  /* legal pages: logo on the left */
.logo { display: inline-flex; align-items: center; min-height: 44px; font: 700 20px/1 var(--font-head); letter-spacing: -.01em; text-decoration: none; }

/* Hero: the words centred, then the picture beside the reasons and the button */
.hero { padding: clamp(36px, 5vw, 56px) 0 var(--pad); }
.hero-head { margin: 0 auto; text-align: center; }
.hero-head .eyebrow { justify-content: center; }
.hero-head h1 { margin-bottom: 18px; }
.hero-head .lead { margin: 0 auto; }
.offer { display: grid; margin-top: clamp(28px, 4vw, 44px); border-radius: var(--r); overflow: hidden; background: var(--soft); text-align: left; }
.offer-img { display: grid; place-items: center; background: var(--photo); padding: 24px; }
.offer-img img { width: 100%; max-width: 420px; }
.offer-copy { padding: 28px 20px; }
@media (max-width: 899px) { .offer-img { padding: 16px; } .offer-img img { max-width: 200px; } }
@media (min-width: 900px) { .offer { grid-template-columns: 1fr 1fr; } .offer-copy { padding: 48px; align-self: center; } }

/* One review, under a button */
.review { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.review blockquote { margin: 10px 0 8px; font-size: 18px; font-weight: 500; line-height: 1.5; }
.review figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); }
@media (max-width: 699px) { .review blockquote { font-size: 16px; } }

/* Reviews: three across on desktop, swipe on phones. Plain columns, a thin line on top, no boxes */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--gap-3); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 12px; scrollbar-width: thin; }
.reviews .review { scroll-snap-align: start; margin: 0; }
@media (min-width: 900px) { .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: var(--gap-4); overflow: visible; margin: 0; padding: 0; } }

/* 3 steps: plain columns, a big grey number, a thin line on top */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--gap-3); text-align: left; }
.steps li { padding-top: 20px; border-top: 1px solid var(--line); }
.steps .num { display: block; margin-bottom: 12px; font: var(--head-weight) 32px/1 var(--font-head); color: var(--head-accent); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--sub); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--gap-4); } }

/* FAQ: the first one open, one open at a time */
.faq { max-width: 808px; margin: 0 auto; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding: 16px 0; font-weight: 700; font-size: 17px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform var(--fast); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details > p { padding: 0 0 20px; color: var(--sub); }

/* Video: 16:9, rounded, a play button over the picture until it plays */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--photo); }
.video iframe, .video video, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.video .play span { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--button); color: var(--button-ink); transition: transform var(--fast); }
.video .play:hover span { transform: scale(1.06); }
.video .play svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }

/* Calendar: the booking embed, full width, white behind it */
.calendar { max-width: 808px; margin: 0 auto; border-radius: var(--r); overflow: hidden; background: var(--bg); }
.calendar iframe { width: 100%; min-height: 720px; border: 0; }

/* Price: a light grey panel, the price big, the button full width */
.price-card { max-width: 480px; margin: 0 auto; padding: 32px 24px; border-radius: var(--r); background: var(--soft); text-align: left; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 8px 0 20px; }
.price { font: var(--head-weight) 44px/1 var(--font-head); letter-spacing: var(--head-tracking); }
.was { color: var(--sub); font-size: 18px; text-decoration: line-through; }
.price-card .btn { width: 100%; }
@media (min-width: 700px) { .price-card { padding: 40px; } }
.sec.soft .price-card, .sec.soft .offer { background: var(--bg); }  /* panels go white on a grey section */

/* Countdown: only to a real deadline */
.countdown { display: inline-grid; grid-auto-flow: column; gap: var(--gap-1); margin: 0 auto; font-variant-numeric: tabular-nums; }
.countdown div { min-width: 64px; padding: 10px 8px; border-radius: var(--r); background: var(--button); color: var(--button-ink); text-align: center; }
.countdown b { display: block; font: var(--head-weight) 26px/1.1 var(--font-head); }
.countdown small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.timer { display: inline-block; padding: 3px 7px; border-radius: 4px; background: var(--button); color: var(--button-ink); font: 700 12px/1.2 var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Phone button bar: long pages only, shows once the first button scrolls away (site.js, data-sticky) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .06); transform: translateY(110%); transition: transform .25s var(--ease); }
.sticky-cta.on { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { body:has(.sticky-cta.on) .site-footer { padding-bottom: 96px; } }

/* Pop-up: a box with the picture on desktop, a sheet from the bottom on phones */
.fn-box { width: min(880px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--r-pop); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); overflow: auto; overscroll-behavior: contain; }
.fn-box[open] { display: grid; grid-template-columns: 5fr 6fr; animation: fn-in .3s var(--ease); }
.fn-box::backdrop { background: rgba(0, 0, 0, .45); animation: fn-fade .22s ease; }
@keyframes fn-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fn-fade { from { opacity: 0; } }
.fn-photo { position: relative; display: grid; place-items: center; background: var(--photo); padding: 24px; overflow: hidden; }
.fn-tag { position: absolute; left: 16px; top: 16px; padding: 8px 11px; border-radius: 4px; background: var(--button); color: var(--button-ink); font: 700 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; }
.fn-body { display: flex; flex-direction: column; justify-content: center; min-height: 500px; padding: 52px 44px 36px; }
.fn-sub { margin: 14px 0 22px; }
.fn-x { position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; transition: background var(--fast); }
.fn-x:hover { background: var(--line); }
.fn-x .ic { width: 18px; height: 18px; }
@media (max-width: 767px) {
  .fn-box { width: 100%; max-height: 88dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .fn-box[open] { grid-template-columns: 1fr; animation: fn-up .32s var(--ease); }
  @keyframes fn-up { from { transform: translateY(100%); } }
  .fn-photo { height: 128px; padding: 12px; }
  .fn-photo img { height: 104px; width: auto; }
  .fn-tag { top: auto; bottom: 14px; }
  .fn-body { min-height: 0; padding: 22px 20px 20px; }
  .fn-sub { margin: 10px 0 16px; }
}

/* Forms */
form { margin: 0; }
.optin { display: grid; gap: 10px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input[type='email'], input[type='text'], input[type='tel'], select, textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid color-mix(in srgb, var(--ink) 22%, var(--bg)); border-radius: var(--r); background: var(--bg); color: var(--ink); font-size: 16px; font-weight: 400; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
input::placeholder, textarea::placeholder { color: var(--sub); }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 4px 0; font-size: 14px; color: var(--sub); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--button); }
.form-error { background: var(--error-bg); color: var(--error); border-radius: var(--r); padding: 12px 14px; font-weight: 600; font-size: 14px; margin: 0; }
.form-error:empty { display: none; }
.form-note { margin: 2px auto 0; font-size: 14px; color: var(--sub); text-align: center; }
.form-note a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* Cookie banner (tags.js): only when a tracking ID is set, and only where the law asks. Accept and reject look the same */
.cookie-bar { position: fixed; z-index: 85; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 440px; padding: 20px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); font-size: 14px; line-height: 1.5; }
.cookie-bar h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: 0; }
.cookie-bar p { margin: 0 0 14px; color: var(--sub); }
.cookie-bar p a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.cookie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-btns .btn { min-height: 48px; padding: 0 12px; font-size: 15px; width: 100%; }
@media (min-width: 700px) { .cookie-bar { left: 20px; bottom: 20px; } }
.cookie-link { min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.cookie-link:hover { text-decoration: underline; }

/* Legal pages */
.prose { max-width: 808px; margin: 0 auto; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-size: 22px; letter-spacing: -.01em; margin: 36px 0 10px; }
.prose a { font-weight: 600; text-underline-offset: 3px; }

/* Footer: the same on every page */
.site-footer { border-top: 1px solid var(--line); padding: 12px 0; font-size: 14px; color: var(--sub); }
.legal-row { display: flex; flex-direction: column; align-items: center; text-align: center; }
.legal-row p { margin: 0; max-width: none; }
.legal-row a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.legal-row a:hover { text-decoration: underline; }
.legal-row .links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 20px; }
.legal-row > p:first-child { padding: 12px 0 0; }
@media (min-width: 900px) { .legal-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; } .legal-row > p:first-child { padding: 0; text-align: left; } .legal-row .credit { text-align: right; } }
