/* Rupeama static marketing, legal and access-request stylesheet. Custom properties are generated from src/theme/tokens.ts. */
:root {
  --surface: #FAF9F6;
  --surface-low: #F5F3EE;
  --surface-lowest: #FFFFFF;
  --surface-container: #EFECE5;
  --primary: #064E3B;
  --primary-deep: #042F23;
  --on-primary: #FFFFFF;
  --primary-container: #E1F2EA;
  --on-primary-container: #042F23;
  --secondary-container: #D6F0EC;
  --on-secondary-container: #042F2E;
  --on-surface: #111A16;
  --on-surface-variant: #2F3D36;
  --outline: #8C9A93;
  --outline-variant: #E4E1D8;
  --error-container: #FEE2E2;
  --on-error-container: #450A0A;
  --mint-bg: #E1F2EA;
  --mint-fg: #064E3B;
  --r-control: 10px;
  --r-card: 16px;
  --r-full: 9999px;
  --fs-display: clamp(2.25rem, 4.4vw, 3.5rem);
  --fs-headline: clamp(1.875rem, 3vw, 2.5rem);
  --fs-title: 1.625rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.875rem;
  --h-control: 44px;
  --h-control-lg: 48px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 120ms;
  --dur-standard: 200ms;
  --dur-emphasized: 280ms;
  --dur-reveal: 300ms;
  --dur-breathe: 1600ms;
  --dur-spin: 700ms;
  --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Newsreader', 'Newsreader Fallback', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, Menlo, monospace;
  --fw-display: 500;
  --lh-display: 1.15;
  --lh-title: 1.25;
}

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/newsreader-latin-500-normal.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  background-color: var(--surface-lowest);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Type system: Newsreader 500 for headings and figures (--fw-display; leading --lh-display at display and
   headline sizes, --lh-title at title size; -0.01em tracking at display and headline), Inter 400 for copy,
   Inter 600 for emphasis and controls. One body leading (1.6). */
strong { font-weight: 600; }
.tnum { font-variant-numeric: tabular-nums; }
.mkt-nowrap { white-space: nowrap; }
code { font-family: var(--font-mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.mkt-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .mkt-container { padding: 0 16px; } }

/* Buttons: one component, two emphasis levels (filled primary, outlined), two heights */
.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--h-control);
  padding: 0 20px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  background: none;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-standard) ease;
}
.mkt-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mkt-btn:disabled { cursor: progress; opacity: 0.6; }
/* A working button (docs/DESIGN.md section 8.1): aria-busy and disabled, keeping its width; the label
   stays as the accessible name but its glyphs go clear, and an 18px ring in the label's colour turns
   at its centre (still under reduced motion). */
.mkt-btn[aria-busy="true"] { position: relative; -webkit-text-fill-color: transparent; }
.mkt-btn[aria-busy="true"]::after { content: ""; position: absolute; inset: 0; width: 18px; height: 18px; margin: auto; box-sizing: border-box; border: 2px solid currentColor; border-right-color: transparent; border-radius: var(--r-full); }
.mkt-btn--primary { background-color: var(--primary); color: var(--on-primary); }
.mkt-btn--primary:hover { background-color: var(--primary-deep); }
.mkt-btn--outlined { border-color: var(--outline-variant); background-color: var(--surface-lowest); color: var(--on-surface); }
.mkt-btn--outlined:hover { border-color: var(--primary); background-color: var(--surface-low); }
.mkt-btn--lg { min-height: var(--h-control-lg); padding: 0 24px; }
.mkt-btn--block { width: 100%; }
/* Trailing arrow glyph in buttons and arrow links: nudges 3px towards the destination on hover and keyboard focus. */
.mkt-arrow { display: inline-block; transition: transform var(--dur-standard) var(--ease-out); }
/* Sweep (the header's Sign in): the outlined button at rest; on hover or keyboard focus a
   primary fill sweeps in from the left behind the label, which turns on-primary. */
.mkt-btn--sweep { position: relative; isolation: isolate; overflow: hidden; }
.mkt-btn--sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-emphasized) var(--ease-out);
}
.mkt-btn--sweep:hover, .mkt-btn--sweep:focus-visible { color: var(--on-primary); border-color: var(--primary); }
.mkt-btn--sweep:hover::before, .mkt-btn--sweep:focus-visible::before { transform: scaleX(1); }

.mkt-link { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }
/* In an arrow link only the label is underlined, never the arrow. */
.mkt-link.mkt-link--arrow { text-decoration: none; }
.mkt-link--arrow > span:first-child { text-decoration: underline; }
/* Text button (button.mkt-link): the link's ink and underline on a 44px target, for in-place actions. */
button.mkt-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--h-control);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
button.mkt-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Sticky site header on every page except /signup. marketing.js (data-smart-header) tucks it away while
   reading downwards and draws a reading-progress line along its bottom edge from --mkt-progress; without
   the script it is a plain sticky header. */
