/* Clive landing — ported from the Broadsheet design system canvas export.
   Tokens are the subset of the Broadsheet ramp the page actually uses. */

:root {
  --color-bg: #f3f2f2;
  --color-text: #201e1d;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;
  --color-accent-300: #99e0ff;
  --color-accent-700: #006786;
  --color-process-yellow: #edbb00;
  --font-heading: "Source Serif 4", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ink-dark: #14120f;
  --paper-warm: #f0ece6;
  --hero-fg: #f3f2f2;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--ink-dark); }
body { font-family: var(--font-body); color: var(--color-text); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; text-align: left; }

.mono-kicker { font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.yellow { color: var(--color-process-yellow); }
.arrow { font-family: var(--font-mono); font-size: 14px; }

/* ============ Animations ============ */
@keyframes clive-mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes clive-hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes clive-step-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes clive-receipt-drop {
  0%   { opacity: 0; transform: translateY(-120px) rotate(-7deg); }
  30%  { opacity: 1; transform: translateY(-30px) rotate(5deg); }
  50%  { transform: translateY(6px) rotate(-3.5deg); }
  68%  { transform: translateY(-6px) rotate(2.2deg); }
  82%  { transform: translateY(2px) rotate(-1.2deg); }
  92%  { transform: translateY(0) rotate(0.6deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* ============ Hero ============ */
.hero { position: relative; min-height: 100vh; overflow: hidden; background: var(--ink-dark); color: var(--hero-fg); }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; opacity: 0; transition: opacity 1200ms ease;
}
.hero-bg.is-active { opacity: 1; }
/* Desktop (wide) crops vertically — Y% frames each scene. */
.hero-bg:nth-of-type(1) { object-position: 50% 72%; } /* fields */
.hero-bg:nth-of-type(2) { object-position: 50% 55%; } /* mill */
.hero-bg:nth-of-type(3) { object-position: 50% 60%; } /* typing pool */
.hero-bg:nth-of-type(4) { object-position: 50% 58%; } /* cubicles */
.hero-bg:nth-of-type(5) { object-position: 50% 50%; } /* datacentre */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12,11,10,0.62) 0%, rgba(12,11,10,0.30) 38%, rgba(12,11,10,0.52) 78%, rgba(12,11,10,0.78) 100%);
}
.hero-frame {
  position: relative; z-index: 2; min-height: 100vh;
  display: grid; grid-template-rows: auto 1fr auto; padding: 32px 36px;
}
.site-header { display: flex; align-items: center; gap: 10px; }
.logo-face { height: 36px; width: auto; display: block; }
.logo-word { font-family: var(--font-heading); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.nav-link { color: rgba(243,242,242,0.82); padding: 9px 12px; font-size: 14px; text-decoration: none; }
.nav-link:hover { color: #fff; }
.nav-signin {
  border: 1px solid rgba(243,242,242,0.45); color: var(--hero-fg);
  padding: 9px 16px; font-size: 14px; text-decoration: none; transition: border-color 200ms ease, background 200ms ease;
}
.nav-signin:hover { border-color: #fff; background: rgba(243,242,242,0.12); }
.hero-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 20px; padding: 30px 0;
}
.hero-title {
  margin: 0; font-size: clamp(22px, 3.9vw, 62px); line-height: 1.12; letter-spacing: -0.02em;
  white-space: nowrap; text-shadow: 0 2px 30px rgba(10,9,8,0.45);
  animation: clive-hero-in 1000ms var(--ease-out) 200ms both;
}
.hero-title em { font-style: italic; font-weight: 400; display: block; }
.hero-sub {
  max-width: 30em; margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5;
  color: rgba(243,242,242,0.86); animation: clive-hero-in 1000ms var(--ease-out) 500ms both;
}
.hero-ctas {
  display: flex; align-items: center; gap: 15px; margin-top: 15px;
  animation: clive-hero-in 1000ms var(--ease-out) 760ms both;
}
.btn-light {
  background: #f3f2f2; color: #201e1d; padding: 11px 20px; font-size: 14px;
  text-decoration: none; transition: background 200ms ease;
}
.btn-light:hover { background: #fff; color: #201e1d; }
.link-under {
  font-size: 14px; color: rgba(243,242,242,0.78); text-decoration: none;
  border-bottom: 1px solid rgba(243,242,242,0.35); padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.link-under:hover { color: #fff; border-bottom-color: #fff; }

/* ============ News wall ============ */
.news { background: var(--paper-warm); color: var(--color-text); padding: 88px 36px 96px; }
.news-kicker { max-width: 1240px; margin: 0 auto 44px; text-align: center; }
.news-kicker .mono-kicker { font-size: 15px; color: var(--color-accent-700); }
.news-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 44px;
  max-width: 1240px; margin: 0 auto; align-items: center;
}
.news-title { margin: 0 0 16px; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.06; letter-spacing: -0.02em; }
.news-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  font-size: 14.5px; line-height: 1.72; color: var(--color-neutral-800);
  text-align: justify; hyphens: auto; align-items: center;
}
.news-col { display: flex; flex-direction: column; justify-content: center; }
.news-col p { margin: 0 0 12px; }
.news-col p:last-child { margin-bottom: 0; }
.news-col-rule { padding-left: 36px; border-left: 1px solid var(--color-neutral-400); }
.mark {
  background-repeat: no-repeat; background-size: 0% 100%; padding: 0 2px;
  animation: clive-mark 780ms cubic-bezier(.4, .7, .3, 1) forwards; animation-play-state: paused;
}
.mark-yellow { background-image: linear-gradient(180deg, transparent 12%, rgba(237,187,0,0.55) 12%); }
.mark-blue { background-image: linear-gradient(180deg, transparent 12%, rgba(153,224,255,0.7) 12%); }
.news-cols.in .mark { animation-play-state: running; }
.cite {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-accent-700); text-decoration: none;
}
.cite-color { color: var(--color-accent-700); }

/* ============ Meet Clive ============ */
.meet { background: var(--color-bg); padding: 96px 36px 104px; }
.meet-grid {
  max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center;
}
.meet-kicker { font-size: 20px; color: var(--color-neutral-700); }
.meet-lede {
  margin: 22px 0 0; max-width: 22em; font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.32; letter-spacing: -0.015em; color: var(--color-neutral-900);
}
.traits { margin-top: 48px; height: 330px; box-sizing: border-box; }
.trait { display: block; width: 100%; border-top: 1px solid var(--color-neutral-300); padding: 22px 4px; cursor: pointer; }
.trait-last { border-bottom: 1px solid var(--color-neutral-300); }
.trait-head { display: flex; align-items: baseline; gap: 18px; }
.trait-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  padding: 4px 7px; white-space: nowrap; background: transparent; transition: background 320ms ease;
}
.trait[aria-expanded="true"] .trait-label { background: var(--color-process-yellow); }
.trait-lede { font-size: 18px; letter-spacing: -0.01em; }
.trait-sign {
  margin-left: auto; font-size: 16px; color: var(--color-neutral-600);
  transition: transform 320ms var(--ease-out);
}
.trait[aria-expanded="true"] .trait-sign { transform: rotate(135deg); }
.trait-body {
  display: block; overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 420ms var(--ease-out), opacity 300ms ease;
}
.trait[aria-expanded="true"] .trait-body { max-height: 260px; opacity: 1; }
.trait-body > span {
  display: block; margin: 16px 0 0; max-width: 36em;
  font-size: 15.5px; line-height: 1.68; color: var(--color-neutral-800);
}
.face-wrap { display: flex; justify-content: center; }
.face { position: relative; width: 420px; max-width: 100%; }
.face img { display: block; width: 100%; height: auto; }
.eye {
  position: absolute; width: 16.5%; height: 9.5%; border-radius: 50%;
  background: #f3f2f2; overflow: hidden;
}
.eye-l { left: 31.7%; top: 46.6%; transform: translate(-50%, -50%) rotate(-7deg); }
.eye-r { left: 64.8%; top: 46.6%; transform: translate(-50%, -50%) rotate(7deg); }
.pupil {
  position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 1;
  border-radius: 50%; background: #1c1a19; transform: translate(-50%, -50%);
}
.glint { position: absolute; left: 58%; top: 16%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: #f3f2f2; }

/* ============ How it works ============ */
.how { background: var(--ink-dark); color: var(--hero-fg); padding: 100px 36px 108px; }
.how-inner { max-width: 1240px; margin: 0 auto; }
.how-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 32px;
  padding-bottom: 26px; border-bottom: 1px solid rgba(243,242,242,0.28);
}
.how-head h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.02em; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); }
.step { display: grid; grid-template-columns: 92px 1fr; gap: 24px; opacity: 0; }
.steps.in .step { animation: clive-step-in 700ms var(--ease-out) both; }
.steps.in .step-1 { animation-delay: 0ms; }
.steps.in .step-2 { animation-delay: 130ms; }
.steps.in .step-3 { animation-delay: 260ms; }
.steps.in .step-4 { animation-delay: 390ms; }
.step-1 { padding: 40px 44px 40px 0; border-bottom: 1px solid rgba(243,242,242,0.16); border-right: 1px solid rgba(243,242,242,0.16); }
.step-2 { padding: 40px 0 40px 44px; border-bottom: 1px solid rgba(243,242,242,0.16); }
.step-3 { padding: 40px 44px 0 0; border-right: 1px solid rgba(243,242,242,0.16); }
.step-4 { padding: 40px 0 0 44px; }
.step-num {
  font-family: var(--font-heading); font-weight: 600; font-size: 56px; line-height: 0.9;
  letter-spacing: -0.03em; color: var(--color-process-yellow);
}
.step h3 { margin: 0 0 12px; font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.68; color: rgba(243,242,242,0.72); }
.how-cta {
  margin-top: 64px; padding-top: 34px; border-top: 1px solid rgba(243,242,242,0.28);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.how-cta-line { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.015em; }
.btn-yellow {
  display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px;
  background: var(--color-process-yellow); color: var(--ink-dark); text-decoration: none;
  font-size: 16px; letter-spacing: -0.01em;
  transition: transform 200ms var(--ease-out), background 200ms ease;
}
.btn-yellow:hover { transform: translateY(-2px); background: #ffd21f; color: var(--ink-dark); }
.btn-yellow-sm { gap: 10px; padding: 13px 22px; font-size: 15px; }

/* ============ Pricing ============ */
.pricing { background: var(--color-bg); padding: 100px 36px 108px; }
.pricing-inner { max-width: 1240px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: 1fr 430px; gap: 64px; align-items: center; }
.pricing .mono-kicker { font-size: 12px; }
.pricing-title { margin: 12px 0 24px; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -0.03em; }
.pricing-copy { display: flex; flex-direction: column; gap: 16px; max-width: 30em; }
.pricing-copy p { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--color-neutral-800); }
.pricing-copy strong { font-weight: 600; }
.receipt {
  background: #fbfaf8; padding: 34px 30px 30px; box-shadow: 0 14px 34px rgba(45,43,43,0.14);
  font-family: var(--font-mono); color: #201e1d; transform-origin: 50% 0%; opacity: 0;
}
.receipt.in { animation: clive-receipt-drop 1500ms cubic-bezier(.2, .7, .3, 1) both; }
.receipt-head { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed var(--color-neutral-500); }
.receipt-co { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; }
.receipt-sub { font-size: 10px; letter-spacing: 0.12em; color: var(--color-neutral-600); margin-top: 5px; }
.receipt-lines {
  display: flex; flex-direction: column; gap: 11px; padding: 18px 0;
  border-bottom: 1px dashed var(--color-neutral-500); font-size: 12.5px;
}
.receipt-lines > div { display: flex; justify-content: space-between; gap: 14px; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; font-size: 15px; letter-spacing: 0.06em; }
.receipt-amount { font-size: 30px; letter-spacing: -0.02em; }
.receipt-foot {
  border-top: 1px dashed var(--color-neutral-500); margin-top: 14px; padding-top: 14px;
  font-size: 10.5px; line-height: 1.7; color: var(--color-neutral-700);
}

/* ============ FAQ ============ */
.faq { background: var(--paper-warm); padding: 100px 36px 108px; }
.faq-inner { max-width: 1240px; margin: 0 auto; }
.faq-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 32px;
  padding-bottom: 22px; border-bottom: 3px solid var(--color-text);
}
.faq-head h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.025em; }
.qa { display: block; width: 100%; border-bottom: 1px solid var(--color-neutral-400); padding: 24px 4px; cursor: pointer; }
.qa-head { display: grid; grid-template-columns: 52px 1fr 40px; gap: 20px; align-items: baseline; }
.qa-num {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  padding: 4px 7px; justify-self: start; background: transparent; transition: background 320ms ease;
}
.qa[aria-expanded="true"] .qa-num { background: var(--color-process-yellow); }
.qa-q { font-family: var(--font-heading); font-weight: 600; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.24; letter-spacing: -0.018em; }
.qa-sign { justify-self: end; font-size: 17px; color: var(--color-neutral-600); transition: transform 320ms var(--ease-out); }
.qa[aria-expanded="true"] .qa-sign { transform: rotate(135deg); }
.qa-body {
  display: block; overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height 460ms var(--ease-out), opacity 300ms ease;
}
.qa[aria-expanded="true"] .qa-body { max-height: 300px; opacity: 1; }
.qa-body > span {
  display: grid; grid-template-columns: 52px 1fr 40px; gap: 20px;
}
.qa-body > span::before, .qa-body > span::after { content: ""; }
.qa-body > span { margin: 0; }
.qa-body > span, .qa-body p { font-size: 15.5px; line-height: 1.7; color: var(--color-neutral-800); }
.qa-body > span { padding: 16px 0 2px; }

