/* ==========================================================================
   Calico Websites
   Shared by every page. The home page has its own full-width layout (see
   "Home page" below); apply, example and 404 use the centred column, with a
   card system modelled on mckaylablanca.com, recoloured green.
   Type follows fourmeasure.com: Jost for display, Inter for the small print.
   Every colour and font is a variable at the top.
   ========================================================================== */
/* Fonts are served from this site (fonts/), not Google, so visitors' browsers
   never contact a third party. Both are SIL Open Font License; the licences
   sit next to the files. Variable fonts: one file covers every weight. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/jost-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Type */
  --font-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --tracking-tight: -0.025em;

  /* Colour: greens, all AA-checked against the surfaces they sit on */
  --accent: #DAF1E7;           /* the flat field, her cyan's stand-in */
  --shell: #DAF1E7;            /* the column sits on the flat accent, as hers does */
  --field: #A7DCC2;            /* deeper green behind the column above 560px */
  --card: rgba(255, 255, 255, 0.72);   /* translucent, like her .fm-card */
  --card-edge: rgba(24, 24, 27, 0.08);
  --input-bg: rgba(255, 255, 255, 0.78);
  --surface: #F1F6F4;

  --fg: #18181B;
  --text-strong: #000000;
  --text-secondary: #52525B;
  --text-muted: #63636B;       /* 5.03:1 on the column, so it passes off the cards too */
  --border: #DBE6E1;

  --primary: #1D7C50;          /* 5.18:1 with white */
  --primary-strong: #196B48;   /* 5.47:1 on the column */
  --primary-soft: #59C08C;
  --primary-pale: #A7DCC2;
  --primary-dark: #18392C;
  --on-primary: #FFFFFF;

  --focus: #196B48;
  --error: #B42318;

  /* Shape */
  --radius-pill: 999px;
  --radius-card: 1.375rem;     /* 22px, hers */
  --radius-shell: 2rem;
  --shadow-soft: 0 1px 2px rgba(24, 57, 44, 0.03);
  --shadow-lift: 0 16px 40px -18px rgba(24, 57, 44, 0.3);
  --shadow-shell: 0 30px 80px -24px rgba(24, 57, 44, 0.28), 0 4px 16px -6px rgba(24, 57, 44, 0.12);
  --shadow-cta: 0 10px 26px -10px rgba(29, 124, 80, 0.6);

  /* Rhythm */
  --column: 28.75rem;          /* 460px, hers */
  --gutter: 1.25rem;           /* 20px, hers */

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 240ms;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  background-color: var(--shell);
  color: var(--fg);
  font-family: var(--font-display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 max(var(--gutter), env(safe-area-inset-left))
           calc(3rem + env(safe-area-inset-bottom))
           max(var(--gutter), env(safe-area-inset-right));
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%; top: 0.5rem;
  transform: translate(-50%, -160%);
  z-index: 50;
  background: var(--fg);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Shell: one centred column, full bleed on phones, a floating card above 560px
   -------------------------------------------------------------------------- */
.shell {
  position: relative;
  width: 100%;
  max-width: var(--column);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.shell > * { width: 100%; }

/* --------------------------------------------------------------------------
   The calico cats
   One <symbol> in the defs block, re-used everywhere. It is a plain outline
   in currentColor, so set `color` on any instance to recolour it.
   -------------------------------------------------------------------------- */
.cat-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.cat {
  display: block;
  width: auto;
  color: var(--primary);       /* the outline */
  overflow: visible;
}

/* The cat waves on hover (submit button, footer, Get your website row) */
@keyframes wiggle {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-9deg); }
  55%  { transform: rotate(7deg); }
  80%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

/* --------------------------------------------------------------------------
   Link rows, her pill cards
   -------------------------------------------------------------------------- */
.links {
  margin-top: 2.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 12px 22px;
  text-align: left;
  border-radius: var(--radius-pill);
  background-color: var(--card);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--card-edge);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.link:hover, .link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-lift);
}
.link:active { transform: translateY(0); }

.link-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.link-icon .cat, .link-icon svg { width: 100%; height: 100%; }

.link-text { flex: 1 1 auto; min-width: 0; }