.mkt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface-lowest) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
}
.mkt-header[data-smart-header]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(var(--mkt-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}
.mkt-header.is-tucked { transform: translateY(-100%); }
.mkt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.mkt-brand-group { display: flex; align-items: center; gap: 24px; }
.mkt-logo { height: 34px; width: auto; display: block; }
.mkt-header-actions { display: flex; align-items: center; gap: 12px; }
/* Desktop navigation: three disclosure triggers and the Calculator and Pricing links, 44px tall, with no fill
   or border of their own. A single mint pill (decorative, behind them) glides to the hovered or focused one
   and rests on the current page's link or the trigger of the group holding it. */
.mkt-nav-desktop { position: relative; display: flex; align-items: center; gap: 2px; }
.mkt-nav-pill {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: var(--r-full);
  background-color: var(--primary-container);
  transform-origin: 0 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) ease;
}
.mkt-nav-pill.is-shown { opacity: 1; }
.mkt-nav-link {
  color: var(--on-surface);
  text-decoration: none;
  font-size: var(--fs-body);
  white-space: nowrap;
  transition: color var(--dur-fast) ease;
}
.mkt-nav-desktop .mkt-nav-link { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: var(--h-control); padding: 0 12px; border-radius: var(--r-full); }
.mkt-nav-link:hover, .mkt-nav-link:focus-visible, .mkt-nav-link[aria-current] { color: var(--primary); }
.mkt-nav-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Until marketing.js wires the pill (or without it), hover falls back to an underline. */
.mkt-nav-desktop:not(.is-live) .mkt-nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.mkt-nav-item { position: relative; }
.mkt-nav-trigger, .mkt-menu-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--h-control);
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-control);
  background: none;
  color: var(--on-surface);
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-fast) ease;
}
.mkt-nav-trigger:hover, .mkt-nav-trigger:focus-visible, .mkt-nav-trigger[aria-expanded="true"], .mkt-nav-trigger.is-current { color: var(--primary); }
.mkt-nav-trigger:focus-visible, .mkt-menu-button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mkt-menu-button { display: none; font-weight: 600; }
.mkt-nav-chevron {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur-standard) var(--ease-out);
}
[aria-expanded="true"] > .mkt-nav-chevron { transform: translateY(2px) rotate(225deg); }
/* Panels: lowest surface, hairline border, card radius, no shadow; under the trigger (desktop) or the full
   width of the header (Menu). Hidden until open: without marketing.js on hover and keyboard focus
   (:hover / :focus-within), with it when the trigger is expanded (.is-open). They fade and rise 6px. */
.mkt-nav-panel, .mkt-menu-panel {
  z-index: 2;
  background-color: var(--surface-lowest);
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-standard) var(--ease-out), transform var(--dur-standard) var(--ease-out), visibility 0s linear var(--dur-standard);
}
.mkt-nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 320px;
  padding: 12px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-card);
}
/* Bridges the gap between trigger and panel so the pointer can cross it. */
.mkt-nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px; }
.mkt-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 68px);
  overflow-y: auto;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--outline-variant);
}
html:not(.mkt-nav-js) .mkt-nav-item:hover > .mkt-nav-panel,
html:not(.mkt-nav-js) .mkt-nav-item:focus-within > .mkt-nav-panel,
html:not(.mkt-nav-js) .mkt-menu:focus-within > .mkt-menu-panel,
.mkt-nav-panel.is-open, .mkt-menu-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.mkt-nav-panel-title { margin: 4px 12px 8px; font-size: var(--fs-small); font-weight: 600; line-height: 1.2; color: var(--on-surface-variant); }
.mkt-nav-panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mkt-nav-entry { display: block; padding: 10px 12px; border-radius: var(--r-control); color: var(--on-surface); text-decoration: none; }
.mkt-nav-entry:hover, .mkt-nav-entry:focus-visible { background-color: var(--primary-container); }
.mkt-nav-entry:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.mkt-nav-entry-title { display: block; font-size: var(--fs-body); font-weight: 600; line-height: 1.2; }
.mkt-nav-entry[aria-current="page"] .mkt-nav-entry-title { color: var(--primary); }
.mkt-nav-entry-desc { display: block; margin-top: 4px; font-size: var(--fs-small); line-height: 1.6; color: var(--on-surface-variant); }
.mkt-menu-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 24px; }
.mkt-menu-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--outline-variant); }
/* From 1024px to 1199px the header actions drop their arrows and the navigation items narrow their side
   padding, to make room for the navigation. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .mkt-brand-group { gap: 16px; }
  .mkt-header-actions .mkt-arrow { display: none; }
  .mkt-nav-desktop .mkt-nav-trigger, .mkt-nav-desktop .mkt-nav-link { padding: 0 8px; }
}
@media (min-width: 1024px) { .mkt-menu-panel { display: none; } }
/* Below 1024px the Menu button replaces the navigation; Sign in lives in the menu, and below 600px so
   does Request access. */
@media (max-width: 1023px) {
  .mkt-nav-desktop, .mkt-header-signin { display: none; }
  .mkt-menu-button { display: inline-flex; }
}
@media (max-width: 600px) { .mkt-header-request { display: none; } }
@media (max-width: 520px) {
  .mkt-logo { height: 28px; }
  .mkt-brand-group { flex-shrink: 0; }
  .mkt-header-actions { min-width: 0; }
}

/* Hero */
.mkt-hero {
  background-color: var(--surface);
  padding: 24px 0 64px;
}
@media (max-width: 960px) { .mkt-hero { padding: 44px 0 40px; } }
/* Hero banner: one sharp photograph with the headline set over its open wall. A canvas-coloured
   wash keeps the text above 7:1 without darkening the photograph. */