/* ============ Footer ============ */
.site-footer { background: var(--ink-dark); color: var(--hero-fg); padding: 84px 36px 40px; }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(243,242,242,0.18);
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-face { height: 34px; }
.footer-blurb { margin: 18px 0 24px; max-width: 24em; font-size: 15px; line-height: 1.65; color: rgba(243,242,242,0.66); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-head {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(243,242,242,0.5); margin-bottom: 4px;
}
.footer-col a { font-size: 15px; color: rgba(243,242,242,0.82); text-decoration: none; }
.footer-col a:hover { color: var(--color-process-yellow); }
.footer-legal {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(243,242,242,0.45);
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-title { white-space: normal; }
  .news-grid, .meet-grid, .pricing-grid { grid-template-columns: 1fr; }
  .news-cols { grid-template-columns: 1fr; }
  .news-col-rule { padding-left: 0; border-left: none; padding-top: 24px; margin-top: 12px; border-top: 1px solid var(--color-neutral-400); }
  .steps { grid-template-columns: 1fr; }
  .step-1, .step-3 { padding: 40px 0; border-right: none; }
  .step-2 { padding: 40px 0; }
  .step-3 { border-bottom: 1px solid rgba(243,242,242,0.16); }
  .step-4 { padding: 40px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .face-wrap { order: -1; }
  .face { width: 300px; }
  .traits { height: auto; min-height: 330px; }
}
@media (max-width: 600px) {
  .hero-frame, .news, .meet, .how, .pricing, .faq, .site-footer { padding-left: 20px; padding-right: 20px; }
  .site-nav .nav-link { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .qa-head { grid-template-columns: 40px 1fr 24px; gap: 12px; }
  .qa-body > span { grid-template-columns: 0px 1fr 0px; gap: 12px; }
  .step { grid-template-columns: 64px 1fr; }
  .step-num { font-size: 42px; }
  /* Phones (tall) crop horizontally — X% keeps the dog centred in each scene.
     Values are cover-geometry corrections for each dog's position, not the
     dog's raw x%: object-position maps image-point X% to viewport-point X%. */
  .hero-bg:nth-of-type(1) { object-position: 63% 72%; } /* dog at 60% */
  .hero-bg:nth-of-type(2) { object-position: 12% 55%; } /* dog at 22% */
  .hero-bg:nth-of-type(3) { object-position: 32% 60%; } /* dog at 36% */
  .hero-bg:nth-of-type(4) { object-position: 87% 58%; } /* dog at 76% */
  .hero-bg:nth-of-type(5) { object-position: 12% 50%; } /* dog at 25% */
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title, .hero-sub, .hero-ctas { animation: none; }
  .mark, .news-cols.in .mark { animation: none; background-size: 100% 100%; }
  .steps.in .step { animation: none; opacity: 1; }
  .receipt.in { animation: none; opacity: 1; }
  .hero-bg { transition: none; }
}
