/* Surreal: site-wide styles (brand colors from the brief).
   Styles are moving here from inline style="" attributes, one section at a time,
   so the phone layout can be tuned with media queries. */

/* ---------- Brand colors ----------
   Used everywhere via var(--c-…). These are the ORIGINAL colors.
   Admin → Colors can override them: the Worker (src/lib/site.js) adds a small
   <style>:root{…}</style> with the saved colors. Keep this list in sync with
   the "theme" module in src/lib/modules.js. */
:root {
  --c-ink: #1F1A17;        /* main text, outlines */
  --c-button: #C7341F;     /* buttons, red highlights */
  --c-on-dark: #FFFFFF;    /* text on red/dark buttons */
  --c-label: #8E1F57;      /* small labels above headings */
  --c-muted: #5A4F48;      /* grey body text */
  --c-white: #FFFFFF;      /* page and card background */
  --c-cream: #FFF7F2;      /* soft section background */
  --c-pink-soft: #FFE1F1;  /* soft pink backgrounds */
  --c-red: #E8432E;        /* illustrations */
  --c-pink: #F06BC8;
  --c-teal: #2F7F79;
  --c-teal-dark: #1F6560;  /* check marks */
  --c-sky: #A7D3EC;
  --c-mustard: #F2B33D;
  /* soft lines for cards and dividers, made from the ink color (follows Admin → Colors) */
  --c-line: color-mix(in srgb, var(--c-ink) 14%, transparent);
  --c-line-strong: color-mix(in srgb, var(--c-ink) 32%, transparent);
}

/* ---------- Text sizes ---------- */
:root { --eyebrow: 17px; } /* small labels above section titles ("Why Surreal?", "Packages"…) */
@media (max-width: 640px) { :root { --eyebrow: 15px; } }

/* ---------- Spacing settings ----------
   index.html uses these via var(--name). Change a value here and every section follows.
   Desktop values = the original design, so desktop looks exactly the same. */
:root {
  --gutter: 24px;        /* space at the left/right edge of the screen */
  --section-y: 96px;     /* space above/below each section */
  --stack-gap: 48px;     /* space between a section's title block and its content */
  --stack-gap-lg: 56px;  /* "Why Surreal" mascot + text */
  --card-pad: 28px;      /* inside padding of cards */
  --card-pad-lg: 32px;   /* inside padding of package cards */
  --hero-top: 48px;
  --hero-bottom: 72px;
  --lead: 18px;          /* intro paragraph under section titles */
  --lead-hero: 19px;     /* intro paragraph in the hero */
  --mascot-pad: 40px 24px;
  --mascot-max: 322px;
}
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --section-y: 56px;
    --stack-gap: 28px;
    --stack-gap-lg: 28px;
    --card-pad: 22px;
    --card-pad-lg: 24px;
    --hero-top: 24px;
    --hero-bottom: 48px;
    --lead: 17px;
    --lead-hero: 17px;
    --mascot-pad: 24px 20px;
    --mascot-max: 220px;
  }
}

/* Anchor links (#services etc.) stop below the sticky header */
section[id] { scroll-margin-top: 84px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); }
.brand img { display: block; width: 42px; height: 48px; }
.brand span { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; white-space: nowrap; }
.site-nav a:not(.nav-cta):hover { color: var(--c-button); }
.site-nav a[aria-current="page"]:not(.nav-cta) { color: var(--c-button); } /* current page (e.g. Blog) */