.mkt-hero-banner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 74vh, 720px);
}
@media (min-width: 901px) { .mkt-hero-banner { border-radius: var(--r-card); overflow: hidden; } }
.mkt-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 78%;
}
.mkt-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 96%, transparent) 0%, color-mix(in srgb, var(--surface) 92%, transparent) 52%, color-mix(in srgb, var(--surface) 0%, transparent) 80%);
}
.mkt-hero-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 56px;
  max-width: 680px;
}
@media (max-width: 900px) {
  /* Too narrow to set text over the photograph legibly: copy first, photograph beneath. */
  .mkt-hero-banner { flex-direction: column; align-items: stretch; min-height: 0; }
  .mkt-hero-banner::before { display: none; }
  .mkt-hero-photo { position: static; order: 2; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-card); margin-top: 36px; z-index: auto; }
  .mkt-hero-intro { padding: 0; max-width: none; }
}
.mkt-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-display);
  letter-spacing: -0.01em;
  color: var(--on-surface);
  text-wrap: balance;
}
/* Newsreader is wide: about 20 characters a line here, so the headline sets in three lines at 1440px
   and stays inside the washed left part of the photograph. */
.mkt-hero .mkt-h1 { max-width: 10.5em; }
.mkt-hero .mkt-cta-row { justify-content: flex-start; }
.mkt-hero .mkt-lead { color: var(--on-surface); }
/* One line naming the breadth of teams Rupeama serves, under the hero lead. */
.mkt-hero-sectors { margin: 12px 0 0; max-width: 56ch; font-size: var(--fs-body); color: var(--on-surface-variant); }
.mkt-lead {
  margin: 20px 0 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 56ch;
  text-wrap: pretty;
}
.mkt-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
/* Arrow link: the text-link alternative to a second button (primary ink, 600, underlined), 44px tall for touch. */
.mkt-link--arrow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h-control); }
@media (prefers-reduced-motion: no-preference) {
  .mkt-link--arrow:hover .mkt-arrow, .mkt-link--arrow:focus-visible .mkt-arrow { transform: translateX(3px); }
}
@media (max-width: 520px) {
  .mkt-cta-row { flex-direction: column; align-items: stretch; width: 100%; }
}

/* Photographs: card radius, cover crop, in <picture> (WebP sources, JPEG fallback). The <picture> generates
   no box, so every rule addresses the <img> as if it were the direct child. The .mkt-photo wrapper has no
   border or background; it clips the photograph, which marketing.js settles from --mkt-settle 1.06 to 1. */
picture { display: contents; }
.mkt-photo { position: relative; margin: 0; min-width: 0; overflow: hidden; border-radius: var(--r-card); }
.mkt-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-card);
  transform: scale(var(--mkt-settle, 1));
}

/* One card: lowest surface, hairline border, card radius. Cards never nest. */
.mkt-card {
  background-color: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-card);
  overflow: hidden;
}

.mkt-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-caption);
  font-weight: 600;
  white-space: nowrap;
}
.mkt-chip-mint { background: var(--mint-bg); color: var(--mint-fg); }

/* Sections */
.mkt-section { padding: 84px 0; }
.mkt-section-alt {
  padding: 84px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
}
@media (max-width: 768px) {
  .mkt-section, .mkt-section-alt { padding: 56px 0; }
}
/* Anchor targets land clear of the sticky header (68px plus breathing room): the role entries on
   /solutions (linked from the "Who it's for" menu), the FAQ entries, and the old landing anchors kept
   on the home overview (#rhythm, #platform, #calculator, #solutions and #faq). */
.mkt-ledger-item[id], #faq { scroll-margin-top: 92px; }
/* Inner page header: the page's h1 and a one-sentence lead on the canvas. */
.mkt-page-intro { padding: 64px 0 56px; background-color: var(--surface); border-bottom: 1px solid var(--outline-variant); }
.mkt-page-intro .mkt-h1 { max-width: 18em; }
@media (max-width: 768px) { .mkt-page-intro { padding: 40px 0 36px; } }
/* Home overview: the same split the Role solutions page uses. The heading, lead and FAQ link stay
   in view on the left while one ruled list of eight numbered entries (one per page) runs down the
   right, so the block reads in a single direction with no empty cell. */
@media (min-width: 901px) { .mkt-overview-aside { position: sticky; top: 108px; } }
.mkt-overview-aside .mkt-link--arrow { margin-top: 16px; }
.mkt-overview-list .mkt-link--arrow { margin-top: 4px; }
/* Product pages and the FAQ: one readable column of h2 entries. On the four product pages it sits in the
   7/5 split (.mkt-grid-7-5) with one photograph: below 960px the photograph comes first, full width at 3:2;
   from 960px it takes the right-hand five columns at 4:5, top-aligned with the first entry's hairline.
   Every crop is the same 4:5 file, so the 3:2 window keeps the faces in its upper part. */
.mkt-feature-list { max-width: 880px; }
.mkt-feature-photo { aspect-ratio: 3 / 2; }
.mkt-feature-photo img { position: absolute; inset: 0; object-position: 50% 40%; }
@media (min-width: 960px) { .mkt-feature-photo { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; } }
/* The lists on /timecards, /invoicing and /teams run well past the photograph, so it stays beside them while they are read. */
@media (min-width: 960px) and (min-height: 720px) { .mkt-feature-photo { position: sticky; top: 108px; } }
/* /margin-calculator: the h1 sits above the sliders at the headline step; the guide below it is prose. */
.mkt-calc-title { font-size: var(--fs-headline); max-width: 16em; }
/* Long-form prose (the guide under the calculator): display-serif h2 sections, Inter 600 h3 sub-heads,
   paragraphs in the secondary ink with a line of space between them. */
