/* CurtisE Digital: this site's look, on top of the locked Website OS files (site.css and website.css).
   Load order: brand.css (colours and fonts), site.css, website.css, then this file.

   HOW TO CHANGE THE LOOK (Nate, 18 Oct): change a token, not a rule.
   - Colours and fonts: brand.css (--ink, --soft, --dark, --font-head ...).
   - Sizes, corners, shadows and the mockup colours: the TOKENS block just below.
   Every part of the site is styled once, in one place, in this order:
     1 Tokens  2 Type  3 Announcement bar, menu bar and menus  4 Buttons and links  5 Sections and layouts
     6 Home hero  7 Cards  8 Reviews  9 FAQ, steps, features, lists, compare, before and after
     10 Blog  11 Footer  12 Mockups  13 Scroll animations  14 Phones and tablets
   Shared sections (reviews, steps, FAQ, service cards, last call to action) are written once in build.py too. */

/* 1 TOKENS ----------------------------------------------------------------------------------- */
:root {
  /* Shape: rounded cards and pill buttons, like the Adspire template (Nate, 18 Oct; was square, 15 Oct) */
  --r: 16px;                /* cards, photos, panels */
  --r-pop: 20px;
  --r-btn: 999px;           /* buttons, chips and the arrow chip: pills */
  --r-mk: 10px;             /* app cards inside mockups */
  --hero-pad: clamp(22px, 3vw, 40px); /* space inside the home photo, also the menu bar's side space */
  --wide-gap: 16px;         /* white space around the full-width parts: the same at the top and both sides */
  --wide-max: 1680px;       /* full-width parts (home photo, closing panel) stop growing here: a 15-inch MacBook Pro screen */
  /* Headline sizes. Normal case, Inter Tight (font and weight in brand.css) */
  --h1: clamp(40px, 6.2vw, 84px);        /* home headline, white on the photo */
  --h1-inner: clamp(34px, 3.9vw, 50px);  /* other page headlines (sized for Inter Tight: long service names stay on 2 lines) */
  --h2: clamp(30px, 3.4vw, 46px);
  --h2-end: clamp(36px, 4.4vw, 58px);    /* the last call to action on every page */
  --h3: 21px;
  --quote: clamp(22px, 2.6vw, 32px);     /* the big review on inner pages */
  /* Bars at the top */
  --announce: 40px;
  --announce-bg: var(--hot);   /* the bar at the very top: blue, white words (Nate, 18 Oct: not black; Dave, 25 Oct: blue) */
  --announce-ink: var(--hot-ink);
  --header: 73px;
  /* Shadows */
  --shadow-card: 2px 4px 12px rgba(0, 0, 0, .08);
  --shadow-lift: 0 14px 30px rgba(0, 0, 0, .08);
  --shadow-float: 0 24px 48px -20px rgba(0, 0, 0, .55);
  /* White buttons on black: hover colour */
  --on-dark-hover: #e5e5e5;
  /* Liquid glass menu bar */
  --glass-light: rgba(255, 255, 255, .72);
  --glass-dark: rgba(10, 10, 10, .55);
  /* Mockups: Dave's blue, with mint for small "done" tags (Dave, 25 Oct; was orange and yellow, 18 Oct) */
  --mk-hot: var(--hot);
  --mk-hot-ink: #0B5F86;    /* a touch darker where white words sit on it */
  --mk-hot-t: #DEEFFB;      /* light blue */
  --mk-hot-mid: #7CC1EC;
  --mk-pop: #3FD8B0;        /* mint */
  --mk-pop-t: #E3FAF3;
  --mk-panel: #161616;      /* behind mockups on dark sections */
  --mk-soft: #f5f5f5;       /* grey chips and panels inside the app mockups (they stay neutral; sections went light blue, 26 Oct) */
  --mk-border: #e5e5e5;
  --mk-chip: #efefef;
  --mk-line: #e6e6e6;       /* the grey "text" lines */
  --mk-grey: #cbcbcb;
  --mk-sub: #767676;
  /* Mockup text: every size inside a mockup follows these two, so one change makes them all bigger or smaller (Nate, 18 Oct: too small) */
  --mk-fs: 15px;            /* mockups in cards and on the home photo */
  --mk-fs-big: 17px;        /* big mockups beside words */
  --mk-card-h: 320px;       /* height of a mockup in a card, backdrop included */
  --mk-card-h-lg: 390px;    /* in the 4 service cards */
  --mk-shadow: 0 22px 40px -20px rgba(5, 35, 70, .38), 0 2px 6px rgba(0, 0, 0, .05);
  /* Mockups sit on a light blue backdrop so the white app cards stand out (Nate, 18 Oct: depth; Dave, 25 Oct: blue) */
  --mk-stage: linear-gradient(150deg, #EFF8FE 0%, #DEECF5 100%);
  --mk-stage-pad: clamp(14px, 2vw, 24px);
}

/* 2 TYPE ------------------------------------------------------------------------------------- */
h1, h2 { line-height: 1.04; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-family: var(--font-head); font-size: var(--h3); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.hero-2 h1, .post h1 { font-size: var(--h1-inner); }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); }
.nw { white-space: nowrap; } /* words like follow-up stay on one line (build.py wraps them) */

/* 3 ANNOUNCEMENT BAR, MENU BAR AND MENUS ----------------------------------------------------- */
/* Announcement bar, always at the top. The menu bar sits under it and hides on the way down (curtise.js) */
.announce { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; justify-content: center; min-height: var(--announce); padding: 0 16px; background: var(--announce-bg); }
.announce p { margin: 0; max-width: none; font-size: 14px; font-weight: 600; text-align: center; color: var(--announce-ink); }
.announce a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--announce); color: var(--announce-ink); text-decoration: none; }
.announce u { text-underline-offset: 3px; }
.announce .arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--fast); }
.announce a:hover .arr { transform: translateX(3px); }

/* Liquid glass menu bar: white glass on light sections, dark glass on dark ones (curtise.js).
   The first section slides up under it (a clear top border keeps its words below), so the glass always has something behind it */