.nav-cta, .header-cta {
  text-decoration: none; background: var(--c-button); color: var(--c-on-dark) !important;
  border-radius: 999px; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta { padding: 12px 22px; }
.nav-cta:hover, .header-cta:hover { transform: translateY(-1px); }

/* Phone-only pieces are hidden on desktop */
.header-cta, .nav-toggle { display: none; }

/* ---------- Phone & small tablet ---------- */
@media (max-width: 1099px) {
  .site-header { border-bottom-color: #F0E6DF; }
  .header-inner { padding: 10px 16px; gap: 10px; }
  .brand img { width: 34px; height: 39px; }
  .brand span { font-size: 20px; }

  .header-cta { display: inline-flex; align-items: center; margin-left: auto; padding: 0 16px; min-height: 44px; font-size: 14px; }

  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; cursor: pointer;
    background: var(--c-white); border: 1.5px solid var(--c-ink); border-radius: 999px; color: var(--c-ink);
  }
  /* Three-line "hamburger" icon that turns into an X when open */
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle .bars { position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

  /* Dropdown menu under the header */
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-white); border-bottom: 1px solid var(--c-line);
    padding: 8px 16px 16px; font-size: 18px;
    box-shadow: 0 12px 24px rgba(31, 26, 23, 0.08);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .site-nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid #F0E6DF; }
  .site-nav a:last-of-type { border-bottom: 0; }
  .site-nav .nav-cta { justify-content: center; margin-top: 12px; padding: 0 22px; border-bottom: 0; }
}

/* ---------- Announcement bar (Admin → Modules) ---------- */
.announce { padding: 10px var(--gutter); text-align: center; font-size: 14px; font-weight: 600; line-height: 1.45; }
.announce p { margin: 0 auto; max-width: 1200px; }
/* padding + negative margin = a taller tap area without making the bar taller */
.announce a { display: inline-block; padding: 12px 4px; margin: -12px 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announce--pink { background: var(--c-pink-soft); color: var(--c-label); }
.announce--mustard { background: var(--c-mustard); color: var(--c-ink); }
.announce--teal { background: var(--c-teal-dark); color: var(--c-on-dark); }
.announce--ink { background: var(--c-ink); color: var(--c-cream); }

/* ---------- Card grids (Services, Sample sites, Packages) ----------
   Desktop/tablet: the original grid. Phone: one swipeable row. */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: stretch; }
.swipe-hint { display: none; }

/* Service group cards (Services section) */
.svc-card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 20px; padding: var(--card-pad); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.svc-card svg { margin-bottom: 4px; }
.svc-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Tools we use, as small tags (instead of a long list: details are in Packages) */
.svc-tools { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.svc-tools li { padding: 4px 10px; border: 1px solid var(--c-line-strong); border-radius: 999px; font: 500 12.5px/1.4 'JetBrains Mono', monospace; color: #3D3430; }
.svc-card h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.svc-lead { margin: 0; color: var(--c-muted); }
.svc-list { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: #3D3430; }
.svc-list li { position: relative; padding-left: 26px; }
.svc-list li::before { /* teal check mark, same as the hero list */
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 3px solid var(--c-teal); border-bottom: 3px solid var(--c-teal); transform: rotate(-45deg);
}

.svc-link { margin-top: auto; padding-top: 12px; align-self: center; color: var(--c-button); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.svc-link::after { content: "\2192"; transition: translate .2s ease; }
.svc-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.svc-link:hover::after { translate: 4px 0; }
.svc-more { margin: 0; color: var(--c-muted); text-align: center; }

/* Packages (prices) */
.pkg { position: relative; background: var(--c-white); border: 1px solid var(--c-line); border-radius: 24px; padding: var(--card-pad-lg); display: flex; flex-direction: column; gap: 18px; }
.pkg--featured { border: 2px solid var(--c-button); }
.pkg-head { display: flex; flex-direction: column; gap: 6px; }
.pkg-head h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 26px; }
.pkg-head p { margin: 0; color: var(--c-muted); }
.pkg-head .pkg-price { margin: 6px 0 4px; color: var(--c-ink); }
/* "Recommended" = a tab on the card's top edge, like a folder tab, so it doesn't push the text down */
.pkg-head .pkg-badge {
  position: absolute; left: 24px; bottom: calc(100% + 3px); margin: 0;
  background: var(--c-button); color: var(--c-on-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px 5px; border-radius: 12px 12px 0 0;
}
.pkg-price { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(40px, 4.2vw, 54px); line-height: 1; letter-spacing: -0.03em; }
.pkg-amount { white-space: nowrap; } /* "From $1,200" stays on one line, so the cards line up */
.pkg-price .pkg-note { display: block; margin-top: 4px; line-height: 1.4; font-family: Inter, sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--c-muted); }
.pkg-btn { margin-top: auto; text-align: center; text-decoration: none; border: 1.5px solid var(--c-ink); color: var(--c-ink); padding: 14px 24px; border-radius: 999px; font-weight: 600; }
.pkg--featured .pkg-btn { background: var(--c-button); border-color: var(--c-button); color: var(--c-on-dark); }

/* Package art: small flat drawings above each package name (Starter = sachet, Business = paper bag, Store = box) */
.pkg-art { display: block; width: 104px; height: auto; margin: 0 auto 6px; transition: rotate .3s ease; }
.pkg-head { text-align: center; align-items: center; }
.pkg-head .pkg-badge { left: 50%; translate: -50% 0; }
.pkg:hover .pkg-art { rotate: -6deg; }
@media (prefers-reduced-motion: reduce) { .pkg-art { transition: none; } }

/* Custom package = mystery box */
.custom-pkg .mystery-box { flex: none; width: 160px; height: auto; overflow: visible; }
.mystery-box .mb-lid { transform-box: fill-box; transform-origin: 0% 100%; animation: mb-peek 4s ease-in-out 1s infinite; }
@keyframes mb-peek { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-10px) rotate(-8deg); } 86% { transform: translateY(-4px) rotate(-3deg); } }
.custom-pkg .custom-tag { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-label); }
@media (prefers-reduced-motion: reduce) { .mystery-box .mb-lid { animation: none; } }

/* Pricing groups: 1 Websites · 2 SEO and blog · 3 Automation and GHL */
.price-group { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; border-top: 1px solid var(--c-line); scroll-margin-top: 90px; }
.price-group .swipe-hint { margin-bottom: -12px; }
.group-head { display: flex; gap: 16px; align-items: flex-start; }
.group-num { font: 600 13px/1 'JetBrains Mono', monospace; letter-spacing: .04em; }
.group-num { --pj: var(--c-button); flex: none; width: 36px; margin: 6px 0 0; padding-top: 8px; border-top: 2px solid var(--pj); }
#pricing-seo .group-num { --pj: var(--c-teal); }
#pricing-automation .group-num { --pj: var(--c-label); }
.group-head .group-num { color: var(--pj); }
.group-head > div { display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.group-head h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.group-head p { margin: 0; color: var(--c-muted); }


/* Single offers (SEO plan, Add automation, GHL All-in-One) */
.offer { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 24px; padding: var(--card-pad-lg); display: flex; flex-direction: column; gap: 18px; }
.offer-head { display: flex; flex-direction: column; gap: 6px; }
.offer-head h4 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 26px; }
.offer-head .pkg-price { margin: 6px 0 4px; }
.offer .svc-list { margin: 0; }
.offer-tag { align-self: flex-start; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-label); }
#pricing-seo .offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 48px; align-items: center; }
#pricing-seo .offer .pkg-btn { align-self: flex-start; margin-top: 10px; }
.offer-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.offer--teal { border: 1.5px solid var(--c-teal); }
.offer--teal .offer-tag { color: var(--c-teal-dark); }
.offer--teal .pkg-btn { background: var(--c-teal); border-color: var(--c-teal); color: var(--c-on-dark); }

/* Care plan = small optional add-on line under the website packages */
.addon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 20px 24px; border: 1px dashed var(--c-line-strong); border-radius: 18px; }
.addon > div { flex: 1 1 380px; display: flex; flex-direction: column; gap: 4px; }
.addon h4 { margin: 0; font-size: 18px; font-weight: 600; }
.addon-price { color: var(--c-button); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; }
.addon p { margin: 0; color: var(--c-muted); }
.addon .addon-tag { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-label); }
.btn-line { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1.5px solid var(--c-ink); border-radius: 999px; color: var(--c-ink); text-decoration: none; font-weight: 600; }
.btn-line:hover { background: var(--c-cream); }