.mkt-prose { max-width: 760px; }
.mkt-prose-title { margin: 40px 0 12px; font-family: var(--font-display); font-size: var(--fs-title); font-weight: var(--fw-display); line-height: var(--lh-title); }
.mkt-prose-title:first-child { margin-top: 0; }
.mkt-prose-subtitle { margin: 24px 0 8px; font-size: var(--fs-body); font-weight: 600; line-height: 1.6; }
.mkt-prose p { margin: 0; line-height: 1.6; color: var(--on-surface-variant); max-width: 68ch; }
.mkt-prose p + p { margin-top: 16px; }
.mkt-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  font-weight: var(--fw-display);
  line-height: var(--lh-display);
  letter-spacing: -0.01em;
  color: var(--on-surface);
  text-wrap: balance;
}
.mkt-sub {
  margin: 14px 0 0;
  color: var(--on-surface-variant);
  font-size: var(--fs-body);
  max-width: 60ch;
}

/* Statement: one centred headline sentence with a single emphasised phrase in primary ink, a lead line
   and a link to the calculator page. */
.mkt-statement-section { padding: 104px 0 96px; text-align: center; }
@media (max-width: 768px) { .mkt-statement-section { padding: 64px 0; } }
.mkt-statement {
  margin: 0 auto;
  max-width: 20em;
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  font-weight: var(--fw-display);
  line-height: var(--lh-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.mkt-statement-em { font-style: normal; color: var(--primary); }
.mkt-statement-lead {
  margin: 20px auto 0;
  max-width: 56ch;
  font-size: var(--fs-lead);
  color: var(--on-surface-variant);
  text-wrap: pretty;
}
.mkt-statement-section .mkt-link--arrow { margin-top: 12px; }

/* Closing call to action: a light panel before the footer */
.mkt-closing { padding: 84px 0; }
@media (max-width: 768px) { .mkt-closing { padding: 56px 0; } }
.mkt-closing-panel {
  padding: 72px 24px;
  border-radius: var(--r-card);
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  text-align: center;
}
@media (max-width: 520px) { .mkt-closing-panel { padding: 48px 20px; } }
.mkt-closing .mkt-h2 { max-width: 16em; margin: 0 auto; color: var(--on-primary-container); }
.mkt-closing .mkt-sub { margin: 16px auto 0; color: var(--on-primary-container); }

/* Three moments: the walkthrough video beside vertical WAI-ARIA tabs.
   Without subgrid the parts simply stack; with it, each tab's panel sits directly under its tab.
   A hairline runs down the left of the tabs and panels. Without marketing.js the selected tab and its
   panel colour that line primary; with it (.is-live) one primary indicator slides along the line to
   the selected tab and its panel, and the incoming panel cross-fades in (marketing.js).
   The video box is 16:10 at every width, set before anything loads, so the poster and the video
   never move the page. Its Pause/Play button appears only once marketing.js runs. */
.mkt-moments { position: relative; }
.mkt-moments-video { aspect-ratio: 16 / 10; margin-bottom: 28px; border: 1px solid var(--outline-variant); background-color: var(--surface-low); }
.mkt-moments-video video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.mkt-video-toggle { position: absolute; left: 12px; bottom: 12px; z-index: 1; }
.mkt-tablist { position: relative; display: flex; flex-direction: column; }
.mkt-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 16px 18px 22px;
  border: 0;
  border-left: 2px solid var(--outline-variant);
  background: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  font-family: inherit;
  border-top-right-radius: var(--r-control);
  border-bottom-right-radius: var(--r-control);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background-color var(--dur-standard) var(--ease-out);
}
.mkt-tab-indicator {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 3px;
  background-color: var(--primary);
  transform-origin: 0 0;
  pointer-events: none;
}
.mkt-tablist.is-live .mkt-tab-indicator { display: block; }
.mkt-tablist.is-live .mkt-tab[aria-selected="true"], .mkt-tablist.is-live ~ .mkt-tabpanel { border-left-color: var(--outline-variant); }
.mkt-tab:hover { color: var(--on-surface); background-color: var(--surface-low); }
.mkt-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mkt-tab[aria-selected="true"] { color: var(--on-surface); border-left-color: var(--primary); background-color: var(--primary-container); }
.mkt-tablist ~ .mkt-tabpanel { padding-top: 18px; }
.mkt-tab-moment { font-size: var(--fs-caption); font-weight: 600; display: block; }
.mkt-tab[aria-selected="true"] .mkt-tab-moment { color: var(--primary); }
.mkt-tab-title { font-family: var(--font-display); font-size: var(--fs-title); font-weight: var(--fw-display); line-height: var(--lh-title); margin-top: 6px; display: block; text-wrap: balance; transition: transform var(--dur-emphasized) var(--ease-out); }
.mkt-tabpanel { padding: 0 0 24px 22px; border-left: 2px solid var(--primary); }
.mkt-tabpanel:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mkt-stage-title { font-size: var(--fs-body); font-weight: 600; margin: 0 0 8px; color: var(--on-surface); max-width: 60ch; }
.mkt-stage-copy { color: var(--on-surface-variant); font-size: var(--fs-body); margin: 0; max-width: 60ch; }
.mkt-stage-copy + .mkt-stage-copy { margin-top: 12px; }
.mkt-tabpanel .mkt-link--arrow { margin-top: 8px; }
@supports (grid-template-rows: subgrid) {
  .mkt-moments { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(8, auto); }
  .mkt-moments-video { grid-column: 1; grid-row: 2; }
  .mkt-tablist { display: grid; grid-column: 1; grid-row: 3 / 9; grid-template-rows: subgrid; }
  .mkt-tab:nth-child(1) { grid-row: 1; }
  .mkt-tab:nth-child(2) { grid-row: 3; }
  .mkt-tab:nth-child(3) { grid-row: 5; }
  .mkt-tabpanel { grid-column: 1; }
  #panel-timecards { grid-row: 4; }
  #panel-approvals { grid-row: 6; }
  #panel-billing { grid-row: 8; }
  @media (min-width: 961px) {
    .mkt-moments { grid-template-columns: 50% minmax(0, 1fr); column-gap: 64px; grid-template-rows: repeat(7, auto) 1fr; }
    .mkt-moments-video { grid-column: 1; grid-row: 1 / -1; align-self: start; margin: 0; }
    .mkt-tablist { grid-column: 2; grid-row: 2 / 8; }
    .mkt-tabpanel { grid-column: 2; }
    #panel-timecards { grid-row: 3; }
    #panel-approvals { grid-row: 5; }
    #panel-billing { grid-row: 7; }
  }
}

/* Margin calculator: sliders on the left, a light result panel on the right */
.mkt-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .mkt-calc-grid { grid-template-columns: 1fr; gap: 36px; } }
.mkt-slider-group { margin-top: 24px; }
.mkt-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: 8px;
}
.mkt-slider-value { color: var(--primary); font-weight: 600; white-space: nowrap; }
/* Range: a styled track whose filled part follows --fill, set on the input itself
   (a build-time default per slider, then marketing.js on every change). */