.link-label {
  display: block;
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.link-meta {
  flex: 0 0 auto;
  margin-left: 8px;
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  white-space: nowrap;
}

/* The one filled row: the primary call to action.
   Sized to its own text and centred, rather than spanning the column. */
.link--cta {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 20px 22px;
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-cta);
}
.link--cta .link-label { color: var(--on-primary); }
.link--cta .link-icon, .link--cta .link-meta { color: var(--on-primary); }
.link--cta .link-icon .cat { color: var(--on-primary); }   /* beats .cat's own colour */
.link--cta:hover, .link--cta:focus-visible { border-color: var(--primary); }
.link--cta:hover .link-icon .cat { animation: wiggle 620ms var(--ease); }

/* --------------------------------------------------------------------------
   Apply page
   -------------------------------------------------------------------------- */
.back-link {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-right: 8px;
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}
.back-link:hover { color: var(--primary-strong); }
/* The column centres its text; the way back belongs on the left */
.shell .back-link { display: flex; width: fit-content; }

.apply-art {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.apply-art .cat { height: 72px; }
.notfound-art { margin-top: 3rem; }   /* 404.html has no back link above it */

.field-hint {
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* The small box under "What's the website for?", shown only once
   "Something else" is picked */
.other-field { display: none; }
.choices:has(#w-other:checked) .other-field,
.other-field.is-open { display: block; }

/* One small box per ticked platform, for the handle */
.social-field { display: none; }
.choices:has(#s-instagram:checked) [data-social-field="instagram"],
.choices:has(#s-tiktok:checked) [data-social-field="tiktok"],
.choices:has(#s-youtube:checked) [data-social-field="youtube"],
.social-field.is-open { display: block; }
.social-field label {
  display: block;
  margin-bottom: 0.3125rem;
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  color: var(--fg);
}

/* Sits above the send button: what happens with photos */
.form-note {
  padding: 0.75rem 0.875rem;
  border-radius: 0.75rem;
  background-color: rgba(29, 124, 80, 0.08);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.apply-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 8vw, 2.125rem);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  text-wrap: balance;
}

.apply-lead {
  margin: 0 auto 0.25rem;
  max-width: 21rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.form {
  margin-top: 1.25rem;
  padding: 18px;
  text-align: left;
  border-radius: var(--radius-card);
  background-color: var(--card);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--card-edge);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* display:flex above would otherwise beat the browser's [hidden] rule,
   so hiding the form from JS needs saying explicitly. */
.form[hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 0.3125rem; }

/* Direct children only. The pill labels live inside .pill-row and must
   keep their own padding. */
.field > label,
.field > legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--fg);
}

.optional { font-weight: var(--fw-regular); color: var(--text-muted); }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;              /* 16px, stops iOS zooming on focus */
  line-height: 1.5;
  color: var(--fg);
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.6875rem 0.875rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus { border-color: var(--primary); background-color: var(--card); }
.field textarea { resize: vertical; min-height: 5.5rem; }

/* Tappable choices instead of typing. Real radios underneath, so they work
   with the keyboard, with a screen reader, and in the POST body. */
.choices {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;                 /* keeps the fieldset from blowing out the card */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pill-row { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }

/* Pinned to the row's corner. Left at its static spot, a radio after a
   pill near the right edge poked out and let phones scroll sideways. */
.pill-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;               /* never squash below the label, wrap instead */
  white-space: nowrap;
  min-height: 44px;             /* comfortable thumb target */
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  letter-spacing: -0.01em;
  color: var(--fg);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pill:hover { border-color: var(--primary-soft); }
.pill:active { transform: scale(0.97); }

.pill-input:checked + .pill {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.pill-input:focus-visible + .pill {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Formspree honeypot: hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.submit {
  margin-top: 0.25rem;
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--on-primary);
  background-color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cta);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift), var(--shadow-cta); }
.submit:active { transform: translateY(0); }
.submit .cat { height: 22px; color: var(--on-primary); }
.submit:hover .cat { animation: wiggle 620ms var(--ease); }

.form[aria-busy="true"] .submit { opacity: 0.6; pointer-events: none; }

/* Only takes up room once it has something to say */
.form-status:empty { display: none; }

.form-status {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--primary-strong); font-weight: var(--fw-medium); }

.form-privacy {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
  color: var(--text-secondary);
}
.form-privacy a { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 3px; }

/* The privacy page: plain reading text in the centred column */
.legal { text-align: left; }
.legal .apply-title { text-align: left; }
.legal-updated {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.legal-body {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg);
}
.legal-body h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.legal-body p + p { margin-top: 0.75rem; }
.legal-body ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.legal-body a { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 3px; }

/* Shown in the form's place once it sends */
.form-done {
  margin-top: 1.25rem;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-card);
  background-color: var(--card);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--card-edge);
  box-shadow: var(--shadow-soft);
}
.form-done[hidden] { display: none; }

.form-done .cat { height: 76px; margin: 0 auto 0.875rem; }

.done-title {
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}

.done-sub {
  margin-top: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Footer: a litter of calicos, like her single credit cat
   -------------------------------------------------------------------------- */
.footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cats {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}
/* Plain outlines, same as the logo */
.cats .cat { height: 54px; }
.cats .cat:nth-child(1) { height: 44px; }
.cats .cat:nth-child(3) { height: 40px; transform: scaleX(-1); }
.cats .cat:nth-child(2):hover { animation: wiggle 620ms var(--ease); }

.footer-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);   /* 6.52:1 on the mint column */
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.footer-meta a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }

/* For the email and social links, once they're confirmed:
   <p class="footer-contact"><a>…</a><span class="footer-dot">&middot;</span><a>…</a></p> */
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 0.5rem;
}
.footer-contact a {
  min-height: 32px;              /* keeps both links easy to tap on a phone */
  display: inline-flex;
  align-items: center;
}
.footer-dot { color: var(--border); }
.footer-meta a:hover { color: var(--primary-strong); }
.footer-wordmark { font-weight: var(--fw-semibold); color: var(--fg); }

/* --------------------------------------------------------------------------
   Reveal: her --i stagger, but fired on scroll rather than on load,
   and armed only once JS confirms it's running.
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-visible {
    opacity: 1; transform: none; transition: none; will-change: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Touch devices: no hover lift, it sticks after a tap */
@media (hover: none) {
  .link:hover, .btn:hover, .submit:hover { transform: none; }
  .submit:hover .cat, .link--cta:hover .link-icon .cat { animation: none; }
}

/* --------------------------------------------------------------------------
   Above 560px the column lifts off the page as a card. Same layout throughout.
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  body {
    align-items: flex-start;
    background-color: var(--field);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .shell {
    max-width: 31.25rem;              /* 460px of content + 20px gutters */
    margin-block: 2.5rem;
    padding: 0 1.25rem 2.5rem;
    overflow: hidden;                 /* keeps everything inside the rounded card */
    background-color: var(--shell);
    border-radius: var(--radius-shell);
    box-shadow: var(--shadow-shell);
  }
}

/* --------------------------------------------------------------------------
   Home page. Full-width sections on the mint field, each centred by .wrap.
   Overrides the centred-column shell, which the apply, example and 404 pages
   still use. Body copy is Inter here, at a comfortable reading size.
   -------------------------------------------------------------------------- */
body.home {
  display: block;
  padding: 0 0 env(safe-area-inset-bottom);
  background-color: var(--shell);      /* no deeper field behind a card here */
  font-family: var(--font-body);
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
}
.wrap--narrow { max-width: 46rem; }

/* Header: the brand, and a way to the form from anywhere on the first screen */
.site-header { padding-block: 0.875rem; }
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--text-strong);
}
.brand .cat { height: 30px; }