/* Sample sites cards (drawing = <symbol id="demo-mock">, colored by --demo-bg / --demo-accent) */
.demo-card { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.demo-shot { border-bottom: 1px solid var(--c-line); background: #F1EEEB; container-type: inline-size; }
/* Each demo site has its own brand: heading/logo font (--m-font, --m-w) and button shape (--m-r).
   Fonts load from the "Demo site fonts" link in index.html (only the letters used). */
.mf--law    { --m-font: 'Playfair Display', Georgia, serif; --m-body: 'Lora', Georgia, serif; --m-w: 700; --m-r: 2px; }
.mf--realty { --m-font: 'DM Serif Display', Georgia, serif; --m-body: 'Outfit', Inter, sans-serif; --m-w: 400; --m-r: 99em; }
.mf--plumb  { --m-font: 'Oswald', 'Arial Narrow', sans-serif; --m-body: 'Barlow', Inter, sans-serif; --m-w: 600; --m-r: .3em; }
.mf--shop   { --m-font: 'Fraunces', Georgia, serif; --m-body: 'DM Sans', Inter, sans-serif; --m-w: 600; --m-r: 99em; }
.mf--barber { --m-font: 'Bebas Neue', Impact, sans-serif; --m-body: 'Barlow', Inter, sans-serif; --m-w: 400; --m-r: 0; }
.mf--salon  { --m-font: 'Cormorant Garamond', Georgia, serif; --m-body: 'Lato', Inter, sans-serif; --m-w: 700; --m-r: 99em; }
.mf--credit { --m-font: 'Poppins', Inter, sans-serif; --m-body: 'Poppins', Inter, sans-serif; --m-w: 700; --m-r: .7em; }
.mf--dental { --m-font: 'Nunito', Inter, sans-serif; --m-body: 'Nunito', Inter, sans-serif; --m-w: 800; --m-r: 99em; }
.mf--cafe   { --m-font: 'Pacifico', cursive; --m-body: 'Quicksand', Inter, sans-serif; --m-w: 400; --m-r: .9em; }
.mf--church { --m-font: 'Merriweather', Georgia, serif; --m-body: 'Lora', Georgia, serif; --m-w: 700; --m-r: .4em; }
.mf--acct   { --m-font: 'IBM Plex Sans', Inter, sans-serif; --m-body: 'IBM Plex Sans', Inter, sans-serif; --m-w: 600; --m-r: .25em; }
.mf--school { --m-font: 'Baloo 2', 'Comic Sans MS', sans-serif; --m-body: 'Nunito', Inter, sans-serif; --m-w: 700; --m-r: 99em; }
.mf--build  { --m-font: 'Archivo Black', Impact, sans-serif; --m-body: 'Barlow', Inter, sans-serif; --m-w: 400; --m-r: 0; }
.mini[class*="mf--"], .mphone-mock { font-family: var(--m-body); }
.mini[class*="mf--"] .mini-nav b, .mini[class*="mf--"] .mb strong, .mphone-mock .mph-nav b, .mphone-mock .mph-body strong {
  font-family: var(--m-font); font-weight: var(--m-w); letter-spacing: 0;
}
.mf--barber .mb strong, .mf--barber .mini-nav b, .mphone-mock.mf--barber strong, .mphone-mock.mf--barber .mph-nav b { letter-spacing: .03em; }
[class*="mf--"] .mini-nav em, [class*="mf--"] .mbtn, .mph-btn { border-radius: var(--m-r, .4em); }

/* Phone mockup: a real mobile screen of the same site. Sits low on the desktop preview, about half of it
   hanging below; the card text wraps around it (.demo-body::before). Sizes follow the card width (cqw). */
.demo-card { container-type: inline-size; position: relative; }
.mphone-mock {
  position: absolute; right: 5cqw; top: 40cqw; width: 24cqw; aspect-ratio: 9 / 18.5; z-index: 2;
  padding: 1cqw; border-radius: 4cqw; background: #1F1A17;
  box-shadow: 0 2.2cqw 5cqw rgba(31, 26, 23, .3), 0 0 0 .3cqw rgba(255, 255, 255, .3) inset;
  font-family: Inter, system-ui, sans-serif; font-size: 1.45cqw; line-height: 1.25;
}
.mphone-mock::before { content: ""; position: absolute; top: 1.9cqw; left: 50%; width: 28%; height: 1.4cqw; translate: -50% 0; background: #1F1A17; border-radius: 99em; z-index: 1; }
.demo-body::before { content: ""; float: right; width: 34cqw; height: calc(26.5cqw - 20px); margin-right: calc(var(--card-pad) * -1 + 1px); }
.mph-screen { height: 100%; border-radius: 3.1cqw; overflow: hidden; display: flex; flex-direction: column; background: var(--m-bg); color: var(--m-ink); }
.mph-status { display: flex; justify-content: space-between; align-items: center; padding: .9em 1.1em .2em; font-size: .78em; font-weight: 700; }
.mph-status i { width: 2.2em; height: .9em; border-radius: .25em; border: 1.5px solid currentColor; opacity: .7; background: linear-gradient(currentColor 0 0) left / 65% 100% no-repeat; }
.mph-nav { display: flex; align-items: center; justify-content: space-between; gap: .4em; padding: .55em .9em; border-bottom: 1px solid color-mix(in srgb, var(--m-ink) 10%, transparent); }
.mph-nav b { font-size: 1.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mph-burger { flex: none; width: 1.2em; height: .85em; background: linear-gradient(currentColor 0 0) top / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) bottom / 100% 2px no-repeat; }
.mph-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .45em; padding: .65em .8em; overflow: hidden; }
.mph-hero img { display: block; width: 100%; height: auto; aspect-ratio: 2.3 / 1; object-fit: cover; border-radius: .55em; }
.mph-body .mk { font-size: .72em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--m-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mph-body strong { flex: none; font-size: 1.3em; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mph-row { flex: none; display: flex; align-items: center; gap: .55em; padding: .5em .6em; border-radius: .55em; background: color-mix(in srgb, var(--m-ink) 5%, var(--m-bg)); font-size: .85em; }
.mph-row img { width: 2.6em; height: 2.1em; object-fit: cover; border-radius: .35em; flex: none; }
.mph-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mph-row small { font-weight: 400; opacity: .7; font-size: .85em; }
.mph-row b { flex: none; font-weight: 700; color: var(--m-accent); }
.mph-h { flex: none; margin-top: .35em; font-size: .9em; font-weight: 700; font-family: var(--m-font); }
.mph-review { flex: none; padding: .55em .65em; border-radius: .55em; border: 1px solid color-mix(in srgb, var(--m-ink) 12%, transparent); font-size: .8em; }
.mph-review i { font-style: normal; color: #F2B33D; letter-spacing: .08em; font-size: .9em; }
.mph-review p { margin: .2em 0 .15em; font-weight: 600; line-height: 1.25; }
.mph-review small { opacity: .65; }
.mph-chips { flex: none; display: flex; flex-wrap: wrap; gap: .3em; }
.mph-chips span { font-size: .72em; font-weight: 600; padding: .3em .6em; border-radius: 99em; border: 1px solid color-mix(in srgb, var(--m-ink) 20%, transparent); }
.mph-bar { flex: none; padding: .55em .8em .9em; border-top: 1px solid color-mix(in srgb, var(--m-ink) 10%, transparent); background: var(--m-bg); }
.mph-btn { display: block; text-align: center; padding: .65em .5em; background: var(--m-accent); color: #FFFFFF; font-weight: 700; font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini--build .mph-btn { color: var(--m-ink); }
/* A small, realistic website preview (pure HTML/CSS). Each card sets --m-bg / --m-ink / --m-accent / --m-photo. */
.mini { aspect-ratio: 16 / 10.5; overflow: hidden; display: flex; flex-direction: column; background: var(--m-bg); color: var(--m-ink); font-family: Inter, system-ui, sans-serif; font-size: 2.35cqw; line-height: 1.3; }
.mini--serif strong, .mini--serif .mini-nav b { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -0.01em; }
.mini--display strong, .mini--display .mini-nav b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.mini-bar { display: flex; align-items: center; gap: .45em; padding: .6em .9em; background: #E9E5E1; color: #6B625C; font-size: .8em; }
.mini-bar i { width: .75em; height: .75em; border-radius: 50%; background: #CFC6BE; }
.mini-bar i:first-child { background: #F08A7E; } .mini-bar i:nth-child(2) { background: #F2C46B; } .mini-bar i:nth-child(3) { background: #8BCB8B; }
.mini-bar span { margin-left: .8em; flex: 1; background: #FFFFFF; border-radius: 99em; padding: .2em .9em; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-nav { display: flex; align-items: center; gap: 1.1em; padding: .9em 1.4em; font-size: .85em; border-bottom: 1px solid color-mix(in srgb, var(--m-ink) 10%, transparent); white-space: nowrap; }
.mini-nav b { font-size: 1.25em; margin-right: auto; font-weight: 800; }
.mini-nav span { opacity: .75; }
.mini-nav em { font-style: normal; font-weight: 600; background: var(--m-accent); color: #FFFFFF; padding: .45em .9em; border-radius: .4em; }
/* Page body under the mini nav: every business has its OWN layout (.mb--<type>) and a small flat drawing (inline SVG) */
.mb { flex: 1; min-height: 0; overflow: hidden; padding: 1.2em 1.4em; display: grid; gap: 1em; }
.mb svg { display: block; width: 100%; height: 100%; }
/* Free CC0 stock photos (StockSnap via Openverse), shrunk to 360–600px JPEGs in /images/demos (~30 KB each) */
.mb img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: .6em; background: color-mix(in srgb, var(--m-ink) 8%, var(--m-bg)); }
.mshot { position: relative; height: 100%; min-height: 0; border-radius: .7em; overflow: hidden; }
.mshot img { border-radius: 0; }
.mshot > div { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .4em; padding: 2.5em .9em .9em; color: #FFFFFF; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.mb strong { display: block; font-size: 1.7em; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.mini--serif .mb strong { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -0.01em; }
.mini--display .mb strong { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.mk { font-size: .72em; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--m-accent); }
.mp { margin: 0; font-size: .84em; opacity: .72; }
.mcol { display: flex; flex-direction: column; justify-content: center; gap: .5em; min-width: 0; }
.mbtns { display: flex; gap: .5em; }
.mbtn { align-self: flex-start; background: var(--m-ink); color: var(--m-bg); font-weight: 600; font-size: .8em; padding: .55em 1em; border-radius: .4em; white-space: nowrap; }
.mbtn--a { background: var(--m-accent); color: #FFFFFF; }
.mbtn--o { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.mcard { background: color-mix(in srgb, var(--m-ink) 4%, var(--m-bg)); border: 1px solid color-mix(in srgb, var(--m-ink) 10%, transparent); border-radius: .6em; padding: .6em .7em; min-width: 0; }
.mrow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .6em; min-height: 0; }
.mart { border-radius: .7em; overflow: hidden; background: color-mix(in srgb, var(--m-accent) 16%, var(--m-bg)); min-height: 0; height: 100%; }
.mban { border-radius: .7em; overflow: hidden; background: color-mix(in srgb, var(--m-accent) 16%, var(--m-bg)); display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: .8em; padding: .8em 1em; min-height: 0; }
.mban strong { font-size: 1.4em; }
.mprices { display: flex; flex-direction: column; gap: .45em; font-size: .82em; }
.mprices div { display: flex; align-items: baseline; gap: .4em; white-space: nowrap; }
.mprices i { flex: 1; border-bottom: 1px dotted currentColor; opacity: .35; }
.mprices b { font-weight: 700; }
/* drawing colors follow each card's own colors */
.fa { fill: var(--m-accent); } .fi { fill: var(--m-ink); } .fw { fill: #FFFFFF; }
.fs { fill: color-mix(in srgb, var(--m-accent) 24%, var(--m-bg)); } .fk { fill: color-mix(in srgb, var(--m-ink) 14%, var(--m-bg)); }
/* 1. Law: classic centered page + practice-area tiles */
.mb--law { grid-template-rows: 1fr auto; text-align: center; }
.mb--law .mcol { align-items: center; }
.mb--law strong { max-width: 15em; }
.mb--law .mbtn { align-self: center; }
.mtile { display: flex; flex-direction: column; align-items: center; gap: .3em; font-size: .78em; font-weight: 600; padding: .7em .4em; }
.mtile svg { width: 2.2em; height: 2.2em; }
/* 2. Real estate: search banner + listing cards */
.mb--realty { grid-template-rows: 1.15fr 1fr; gap: .8em; padding-top: 1em; }
.msearch { display: flex; align-items: center; gap: .5em; background: #FFFFFF; color: #6B625C; border-radius: .45em; padding: .25em .25em .25em .7em; font-size: .78em; box-shadow: 0 .2em .8em rgba(0,0,0,.08); }
.msearch span { flex: 1; white-space: nowrap; }
.msearch em { font-style: normal; background: var(--m-accent); color: #FFFFFF; font-weight: 600; padding: .45em .8em; border-radius: .35em; }
.mlist { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.mlist svg, .mlist img { flex: 1; min-height: 0; border-radius: 0; }
.mlist div { padding: .35em .6em .45em; }
.mlist b { display: block; font-size: .92em; }
.mlist small, .mev small, .mstats small { display: block; font-size: .68em; opacity: .7; white-space: nowrap; }
/* 3. Plumbing: dark emergency page, big phone number */
.mb--plumb { background: var(--m-ink); color: #FFFFFF; grid-template-columns: 1.45fr 1fr; align-items: center; }
.mphone { font-size: 1.35em; font-weight: 800; color: var(--m-accent); }
.mbadges { display: flex; flex-wrap: wrap; gap: .4em; }
.mbadges span { font-size: .68em; font-weight: 600; padding: .3em .65em; border-radius: 99em; background: rgba(255,255,255,.12); }
/* 4. Shop: product grid */
.mb--shop { grid-template-rows: auto 1fr; }
.mhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; }
.mhead strong { font-size: 1.35em; }
.mhead > span { font-size: .78em; font-weight: 600; color: var(--m-accent); white-space: nowrap; }
.mprod { display: flex; flex-direction: column; gap: .25em; min-height: 0; font-size: .78em; }
.mprod svg, .mprod img { flex: 1; min-height: 0; border-radius: .5em; }
.mprod div { display: flex; justify-content: space-between; gap: .3em; white-space: nowrap; }
/* 5. Barber: barber pole + price list */
.mb--barber { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 1.4em; }
.mpole { display: grid; grid-template-columns: 1.5em 1fr; gap: .9em; align-items: center; }
.mpole svg { height: 9em; }
.mb--barber strong { font-size: 1.8em; text-transform: uppercase; }
/* 6. Salon: booking calendar */
.mb--salon { grid-template-columns: .8fr 1.2fr; }
.mb--salon strong { font-size: 1.25em; }
.mbook { display: flex; flex-direction: column; gap: .45em; }
.msel { display: flex; justify-content: space-between; font-size: .74em; background: #FFFFFF; color: #1F1A17; border: 1px solid color-mix(in srgb, var(--m-ink) 15%, transparent); border-radius: .35em; padding: .35em .6em; }
.mslots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35em; }
.mslots span { font-size: .7em; text-align: center; padding: .35em 0; border-radius: .35em; border: 1px solid color-mix(in srgb, var(--m-ink) 14%, transparent); white-space: nowrap; }
.mslots .on { background: var(--m-accent); border-color: transparent; color: #FFFFFF; font-weight: 600; }
.mbook .mbtn { align-self: stretch; text-align: center; }
/* 7. Credit repair: score gauge + 3 steps */
.mb--credit { grid-template-columns: 1.2fr 1fr; align-items: center; }
.mgauge { text-align: center; padding: .8em .8em .7em; }
.mgauge svg { height: 5.2em; }
.mgauge b { display: block; font-size: 1.7em; line-height: 1; margin-top: -1.3em; }
.mgauge small { display: block; font-size: .68em; color: var(--m-accent); font-weight: 600; margin-top: .4em; }
.msteps { display: flex; gap: .7em; font-size: .7em; white-space: nowrap; }
.msteps span { display: flex; align-items: center; gap: .35em; }
.msteps i { font-style: normal; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--m-accent); color: #FFFFFF; display: grid; place-items: center; font-weight: 700; }
/* 8. Dental: drawing left, offer card */
.mb--dental { grid-template-columns: 1fr 1.3fr; align-items: center; }
.moffer { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.moffer small { display: block; font-size: .68em; opacity: .7; }
.moffer b { font-size: .9em; white-space: nowrap; }
/* 9. Café: banner + two-column menu */
.mb--cafe { grid-template-rows: auto 1fr; gap: .8em; padding-top: 1em; }
.mb--cafe .mban { grid-template-columns: 1fr 1.15fr; padding: .7em 1em; }
.mb--cafe .mban img { height: 5.4em; }
.mmenu { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em; align-content: center; }
.mmenu .mprices { font-size: .86em; gap: .5em; }
/* 10. Church: banner + this week's events */
.mb--church { grid-template-rows: 1.2fr 1fr; gap: .8em; padding-top: 1em; }
.mb--church .mban img { height: 8.4em; }
.mev { display: flex; align-items: center; gap: .55em; }
.mev b { display: block; font-size: .78em; white-space: nowrap; }
.mdate { flex: none; background: var(--m-accent); color: #FFFFFF; border-radius: .4em; padding: .35em .5em; text-align: center; font-size: .62em; font-weight: 700; line-height: 1.1; }
.mdate em { display: block; font-style: normal; font-size: 1.5em; }
/* 11. Accounting: little dashboard */
.mb--acct { grid-template-columns: 1fr 1.15fr; align-items: center; }
.mdash { display: flex; flex-direction: column; gap: .35em; padding: .8em; }
.mdash small { font-size: .68em; opacity: .7; }
.mdash b { font-size: 1.4em; line-height: 1; }
.mdash b span, .mpill { font-size: .5em; font-weight: 700; color: #FFFFFF; background: var(--m-accent); border-radius: 99em; padding: .2em .55em; vertical-align: middle; }
.mdash svg { height: 4.6em; }
.mdash .moffer { font-size: .9em; border-top: 1px solid color-mix(in srgb, var(--m-ink) 10%, transparent); padding-top: .45em; }
.mpill { font-size: .7em; }
/* 12. School: building drawing + quick facts */
.mb--school { grid-template-columns: 1.05fr 1fr; align-items: center; }
.mstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.mstats .mcard { padding: .45em .5em; }
.mstats b { display: block; font-size: 1.05em; }
/* 13. Construction: crane drawing + services + free estimate form. Safety-yellow accent, so text on it is dark */
.mb--build { grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr auto; }
.mb--build .mban { grid-template-columns: 1.1fr 1fr; background: var(--m-ink); color: #FFFFFF; }
.mb--build .mban img { height: 8.4em; }
.mb--build .mtile { padding: .5em .3em; font-size: .72em; }
.mb--build .mban { grid-column: 1; grid-row: 1; }
.mb--build .mrow { grid-column: 1; grid-row: 2; }
.mest { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: .45em; padding: .8em; }
.mest b { font-size: .95em; }
.mest .msel { color: #8A817A; }
.mest .mbtn { align-self: stretch; text-align: center; }
.mini--build .mini-nav em, .mini--build .mbtn--a { color: var(--m-ink); }
.demo-body { padding: 20px var(--card-pad) var(--card-pad); display: block; flex: 1; } /* block (not flex) so the text can wrap around the phone */
.demo-body > * + * { margin-top: 8px; }
.demo-type { margin: 0; font-size: 13px; font-weight: 600; color: var(--c-label); }
.demo-body h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.demo-desc { margin: 0; color: var(--c-muted); }
.demo-url { margin: 2px 0 8px; color: var(--c-muted); font-size: 14px; }
.demo-soon { display: inline-block; background: #FDF0D2; border: 0; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }

/* "Perfect for" industry chips */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.chips p { margin: 0 8px 0 0; font-weight: 600; }
.chips span { border: 1px solid var(--c-line-strong); border-radius: 999px; padding: 8px 16px; font-size: 15px; }

/* Custom package banner (under the packages) */
/* Platform choice: custom-coded vs WordPress (pros + "good to know") */
/* Homepage: one line + link to the full comparison page (/custom-vs-wordpress) */
.platform-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.platform-pick p { margin: 0; color: var(--c-muted); }
.platform-pick strong { color: var(--c-ink); font-weight: 700; }
.platform-pick .svc-link { padding-top: 0; }
.platforms { display: flex; flex-direction: column; gap: 16px; }
.platforms-head { display: flex; flex-direction: column; gap: 6px; max-width: 760px; }
.platforms-head h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 24px; }
.platforms-head p { margin: 0; color: var(--c-muted); }
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.platform { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 20px; padding: var(--card-pad); display: flex; flex-direction: column; gap: 10px; }
.platform h4 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; }
.platform-tag { align-self: flex-start; margin: 0; background: var(--c-cream); border: 0; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.platform-lead { margin: 0; color: var(--c-muted); }
.platform-sub { margin: 6px 0 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-label); }
.platform .svc-list { margin: 0; }
.note-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: #3D3430; }
.note-list li { position: relative; padding-left: 26px; }
.note-list li::before { /* small "i" badge = good to know, not a warning */
  content: "i"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 999px;
  background: var(--c-mustard); color: var(--c-ink); font: 700 12px/18px Inter, sans-serif; text-align: center;
}

/* Free website audit banner */
.audit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: var(--c-cream); border: 1px solid var(--c-line); border-radius: 24px; padding: var(--card-pad-lg); }
.audit > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.audit h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 24px; }
.audit p { margin: 0; color: #3D3430; }
.audit .audit-tag { align-self: flex-start; background: var(--c-mustard); color: var(--c-ink); font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.audit .btn { text-decoration: none; background: var(--c-button); color: var(--c-on-dark); padding: 14px 28px; border-radius: 999px; font-weight: 600; border: 0; }

.custom-pkg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; background: var(--c-pink-soft); border: 1.5px dashed color-mix(in srgb, var(--c-label) 45%, transparent); border-radius: 24px; padding: var(--card-pad-lg); }
.custom-pkg > div { flex: 1 1 420px; display: flex; flex-direction: column; gap: 6px; }
.custom-pkg h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 26px; }
.custom-pkg p { margin: 0; color: #3D3430; }
.custom-pkg .btn { text-decoration: none; background: var(--c-ink); color: var(--c-on-dark); padding: 14px 28px; border-radius: 999px; font-weight: 600; border: 0; }

@media (max-width: 640px) {
  .swipe-row {
    display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    /* let the row run edge to edge, while cards still line up with the text */
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px;
    scrollbar-width: none;
  }
  .swipe-row::-webkit-scrollbar { display: none; }
  /* 84% width, so the next card peeks in and people know to swipe */
  .swipe-row > * { flex: 0 0 84%; scroll-snap-align: start; box-sizing: border-box; }
  .swipe-row:focus-visible { outline-offset: -3px; }
  #pricing .swipe-row { padding-top: 36px; } /* room for the Recommended tab */
  .custom-pkg .mystery-box { width: 128px; }

  .swipe-hint {
    display: flex; justify-content: flex-end; align-items: center; gap: 6px;
    margin: 0 0 calc(12px - var(--stack-gap)); /* sit close to the cards */
    font-size: 13px; font-weight: 600; color: var(--c-label);
  }
  .swipe-hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
}
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ---------- Carousel (Demo sites) ----------
   Without JS: one swipeable row (3 cards desktop, 2 tablet, 1 + peek phone).
   With JS (.js): a turning "coverflow". main.js places every card with a transform:
   the front card is biggest, the others get smaller, turn away and fade toward the sides. */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 8px 14px 2px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; box-sizing: border-box; }
.carousel-track:focus-visible { outline: 3px solid var(--c-label); outline-offset: 2px; }
@media (max-width: 900px) { .carousel-track > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) {
  .carousel-track {
    gap: 14px; margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
  }
  .carousel-track > * { flex-basis: 84%; }
}

/* Coverflow (only when main.js is running) */
.js #work { overflow-x: clip; } /* side cards may stick out past the page edge; never a sideways scroll */
.js .carousel-track.is-coverflow {
  display: block; position: relative; overflow: visible; padding: 0; margin: 0;
  height: var(--cf-h, 520px); perspective: 1600px; touch-action: pan-y; scroll-snap-type: none;
}
.js .carousel-track.is-coverflow > .demo-card {
  position: absolute; top: 0; left: 50%; width: var(--cf-w, 400px); margin: 0;
  transform-origin: 50% 50%; will-change: transform, opacity;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .6s ease, box-shadow .3s ease;
  cursor: pointer; user-select: none;
}
.js .carousel-track.is-coverflow > .demo-card::after { /* tint instead of transparency, so cards behind never show through */
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c-cream);
  opacity: var(--dim, 0); transition: opacity .6s ease; pointer-events: none;
}
.js .carousel-track.is-coverflow > .demo-card.is-front { cursor: default; box-shadow: 0 24px 50px rgba(31, 26, 23, 0.14); }

/* Controls sit ON the carousel: arrows on the left and right, pause/play at the top right */
.carousel-controls { display: none; }
.js .carousel-controls { display: block; }
.carousel-btn {
  position: absolute; z-index: 200; top: calc(var(--cf-h, 520px) * .32);
  width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--c-line); background: color-mix(in srgb, var(--c-white) 88%, transparent);
  color: var(--c-ink); font-size: 20px; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 26, 23, 0.12); backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}
.carousel-btn[data-prev] { left: max(0px, calc(50% - var(--cf-w, 400px) / 2 - 64px)); }
.carousel-btn[data-next] { right: max(0px, calc(50% - var(--cf-w, 400px) / 2 - 64px)); }
.carousel-btn[data-toggle] { top: 10px; right: 0; width: 40px; height: 40px; font-size: 14px; }
.carousel-btn:hover { background: var(--c-white); transform: scale(1.06); }
.carousel-btn:focus-visible { outline: 3px solid var(--c-label); outline-offset: 2px; }
@media (max-width: 640px) {
  .carousel-btn[data-prev] { left: -6px; } .carousel-btn[data-next] { right: -6px; }
  .carousel-btn { width: 42px; height: 42px; font-size: 18px; }
  .carousel-btn[data-toggle] { top: -52px; }
}
.js #work .swipe-hint { display: none; } /* arrows + swipe are obvious enough here */

/* ---------- Animations ----------
   Soft and quick, never in the way. All switched off for "Reduce motion" (see bottom). */

/* 1) Reveal on scroll: main.js adds .visible when an element enters the screen.
      Only hidden when JS is running (.js on <html>), so content can never get stuck invisible. */
/* Reveal moves things with `translate`, hover uses `transform`, so the two never fight. */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; translate: none; }
/* Cards inside a group appear one after another (--d = each card's delay) */
.js .reveal-stagger { opacity: 1; translate: none; }
.js .reveal-stagger > * {
  opacity: 0; translate: 0 18px;
  transition: opacity .55s ease var(--d, 0s), translate .55s cubic-bezier(.2, .7, .2, 1) var(--d, 0s),
              transform .2s ease, box-shadow .2s ease;
}
.js .reveal-stagger.visible > * { opacity: 1; translate: none; }
.reveal-stagger > :nth-child(2) { --d: .08s; }
.reveal-stagger > :nth-child(3) { --d: .16s; }
.reveal-stagger > :nth-child(4) { --d: .24s; }
.reveal-stagger > :nth-child(5) { --d: .32s; }
.reveal-stagger > :nth-child(6) { --d: .40s; }
.reveal-stagger > :nth-child(7) { --d: .48s; }
.reveal-stagger > :nth-child(8) { --d: .56s; }
.reveal-stagger > :nth-child(9) { --d: .64s; }
.reveal-stagger > :nth-child(10) { --d: .72s; }
.reveal-stagger > :nth-child(11) { --d: .80s; }
.reveal-stagger > :nth-child(12) { --d: .88s; }

/* 2) Hero entrance on page load (pure CSS, no JS needed) */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
#top > div:first-child > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
#top > div:first-child > :nth-child(2) { animation-delay: .08s; }
#top > div:first-child > :nth-child(3) { animation-delay: .16s; }
#top > div:first-child > :nth-child(4) { animation-delay: .24s; }
#top > div:first-child > :nth-child(5) { animation-delay: .32s; }
#top > div:last-child { animation: rise .9s .2s cubic-bezier(.2, .7, .2, 1) both; }

/* 3) Gentle floating: hero illustration, mascot, and a twinkling sparkle */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.25) rotate(20deg); opacity: .75; } }
#top svg[role="img"] { animation: float 6s ease-in-out 6s infinite; }

/* Puzzle hero: each piece flies in from its own spot (--x, --y, --r) and clicks into place,
   one after another (--d). Then the owl lands on top. Pure CSS; with reduced motion it starts finished. */
.puzzle-hero { overflow: visible; }
.pz, .pz-owl, .pz-awning, .pz-sign { transform-box: fill-box; transform-origin: center; }
.pz { animation: pz-snap 1.3s cubic-bezier(.34, 1.3, .64, 1) calc(.5s + var(--d) * 2.5) both; } /* one piece every .35 s */
.pz-awning { animation: pz-drop .8s cubic-bezier(.34, 1.4, .64, 1) 3.7s both; }
.pz-sign { animation: pz-drop .8s cubic-bezier(.34, 1.5, .64, 1) 4.3s both; }
.pz-board { transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(-2deg); animation: pz-sway 2.2s ease-out 5.1s both; }
.pz-owl { animation: pz-owl .9s cubic-bezier(.34, 1.5, .64, 1) 4.9s both; }
.pz-spark { animation: rise .7s ease 5.3s both; }
.pz-slot { animation: pz-slot .6s ease 3.4s forwards; }
@keyframes pz-snap {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.9); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes pz-owl {
  0% { opacity: 0; transform: translateY(-40px) scale(.6); }
  100% { opacity: 1; transform: none; }
}
@keyframes pz-slot { to { opacity: 0; } }
/* Round lit sign: the white face switches on (quick flicker) after the sign lands, then keeps a soft glow */
.sign-face { filter: drop-shadow(0 0 6px rgba(255, 236, 190, .9)) drop-shadow(0 0 14px rgba(242, 179, 61, .45)); animation: sign-on 1s linear 5.1s both; }
@keyframes sign-on {
  0% { fill: #D9D2CB; filter: none; } 18% { fill: #FFFFFF; filter: drop-shadow(0 0 6px rgba(255, 236, 190, .9)); }
  26% { fill: #D9D2CB; filter: none; } 40%, 100% { fill: #FFFFFF; filter: drop-shadow(0 0 6px rgba(255, 236, 190, .9)) drop-shadow(0 0 14px rgba(242, 179, 61, .45)); }
}
@keyframes pz-sway { 0% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 50% { transform: rotate(2deg); } 75% { transform: rotate(-3deg); } 100% { transform: rotate(-2deg); } }
@keyframes pz-drop { 0% { opacity: 0; transform: translateY(-50px) scaleY(.8); } 100% { opacity: 1; transform: none; } }
#why img { animation: float 5s ease-in-out infinite; }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }

/* 4) Cards lift and buttons respond (hover only on devices with a mouse) */
.card-grid > article, .carousel-track > article, #how ol > li { transition: transform .2s ease, box-shadow .2s ease; }
.js .carousel-track.is-coverflow > article:hover { box-shadow: 0 24px 50px rgba(31, 26, 23, 0.14); }
.btn { display: inline-block; transition: transform .15s ease, box-shadow .15s ease; }
@media (hover: hover) {
  .card-grid > article:hover, .carousel-track > article:hover, #how ol > li:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31, 26, 23, 0.08); }
  .btn:hover { transform: translateY(-1px); }
}
.btn:active, .nav-cta:active, .header-cta:active, .submit-btn:active { transform: scale(.97); box-shadow: none; }

/* ---------- Tap targets ----------
   On touchscreens (or narrow screens), small text links get a 44px-tall touch area
   (Apple/Google guideline). Text size stays the same; only the tappable area grows. */
@media (pointer: coarse), (max-width: 640px) {
  .brand { min-height: 44px; }
  .contact-list a,
  footer a { display: inline-flex; align-items: center; min-height: 44px; }
  footer a { align-self: flex-start; min-width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-hint span { animation: none; }
  .carousel-track { scroll-behavior: auto; }
  .js .carousel-track.is-coverflow > .demo-card { transition: none !important; }
  .owl-logo { animation: none !important; } /* the logo stays still; #preloader keeps its auto-hide safety net */
  .js .reveal, .js .reveal-stagger > * { opacity: 1 !important; translate: none !important; transition: none !important; }
  #top > div > *, #top > div:last-child, #top svg[role="img"], #why img, .twinkle,
  .pz, .pz-owl, .pz-spark, .pz-awning, .pz-sign, .pz-board, .sign-face { animation: none !important; }
  .pz-slot { display: none; }
  .card-grid > article, .carousel-track > article, #how ol > li, .btn { transition: none !important; }
  .card-grid > article:hover, .carousel-track > article:hover, #how ol > li:hover, .btn:hover, .btn:active { transform: none !important; }
  .site-nav, .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after,
  .nav-cta, .header-cta { transition: none !important; }
  .nav-cta:hover, .header-cta:hover { transform: none; }
}

/* Section titles: the second part is in the button color, like the hero ("…, it's surreal.") */
.title-accent { color: var(--c-button); }

/* ---------- Logo loading screen ----------
   App-icon logo (owl face) on every page for about 0.45 s (pops in with a little wobble). main.js adds .done to fade it out.
   Safety net: the preloader-out animation hides it after 0.9 s even if JavaScript never runs. */
#preloader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-content: center; justify-items: center; gap: 16px;
  background: var(--c-cream);
  animation: preloader-out .25s ease .9s forwards;
}
.owl-logo { display: block; width: 88px; height: 88px; animation: owl-pop .45s cubic-bezier(.34, 1.6, .64, 1) both; transform-origin: 50% 90%; }
.preloader-bar { width: 96px; height: 4px; border-radius: 99px; background: var(--c-line); overflow: hidden; }
.preloader-bar::after { content: ""; display: block; height: 100%; width: 100%; background: var(--c-button); border-radius: inherit; transform-origin: left; animation: preloader-fill .45s cubic-bezier(.4, 0, .2, 1) both; }
#preloader.done { opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
@keyframes preloader-out { to { opacity: 0; visibility: hidden; } }
@keyframes preloader-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes owl-pop { 0% { opacity: 0; transform: scale(.6) rotate(-8deg); } 60% { opacity: 1; transform: scale(1.04) rotate(4deg); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .preloader-bar::after, .owl-logo { animation: none; } }

/* ---------- /custom-vs-wordpress (platform comparison page) ---------- */
body.cvw-page { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--c-ink); background: var(--c-white); line-height: 1.6; }
.cvw-page a { color: var(--c-ink); }
.cvw-page a:hover { color: var(--c-button); }
.cvw-page .svc-link, .cvw-page a.svc-link:hover { color: var(--c-button); }
.cvw-page a.cvw-btn, .cvw-page a.cvw-btn:hover { color: var(--c-on-dark); }
.cvw-page a.cvw-btn--light, .cvw-page a.cvw-btn--light:hover { color: var(--c-ink); }
.cvw-page .site-nav a.nav-cta, .cvw-page a.header-cta { color: var(--c-on-dark); }
.cvw-page main { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.cvw-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(24px, 4vw, 48px); max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.cvw-eyebrow { margin: 0; font-size: var(--eyebrow); font-weight: 700; color: var(--c-label); }
.cvw-hero h1 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.03em; }
.cvw-lead { margin: 0; font-size: var(--lead); color: var(--c-muted); }
.cvw-actions { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cvw-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--c-button); color: var(--c-on-dark); font-weight: 600; text-decoration: none; }
.cvw-actions .svc-link { padding-top: 0; }
.cvw-section { padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 20px; }
.cvw-section h2 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.cvw-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cvw-pick article { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 20px; padding: var(--card-pad); display: flex; flex-direction: column; gap: 12px; }
.cvw-pick h3, .cvw-page .platform h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; }
.cvw-table-wrap { border: 1px solid var(--c-line); border-radius: 20px; overflow: hidden; background: var(--c-white); }
.cvw-table { width: 100%; border-collapse: collapse; }
.cvw-table th, .cvw-table td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.cvw-table tbody tr:last-child > * { border-bottom: 0; }
.cvw-table thead th { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; background: var(--c-cream); }
.cvw-table thead th:nth-child(2) { color: var(--c-button); }
.cvw-table thead th:nth-child(3) { color: var(--c-teal-dark); }
.cvw-table thead td { background: var(--c-cream); }
.cvw-table tbody th { width: 28%; font-weight: 600; }
.cvw-table td { color: #3D3430; }
.cvw-same { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cvw-same li { padding: 6px 14px; border: 1px solid var(--c-line-strong); border-radius: 999px; font-weight: 500; }
.cvw-note { margin: 0; color: var(--c-muted); }
.cvw-cta { margin: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: var(--c-button); color: var(--c-on-dark); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cvw-cta h2 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(26px, 3.4vw, 38px); }
.cvw-cta p { margin: 0 0 6px; }
.cvw-btn--light { background: var(--c-white); color: var(--c-ink); }
@media (max-width: 640px) {
  /* table → one card per row: label on top, both answers below with their platform name */
  .cvw-table thead { display: none; }
  .cvw-table, .cvw-table tbody, .cvw-table tr, .cvw-table th, .cvw-table td { display: block; width: auto; }
  .cvw-table tr { padding: 14px 18px; border-bottom: 1px solid var(--c-line); }
  .cvw-table tbody tr:last-child { border-bottom: 0; }
  .cvw-table th, .cvw-table td { padding: 0; border: 0; }
  .cvw-table tbody th { width: auto; margin-bottom: 6px; }
  .cvw-table td + td { margin-top: 6px; }
  .cvw-table td::before { content: attr(data-label) ": "; font-weight: 700; }
  .cvw-table td:nth-of-type(1)::before { color: var(--c-button); }
  .cvw-table td:nth-of-type(2)::before { color: var(--c-teal-dark); }
}

/* ---------- /privacy and /terms (legal pages, reuse the .cvw-page base) ---------- */
.legal { max-width: 760px; padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 72px); }
.legal h1 { margin: 6px 0 4px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.legal-updated { margin: 0 0 20px; font: 500 13px/1.4 'JetBrains Mono', monospace; color: var(--c-muted); }
.legal h2 { margin: 32px 0 8px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #3D3430; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal a { color: var(--c-button); }
.fa-footer a { white-space: nowrap; }
.legal .cvw-eyebrow { color: var(--c-label); }

/* ---------- Service pages + /pricing (reuse the .cvw-page base) ---------- */
.sp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.sp-features article { background: var(--c-white); border: 1px solid var(--c-line); border-radius: 20px; padding: var(--card-pad); display: flex; flex-direction: column; gap: 6px; }
.sp-features h3, .sp-steps h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 20px; }
.sp-features p, .sp-steps p { margin: 0; color: var(--c-muted); }
.sp-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; }
.sp-steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 2px solid var(--c-button); }
.sp-steps li:nth-child(2) { border-color: var(--c-teal); }
.sp-steps li:nth-child(3) { border-color: var(--c-mustard); }
.sp-steps li:nth-child(4) { border-color: var(--c-pink); }
.sp-num { font: 600 13px/1 'JetBrains Mono', monospace; letter-spacing: .04em; color: var(--c-muted); }
.sp-steps li > div { display: flex; flex-direction: column; gap: 6px; }
.sp-faq { display: flex; flex-direction: column; border: 1px solid var(--c-line); border-radius: 20px; background: var(--c-white); overflow: hidden; }
.sp-faq details { border-bottom: 1px solid var(--c-line); }
.sp-faq details:last-child { border-bottom: 0; }
.sp-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; min-height: 44px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; flex: none; color: var(--c-button); font-size: 22px; line-height: 1; transition: rotate .2s ease; }
.sp-faq details[open] summary::after { rotate: 45deg; }
.sp-faq details p { margin: 0; padding: 0 22px 20px; color: var(--c-muted); }
.sp-related { display: flex; flex-wrap: wrap; gap: 12px; }
.cvw-page a.sp-rel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--c-line-strong); border-radius: 999px; text-decoration: none; font-weight: 600; }
.cvw-page a.sp-rel:hover { border-color: var(--c-button); }
.sp-prices .price-group { padding-top: 0; border-top: 0; }
.sp-prices .price-group + .price-group { padding-top: 24px; }
.sp-pricing { display: flex; flex-direction: column; gap: var(--stack-gap); padding-bottom: 8px; }
.sp-page .pkg h3, .sp-page .offer h4 { margin: 0; }
.sp-page .svc-list { margin: 0; }
@media (prefers-reduced-motion: reduce) { .sp-faq summary::after { transition: none; } }

/* Homepage: starting prices (full packages live on /pricing) */
.pkg-teaser { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pkg-tile { display: flex; flex-direction: column; gap: 6px; padding: var(--card-pad); background: var(--c-white); border: 1px solid var(--c-line); border-radius: 22px; color: var(--c-ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.pkg-tile:hover { transform: translateY(-3px); border-color: var(--c-button); }
.pkg-tile--teal { background: color-mix(in srgb, var(--c-teal) 8%, var(--c-white)); }
.pkg-tile-name { font-weight: 700; font-size: 17px; }
.pkg-tile-name::after { content: " →"; color: var(--c-button); }
.pkg-tile-price small { font-size: 15px; color: var(--c-muted); font-weight: 600; }
.pkg-tile-price b { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(34px, 3.4vw, 44px); letter-spacing: -0.02em; color: var(--c-button); }
.pkg-tile--teal .pkg-tile-price b { color: var(--c-teal-dark); }
.pkg-tile-note { color: var(--c-muted); font-size: 15px; }
.pkg-teaser-more { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; color: var(--c-muted); }
.pkg-teaser-more .svc-link { padding-top: 0; }
@media (prefers-reduced-motion: reduce) { .pkg-tile { transition: none; } .pkg-tile:hover { transform: none; } }
.fa-footer { text-align: center; padding: 28px var(--gutter, 24px); font-size: 14px; color: var(--c-muted); border-top: 1px solid var(--c-line); }
.cvw-page .fa-footer a { color: inherit; font-weight: 600; }
.sp-pricing .price-group > .card-grid { margin-top: 18px; }
@media (max-width: 640px) { .sp-pricing .price-group > .card-grid { margin-top: 0; } }

/* /demos grid + "see all" links under homepage sections */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.demo-grid .demo-card { height: 100%; }
.cvw-page .demo-card h3 { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 21px; }
.cvw-page .demo-card p { margin: 0; }
.demo-more, .faq-more { margin: 0; }
.faq-more { padding-top: 20px; }

/* /about */
.about-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.about-story-text { display: flex; flex-direction: column; gap: 14px; }
.about-story-text p { margin: 0; color: var(--c-muted); }
.about-owl { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px 40px; align-items: center; }
.about-owl img { width: 100%; height: auto; animation: float 6s ease-in-out infinite; }
.about-owl p { margin: 0 0 10px; color: var(--c-muted); }
.about-owl h2 { margin-bottom: 8px; }
.cvw-page .about-tagline { color: var(--c-button); font-weight: 700; }
.about-float { animation: float 5s ease-in-out infinite; }
.about-float--slow { animation-duration: 7s; }
@media (max-width: 760px) { .about-story, .about-owl { grid-template-columns: 1fr; } .about-owl img { max-width: 180px; } }
@media (prefers-reduced-motion: reduce) { .about-owl img, .about-float { animation: none; } }
.sp-features--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 1100px) and (max-width: 1260px) { .site-nav { gap: 20px; } }
/* Shared footer (homepage + every other page via SITE_FOOTER in site.js) */
.site-footer { font-family: Inter, system-ui, sans-serif; color: var(--c-ink); line-height: 1.6; }
.site-footer a { color: var(--c-ink); text-decoration: none; }
.site-footer a:hover { color: var(--c-button); text-decoration: underline; text-underline-offset: 3px; }
.site-footer p a { color: var(--c-muted); }
.seen #preloader { display: none; }
.pkg-time { margin: 0; font: 600 13px/1.4 "JetBrains Mono", monospace; color: var(--c-teal-dark); }