.mkt-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: var(--h-control);
  margin: 0;
  background: none;
  cursor: pointer;
}
.mkt-range:focus { outline: none; }
.mkt-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--r-full);
  background: linear-gradient(to right, var(--primary) var(--fill, 50%), var(--outline-variant) var(--fill, 50%));
}
.mkt-range::-moz-range-track { height: 6px; border-radius: var(--r-full); background-color: var(--outline-variant); }
.mkt-range::-moz-range-progress { height: 6px; border-radius: var(--r-full); background-color: var(--primary); }
.mkt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 3px solid var(--surface-lowest);
  border-radius: var(--r-full);
  background-color: var(--primary);
  transition: transform var(--dur-fast) var(--ease-out);
}
.mkt-range::-moz-range-thumb {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 3px solid var(--surface-lowest);
  border-radius: var(--r-full);
  background-color: var(--primary);
  transition: transform var(--dur-fast) var(--ease-out);
}
.mkt-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--primary); outline-offset: 2px; }
.mkt-range:focus-visible::-moz-range-thumb { outline: 2px solid var(--primary); outline-offset: 2px; }
#calc-team { --fill: 13.79%; }
#calc-rate { --fill: 29.63%; }
#calc-leak { --fill: 28.57%; }
.mkt-calc-card {
  border-radius: var(--r-card);
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  padding: 38px;
}
@media (max-width: 600px) { .mkt-calc-card { padding: 24px; } }
.mkt-calc-label { font-size: var(--fs-small); font-weight: 600; }
.mkt-calc-output {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-display);
  line-height: var(--lh-display);
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.mkt-calc-formula { font-size: var(--fs-small); margin: 12px 0 0; line-height: 1.6; max-width: 52ch; }
.mkt-calc-subgrid {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--on-primary-container) 18%, transparent);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mkt-calc-figure { font-size: var(--fs-lead); font-weight: 600; }
.mkt-calc-figure-label { font-size: var(--fs-caption); margin-top: 2px; }
.mkt-calc-note { margin: 24px 0 0; font-size: var(--fs-caption); line-height: 1.6; }

/* Editorial split lists */
.mkt-split-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .mkt-split-grid { grid-template-columns: 1fr; gap: 32px; } }
.mkt-roles-photo { margin-top: 36px; }
/* Mirrored so the two people look towards the role list beside them, not off the page. */
.mkt-roles-photo img { transform: scaleX(-1) scale(var(--mkt-settle, 1)); }
.mkt-ledger-item {
  padding: 26px 0;
  border-top: 1px solid var(--outline-variant);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
}
.mkt-ledger-item:last-child { border-bottom: 1px solid var(--outline-variant); }
.mkt-ledger-item--single { grid-template-columns: 1fr; }
.mkt-ledger-index { font-weight: 600; color: var(--primary); padding-top: 6px; }
.mkt-ledger-item-title { margin: 0 0 8px; font-family: var(--font-display); font-size: var(--fs-title); font-weight: var(--fw-display); line-height: var(--lh-title); text-wrap: balance; }
.mkt-ledger-item-copy { margin: 0; color: var(--on-surface-variant); font-size: var(--fs-body); max-width: 68ch; }

/* 5/7 split on the 12-column rhythm: from 960px text takes 5 columns and content 7, top-aligned, with one
   64px gap; below 960px they stack, text first. The footer's contact band, its link row and the /contact
   section share it, so their edges line up. */
.mkt-grid-5-7 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 960px) { .mkt-grid-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; } }
/* Its mirror for the product pages: entries in 7 columns on the left, the photograph in 5 on the right. */
.mkt-grid-7-5 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 960px) { .mkt-grid-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; } }

/* Footer on every page except /signup, on the 5/7 grid: the contact band (not on /contact, whose body is
   the form), a hairline, the link row (logo and blurb; Company and Legal, four links each), then the bar.
   The band's heading is at the title step, below the closing panel's headline, so that panel stays the
   page's primary action. Links are 44px tall below 960px. */
.mkt-footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--outline-variant);
  padding: 56px 0 40px;
}
.mkt-contact-band { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--outline-variant); }
@media (max-width: 768px) {
  .mkt-footer { padding-top: 40px; }
  .mkt-contact-band { padding-bottom: 40px; margin-bottom: 40px; }
}
.mkt-footer-row { padding-bottom: 40px; }
.mkt-footer-blurb { color: var(--on-surface-variant); font-size: var(--fs-small); max-width: 40ch; margin: 16px 0 0; }
/* Two equal columns; below 520px they stack, since "Request workspace access" and "Modern Slavery
   Statement" would each wrap onto two lines in a half-width column at 320px to 400px. */