.header-cta {
  display: none;                 /* the hero button is right below on phones */
  align-items: center;
  min-height: 44px;
  padding-inline: 1.125rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(29, 124, 80, 0.35);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  color: var(--primary-strong);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.header-cta:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
@media (min-width: 480px) { .header-cta { display: inline-flex; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn--primary {
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { background-color: var(--primary-strong); transform: translateY(-2px); }
.btn--secondary {
  background-color: rgba(255, 255, 255, 0.55);
  border-color: rgba(29, 124, 80, 0.4);
  color: var(--primary-strong);
}
.btn--secondary:hover { background-color: #FFFFFF; border-color: var(--primary); }
.btn:active { transform: translateY(0); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: 1.5rem 4rem;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.625rem, 9vw, 4.75rem);
  font-weight: var(--fw-bold);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  text-wrap: balance;
}
.hero-title span { display: block; }      /* one sentence per line */

.hero-lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-actions .btn { flex: 1 1 auto; }    /* full width on narrow phones */

.hero-points,
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-points {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--fg);
}
.hero-points li,
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.hero-points svg,
.checklist svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.1em;
  color: var(--primary);
}

.hero-visual { justify-self: center; }

@media (min-width: 560px) {
  .hero-actions .btn { flex: 0 0 auto; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4rem;
    padding-block: 3rem 6rem;
  }
  /* Sized so "Your own website." fits the copy column on one line */
  .hero-title { font-size: clamp(3rem, 4.3vw, 3.875rem); }
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.block { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section-head { max-width: 40rem; margin-bottom: 2.75rem; }

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-strong);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: var(--fw-bold);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  text-wrap: balance;
}

.section-lead {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   2. Example: the real customer site, with slices of what brands see
   -------------------------------------------------------------------------- */

/* A window onto the full-length screenshot. Margins in % resolve against
   the width, so -y/390 of it lands exactly on page pixel y at any size. */
.slice {
  width: 100%;
  max-width: 390px;
  aspect-ratio: 390 / var(--h);
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--surface);
  box-shadow: 0 0 0 1px rgba(24, 57, 44, 0.1), 0 8px 20px -14px rgba(24, 57, 44, 0.3);
}
.slice img {
  width: 100%;
  max-width: none;
  height: auto;
  margin-top: calc(var(--y) / 390 * -100%);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  color: var(--primary-strong);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--primary-dark); }
.text-link--inline { display: inline; min-height: 0; font-family: inherit; font-size: inherit; }

.ex-tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  background-color: rgba(29, 124, 80, 0.12);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.ex-tag--real { background-color: var(--primary); color: var(--on-primary); }

.ex-title {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.ex-desc {
  margin-top: 0.5rem;
  max-width: 30rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Featured: the real site, copy beside slices of her stats and button */
.ex-featured {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: 32px;
  background-color: #FFFFFF;
  border: 1px solid rgba(24, 57, 44, 0.08);
}
.ex-featured .checklist { margin: 1.5rem 0 1rem; }
/* Her own words, approved by her */
.ex-quote {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--primary-soft);
}
.ex-quote blockquote { margin: 0; }
.ex-quote p {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: var(--fw-medium);
  line-height: 1.45;
  color: var(--text-strong);
}
.ex-quote figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ex-featured-visual { display: grid; gap: 0.875rem; justify-items: center; }

@media (min-width: 900px) {
  .ex-featured { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
}

.ex-more {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  font-size: 1.125rem;
  font-weight: var(--fw-medium);
  color: var(--fg);
}
.ex-more .text-link { font-size: inherit; min-height: 0; display: inline; }

/* What's included: the domain note under the list */
.included-note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.checklist--large { font-size: 1.125rem; }

/* --------------------------------------------------------------------------
   Made to be taken seriously: four points, an icon each, on a hairline
   -------------------------------------------------------------------------- */
.pro-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2.25rem 1.75rem;
}
.pro {
  padding-top: 1.5rem;
  border-top: 2px solid var(--primary-pale);
}
.pro-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background-color: rgba(29, 124, 80, 0.1);
  color: var(--primary);
}
.pro-icon svg { width: 22px; height: 22px; }
.pro h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.pro p {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 640px)  { .pro-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pro-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   3. Personal domain: the one dark band, so it stands out on the page
   -------------------------------------------------------------------------- */
.domain {
  padding-block: clamp(4rem, 10vw, 7rem);
  background-color: var(--primary-dark);
  color: #FFFFFF;
}

.domain-inner { display: grid; gap: 3rem; align-items: center; }

.kicker--light { color: var(--primary-pale); }            /* 8.2:1 on the band */
.domain .section-title { color: #FFFFFF; }
.domain .section-lead { color: rgba(255, 255, 255, 0.84); }

.domain-note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);                        /* 7.7:1 on the band */
}

.domain-visual { margin: 0; min-width: 0; }

.address-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-pill);
  background-color: #FFFFFF;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5.4vw, 2.25rem);
  white-space: nowrap;
  overflow: hidden;
}
.address-bar svg { flex: none; width: 0.8em; height: 0.8em; color: var(--primary); }
.address-scheme { color: var(--text-muted); }
.address-name {
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.domain-visual figcaption {
  margin-top: 0.875rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.74);
}

@media (min-width: 900px) {
  .domain-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}

/* --------------------------------------------------------------------------
   4. How it works: four numbered steps on a hairline
   -------------------------------------------------------------------------- */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2rem 1.75rem;
}

.step {
  padding-top: 1.25rem;
  border-top: 2px solid var(--primary-pale);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background-color: var(--primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--on-primary);
}