.site-header { position: sticky; top: var(--announce); z-index: 65; background: var(--glass-light); border-bottom: 1px solid rgba(0, 0, 0, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); transition: transform .3s ease, background .3s ease, border-color .3s ease; }
.site-header.on-dark { background: var(--glass-dark); border-bottom-color: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); color: #fff; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: rgba(255, 255, 255, .96); } .site-header.on-dark { background: rgba(10, 10, 10, .96); } }
.site-header.hide { transform: translateY(-100%); }
main > :first-child { margin-top: calc(var(--header) * -1); border-top: var(--header) solid transparent; }
[id] { scroll-margin-top: calc(var(--announce) + 20px); }
.site-header .nav-links a { transition: color .3s ease; }
/* The menu bar is as wide as the home photo: the logo lines up with the words on the photo (Nate, 18 Oct) */
.site-header .wrap { max-width: var(--wide-max); padding-inline: calc(var(--wide-gap) + var(--hero-pad)); }
.site-header.on-dark .nav-links a { color: var(--dark-sub); }
.site-header.on-dark .nav-links a:hover, .site-header.on-dark .nav-links a[aria-current='page'] { color: #fff; }
.site-header.on-dark .menu-btn { color: #fff; }

/* Dave's new logo, blue on the white menu bar and the black footer (Dave, 25 Oct: about 26px tall) */
.logo img { display: block; height: 26px; width: auto; }
.logo .lg { display: flex; align-items: center; }
/* The diamond turns half a turn on hover, dips a little, then settles (Nate, 18 Oct). curtise.js adds .spin so it always finishes */
.lg-mark { transform-origin: 50% 50%; } /* the diamond is cut square around its centre */
.logo .lg-mark.spin { animation: lgSpin 1.1s cubic-bezier(.65, 0, .35, 1); }
@keyframes lgSpin { 0% { transform: rotate(0) scale(1); } 55% { transform: rotate(196deg) scale(.84); } 80% { transform: rotate(176deg) scale(1.04); } 100% { transform: rotate(180deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .logo .lg-mark.spin { animation: none; } }

/* Drop-downs in the desktop menu (Services, Who we help), like 3pdigital.com.au. Open on hover or keyboard focus */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-links .chev { width: 14px; height: 14px; margin-left: 4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--fast); }
.nav-drop:hover .chev, .nav-drop:focus-within .chev { transform: rotate(180deg); }
.nav-panel { position: absolute; top: 100%; left: -16px; z-index: 60; display: grid; width: 340px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); box-shadow: 0 18px 40px rgba(0, 0, 0, .14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--fast), transform var(--fast), visibility var(--fast); }
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-links .nav-panel a, .site-header.on-dark .nav-links .nav-panel a { display: grid; grid-template-columns: 22px 1fr; gap: 2px 12px; align-items: start; min-height: 0; padding: 10px 12px; color: var(--ink); }
.nav-panel a > .ic { grid-row: 1 / span 2; width: 22px; height: 22px; margin-top: 1px; color: var(--hot); }
.nav-panel a > b, .nav-panel a > span { grid-column: 2; }
.nav-links .nav-panel a.all { grid-template-columns: 1fr; }
.nav-panel a.all > b { grid-column: 1; }
.nav-links .nav-panel a:hover { background: var(--soft); color: var(--ink); }
.nav-links .nav-panel a { border-radius: 10px; }
.nav-panel b { font-size: 15px; font-weight: 600; }
.nav-panel a > span { font-size: 14px; font-weight: 400; color: var(--sub); } /* direct child only: words like Multi-brand inside the name stay bold */
.nav-panel .all { margin-top: 4px; border-top: 1px solid var(--line); }

/* 4 BUTTONS AND LINKS ------------------------------------------------------------------------- */
/* Main buttons: black with a blue arrow chip on the right. On hover the button turns blue (Nate, 18 Oct; blue: Dave, 25 Oct) */
.btn { border-radius: var(--r-btn); }
.btn:has(.arr) { padding-right: 9px; }
.btn .arr { box-sizing: content-box; width: 18px; height: 18px; margin-left: 10px; padding: 11px; border-radius: 50%; background: var(--hot); color: var(--hot-ink); transition: transform var(--fast), background var(--fast), color var(--fast); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--hot); color: var(--hot-ink); }
.btn:hover { background: var(--hot); color: var(--hot-ink); }
.btn:hover .arr { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.site-header .btn.nav-btn { background: var(--hot); color: var(--hot-ink); }
.site-header .btn.nav-btn:hover { background: var(--ink); color: #fff; }
.dark .btn { background: #fff; color: var(--dark); }
.dark .btn:hover { background: var(--hot); color: var(--hot-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.more .arr { color: var(--hot); transition: transform var(--fast); }
.more:hover .arr { transform: translateX(3px); }
.sticky-cta .btn { width: 100%; }

/* 5 SECTIONS AND LAYOUTS ----------------------------------------------------------------------- */
/* Dark sections: black, white words, grey sub lines */
.dark { background: var(--dark); color: #fff; }
.dark .lead, .dark .steps p, .dark .features p, .dark .ticks li { color: var(--dark-sub); }
.dark .ticks b, .dark .ticks .ic, .dark .more, .dark .reassure, .dark .features .ic { color: #fff; }
.dark .steps li, .dark .features > div { border-top-color: var(--dark-line); }
.dark .steps .num { color: var(--dark-sub); }
/* Steps (and the About promises): rounded tiles, the big number on top, words at the bottom, like Adspire's process */
.steps { gap: 12px; }
@media (min-width: 800px) { .steps { gap: 12px; } }
.steps li { display: flex; flex-direction: column; min-height: 250px; padding: 28px; border: 0; border-radius: var(--r); background: var(--soft); }
.sec.soft .steps li { background: var(--bg); }
.steps .num { margin: 0 0 auto; padding-bottom: 28px; font: 500 clamp(56px, 6vw, 84px)/1 var(--font-head); letter-spacing: -.04em; color: var(--hot); }
.steps li:not(:has(.num)) { min-height: 0; }

/* Section headlines line up on the left on every page */
.sec-head { margin-left: 0; text-align: left; }
.sec-head p, .sec-head .lead { margin-left: 0; }
/* Section labels, like Adspire (Nate, 18 Oct): <div class="sec-head" data-label="Process"> puts a small label on the right,
   lined up right, with the headline and sub line on the left (Nate swapped the sides, 18 Oct). Phones: the label sits above */
.sec-head[data-label]::before { content: attr(data-label); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 600 13px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.sec-head[data-label] { max-width: none; }
.s-label { margin: 0 0 14px; font: 600 13px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); } /* the same label, above a headline */
@media (min-width: 700px) { .ticks.two { grid-template-columns: 1fr 1fr; column-gap: var(--gap-4); } }
@media (min-width: 960px) {
  .sec-head[data-label] { display: grid; grid-template-columns: 3fr 1fr; column-gap: var(--gap-4); }
  .sec-head[data-label]::before { grid-column: 2; grid-row: 1 / span 2; align-self: start; justify-content: flex-end; margin: 12px 0 0; text-align: right; }
  .sec-head[data-label] > * { grid-column: 1; max-width: 860px; }
}

/* Inner page heroes (built from the page's meta line): words on the left, a mockup or picture on the right */
.hero-2 { display: grid; gap: var(--gap-4); align-items: center; }
@media (min-width: 960px) { .hero-2 { grid-template-columns: 1.4fr 1fr; gap: var(--gap-5); } }
.hero-2 > * { min-width: 0; }
.hero-2 .hero-head { margin: 0; max-width: none; text-align: left; }
.hero-2 .hero-head p, .hero-2 .hero-head .lead { margin-left: 0; margin-right: 0; }
.hero-2 .cta-row { align-items: flex-start; margin-top: 28px; }
.hero-2 .reassure { justify-content: flex-start; }
.hero-img { max-width: 460px; justify-self: end; }

/* Every other page's hero: a full-width rounded panel like the home photo (Nate, 18 Oct: "update across all pages").
   The words inside line up with the page content below; the mockup floats on the warm panel */
main > section.hero:not(.a-hero-sec) { padding: var(--wide-gap) var(--wide-gap) clamp(40px, 6vw, 72px); }
main > section.hero:not(.a-hero-sec) > .wrap { max-width: calc(var(--wide-max) - 2 * var(--wide-gap)); padding: clamp(36px, 6vw, 88px) max(var(--hero-pad), (100% - var(--page)) / 2 + 28px); border-radius: var(--r); background: var(--mk-stage); }
section.hero .mk-pic { padding: 0; background: none; }
/* booking page: white, the words on the left and Dave's calendar on the right (Nate, 18 Oct) */
main > section.hero.book-hero > .wrap { background: none; }
@media (min-width: 960px) { .book-hero .hero-2 { grid-template-columns: 1fr 1.1fr; align-items: start; } .book-hero .hero-head { padding-top: 24px; } }
.book-hero .calendar { margin: 0; }

/* Two columns: headline on the left, the list or words on the right (.svc); pictures beside words (.split, website.css) */
.svc { display: grid; gap: var(--gap-4); text-align: left; }
.svc h2 { margin-bottom: 14px; }
.svc .lead { margin-bottom: 0; }
.svc .ticks { margin: 0; }
@media (min-width: 900px) { .svc { grid-template-columns: 1fr 1fr; gap: var(--gap-5); align-items: start; } .svc > :last-child { padding-top: 8px; } }
.rows { display: grid; gap: clamp(56px, 8vw, 96px); } /* Services page: one row per service */
.rows .ticks { margin-bottom: 8px; }

/* About: the story on the left, three fact cards on the right (Nate, 18 Oct) */
.story { display: grid; gap: var(--gap-4); }
@media (min-width: 900px) { .story { grid-template-columns: 1.4fr 1fr; gap: var(--gap-5); align-items: center; } } /* one row: words left, the 3 cards stacked right (Nate, 18 Oct) */
.story h2 { margin-bottom: 20px; }
.story-lead { margin: 0 0 20px; font: 500 clamp(20px, 2vw, 25px)/1.45 var(--font-body); letter-spacing: -.01em; color: var(--ink); }
.facts { display: grid; gap: 12px; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; border-radius: var(--r); background: var(--bg); }
.sec:not(.soft) .fact { background: var(--soft); }
.fact b { font: 600 clamp(30px, 3.2vw, 42px)/1.05 var(--font-head); letter-spacing: -.03em; color: var(--hot); }
.fact span { color: var(--sub); }

/* Two lists side by side, each with a small headline */
.lists { display: grid; gap: var(--gap-4); }
.lists { gap: 12px; }
@media (min-width: 800px) { .lists { grid-template-columns: 1fr 1fr; gap: 12px; } }
.lists h3 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
/* each list sits in its own card (Nate, 18 Oct): grey on white sections, white on grey ones */
.lists > div { padding: clamp(22px, 3vw, 32px); border-radius: var(--r); background: var(--soft); }
.sec.soft .lists > div { background: var(--bg); }
.lists .ticks { margin: 0; }
.links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

#last-cta { padding-bottom: var(--wide-gap); } /* the same small white gap under the panel as at its sides (Nate, 18 Oct) */
/* Last call to action (every page): a blue panel on white, words and the button on the left, the booking mockup on the right.
   Nate, 18 Oct: no black sections. Blue since 25 Oct (Dave), words white on it */
.end-cta { display: grid; gap: var(--gap-4); align-items: center; padding: clamp(28px, 5vw, 64px) max(clamp(16px, 5vw, 64px), (100% - var(--page)) / 2 + 28px); border-radius: var(--r-pop); background: var(--hot); color: var(--hot-ink); text-align: left; }
.end-cta h2, .end-cta .lead, .end-cta .reassure, .end-cta .reassure .ic { color: var(--hot-ink); }
.end-cta .btn .arr { background: #fff; color: var(--ink); } /* the arrow stays dark in the white chip (Dave, 25 Oct) */
.end-cta .btn:hover { background: #fff; color: var(--ink); } /* white on hover: blue would vanish into the panel (Nate, 18 Oct) */
.end-cta .btn:hover .arr { background: var(--ink); color: #fff; } /* the arrow chip turns black on hover */
.end-cta h2 { max-width: 10em; margin-bottom: 14px; font-size: var(--h2-end); line-height: 1; text-wrap: balance; } /* always two lines (Nate, 18 Oct) */
.end-cta .lead { margin: 0; }
.end-cta .cta-row { align-items: flex-start; margin-top: 28px; }
.end-cta .reassure { justify-content: flex-start; }
@media (min-width: 900px) { .end-cta { grid-template-columns: 1.15fr .85fr; gap: var(--gap-5); } } /* words get more room inside the panel */
@media (max-width: 899px) { .end-cta { padding-bottom: 64px; } } /* the floating "New sale" note hangs under the card: keep it inside the blue (Nate, 26 Oct) */

/* 6 HOME HERO ---------------------------------------------------------------------------------- */
/* One big rounded photo, like Adspire (Nate, 18 Oct). On it: Mike's result top right, the headline bottom left,
   the sub line and button bottom right. A dark fade at the top and bottom keeps the white words easy to read */
.a-hero-sec { padding: var(--wide-gap) 0 clamp(40px, 6vw, 72px); } /* the same white gap above the photo as at its sides */
/* Full width (the home photo and the blue closing panel): the whole screen with a small gap at each side,
   up to a 15-inch laptop's width (Nate, 18 Oct) */
.wide { max-width: var(--wide-max); margin: 0 auto; padding: 0 var(--wide-gap); }
.a-hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: clamp(560px, calc(100svh - var(--announce) - var(--header) - 40px), 760px); padding: var(--hero-pad); overflow: hidden; border-radius: var(--r); background: var(--dark); color: #fff; }
/* The photos cross-fade with a slow zoom: 4 photos, 6 seconds each. With motion turned off, the first photo stays */
.a-slides, .a-slides img { position: absolute; inset: 0; width: 100%; height: 100%; }
.a-slides img { object-fit: cover; opacity: 0; animation: xfade 30s infinite; animation-fill-mode: both; } /* Dave's 5 photos, 6 seconds each (25 Oct) */
.a-slides img:nth-child(1) { animation-delay: -1s; }
.a-slides img:nth-child(2) { animation-delay: 5s; }
.a-slides img:nth-child(3) { animation-delay: 11s; }
.a-slides img:nth-child(4) { animation-delay: 17s; }
.a-slides img:nth-child(5) { animation-delay: 23s; }
@keyframes xfade { 0% { opacity: 0; transform: scale(1.08); } 4.8% { opacity: 1; } 20% { opacity: 1; } 24.8% { opacity: 0; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .a-slides img:first-child { opacity: 1; } }
.a-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, .62)); }
.a-hero > :not(.a-slides) { position: relative; z-index: 1; }
.a-bottom { display: flex; flex-direction: column; gap: 28px; margin-top: auto; } /* stays at the bottom even when the card above is hidden (phones) */
@media (min-width: 1200px) { .a-bottom { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: var(--gap-4); } } /* below 1200px the button sits under the headline, so it stays on 2 lines */
.a-intro { flex: none; max-width: 360px; }
.a-intro .lead { margin: 0 0 20px; color: #fff; }
.a-proof { align-self: flex-end; width: 270px; margin: 0; padding: 18px 20px; border-radius: var(--r); background: rgba(255, 255, 255, .94); color: var(--ink); }
.a-proof .stars svg { width: 16px; height: 16px; }
.a-proof .result { margin: 10px 0 12px; font: 600 19px/1.25 var(--font-head); letter-spacing: -.015em; color: var(--ink); }
.a-proof figcaption { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sub); }
.a-hero h1 { flex: 1; min-width: 0; max-width: 11.5em; margin: 0; font-size: var(--h1); line-height: 1; color: #fff; }
.hot { color: var(--hot); }
/* Typewriter caret, blinking while it waits (curtise.js) */
.tw.on::after { content: ""; display: inline-block; width: .07em; height: .82em; margin-left: .06em; background: currentColor; vertical-align: -.06em; animation: twBlink 1.06s steps(1) infinite; }
.tw.typing::after { animation: none; }
@keyframes twBlink { 50% { opacity: 0; } } /* a blue word in a big headline */
/* Client logos under the photo (Dave's 7 clients, 25 Oct), shown as grey shapes. --lh in build.py makes squarer logos a little taller */
.a-logos { display: flex; align-items: center; gap: 28px; margin-top: 24px; padding: 0 var(--hero-pad); } /* full width, lined up with the words on the photo */
.a-logos > p { flex: none; margin: 0; font-size: 14px; font-weight: 600; }
/* the same strip under every other page's hero, lined up with the words in the hero panel (Nate, 18 Oct) */
.hero-head .a-logos { margin-top: 32px; padding: 0; } /* other pages: the strip sits under the words, inside the hero (Nate, 18 Oct) */
.lmq { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lmq-track { display: flex; align-items: center; gap: 56px; width: max-content; padding-right: 56px; animation: marquee 45s linear infinite; }
.lmq-track img { flex: none; height: calc(32px * var(--lh, 1)); width: auto; filter: brightness(0); opacity: .45; }

/* 7 CARDS -------------------------------------------------------------------------------------- */
/* Tiles: a mockup on top, a name, one line and a link. The whole card is the link.
   Cards stand out from their section: grey cards on white, white cards on grey */
.tiles { display: grid; gap: 20px; }
.tiles.bento, .tiles.quad { grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiles.bento, .tiles.quad { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tiles.bento { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; padding: 32px 28px; overflow: hidden; border-radius: var(--r); background: var(--soft); color: var(--ink); text-decoration: none; transition: transform var(--fast), box-shadow var(--fast); }
.sec.soft .tile { background: var(--bg); }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--sub); }
.tile .more { margin-top: auto; padding-top: 16px; color: var(--ink); }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
a.tile:hover .more .arr { transform: translateX(3px); }
a.tile:active { transform: translateY(-1px) scale(.995); }
.tile-mock { display: block; height: var(--mk-card-h); margin-bottom: 22px; padding: var(--mk-stage-pad); overflow: hidden; border-radius: calc(var(--r) - 4px); background: var(--mk-stage); }
.tiles.quad .tile-mock { height: var(--mk-card-h-lg); }
/* Who we help (Nate, 18 Oct): each photo inside a store website mockup. build.py store_site() */
.site { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--mk-border); border-radius: var(--r-mk); background: #fff; box-shadow: var(--mk-shadow); color: var(--ink); font: 500 var(--mk-fs)/1.3 var(--font-body); white-space: nowrap; }
.site-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-bottom: 1px solid var(--mk-border); background: var(--mk-soft); } /* neutral grey (was a warm off-white, 26 Oct) */
.site-bar i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #DCD6D0; }
.site-bar span { flex: 1; margin-left: 6px; padding: 2px 10px; border-radius: 99px; background: #fff; color: var(--mk-sub); font-size: .7em; text-align: center; }
.site-nav { display: flex; align-items: center; gap: 12px; padding: 9px 12px; font-size: .75em; }
.site-nav b { margin-right: auto; font: 700 1em/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.site-links { display: flex; gap: 12px; color: var(--mk-sub); }
.site-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.site-hero { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.site-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.site-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 75%); }
a.tile:hover .site-hero img { transform: scale(1.04); }
.site-copy { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; color: #fff; }
.site-copy b { font: 600 1.3em/1.1 var(--font-head); letter-spacing: -.02em; }
.site-copy .mk-btn { border-radius: 99px; padding: 6px 12px; }
.site-cats { display: flex; gap: 6px; padding: 9px 12px; font-size: .7em; font-weight: 600; }
.site-cats span { padding: 4px 10px; border: 1px solid var(--mk-border); border-radius: 99px; }
/* Problem and fix cards (home): the problem big at the top, the fix and a link at the bottom. Four in a row on wide screens */
.tiles.pains { grid-template-columns: 1fr; }
@media (min-width: 700px) { .tiles.pains { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tiles.pains { grid-template-columns: repeat(4, 1fr); } }
.tiles.pains .tile { min-height: 290px; }
.tiles.pains h3 { margin-bottom: auto; padding-bottom: 32px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -.03em; }
.tiles.pains p b { display: inline-block; margin-right: 4px; padding: 1px 10px; border-radius: 999px; background: var(--hot); color: var(--hot-ink); font-size: 13px; font-weight: 700; line-height: 1.7; vertical-align: 1px; } /* "The fix:" as a blue pill, so it pops (Nate, 26 Oct) */
a.tile:hover h3 { color: var(--hot); }
/* Plain tiles: not links, so no box (growth plan contents) */
.tiles.plain .tile, .sec.soft .tiles.plain .tile { padding: 0; background: none; }
.tiles.plain { gap: var(--gap-4) 28px; }

/* 8 REVIEWS ------------------------------------------------------------------------------------ */
/* 5 stars on every review (Nate, 15 Oct). Real words only, from Dave's onboarding form */
.review h3 { margin-top: 10px; }
.review figcaption { display: block; }
.review .who, .rband .who { font-weight: 600; color: var(--ink); }
.review .who { display: block; }
/* Home: two rows that scroll opposite ways, pause on hover, still for reduced motion */
.rmq { display: grid; gap: 20px; max-width: var(--wide-max); margin: var(--gap-4) auto 0; } /* no fade at the edges (Nate, 26 Oct) */
/* Each row scrolls sideways by itself: swipe with a finger, drag with the mouse, or scroll with a trackpad (Nate, 26 Oct).
   curtise.js makes the rows drift (opposite ways), stops while you hold or hover, and loops through the 4 copies */
.rmq-track { display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.rmq-track::-webkit-scrollbar { display: none; }
.rmq-track.drag { cursor: grabbing; user-select: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.rmq .review { flex: none; display: flex; flex-direction: column; width: 400px; margin: 0; padding: 26px 26px 24px; border: 0; border-radius: var(--r); background: var(--bg); }
.rmq .review .stars { margin-bottom: 12px; }
.rmq .review h3 { margin: 0; }
.rmq .review blockquote { margin: 10px 0 auto; padding-bottom: 14px; }
/* About: the full reviews */
/* The deep band (Nate, 26 Oct: add weight): the reviews on every page sit on Dave's dark blue (<section class="sec deep">).
   White words; the home review cards stay white; stars gold like every other star (--star) */
.sec.deep { background: var(--deep); color: #fff; }
.sec.deep .rmq .review { color: var(--ink); } /* the white review cards keep dark words */
.sec.deep h2, .sec.deep .sec-head[data-label]::before, .sec.deep .more, .sec.deep .more .arr, .sec.deep .rband blockquote, .sec.deep .rband .who { color: #fff; }
.sec.deep .lead, .sec.deep .rband figcaption { color: rgba(255, 255, 255, .82); }
.sec.deep .rband .av { background: #fff; color: var(--deep); }
.sec.deep .rcar-btn { border-color: transparent; }
.sec.deep .rcar-dots button::before { background: rgba(255, 255, 255, .35); }
.sec.deep .rcar-dots button.on::before { background: #fff; }

/* Inner pages: one big review ({{REVIEW:key}} in build.py) */
.rband { max-width: 900px; margin: 0; }
.rband .stars svg { width: 22px; height: 22px; }
.rband blockquote { margin: 18px 0 20px; font: 500 var(--quote)/1.35 var(--font-body); letter-spacing: -.01em; color: var(--ink); }
.rband figcaption { font-size: 15px; color: var(--sub); }
.rband + .more, .rcar + .more { margin-top: 12px; }
/* Review carousel on inner pages: one review at a time, swipe or use the arrows and dots */
.rcar-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.rcar-track::-webkit-scrollbar { display: none; }
.rcar .rband { flex: 0 0 100%; max-width: none; scroll-snap-align: start; }
.rcar .rband blockquote { max-width: 900px; }
.rcar-nav { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.rcar-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; transition: background var(--fast), border-color var(--fast); }
.rcar-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rcar-btn:hover { border-color: var(--hot); background: var(--hot); color: var(--hot-ink); }
.rcar-dots { display: flex; }
.rcar-dots button { display: grid; place-items: center; width: 22px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.rcar-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width var(--fast), background var(--fast); }
.rcar-dots button.on::before { width: 18px; background: var(--hot); }
/* Avatars: a round blue badge with initials (build.py adds them to every review) until Dave sends photos */
.av { display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--hot); color: var(--hot-ink); font: 600 14px/1 var(--font-head); letter-spacing: .02em; }
.review figcaption.by, .rband figcaption.by { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; } /* the name and role stay beside the avatar */
.rband .by .who { display: block; }
.after .review figcaption.by { justify-content: center; text-align: left; }
.a-proof .av { width: 28px; height: 28px; font-size: 11px; }
/* Dave's photo with a credibility badge in the corner (build.py photo_badge) */
.photo-badge { position: relative; width: 100%; margin: 0; }
.split .photo-badge { max-width: 520px; }
.photo-badge > img { display: block; width: 100%; }
/* Dave's photos cross-fade with a slow zoom (Nate, 26 Oct), like the home hero: 4 photos, 6 seconds each, 24 seconds round */
.ph-slides { position: relative; display: block; overflow: hidden; }
.ph-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: phfade 24s infinite; animation-fill-mode: both; }
.ph-slides img:only-child { position: static; opacity: 1; animation: none; }
.ph-slides img:nth-child(1) { animation-delay: -1s; }
.ph-slides img:nth-child(2) { animation-delay: 5s; }
.ph-slides img:nth-child(3) { animation-delay: 11s; }
.ph-slides img:nth-child(4) { animation-delay: 17s; }
@keyframes phfade { 0% { opacity: 0; transform: scale(1.08); } 6% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ph-slides img { animation: none; } .ph-slides img:first-child { opacity: 1; } }
.badge { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 4px; max-width: min(260px, calc(100% - 40px)); padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-float); }
.badge b { font: 600 30px/1 var(--font-head); letter-spacing: -.03em; color: var(--ink); }
.badge > span { font-size: 14px; line-height: 1.35; color: var(--sub); }
/* Booking page: the review under the steps */
.after .stars { margin-bottom: 4px; }

/* 9 FAQ, STEPS, FEATURES, LISTS, COMPARE, BEFORE AND AFTER ------------------------------------- */
/* FAQ ({{FAQ:...}} in build.py): headline, sub line and one button on the left, the questions on the right */
.faq-grid { display: grid; gap: var(--gap-4); }
.faq-grid h2 { margin-bottom: 14px; }
.faq-grid .lead { margin: 0 0 28px; }
.faq-grid .faq { max-width: none; margin: 0; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 5fr 7fr; gap: var(--gap-5); align-items: start; } }

/* Features: a line icon, the name and one line. A thin line on top, no boxes */
.features { display: grid; gap: var(--gap-4) var(--gap-3); text-align: left; }
.features > div { padding-top: 20px; border-top: 1px solid var(--line); }
.features .ic { margin-bottom: 12px; color: var(--accent); }
.features h3 { margin-bottom: 6px; }
.features p { color: var(--sub); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); gap: var(--gap-4); } }

/* Compare table (growth plans): five freelancers against one team */
.compare-wrap { margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; }
.reviews { overflow-y: hidden; } /* site.css makes it swipe sideways; never up and down too (26 Oct) */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; text-align: left; }
.compare th, .compare td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 18px/1.2 var(--font-head); letter-spacing: -.01em; border-bottom: 2px solid var(--ink); }
.compare thead th.us { background: var(--ink); color: #fff; border-bottom-color: var(--ink); } /* the 9DB Growth Plan column, first (Nate, 18 Oct) */
.compare tbody th { width: 34%; font-weight: 600; color: var(--ink); }
.compare td { color: var(--sub); }
.compare td.us { background: var(--soft); color: var(--ink); font-weight: 600; }

/* Before and after (product data): the same product, messy then clean */
/* Ecommerce platform logos (Dave, 4 Nov 2026): a plain grid in each brand's own colours, no boxes. 6 across, 3 on tablets and phones */
.plats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 32px; align-items: center; margin: 0; padding: 0; list-style: none; }
.plats li { display: flex; justify-content: center; }
.plats img { width: 100%; max-width: 200px; height: auto; } /* their own colours (Nate, 4 Nov) */
@media (max-width: 900px) { .plats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; } }
.ba { display: grid; gap: var(--gap-3); }
@media (min-width: 700px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba > div { display: flex; flex-direction: column; }
.ba .mk-pic { display: flex; flex: 1; }
.ba .mk-pic .mk { flex: 1; }
.ba .mk-pic .mk > .mk-c { flex: 1; } /* both cards stretch to the taller one (Nate, 18 Oct) */
.ba-label { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); }


/* 10 BLOG -------------------------------------------------------------------------------------- */
/* Chips: the topic links on the blog */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-btn); font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; transition: border-color var(--fast), background var(--fast); }
.chips a:hover { border-color: var(--ink); }
.chips a.on { border-color: var(--ink); background: var(--ink); color: #fff; }
/* Post cards: white on grey, the whole card is the link */
.posts { display: grid; gap: 20px; }
@media (min-width: 800px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--r); background: var(--bg); box-shadow: var(--shadow-card); text-decoration: none; transition: transform var(--fast), box-shadow var(--fast); }
.post-card .meta { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--sub); }
.post-card h3 { margin-bottom: 8px; font-size: 20px; }
.post-card p { color: var(--sub); }
.post-card .more { margin-top: auto; padding-top: 16px; }
.post-card:hover { transform: translateY(-3px); box-shadow: 4px 12px 28px rgba(0, 0, 0, .12); }
.post-card:hover .more .arr { transform: translateX(3px); }
.post-card:active { transform: translateY(-1px) scale(.995); }
/* One post: the post on the left, a sticky "book a call" card on the right (Nate, 18 Oct, like havstock.com posts).
   Under 1000px the card sits after the post */
.post-grid { display: grid; gap: var(--gap-5); }
@media (min-width: 1000px) { .post-grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } .post-cta { position: sticky; top: calc(var(--announce) + var(--header) + 16px); } }
.post-cta-card { padding: 28px; border-radius: var(--r); background: var(--hot); color: var(--hot-ink); }
.post-grid > * { min-width: 0; } /* the call card never makes the page wider than a small phone (26 Oct) */
.post-cta-card p { margin: 0 0 18px; }
.post-cta-card .s-label { margin-bottom: 10px; color: var(--hot-ink); }
.post-cta-title { font: 600 26px/1.15 var(--font-head); letter-spacing: -.02em; }
.post-cta-card .cta-row { align-items: flex-start; margin: 0; }
.post-cta-card .reassure { justify-content: flex-start; margin: 12px 0 0; color: var(--hot-ink); }
.post-cta-card .reassure .ic { color: var(--hot-ink); }
.post-cta-card .btn .arr { background: #fff; color: var(--ink); }
.post-cta-card .btn:hover { background: #fff; color: var(--ink); }
.post-cta-card .btn:hover .arr { background: var(--ink); color: #fff; }
.post-cta-by { display: flex; align-items: center; gap: 10px; margin: 20px 0 0 !important; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 14px; font-weight: 600; }
.post-cta-by .avatar { width: 36px; height: 36px; background: #fff; }
/* the post itself: topic link, headline, sub line, byline, the post, then who wrote it */
.post .prose { max-width: 760px; margin: 0; }
.post .prose p, .post .prose li { font-size: 17px; line-height: 1.7; }
.post .prose ul, .post .prose ol { margin: 0 0 1em; padding-left: 22px; }
.post .prose li { margin-bottom: 6px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.post .prose .crumbs, .post .prose .crumbs a { font-size: 14px; font-weight: 600; color: var(--sub); }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.post .prose .post-sub { margin: 0 0 24px; font-size: 20px; line-height: 1.5; color: var(--sub); }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post .prose .byline p { display: flex; flex-direction: column; margin: 0; font-size: 14px; line-height: 1.4; color: var(--sub); }
.byline b { color: var(--ink); }
.author { display: flex; align-items: flex-start; gap: 18px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.author .avatar { width: 64px; height: 64px; }
.post .prose .author p { font-size: 16px; }
.post .prose .author .author-name { margin: 0 0 6px; font: 600 20px/1.2 var(--font-head); letter-spacing: -.015em; color: var(--ink); }

/* 11 FOOTER ------------------------------------------------------------------------------------ */
/* Black, like havstock.com: logo, blurb and button, 4 link columns, the legal row, then the name big */
.site-footer { background: var(--dark); color: var(--dark-sub); border-top: 1px solid var(--dark-line); }
.site-footer .footer-top { border-bottom-color: var(--dark-line); }
/* As wide as the home photo, the menu bar and the blue panel (Nate, 18 Oct) */
.site-footer .wrap { max-width: var(--wide-max); padding-inline: calc(var(--wide-gap) + var(--hero-pad)); } /* sides only: the rows keep their own top and bottom space */
.site-footer .footer-col h3 { margin-bottom: 8px; font-family: var(--font-body); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.site-footer a:not(.btn) { color: var(--dark-sub); }
.site-footer a:not(.btn):hover { color: #fff; }
.site-footer .btn { background: #fff; color: var(--dark); }
.site-footer .btn:hover { background: var(--on-dark-hover); }
.site-footer .footer-col a { line-height: 1.3; }
.legal-row .credit a { text-decoration: none; } /* no line under Havstock (Nate, 18 Oct) */
/* Phones and tablets (Nate, 26 Oct: a better layout): lined up on the left like the link columns above. The page links on
   one row, then the company name on the left and "Site by Havstock" on the right. Desktop keeps the one-row layout */
@media (max-width: 899px) {
  .legal-row { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; padding-block: 8px 12px; text-align: left; }
  .legal-row .links { grid-column: 1 / -1; justify-content: flex-start; column-gap: 24px; }
  .legal-row > p:first-child { grid-row: 2; padding: 0; }
  .legal-row .credit { grid-row: 2; text-align: right; }
}
/* Desktop: 4 link columns, each as wide as its longest link, so every guide title fits on one line.
   1000 to 1199px: the brand sits above the links to make room */
@media (min-width: 700px) and (max-width: 999px) { .site-footer .footer-cols { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .site-footer .footer-top { grid-template-columns: 1fr; } .site-footer .footer-cols { grid-template-columns: repeat(4, auto); justify-content: space-between; } .site-footer .footer-col a { white-space: nowrap; } }
@media (min-width: 1200px) { .site-footer .footer-top { grid-template-columns: 1fr 2.6fr; } }
@media (min-width: 1024px) { .site-footer .footer-col a { min-height: 30px; padding: 3px 0; } } /* desktop is a mouse: links closer together */
/* The name, as wide as the page content, in Barlow Condensed capitals like before (Nate, 18 Oct: the name is about 5.77em wide) */
.footer-mark { --fm-side: calc(var(--wide-gap) + var(--hero-pad)); max-width: var(--wide-max); margin: 8px auto 0; padding: 0 var(--fm-side); overflow: hidden; font: 700 calc((min(100vw, var(--wide-max)) - 2 * var(--fm-side)) / 5.8)/.95 'Barlow Condensed', var(--font-head); letter-spacing: -.01em; text-transform: uppercase; text-align: center; white-space: nowrap; user-select: none;
  background: linear-gradient(to bottom, #4a4a4a 15%, #161616 80%, #0a0a0a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* 12 MOCKUPS ----------------------------------------------------------------------------------- */
/* HTML and CSS pictures, like havstock.com: small white app cards. Built by {{MOCK:name}} in build.py (MOCKS).
   Illustrations only: no real numbers, names or reviews. Hidden from screen readers.
   Two sizes: in a card (.tile-mock) and big beside words (.mk-pic) */
.mk { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; width: 100%; height: 100%; padding: 16px; overflow: hidden; background: var(--mk-soft); color: var(--ink); font: 500 var(--mk-fs)/1.35 var(--font-body); text-align: left; }
.mk.dk { background: var(--mk-panel); }
.mk > * { width: 100%; max-width: 300px; }
.mk-c { display: block; padding: 12px 14px; border: 1px solid var(--mk-border); border-radius: var(--r-mk); background: #fff; box-shadow: var(--mk-shadow); }
/* rounded parts inside mockups */
.mk :is(.mk-btn, .mk-tag, .mk-search, .mk-type, .mk-cite) { border-radius: 999px; }
.mk :is(.mk-ini, .mk-chips i, .mk-times i, .mk-card, .mk-stat, .mk-img, .mk-msg, .mk-cal i, .mk-track, .mk-span) { border-radius: 6px; }
.mk-page { overflow: hidden; }
.mk.dk .mk-c { border-color: var(--dark-line); }
.mk svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.mk-top b { font: 600 1.167em/1.15 var(--font-head); letter-spacing: -.01em; }
.mk-lbl { display: block; font-size: 0.75em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mk-sub); }
.mk-tag { display: inline-flex; flex: none; align-items: center; padding: 3px 7px; background: var(--mk-chip); color: var(--ink); font-size: 0.75em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mk-line { display: block; height: 6px; margin-top: 6px; background: var(--mk-line); }
.mk-line.s { width: 62%; }
.mk-line.xs { width: 38%; }
.mk-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--mk-chip); }
.mk-row.last { padding-bottom: 0; border-top: 0; }
.mk-btn { display: inline-flex; flex: none; align-items: center; justify-content: center; padding: 6px 10px; font-size: 0.833em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.mk-ini { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.83em; height: 1.83em; background: var(--mk-chip); font-size: 0.833em; font-weight: 700; }
.mk-txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.mk-txt b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.mk-txt span { font-size: 0.833em; color: var(--mk-sub); }
.mk-done { display: flex; align-items: center; gap: 6px; font-size: 0.833em; font-weight: 700; color: var(--ink); }
.mk-rowl { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.mk-foot { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--mk-chip); font-size: 0.917em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mk-sub); }
/* Mockup colours: blue for buttons and "on" states, volt for "done" tags, blue pictures */
.mk-btn, .mk-tag.dk, .mk-ini.dk, .mk-card.on, .mk-msg.us, .mk-chips i.on, .mk-times i.on { border-color: var(--mk-hot-ink); background: var(--mk-hot-ink); color: #fff; }
.mk-tag.ok, .mk-cite { background: var(--mk-pop); color: var(--ink); }
.mk .mk-spark, .mk-done svg, .mk-auto svg, .mk-rowl svg { color: var(--mk-hot); }
.mk-img { display: block; background: linear-gradient(135deg, var(--mk-hot-t), var(--mk-hot-mid)); }
.mk-pimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--mk-hot-t) 0%, var(--mk-hot-mid) 55%, var(--mk-hot) 100%); }
/* The drawn snowboard in product pictures */
.mk-pimg { position: relative; overflow: hidden; }
.mk .mk-board { position: absolute; top: 50%; left: 50%; width: auto; height: 80%; fill: #fff; stroke: none; transform: translate(-50%, -50%) rotate(-14deg); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .18)); }
.mk .mk-board path { fill: none; stroke: var(--mk-hot); stroke-width: 7; }

/* websites (and the store in the home hero) */
.mk-page { padding: 0; }
.mk-bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--mk-chip); }
.mk-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--mk-grey); }
.mk-bar span { margin-left: 6px; font-size: 0.75em; color: var(--mk-sub); }
.mk-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px 12px; background: linear-gradient(120deg, var(--mk-hot-t), var(--mk-pop-t)); }
.mk-hero b { font: 600 1.25em/1.05 var(--font-head); letter-spacing: -.02em; }
.mk-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 12px 12px; }
.mk-prod .mk-img { height: 34px; }
.mk-prod:nth-child(2) .mk-img { background: linear-gradient(135deg, var(--mk-pop-t), var(--mk-pop)); }
.mk-prod:nth-child(3) .mk-img { background: linear-gradient(135deg, var(--mk-chip), var(--mk-grey)); }
/* ads */
.mk-from { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mk-adimg { height: 52px; margin-top: 8px; background: linear-gradient(120deg, var(--mk-hot-mid) 0%, var(--mk-hot) 55%, var(--mk-pop) 130%); }
.mk-ad .mk-row b { font-weight: 700; }
/* SEO */
.mk-search { display: flex; align-items: center; gap: 8px; height: 2.5em; padding: 0 12px; border: 1px solid var(--mk-border); background: #fff; font-size: 1em; }
.mk-cite { display: inline-block; margin-top: 8px; padding: 2px 7px; font-size: 0.75em; font-weight: 700; }
.mk-res { display: block; margin-top: 2px; font-weight: 700; }
/* CRM pipeline */
.mk-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mk-col { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mk-card { display: flex; align-items: center; gap: 5px; padding: 5px; overflow: hidden; background: var(--mk-soft); font-size: 0.833em; font-weight: 600; white-space: nowrap; }
.mk-card .mk-ini { width: 16px; height: 16px; background: #fff; font-size: 0.8em; }
.mk-card.on .mk-ini { background: rgba(255, 255, 255, .25); color: #fff; }
.mk-auto { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--mk-chip); font-size: 0.833em; font-weight: 600; }
/* AI chat */
.mk-msgs { display: flex; flex-direction: column; gap: .6em; } /* room between bubbles (Nate, 18 Oct) */
.mk-msg { max-width: 82%; padding: 5px 8px; font-size: 0.917em; }
.mk-msg.them { align-self: flex-start; background: var(--mk-chip); }
.mk-msg.us { align-self: flex-end; }
.mk-chat .mk-done { margin-top: 7px; }
.mk-type { display: block; margin-top: 7px; padding: 5px 8px; border: 1px solid var(--mk-border); color: var(--mk-sub); font-size: 0.833em; }
/* product page */
.mk-pdp { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; }
.mk-pimg { min-height: 150px; }
.mk-pinfo { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mk-pinfo > b { font: 600 1.417em/1.1 var(--font-head); letter-spacing: -.02em; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mk-chips i { padding: 3px 5px; border: 1px solid var(--mk-border); font-size: 0.75em; font-style: normal; font-weight: 700; }
.mk-pinfo .mk-row { padding: 4px 0; font-size: 0.917em; }
.mk-pinfo .mk-row span { color: var(--mk-sub); }
.mk-pinfo .mk-btn { margin-top: 4px; }
.mk-product-p { position: relative; }
.mk-product-p .mk-done { width: auto; padding: 6px 10px; border: 1px solid var(--mk-border); background: #fff; }
/* software dashboard */
.mk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.mk-stat { min-width: 0; padding: 7px; background: var(--mk-soft); }
.mk .mk-spark { display: block; width: 100%; height: 22px; margin-top: 4px; stroke-width: 2; }
.mk .mk-spark polyline { vector-effect: non-scaling-stroke; }
/* booking card (last call to action) */
.mk-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 8px 0; }
.mk-cal i { aspect-ratio: 1.5; background: var(--mk-chip); }
.mk-cal i.on { background: var(--mk-hot-t); }
.mk-cal i.sel { background: var(--mk-hot); }
.mk-times { display: flex; gap: 5px; margin-bottom: 8px; }
.mk-times i { flex: 1; padding: 4px 0; border: 1px solid var(--mk-border); font-size: 0.833em; font-style: normal; font-weight: 700; text-align: center; }
.mk-book .mk-btn { width: 100%; padding: 8px 10px; }
/* reviews page hero: three short reviews, stacked and stepped */
.mk-revs { display: grid; gap: 12px; padding: 4px 26px 30px 4px; } /* room for the card shadows */
.mk-pic .mk > .mk-revs { width: 100%; max-width: none; }
.mk-rev { display: flex; flex-direction: column; gap: 6px; }
.mk-rev b { font: 600 1.15em/1.2 var(--font-head); letter-spacing: -.01em; }
.mk-rev:nth-child(2) { margin-left: 8%; }
.mk-rev:nth-child(3) { margin-left: 16%; }
/* outcome card (last call to action): sales going up, new sales coming in (curtise.js adds one every few seconds) */
.mk-feed { display: block; overflow: hidden; }
.mk-feed .mk-row.new { animation: mkFeedIn .6s cubic-bezier(.2, .7, .2, 1) both; }
.mk-feed .mk-row.new .mk-tag { animation: mkPop .5s .35s cubic-bezier(.2, .7, .2, 1.4) both; }
@keyframes mkFeedIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.mk-growth { display: flex; flex-direction: column; }
.mk-chart { display: block; flex: 1; min-height: 100px; margin: 8px 0 10px; padding: 10px 10px 0; border-radius: 8px; background: var(--mk-soft); }
.mk .mk-up { display: block; width: 100%; height: 100%; min-height: 90px; }
.mk-up .area { fill: var(--mk-hot-t); stroke: none; }
.mk-up polyline { fill: none; stroke: var(--mk-hot); stroke-width: 3; vector-effect: non-scaling-stroke; }
.mk-chart { position: relative; }
.mk-live { position: absolute; top: calc(10px + (100% - 10px) * .075 - 6px); right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--mk-hot); box-shadow: 0 0 0 0 rgba(17, 125, 175, .5); animation: mkLive 2s ease-out infinite; }
@keyframes mkLive { 0% { box-shadow: 0 0 0 0 rgba(17, 125, 175, .5); } 80%, 100% { box-shadow: 0 0 0 12px rgba(17, 125, 175, 0); } }
/* plan, strategy report and lists */
.mk-plan .mk-row, .mk-steps .mk-row { padding: 9px 0; }
.mk-steps .mk-row { padding: 12px 0; }
/* services hero: four cards */
.mk-quad { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; }
.mk-quad .mk-c { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.mk-quad b { margin-top: 4px; font: 600 1.5em/1.05 var(--font-head); letter-spacing: -.02em; }
.mk-quad .mk-tag { align-self: flex-start; margin-top: auto; }
/* seasons: a year, with the ranges and the sale marked */
.mk-months, .mk-track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.mk-months { margin-bottom: 4px; }
.mk-months i { font-size: 0.833em; font-style: normal; font-weight: 700; text-align: center; color: var(--mk-sub); }
.mk-bar-row { display: block; margin-top: 10px; }
.mk-bar-row .mk-lbl { margin-bottom: 4px; }
.mk-track { height: 14px; background: var(--mk-soft); }
.mk-span { grid-row: 1; background: var(--mk-hot); }
.mk-span.alt { background: var(--mk-pop); }
.mk-span.sale { background: var(--ink); }
.mk-seasons .mk-done { margin-top: 12px; }
/* before and after: a small product card */
.mk-mini { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; }
.mk-mini .mk-pimg { min-height: 0; }
.mk-mini.bad .mk-pimg { background: repeating-linear-gradient(135deg, var(--mk-soft) 0 10px, var(--mk-chip) 10px 20px); }
.mk-mini.bad .mk-pimg span { font-size: 0.917em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mk-sub); }
.mk-mini .mk-pinfo { justify-content: center; }
.mk-mini.bad .mk-row b { color: var(--error); }
.mk-mini .mk-tag { align-self: flex-start; margin-top: 6px; }
.mk-mini .mk-pimg { position: relative; }
.mk-flag { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 999px; background: var(--mk-pop); font-size: .7em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mk-rate { display: flex; align-items: center; gap: 6px; font-size: .75em; color: var(--mk-sub); }
.mk-stars { display: inline-flex; gap: 1px; color: var(--star); } /* gold, like the review stars (Nate, 26 Oct) */
.mk .mk-stars svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.mk-price { font: 600 1.25em/1.1 var(--font-head); letter-spacing: -.02em; }
.mk-price s { margin-left: 4px; font-size: .7em; font-weight: 500; color: var(--mk-sub); }
.mk-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mk-guide { font-size: .72em; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.mk-bul { display: flex; align-items: center; gap: 6px; font-size: .8em; }
.mk-bul svg { color: var(--mk-hot); }
.mk-mini .mk-btn { width: 100%; margin-top: 4px; padding: .7em; }
.mk-btn.grey { background: var(--mk-grey); border-color: var(--mk-grey); color: #fff; }
.mk-stock { font-size: .72em; font-weight: 700; color: var(--mk-hot-ink); }
.mk-trust { font-size: .7em; color: var(--mk-sub); }
.mk-mini.bad .mk-rate, .mk-mini.bad .mk-lbl { color: var(--error); }
/* Big mockups beside words (.mk-pic): no grey panel, the app card fills the space, bigger words */
.mk-pic { display: block; padding: var(--mk-stage-pad); overflow: hidden; background: var(--mk-stage); container-type: inline-size; }
/* product cards stack (picture on top) when their box is narrow, at any screen size */
@container (max-width: 480px) {
  .mk-pdp, .mk-mini { grid-template-columns: 1fr !important; }
  .mk-product-p .mk-pimg, .mk-mini .mk-pimg { min-height: 180px; }
}
#last-cta .mk-pic { padding: 0; background: none; }
.mk-pic .mk { gap: 10px; padding: 0; background: none; font-size: var(--mk-fs-big); }
.mk-pic .mk > * { max-width: none; }
.mk-pic .mk > .mk-c { width: 100%; height: 100%; padding: 22px; box-shadow: var(--mk-shadow); }
/* Big mockups beside words size to their content, so nothing is ever cropped (Nate, 18 Oct: some were cutting off) */
.mk-pic.pic-4x3, .ba .mk-pic { aspect-ratio: auto; }
.mk-pic.pic-4x3 .mk, .ba .mk-pic .mk { height: auto; }
.mk-pic.pic-4x3 .mk > .mk-c, .ba .mk-pic .mk > .mk-c { height: auto; min-height: clamp(240px, 24vw, 340px); }
.mk-pic.pic-4x3 .mk > .mk-quad { height: auto; }
.mk-pic.pic-4x3 .mk-seo-p > .mk-c { min-height: 0; }
#last-cta .mk-pic .mk > .mk-c { box-shadow: none; }
.mk-pic .mk > .mk-c:only-child { display: flex; flex-direction: column; justify-content: center; }
.mk-pic .mk > .mk-quad { height: 100%; }
.mk-pic .mk > .mk-c.mk-mini { display: grid; }
.mk-pic .mk-top b { font-size: 1.429em; }
.mk-pic .mk-lbl { font-size: 0.786em; }
.mk-pic .mk-tag { padding: 5px 9px; font-size: 0.714em; }
.mk-pic .mk-ini { width: 2em; height: 2em; font-size: 0.857em; }
.mk-pic .mk-txt b { font-size: 1em; }
.mk-pic .mk-txt span { font-size: 0.857em; }
.mk-pic .mk-list .mk-row { padding: 12px 0; }
.mk-pic .mk-seo-p { justify-content: center; gap: 12px; }
.mk-pic .mk-search { height: 3.14em; font-size: 1.071em; }
.mk-pic .mk-res { font-size: 1.143em; }
.mk-pic .mk-cols { gap: 10px; }
.mk-pic .mk-card { padding: 9px; font-size: 0.929em; }
.mk-pic .mk-card .mk-ini { width: 22px; height: 22px; font-size: 0.769em; }
.mk-pic .mk-auto { font-size: 0.857em; }
.mk-pic .mk-months i { font-size: 0.857em; }
.mk-pic .mk-track { height: 20px; }
.mk-pic .mk-bar-row { margin-top: 16px; }
.mk-pic .mk-done { font-size: 0.857em; }
.mk-product-p .mk-pdp { grid-template-columns: 1fr 1fr; gap: 22px; padding: 22px; }
.mk-product-p .mk-pimg { height: 100%; min-height: 0; }
.mk-product-p .mk-pinfo { justify-content: center; gap: 8px; }
.mk-product-p .mk-pinfo > b { font-size: 1.714em; }
.mk-product-p .mk-chips i { padding: 5px 8px; font-size: 0.857em; }
.mk-product-p .mk-pinfo .mk-row { padding: 7px 0; font-size: 1em; }
.mk-product-p .mk-btn { padding: 11px; font-size: 0.929em; }
.mk-pic .mk-product-p .mk-done { position: static; align-self: flex-start; margin-top: 12px; max-width: none; padding: 7px 11px; font-size: 0.857em; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4); }
.mk-mini .mk-pinfo > b { font-size: 1.667em; }
.mk-pic .mk-mini .mk-pinfo .mk-row { padding: 7px 0; font-size: 0.929em; }
.mk-pic .mk-mini .mk-chips i { padding: 4px 7px; font-size: 0.786em; }
.mk-dashboard-p .mk-dash { display: flex; flex-direction: column; padding: 22px; }
.mk-dashboard-p .mk-top b { font-size: 1.429em; }
.mk-dashboard-p .mk-lbl { font-size: 0.786em; }
.mk-dashboard-p .mk-stats { flex: 1; gap: 10px; margin-bottom: 10px; }
.mk-dashboard-p .mk-stat { display: flex; flex-direction: column; justify-content: space-between; padding: 12px; }
.mk-dashboard-p .mk-spark { height: 48px; }
.mk-dashboard-p .mk-row { padding: 10px 0; }
.mk-dashboard-p .mk-ini { width: 2.15em; height: 2.15em; font-size: 0.857em; }
.mk-dashboard-p .mk-tag { padding: 5px 9px; font-size: 0.714em; }

/* Mockups in cards: the mockup fills its space, no grey panel */
.tile-mock .mk { justify-content: flex-start; padding: 0; background: none; }
.tile-mock .mk > * { max-width: none; }
.tile-mock .mk-c { box-shadow: var(--mk-shadow); }
.tile-mock .mk > .mk-c:only-child { display: flex; flex-direction: column; height: 100%; }
.tile-mock .mk-hero, .tile-mock .mk-adimg, .tile-mock .mk-cols, .tile-mock .mk-msgs { flex: 1; }
.tile-mock .mk-hero { justify-content: center; }
.tile-mock .mk-prod .mk-img { height: 40px; }
.tile-mock .mk-email-p .mk-c, .tile-mock .mk-crm-p .mk-c, .tile-mock .mk-list, .tile-mock .mk-steps { justify-content: space-between; }
.tile-mock .mk-seo-p > .mk-c:last-child { flex: 1; }
.tile-mock .mk > .mk-c.mk-pdp { display: grid; grid-template-columns: .8fr 1.2fr; } /* more room for the product words in small cards (26 Oct) */
.tile-mock .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* small cards show 2 stats, so the labels fit (Nate, 26 Oct: overflow on phones) */
.tile-mock .mk-stat:nth-child(3) { display: none; }
.tile-mock .mk-product-p .mk-done, .tile-mock .mk-foot, .tile-mock .mk-product-p .mk-pinfo > .mk-row:nth-child(6) { display: none; }
.tile-mock .mk-plan .mk-row { flex: 1; padding: 6px 0; } /* rows share the card's height, no gap at the bottom (Nate, 18 Oct) */
.tile-mock .mk-product-p { justify-content: center; } /* the product card sits in the middle (Nate, 18 Oct) */
.tile-mock .mk-pinfo > b { font-size: 1.15em; }
.mk .nw { white-space: normal; } /* long words may wrap inside mockups */ /* in a card: no footer line, two spec rows */
.tile-mock .mk-seasons { justify-content: center; }

/* The booking card (last call to action, every page): fills its space, and is a link to the booking page */
.mk-link { color: inherit; text-decoration: none; transition: transform var(--fast); }
.mk-link:hover { transform: translateY(-3px); }
.mk-link:hover .mk-btn { background: var(--ink); }
/* The outcome card on the blue panel: a 1.1 to 1 card, the chart takes the spare room, nothing cut off (Nate, 18 Oct) */
#last-cta .mk { cursor: pointer; }
#last-cta .mk-pic { aspect-ratio: 1.1; width: 100%; max-width: 520px; justify-self: end; }
#last-cta .mk > .mk-c { display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(20px, 2.4vw, 30px); border: 0; }
#last-cta .mk-chart { min-height: 0; }
/* Notifications over the outcome card's edges: two on the left, one on the right. They pop in, then bob gently */
#last-cta .mk-pic, #last-cta .mk { overflow: visible; }
#last-cta .mk { position: relative; }
.mk-toast { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; width: max-content; max-width: 250px; padding: 10px 16px 10px 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-float); font-size: .82em; animation: mkBob 4s ease-in-out infinite; }
.mk-toast .mk-tico { display: grid; flex: none; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: var(--mk-hot-t); color: var(--mk-hot-ink); }
.mk .mk-toast .mk-tico svg { width: 1.15em; height: 1.15em; }
.mk-toast .mk-txt span { font-size: .85em; }
/* Platform sale notes (Nate, 4 Nov): the platform's own mark on a light grey circle */
.mk-toast .mk-tico.brand { background: var(--mk-soft); }
.mk-toast .mk-tico.brand img { display: block; width: 1.35em; height: 1.35em; object-fit: contain; }
/* A hero mockup with notes (ecommerce page): the notes may hang over its edges */
.mk-float, .mk-float .mk { overflow: visible; }
.mk-float .mk { position: relative; }
.mk-float .mk-toast.t1 { top: -26px; right: -24px; left: auto; } /* hangs off the top right corner, over the empty end of the address bar */
.mk-float .mk-toast.t3 { top: 62%; right: -24px; }
@media (max-width: 699px) { .mk-float .mk-toast.t1, .mk-float .mk-toast.t3 { right: -10px; } } /* phones: stay on the screen, like the other notes */
.mk-toast.t1 { top: 30%; left: -24px; } /* below the card's title and label (Nate, 18 Oct) */
.mk-toast.t2 { top: auto; bottom: -34px; left: -36px; animation-delay: -1.3s; } /* hangs below the card's bottom corner, covering nothing (Nate, 18 Oct) */
@media (min-width: 900px) { .mk-toast.t1 { left: -88px; } .mk-toast.t2 { left: -100px; } } /* further out on desktop (Nate, 18 Oct) */
.mk-toast.t3 { top: 46%; right: -48px; animation-delay: -2.6s; }
@keyframes mkBob { 50% { transform: translateY(-5px); } }
.pic-3x2 { aspect-ratio: 3 / 2; }

/* 13 SCROLL ANIMATIONS (curtise.js) ------------------------------------------------------------ */
/* Hidden only when motion is fine, the script is on, and the part has not come into view yet */
@media (prefers-reduced-motion: no-preference) {
  .rv-on .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0ms); }
  .rv-on .rv.in { opacity: 1; transform: none; }
  /* mockups come alive once their card is in view */
  .rv-on .rv :is(.mk-msg, .mk-row, .mk-card, .mk-prod, .mk-stat, .mk-done, .mk-auto, .mk-search, .mk-span) { opacity: 0; transform: translateY(8px); }
  .rv-on .rv.in :is(.mk-msg, .mk-row, .mk-card, .mk-prod, .mk-stat, .mk-done, .mk-auto, .mk-search) { animation: mkUp .5s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.35s + var(--i, 0) * .14s); }
  .rv-on .rv.in .mk-card.on { animation-name: mkSlide; }
  .rv-on .rv .mk-span { transform: scaleX(0); transform-origin: left; }
  .rv-on .rv.in .mk-span { animation: mkGrow .8s cubic-bezier(.33, 1, .68, 1) forwards; animation-delay: calc(.4s + var(--i, 0) * .14s); }
  .rv-on .rv .mk-spark polyline { stroke-dasharray: 100; stroke-dashoffset: 100; }
  .rv-on .rv .mk-up { clip-path: inset(0 100% 0 0); }
  .rv-on .rv.in .mk-up { animation: mkWipe 1.6s .5s cubic-bezier(.33, 1, .68, 1) forwards; }
  .rv-on .rv .mk-live { opacity: 0; }
  .rv-on .rv.in .mk-live { animation: mkUp .4s 2s forwards, mkLive 2s 2.4s ease-out infinite; }
  .rv-on .rv .mk-toast { opacity: 0; transform: translateY(10px) scale(.96); }
  .rv-on .rv.in .mk-toast { animation: mkUp .5s 1.4s cubic-bezier(.2, .7, .2, 1.2) forwards, mkBob 4s 2.4s ease-in-out infinite; }
  .rv-on .rv.in .mk-toast.t2 { animation-delay: 1.8s, 2.8s; }
  .rv-on .rv.in .mk-toast.t3 { animation-delay: 2.2s, 3.2s; }
  .rv-on .rv.in .mk-tag.ok { animation: mkPop .5s calc(1s + var(--i, 0) * .14s) cubic-bezier(.2, .7, .2, 1.4) both; }
  .rv-on .rv.in .mk-spark polyline { animation: mkDraw 1.4s .6s cubic-bezier(.33, 1, .68, 1) forwards; }
  .rv-on .rv.in .mk-cal i.sel { animation: mkPop .5s 1s cubic-bezier(.2, .7, .2, 1.4) both; }
  .rv-on .rv.in .mk-times i.on { animation: mkPop .5s 1.25s cubic-bezier(.2, .7, .2, 1.4) both; }
}
@keyframes mkUp { to { opacity: 1; transform: none; } }
@keyframes mkSlide { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes mkGrow { to { opacity: 1; transform: none; } }
@keyframes mkDraw { to { stroke-dashoffset: 0; } }
@keyframes mkWipe { to { clip-path: inset(0 0 0 0); } }
@keyframes mkPop { 0% { transform: scale(.6); opacity: .3; } 100% { transform: none; opacity: 1; } }

/* 14 PHONES AND TABLETS ------------------------------------------------------------------------ */
/* Tablets are touch: links and buttons big enough to tap (Nate, 14 Oct) */
@media (max-width: 1023px) { .nav-links a, .footer-col a, .more { min-height: 44px; } }
@media (max-width: 959px) { .hero-img { justify-self: start; } }
@media (max-width: 899px) {
  .reviews:not(.all) { scroll-padding-inline: 16px; }
  #last-cta .mk-pic { justify-self: start; }
}
@media (min-width: 700px) and (max-width: 899px) { .reviews:not(.all) { margin: 0 -28px; padding: 0 28px 12px; scroll-padding-inline: 28px; } }
@media (max-width: 699px) {
  .tile { padding: 28px 24px; }
  .tiles.quad .tile-mock { height: var(--mk-card-h); }
  /* card rows swipe sideways on phones, so the page stays short. The next card peeks in from the right */
  .tiles.swipe { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; margin: 0 -16px; padding: 0 16px 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: thin; } /* overflow-y: no little up-and-down scroll inside the row (Nate, 26 Oct) */
  .tiles.swipe > * { scroll-snap-align: start; }
  .tiles.plain.swipe { gap: 20px; }
  .lmq-track { gap: 36px; padding-right: 36px; }
  :root { --mk-fs: 13px; --mk-fs-big: 15px; --wide-gap: 8px; --hero-pad: 18px; --mk-stage-pad: 10px; } /* phones: mockup text, slimmer gaps */
  .tile-mock .mk-c { padding: 10px 12px; }
  .steps li { min-height: 0; padding: 22px; } /* step tiles stay short on phones */
  .steps .num { padding-bottom: 18px; font-size: 52px; }
  /* other pages' hero panel runs edge to edge on phones, with the normal page padding, so sub lines keep their room */
  main > section.hero:not(.a-hero-sec) { padding-left: 0; padding-right: 0; }
  main > section.hero:not(.a-hero-sec) > .wrap { padding: 36px 16px; border-radius: 0; }
  .a-proof { display: none; } /* the photo needs the room on phones; Mike's result is in the reviews */
  .a-logos { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lmq { width: 100%; }
  .lmq-track img { height: calc(26px * var(--lh, 1)); }
  .rmq .review { width: 300px; padding: 22px 20px; }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 12px 8px; }
  .compare thead th { font-size: 15px; }
  .post .prose .post-sub { font-size: 18px; }
  /* big mockups get their own height on phones */
  .mk-pic { aspect-ratio: auto; }
  .mk-pic .mk { height: auto; }
  .mk-pic .mk > .mk-c { padding: 16px; font-size: .93em; }
  .mk-plan .mk-row { padding: 7px 0; }
  .mk-product-p .mk-pdp { gap: 14px; padding: 14px; }
  .mk-product-p .mk-pimg { min-height: 220px; }
  .mk-product-p .mk-pinfo > b { font-size: 1.3em; }
  .mk-product-p .mk-pinfo .mk-row { font-size: .86em; }
  .mk-pic .mk-product-p .mk-done { position: static; margin: 0 auto 0 0; }
  .mk-mini { grid-template-columns: 1fr; }
  .mk-mini .mk-pimg { min-height: 170px; }
  .mk-dashboard-p .mk-dash { padding: 16px; }
  .mk-dashboard-p .mk-spark { height: 32px; }
  .mk-quad .mk-c { padding: 14px; }
  #last-cta .mk { height: 100%; }
  #last-cta .mk > .mk-c { padding: 18px; }
  .mk-toast { max-width: 200px; font-size: .74em; }
  .mk-toast.t1 { left: -10px; top: 10%; }
  .mk-toast.t2 { left: -10px; bottom: -26px; }
  .mk-toast.t3 { right: -10px; top: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
  .mk-toast { animation: none; }
  .lmq-track { animation: none; }
}
.hero-2 h1 .tw { display: block; } /* About: the typed words get their own line, so the headline never jumps (Nate, 18 Oct) */

/* Big app pictures in a narrow space (small phones): 2 stats, and the pipeline cards show names without the letter badge (26 Oct) */
@container (max-width: 290px) {
  .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-stat:nth-child(3) { display: none; }
  .mk-card .mk-ini { display: none; }
}
/* Small phones, 320 to 359px wide (Nate, 26 Oct: no overflow on any device). Less space around things, same text size */
@media (max-width: 359px) {
  .tiles.swipe { grid-auto-columns: 92%; }
  .tile { padding: 22px 16px; }
  .tile-mock { padding: 10px; }
  .post-cta-card { padding: 22px 16px; }
  .end-cta { padding-inline: 16px; }
}