.mkt-footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
@media (max-width: 520px) { .mkt-footer-cols { grid-template-columns: minmax(0, 1fr); } }
.mkt-footer-title {
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  color: var(--on-surface);
  margin: 0 0 14px;
}
.mkt-footer-links { list-style: none; padding: 0; margin: 0; display: grid; }
.mkt-footer-links a { display: inline-flex; align-items: center; padding: 6px 0; color: var(--on-surface-variant); text-decoration: none; font-size: var(--fs-small); }
@media (max-width: 959px) { .mkt-footer-links a { min-height: var(--h-control); padding: 0; } }
.mkt-footer-links a:hover, .mkt-footer-links a[aria-current="page"] { color: var(--primary); text-decoration: underline; }
.mkt-footer-bar {
  border-top: 1px solid var(--outline-variant);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-caption);
  color: var(--on-surface-variant);
}

/* Contact: the band's heading and sentence, the facts (labels beside values, no boxes) and the form. */
.mkt-contact-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: var(--fw-display);
  line-height: var(--lh-title);
  color: var(--on-surface);
  text-wrap: balance;
}
.mkt-contact-copy { margin: 12px 0 0; color: var(--on-surface-variant); max-width: 48ch; text-wrap: pretty; }
.mkt-facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px; align-items: baseline; }
.mkt-contact-copy + .mkt-facts { margin-top: 24px; }
.mkt-facts dt { font-size: var(--fs-caption); color: var(--on-surface-variant); }
.mkt-facts dd { margin: 0; color: var(--on-surface); }
/* Inline links in the facts and the form note keep their line box but reach the 44px touch height. */
.mkt-facts a, .mkt-contact-note a {
  display: inline-block;
  padding-block: calc((var(--h-control) - 1lh) / 2);
  margin-block: calc((1lh - var(--h-control)) / 2);
}
/* /contact: under the facts, a hairline and two links for people who need something else. */
.mkt-contact-more { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--outline-variant); }
.mkt-contact-more p { margin: 0; color: var(--on-surface-variant); }
.mkt-contact-more ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; justify-items: start; }
/* Under the links, from 960px only: one 4:3 photograph. Below 960px it is not displayed, and being lazy it
   is never fetched (its WebP source also carries the 960px media query), as on /signup. */
.mkt-contact-photo { display: none; }
@media (min-width: 960px) { .mkt-contact-photo { display: block; margin-top: 32px; aspect-ratio: 4 / 3; } }
.mkt-contact-photo img { position: absolute; inset: 0; }
/* The form and its sent message share one grid cell: the message takes the form's place while the form
   keeps its height (visibility: hidden), so nothing below moves. The message receives focus. */
.mkt-contact-swap { display: grid; min-width: 0; }
.mkt-contact-swap > * { grid-area: 1 / 1; min-width: 0; }
.mkt-contact-swap.is-sent > form { visibility: hidden; }
.mkt-contact-sent:focus { outline: none; }
/* Send message: full width below 960px with the note under it; from 960px its own width, the note beside it. */
.mkt-contact-actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 960px) {
  .mkt-contact-actions { flex-direction: row; align-items: center; gap: 20px; }
  .mkt-contact-actions .mkt-btn { flex-shrink: 0; }
}
.mkt-contact-note { margin: 0; font-size: var(--fs-caption); line-height: 1.6; color: var(--on-surface-variant); }
/* Turnstile box in the contact form: no height until Turnstile asks the visitor to
   interact (marketing.js adds .is-shown from its before-interactive callback and removes it after). */
.mkt-turnstile:not(.is-shown) { height: 0; overflow: hidden; }
.mkt-turnstile.is-shown { margin-bottom: 18px; }

/* Account layout: /signup, /login and /auth/link (accountPage). Canvas page, logo-only header, a 440px
   content block centred in the form column, and from 960px a full-bleed sticky photograph column with a
   caption statement. No footer. */
.mkt-auth {
  min-height: 100dvh;
  display: grid;
  background-color: var(--surface);
  color: var(--on-surface);
}
@media (min-width: 960px) { .mkt-auth { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.mkt-auth-column { display: flex; flex-direction: column; min-width: 0; }
.mkt-auth-header { padding: 24px; }
.mkt-auth-home { display: flex; width: fit-content; border-radius: var(--r-control); }
.mkt-auth-home:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mkt-auth-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 7vh, 72px) 24px 48px;
}
.mkt-auth-content { width: 100%; max-width: 440px; }
/* Account switch: a segmented control of two links; the decorative indicator sits under the current one. */
.mkt-switch { margin-bottom: 32px; }
.mkt-switch-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 48px;
  padding: 4px;
  background-color: var(--surface-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-full);
}
.mkt-switch-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background-color: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-full);
  transform: translateX(100%);
}
.mkt-switch-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: var(--r-full);
  color: var(--on-surface-variant);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.mkt-switch-link:hover, .mkt-switch-link[aria-current="page"] { color: var(--on-surface); }