.step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.step p {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   5. What's included, and the one place pricing lives
   -------------------------------------------------------------------------- */
.included { display: grid; gap: 2.5rem; align-items: start; }

.checklist {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.9rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--fg);
}

.pricing {
  padding: clamp(1.75rem, 5vw, 2.25rem);
  border-radius: 28px;
  background-color: #FFFFFF;
  box-shadow: var(--shadow-shell);
}
.pricing-label {
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-strong);
}
.pricing-value {
  margin-top: 0.375rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
.pricing-note {
  margin: 0.75rem 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (min-width: 900px) {
  .included { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4rem; }
}

/* --------------------------------------------------------------------------
   6. FAQ: native <details>, so it works with the keyboard and without JS
   -------------------------------------------------------------------------- */
.faq {
  margin-top: 2rem;
  border-top: 1px solid rgba(24, 57, 44, 0.16);
}
.faq details { border-bottom: 1px solid rgba(24, 57, 44, 0.16); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding-block: 1.125rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  color: var(--text-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.625rem;
  font-weight: var(--fw-regular);
  line-height: 1;
  color: var(--primary);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--primary-strong); }

.faq details p {
  max-width: 40rem;
  padding-bottom: 1.375rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   7. Final call to action
   -------------------------------------------------------------------------- */
.final { padding-block: 1rem clamp(3.5rem, 8vw, 5rem); }

.final-inner {
  padding: clamp(2.5rem, 7vw, 4rem) 1.5rem;
  border-radius: 32px;
  background-color: #FFFFFF;
  box-shadow: var(--shadow-shell);
  text-align: center;
}
.final-inner .cat { height: 56px; margin: 0 auto 1.25rem; }
.final-inner .section-lead { margin: 1rem auto 2rem; }

body.home .footer { margin-top: 0; padding-bottom: 3rem; }

/* --------------------------------------------------------------------------
   The phone stencil in the hero. Proportions follow a standard handset:
   320 x 681.
   -------------------------------------------------------------------------- */
.phone {
  position: relative;
  display: block;
  width: 300px;
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 320 / 681;
  padding: 3px;                    /* a thin bezel, so the site does the talking */
  border-radius: 45px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #3F3F46 0%, #18181B 55%, #000000 100%);
  box-shadow: 0 16px 36px -20px rgba(24, 57, 44, 0.45),
              0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Glass highlight across the bezel */
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 45px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 30%,
                              transparent 70%, rgba(255, 255, 255, 0.05));
}

.phone-screen {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 42px;
  background-color: var(--shell);
}

/* The screenshot scrolls itself down to the foot of the page and back up,
   resting at each end. Travel = image height minus screen height, split
   across two layers so it stays on the compositor with no JS measuring:
   the wrapper is exactly screen-tall and moves down 100% (+ screen height),
   the image moves up 100% of itself (- image height). Hover to pause. */
.phone-scroll {
  height: 100%;
  animation: screen-travel 36s ease-in-out infinite;
}
.phone-scroll img {
  width: 100%;
  height: auto;
  animation: image-travel 36s ease-in-out infinite;
}
.phone:hover .phone-scroll,
.phone:hover .phone-scroll img { animation-play-state: paused; }

@keyframes screen-travel {
  0%, 8%   { transform: translateY(0); }
  46%, 54% { transform: translateY(100%); }
  92%, 100% { transform: translateY(0); }
}
@keyframes image-travel {
  0%, 8%   { transform: translateY(0); }
  46%, 54% { transform: translateY(-100%); }
  92%, 100% { transform: translateY(0); }
}

/* Floats over the lower screen: the way out to the live site */
.phone-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-edge);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.4);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--primary-strong);
  white-space: nowrap;
  transform: translateX(-50%);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.phone-hint:hover,
.phone-hint:focus-visible {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.phone-caption {
  margin-top: 0.875rem;
  text-align: center;          /* the hero is left-aligned on desktop; this is not */
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (min-width: 900px) {
  .phone { width: 320px; }
}

/* No self-scrolling for people who ask for less motion. They get the same
   page as a screen they can scroll themselves. */
@media (prefers-reduced-motion: reduce) {
  .phone-scroll, .phone-scroll img { animation: none; }
  .phone-scroll { height: auto; }
  .phone-screen { overflow-y: auto; scrollbar-width: none; }
  .phone-screen::-webkit-scrollbar { display: none; }
}