/* On /login the indicator rests under "Sign in", the first link. */
.mkt-switch-indicator--start { transform: none; }
.mkt-switch-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.mkt-auth-visual { display: none; }
@media (min-width: 960px) {
  .mkt-auth-visual { display: block; position: sticky; top: 0; align-self: start; height: 100dvh; overflow: hidden; }
}
.mkt-auth-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mkt-auth-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px;
  background-image: linear-gradient(to top, color-mix(in srgb, var(--surface) 94%, transparent) 0%, color-mix(in srgb, var(--surface) 94%, transparent) 45%, color-mix(in srgb, var(--surface) 0%, transparent) 100%);
}
.mkt-auth-caption p {
  margin: 0;
  max-width: 520px;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: var(--fw-display);
  line-height: var(--lh-title);
  color: var(--on-surface);
}
.mkt-auth-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  font-weight: var(--fw-display);
  line-height: var(--lh-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--on-surface);
}
.mkt-auth-lead { margin: 12px 0 32px; font-size: var(--fs-lead); line-height: 1.6; color: var(--on-surface-variant); }
.mkt-auth-links { margin: 20px 0 0; font-size: var(--fs-small); color: var(--on-surface-variant); text-align: center; }
.mkt-auth-note { margin: 12px 0 0; font-size: var(--fs-caption); line-height: 1.6; color: var(--on-surface-variant); }
.mkt-result-summary {
  padding: 16px 0;
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  margin-bottom: 20px;
}
.mkt-result-label { font-size: var(--fs-caption); color: var(--on-surface-variant); }
.mkt-result-ref { font-family: var(--font-mono); font-weight: 600; color: var(--primary); margin-top: 2px; }
.mkt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 400px) { .mkt-field-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.mkt-field { margin-bottom: 18px; }
.mkt-field label { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--on-surface); margin-bottom: 6px; }
/* Fields match the React outlined text field: 56px tall, control radius, outline border that darkens
   on hover, and a 2px primary edge on focus (the 1px border plus a 1px inset outline). */
.mkt-field input, .mkt-field textarea {
  width: 100%;
  box-sizing: border-box;
  height: 56px;
  padding: 0 14px;
  font-size: var(--fs-body);
  font-family: inherit;
  line-height: 1.5;
  border-radius: var(--r-control);
  border: 1px solid var(--outline);
  background: var(--surface-lowest);
  color: var(--on-surface);
}
.mkt-field textarea { display: block; height: auto; padding: 14px; resize: vertical; }
.mkt-field input:hover, .mkt-field textarea:hover { border-color: var(--on-surface-variant); }
.mkt-field input:focus, .mkt-field textarea:focus { outline: 1px solid var(--primary); outline-offset: -2px; border-color: var(--primary); }
.mkt-alert {
  padding: 14px 16px;
  border-radius: var(--r-control);
  font-size: var(--fs-small);
  margin-bottom: 18px;
  line-height: 1.5;
}
.mkt-alert-error { background: var(--error-container); color: var(--on-error-container); }
.mkt-alert-success { background: var(--primary-container); color: var(--on-primary-container); }
.mkt-alert-info { background: var(--secondary-container); color: var(--on-secondary-container); }
/* Sign in (/login): the form and its "Check your email" message share one grid cell, so the block keeps
   the height of the taller one and nothing below moves when the message replaces the form. signin.js
   makes the hidden one inert and moves focus to the message. */
.mkt-auth-swap { display: grid; min-width: 0; }
.mkt-auth-swap > * { grid-area: 1 / 1; min-width: 0; }
.mkt-auth-swap:not(.is-sent) > .mkt-auth-sent, .mkt-auth-swap.is-sent > form { visibility: hidden; }
.mkt-auth-sent { display: flex; flex-direction: column; }
.mkt-auth-status { margin-bottom: 18px; }
.mkt-auth-status:focus { outline: none; }
.mkt-auth-status h2 { margin: 0; font-size: var(--fs-lead); font-weight: 600; line-height: 1.6; }
.mkt-auth-status p { margin: 4px 0 0; color: var(--on-surface-variant); }
.mkt-auth-status strong { color: var(--on-surface); overflow-wrap: anywhere; }
.mkt-auth-sent button.mkt-link { align-self: center; margin-top: 8px; }
/* Google and Apple below an "or" rule, shown only for the providers the API reports. They sit under
   everything else in the block, so nothing on screen moves when they appear. */
.mkt-auth-divider { display: flex; align-items: center; gap: 12px; margin: 32px 0; font-size: var(--fs-small); color: var(--on-surface-variant); }
.mkt-auth-divider::before, .mkt-auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--outline-variant); }
.mkt-auth-providers { display: grid; gap: 12px; }
/* The emailed link (/auth/link) while it is checked: a placeholder the size of the button it becomes. */
.mkt-auth-skeleton { height: var(--h-control-lg); border-radius: var(--r-control); background-color: var(--surface-container); }

/* Legal pages */
.mkt-page--legal {
  background: var(--surface);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.mkt-legal-main { width: 100%; flex: 1; padding-top: 48px; padding-bottom: 64px; }
.mkt-legal-title { margin-bottom: 12px; }
.mkt-legal-sub { margin-bottom: 28px; }
.mkt-legal-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 32px; }
.mkt-legal-nav a {
  color: var(--on-surface-variant);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 8px 0;
  text-decoration: none;
}
.mkt-legal-nav a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 6px; }
.mkt-legal-nav a[aria-current="page"] {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.mkt-policy-card { padding: 32px; margin-bottom: 24px; }
.mkt-policy-card--current { border: 2px solid var(--primary); }
@media (max-width: 520px) { .mkt-policy-card { padding: 24px; } }
.mkt-policy-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.mkt-policy-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-title); font-weight: var(--fw-display); line-height: var(--lh-title); text-wrap: balance; overflow-wrap: anywhere; }
.mkt-policy-meta { font-size: var(--fs-caption); color: var(--on-surface-variant); margin: 4px 0 0; }
.mkt-policy-copy { color: var(--on-surface-variant); margin: 16px 0 0; max-width: 68ch; overflow-wrap: anywhere; }
.mkt-cookie-form { margin-top: 18px; }
.mkt-options {
  margin-bottom: 18px;
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
}
.mkt-option { padding: 16px 0; }
.mkt-option + .mkt-option { border-top: 1px solid var(--outline-variant); }
.mkt-option-label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-body); }
.mkt-option-label--toggle { cursor: pointer; }
.mkt-option-note { margin: 6px 0 0 26px; font-size: var(--fs-caption); color: var(--on-surface-variant); }

/* Analytics consent bar: compact, bottom-centred, never casts a shadow. Body gains bottom
   padding while it is shown so it never permanently covers the page's own actions. */
.mkt-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 110;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background-color: var(--surface-lowest);
  border: 1px solid var(--outline);
  border-radius: var(--r-card);
}
.mkt-consent-copy { margin: 0; flex: 1; font-size: var(--fs-small); color: var(--on-surface); }
.mkt-consent-copy .mkt-link { white-space: nowrap; }
.mkt-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
body.mkt-has-consent { padding-bottom: 120px; }
@media (max-width: 640px) {
  .mkt-consent { flex-direction: column; align-items: stretch; gap: 12px; left: 12px; right: 12px; bottom: 12px; padding: 14px 16px; }
  .mkt-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  body.mkt-has-consent { padding-bottom: 190px; }
}

/* Motion: transform and opacity only, timings from the motion tokens, all of it off under reduced motion.
   marketing.js adds .mkt-reveal-on and .mkt-scroll-on to <html> only when it runs with motion allowed,
   so without the script (or under reduced motion) every block, word and photograph sits in full ink. */
@keyframes mkt-switch-arrive { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes mkt-switch-return { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes mkt-appear { from { opacity: 0; } }
@keyframes mkt-hold { from, to { opacity: 0; } }
@keyframes mkt-breathe { 50% { opacity: 0.55; } }
@keyframes mkt-spin { to { transform: rotate(360deg); } }
/* Page-to-page: a quick crossfade where the browser supports cross-document view transitions;
   elsewhere navigation is simply instant. marketing.js prefetches a page when its link is hovered. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-standard); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .mkt-btn:active { transform: scale(0.98); }
  .mkt-btn:focus-visible .mkt-arrow { transform: translateX(3px); }
  .mkt-range:active::-webkit-slider-thumb { transform: scale(1.22); }
  .mkt-range:active::-moz-range-thumb { transform: scale(1.22); }
  .mkt-header[data-smart-header] { transition: transform var(--dur-standard) var(--ease-out); }
  @media (hover: hover) and (pointer: fine) {
    .mkt-btn--primary:hover { transform: translateY(-1px); }
    .mkt-btn--primary:active { transform: scale(0.98); }
    .mkt-btn:hover .mkt-arrow { transform: translateX(3px); }
    .mkt-tab[aria-selected="false"]:hover .mkt-tab-title { transform: translateX(3px); }
    .mkt-range:hover::-webkit-slider-thumb { transform: scale(1.12); }
    .mkt-range:hover::-moz-range-thumb { transform: scale(1.12); }
  }
  /* Scroll reveal: each block below the first screen fades up 16px once, in 350ms; marketing.js
     staggers blocks arriving together through --mkt-reveal-delay. Nothing in the first screen is
     animated on load. */
  .mkt-reveal-on [data-reveal] {
    transition: opacity calc(var(--dur-emphasized) * 1.25) var(--ease-out) var(--mkt-reveal-delay, 0ms), transform calc(var(--dur-emphasized) * 1.25) var(--ease-out) var(--mkt-reveal-delay, 0ms);
  }
  .mkt-reveal-on [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(16px); }
  @media print { .mkt-reveal-on [data-reveal]:not(.is-revealed) { opacity: 1; transform: none; } }
  /* Statement fill: marketing.js wraps each word in .mkt-word and lights them as the heading crosses the viewport. */
  .mkt-scroll-on .mkt-word { opacity: 0.25; transition: opacity var(--dur-standard) linear; }
  .mkt-scroll-on .mkt-word.is-lit { opacity: 1; }
  /* Hero parallax: the banner photograph drifts at a fraction of scroll speed, oversized so no edge shows. */
  @media (min-width: 901px) {
    .mkt-scroll-on .mkt-hero-photo { transform: translateY(var(--mkt-drift, 0px)) scale(1.08); }
  }
  /* /signup and /login: nothing fades in on load, so the form is readable at once. Only the switch
     indicator moves, from under the other link to the current one. */
  .mkt-switch-indicator { animation: mkt-switch-arrive var(--dur-emphasized) var(--ease-out) both; }
  .mkt-switch-indicator--start { animation-name: mkt-switch-return; }
  /* /auth/link: the placeholder, like the app's skeletons, stays clear for --dur-reveal (its space held),
     fades in, then breathes; a working button's ring turns. */
  .mkt-auth-skeleton { animation: mkt-appear var(--dur-standard) var(--ease-out) var(--dur-reveal) both, mkt-breathe var(--dur-breathe) ease-in-out calc(var(--dur-reveal) + var(--dur-standard)) infinite; }
  .mkt-btn[aria-busy="true"]::after { animation: mkt-spin var(--dur-spin) linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* Still, but not flashed: the placeholder appears after the same delay. */
  .mkt-auth-skeleton { animation: mkt-hold var(--dur-reveal) linear !important; }
}
