/* ============================================================================
   AI Ledgerli - design system
   Mobile first. Every media query is min-width; the base styles ARE the phone
   layout. Palette is sampled from the logo: deep navy through blue to orange.
   ========================================================================= */

:root {
  /* brand - sampled from the logo, desaturated slightly so large fills read
     as enterprise navy rather than "startup gradient" */
  --navy-950: #0A1330;
  --navy-900: #0E1938;
  --navy-800: #142348;
  --navy-700: #1C3266;
  --navy-600: #2A468C;
  --blue-500: #3A6FC4;
  --blue-400: #5C8AD1;
  --blue-200: #B7CBEA;
  --blue-50:  #EEF2FA;

  /* accent used at small sizes only - a single live wire, not a fill color.
     #B04A19 clears 4.5:1 (WCAG AA, normal text) against every surface it
     appears on - paper, paper-2 and paper-3 - not just white. */
  --accent:      #B04A19;
  --accent-600:  #933D14;
  --accent-tint: #FBEEE6;

  /* neutrals - warm-neutral grey rather than tinted-blue, so it reads as
     paper and ink instead of "SaaS gradient background" */
  --paper:    #FFFFFF;
  --paper-2:  #F7F7F6;
  --paper-3:  #EFEFED;
  --line:     #DEDEDB;
  --line-soft:#EAEAE8;
  --text:     #1B1D22;
  --muted:    #5B5E68;
  /* #6B6E78 - deliberately darker than a typical "faint" grey; 8B8E97
     measured 3.27:1 on white, which fails AA for the normal-size labels it
     is used on (stat captions, unit prices, form labels). */
  --faint:    #6B6E78;

  --on-dark:      #EEF0F5;
  --on-dark-mute: #A6ABBB;
  --on-dark-line: rgba(183, 203, 234, 0.16);

  /* type - Inter carries the working hierarchy (nav, body, cards, labels).
     The display serif is reserved for h-display only, the way EY/Deloitte
     pair a structural grotesk with one serif headline face to read as an
     audit firm rather than a SaaS product. */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* rhythm - fluid, so it never needs a breakpoint to feel right */
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(3.5rem, 9vw, 6.5rem);
  --measure: 62ch;
  --wrap: 78rem;

  --radius: 8px;
  --radius-sm: 5px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Tight and low-opacity on purpose. A large-blur, two-layer shadow that
     grows on hover is the shadcn/Tailwind starter-kit signature - the same
     three or four cards on every generated landing page. This should read
     as a sheet of paper lifted slightly, not a glow. */
  --shadow-sm: 0 1px 2px rgba(20, 24, 38, 0.05);
  --shadow-md: 0 3px 8px -2px rgba(20, 24, 38, 0.10), 0 1px 2px rgba(20, 24, 38, 0.05);
  --shadow-lg: 0 6px 16px -4px rgba(20, 24, 38, 0.13), 0 2px 4px -1px rgba(20, 24, 38, 0.06);
}

/* --------------------------------------------------------------- baseline */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--navy-700); color: #fff; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 0.85rem 1.25rem;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------- typography */

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

.h-display {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em;
  font-size: clamp(2.25rem, 7vw, 3.75rem); line-height: 1.05;
}
.h-section {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.006em;
  font-size: clamp(1.625rem, 4.5vw, 2.375rem); line-height: 1.16;
}
.h-card    { font-size: clamp(1.0625rem, 2.6vw, 1.1875rem); line-height: 1.3; letter-spacing: -0.012em; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }

.lede {
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 40ch;
}

.body { color: var(--muted); max-width: var(--measure); }

/* The small mono label with a rule - used to open every section.
   Deliberately not an icon-in-a-circle; this is a print device, not a UI one. */
/* A plain italic caption, not a decorated "eyebrow" chip - the mono,
   all-caps, ruled-line kicker is the single most recognisable AI-template
   tell, and an audit firm's own site should not carry it. */
.label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--accent);
  margin: 0 0 0.85rem;
}
.section--dark .label { color: var(--blue-200); }

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ------------------------------------------------------------------ layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 7vw, 4.5rem); }

.section--dark {
  background: var(--navy-900);
  color: var(--on-dark);
}
.section--dark .body,
.section--dark .lede { color: var(--on-dark-mute); }
.section--dark .label { color: var(--blue-200); }

.section--tint { background: var(--paper-2); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* A stack is the default on mobile; columns only appear when there is room. */
.stack > * + * { margin-top: var(--stack-gap, 1rem); }

.grid { display: grid; gap: var(--grid-gap, 1.5rem); }

@media (min-width: 46em) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 62em) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 46em) and (max-width: 61.99em) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Editorial split: label rail on the left, content right. Asymmetric on
   purpose - a 50/50 split is the thing that reads as generic. */
@media (min-width: 62em) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
  .split--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split__rail--sticky { position: sticky; top: 6.5rem; }
}

/* ---------------------------------------------------------------- header */

.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
@media (min-width: 62em) { .hdr__bar { min-height: 4.75rem; } }

.logo { display: flex; align-items: center; gap: 0.5rem; flex: none; }
.logo__mark { width: 3.1rem; height: 2.15rem; flex: none; }
.logo__word {
  position: relative;
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  padding-bottom: 0.3rem;
  background: linear-gradient(90deg, var(--navy-700) 0%, var(--blue-500) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo__word::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.1rem;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-700) 0%, var(--blue-500) 55%, var(--accent) 100%);
}
.ftr .logo__word,
.ftr .logo__word::after {
  background: linear-gradient(90deg, var(--blue-200) 0%, var(--blue-400) 55%, var(--accent) 100%);
}
.ftr .logo__word { -webkit-background-clip: text; background-clip: text; }

.nav { display: none; }
@media (min-width: 62em) {
  .nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2rem); }
}
.nav__link {
  font-size: 0.9375rem;
  color: var(--muted);
  padding-block: 0.35rem;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent);
  transition: right 0.35s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { right: 0; }
.nav__link[aria-current="page"] { color: var(--navy-700); font-weight: 500; }
.nav__link[aria-current="page"]::after { right: 0; background: var(--navy-700); }

/* Hamburger: a real button, 44px hit area, no icon font. */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem; height: 2.75rem;
  padding: 0 0.6rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
@media (min-width: 62em) { .burger { display: none; } }
.burger span {
  display: block; height: 1.5px; width: 100%;
  background: var(--navy-800);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mnav { border-top: 1px solid var(--line-soft); background: var(--paper); }
.mnav[hidden] { display: none; }
.mnav__list { padding-block: 0.5rem 1.5rem; }
.mnav__link {
  display: block;
  padding: 0.95rem 0;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--line-soft);
}
.mnav__link[aria-current="page"] { color: var(--navy-700); font-weight: 500; }
.mnav .btn { margin-top: 1.25rem; width: 100%; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;              /* comfortable thumb target */
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.006em;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-700); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn--ghost { border-color: var(--line); color: var(--text); background: var(--paper); }
.btn--ghost:hover { border-color: var(--navy-600); background: var(--paper-2); }

.btn--onDark { background: var(--paper); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn--onDark:hover { background: var(--blue-50); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--ghostDark { border-color: var(--on-dark-line); color: var(--on-dark); }
.btn--ghostDark:hover { border-color: var(--blue-200); background: rgba(183,203,234,0.08); }

.btn--block { width: 100%; }
@media (min-width: 30em) { .btn--block { width: auto; } }

/* An arrow that shifts on hover. One restrained motion cue, used consistently. */
.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 30em) { .btn-row { flex-direction: row; flex-wrap: wrap; } }

/* Text link with a rule that draws in */
.tlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 500; color: var(--navy-700);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.4s var(--ease);
  padding-bottom: 2px;
}
.tlink:hover { background-size: 100% 1px; }
.section--dark .tlink,
.ftr .tlink { color: var(--blue-200); }

/* ------------------------------------------------------------------- hero */

.hero { padding-block: clamp(2.5rem, 9vw, 6rem) clamp(3rem, 8vw, 5.5rem); }

.hero__figure {
  position: relative;
  margin-top: 2.5rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-800);
}
@media (min-width: 62em) {
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
  }
  .hero__figure { margin-top: 0; aspect-ratio: 5 / 6; }
}

/* A vertical office-tour clip, framed like a phone card rather than
   forced full-bleed - the source footage is portrait, and cropping it to
   a wide hero would throw most of the shot away. */
.office-video {
  position: relative;
  margin-top: 2.5rem;
  max-width: 22rem;
  margin-inline: auto;
  aspect-ratio: 720 / 1140;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-950);
  box-shadow: var(--shadow-lg);
}
.office-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 62em) { .office-video { margin-top: 0; max-width: 100%; } }

/* Full-bleed hero: a slow crossfade of toned photography behind the
   headline, the way EY/Deloitte set a home page rather than the boxed
   product-shot-on-the-right pattern. Pure CSS animation - the first layer
   is opaque by default, so a no-JS or reduced-motion visitor still gets a
   correct, static hero. */
.hero--photo {
  position: relative;
  padding-block: clamp(4.5rem, 14vw, 8.5rem) clamp(3.5rem, 10vw, 6rem);
  overflow: hidden;
  color: var(--on-dark);
  isolation: isolate;
}
.herobg__layer {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: heroFade 21s ease-in-out infinite;
}
.herobg__layer:nth-child(1) { opacity: 1; animation-delay: 0s; }
.herobg__layer:nth-child(2) { animation-delay: 7s; }
.herobg__layer:nth-child(3) { animation-delay: 14s; }
@keyframes heroFade {
  0%, 4.5% { opacity: 1; }
  33.5%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .herobg__layer { animation: none; opacity: 0; }
  .herobg__layer:nth-child(1) { opacity: 1; }
}
.herobg__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(10,19,48,0.93) 0%, rgba(10,19,48,0.82) 42%, rgba(10,19,48,0.58) 100%);
}
.hero--photo .label { color: var(--blue-200); }
.hero--photo .lede { color: var(--on-dark-mute); }

/* A single restrained navy wash, not a rainbow duotone - a heavy
   navy-to-orange gradient over photography is exactly the kind of thing
   that reads as a generated template. Real photography, quietly toned. */
.duo { position: relative; width: 100%; height: 100%; background: var(--navy-950); }
.duo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) contrast(1.05) brightness(0.94);
}
.duo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(175deg, rgba(14,25,56,0.34) 0%, rgba(14,25,56,0.08) 45%, rgba(14,25,56,0.4) 100%);
}

.hero__credibility {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--on-dark-line);
  max-width: 34ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--on-dark-mute);
}

/* --------------------------------------------------------------- marquee */

.sectors {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem;
  list-style: none; margin: 0; padding: 0;
}
.sectors li {
  font-size: 0.8125rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.4rem 0.85rem;
  white-space: nowrap;
}
/* Used a second time inside the dark "Systems & security" section for the
   stack list. Without this, pills render --muted (a dark grey meant for
   white backgrounds) on navy - 2.67:1, effectively unreadable. */
.section--dark .sectors li { color: var(--on-dark-mute); border-color: var(--on-dark-line); }

/* ------------------------------------------------------------------ carousel */

/* overflow-x:hidden here, not just on body, because .carousel__track's
   full-bleed negative-margin technique makes its own box wider than the
   viewport - relying solely on body to clip that is fragile. */
.carousel { position: relative; overflow-x: hidden; }
.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.25rem;
  margin: 0 calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__card {
  flex: none;
  scroll-snap-align: start;
  width: min(78vw, 19rem);
  border-radius: var(--radius-sm);
  padding: 1.75rem 1.5rem;
  color: var(--on-dark);
  background: var(--navy-900);
  border-top: 2px solid var(--accent);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.carousel__card-h { font-family: var(--serif); font-weight: 600; font-size: 1.125rem; }
.carousel__card-b { font-size: 0.875rem; color: var(--on-dark-mute); line-height: 1.5; }
.carousel__nav { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.carousel__btn {
  width: 2.5rem; height: 2.5rem; border-radius: 100px;
  border: 1px solid var(--line); background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--navy-900); transition: border-color 0.15s var(--ease);
}
.carousel__btn:hover { border-color: var(--navy-800); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
@media (min-width: 62em) { .carousel__card { width: 21rem; } }

/* Client logo tiles. A fixed white background regardless of the source
   file's own background keeps the grid consistent - some logo files ship
   with a baked-in white or coloured background, others are transparent. */
.ctile-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.ctile {
  flex: none;
  width: 7.5rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.ctile img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ctile__name { font-size: 0.75rem; color: var(--muted); text-align: center; }

/* ------------------------------------------------------------------ items */

/* Numbered editorial item - a rule and a number, no card, no shadow. */
.item { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.section--dark .item { border-top-color: var(--on-dark-line); }
.item__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--faint);
  margin-bottom: 0.6rem;
}
.section--dark .item__n { color: var(--on-dark-mute); }
.item__h { margin-bottom: 0.55rem; }
.item__b { color: var(--muted); font-size: 0.9375rem; }
.section--dark .item__b { color: var(--on-dark-mute); }

.item__list { list-style: none; margin: 1rem 0 0; padding: 0; }
.item__list li {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.4rem 0;
  border-top: 1px solid var(--line-soft);
}
.section--dark .item__list li { color: var(--on-dark-mute); border-top-color: var(--on-dark-line); }

/* ----------------------------------------------------------------- tables */

/* Comparison + project tables. On phones these become stacked records rather
   than a pinched grid or a horizontal scroll nobody discovers. */
.cmp { width: 100%; border-collapse: collapse; }
.cmp caption { text-align: left; color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }
.cmp th, .cmp td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; font-size: 0.9375rem; }
.cmp thead th {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); font-weight: 400;
  border-bottom: 1px solid var(--line);
}
.cmp tbody th { font-weight: 500; color: var(--text); }
.cmp tbody td { color: var(--muted); }
.cmp tbody tr { border-bottom: 1px solid var(--line-soft); }
.cmp .is-us { color: var(--navy-700); font-weight: 500; }

@media (max-width: 51.99em) {
  .cmp, .cmp tbody, .cmp tr, .cmp td, .cmp th { display: block; }
  .cmp thead { display: none; }
  .cmp tbody tr { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
  .cmp tbody th { padding: 0 0 0.6rem; font-size: 1rem; }
  .cmp tbody td {
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.3rem 0;
    align-items: baseline;
  }
  .cmp tbody td::before {
    content: attr(data-col);
    font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--faint);
  }
}

/* Price rows */
.prow {
  display: grid;
  gap: 0.35rem 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 46em) {
  .prow { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
  .prow__fig { text-align: right; }
}
.prow__name { font-weight: 500; }
.prow__fig .n { font-family: var(--sans); font-weight: 550; font-size: 0.9375rem; color: var(--navy-700); white-space: nowrap; }
.prow__fig .u { font-size: 0.75rem; color: var(--faint); }

/* ------------------------------------------------------------------ cards */

/* Used sparingly - pricing tiers and service entries only. */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.25rem);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
}
@media (hover: hover) {
  .card:hover { border-color: var(--line); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
}
.card--feature { border-color: var(--navy-800); border-width: 1.5px; position: relative; }
@media (hover: hover) {
  .card--feature:hover { box-shadow: var(--shadow-md); }
}
.card__flag {
  position: absolute; top: -0.7rem; left: clamp(1.5rem, 5vw, 2.25rem);
  background: var(--navy-800); color: #fff;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 2px;
}
.card__price {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 5.5vw, 2.1rem);
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
  margin-top: 1.25rem;
  line-height: 1.1;
}
.card__unit { font-family: var(--sans); font-size: 0.8125rem; color: var(--faint); margin-top: 0.3rem; }
.card__incl {
  font-family: var(--sans); font-size: 0.8125rem; font-weight: 550; color: var(--faint);
  margin: 1.75rem 0 0.5rem;
}
.card__list { list-style: none; margin: 0; padding: 0; flex: 1; }
.card__list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.35rem;
  font-size: 0.9063rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}
/* Hairline tick drawn in CSS - no icon font, no emoji. */
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: 1.05rem;
  width: 0.45rem; height: 0.24rem;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------- partners */

.ptr { padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 40em) {
  .ptr { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.5rem; }
}
/* Monogram stands in for a headshot. Using a stock face for a named partner
   would be a straightforward misrepresentation, so it stays a monogram until
   real photography is supplied. */
.ptr__mono {
  width: 4.5rem; height: 4.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}
@media (min-width: 40em) { .ptr__mono { margin-bottom: 0; } }
.ptr__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.ptr__role {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 550;
  color: var(--accent); margin: 0.3rem 0 0.75rem;
}

/* ---------------------------------------------------------------- pagenav */

/* Anchor links to a page's own sections, with the current one highlighted as
   you scroll (site.js). Plain #hash links, so jumping works with JS off -
   the active-state highlight is the only part that needs it. */
.pagenav {
  position: sticky;
  top: 4rem;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  /* A thin nav strip, not a section - the full --section-y gap below it
     (used for section-to-section spacing) left an oversized, empty-looking
     void before the first tier card. */
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 62em) { .pagenav { top: 4.75rem; } }
.pagenav__list {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pagenav__list::-webkit-scrollbar { display: none; }
.pagenav__link {
  flex: none;
  padding: 0.9rem 0.1rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pagenav__link:hover { color: var(--text); }
.pagenav__link[aria-current="true"] { color: var(--navy-900); border-color: var(--navy-800); }

/* ------------------------------------------------------------------- tabs */

/* Renders as plainly stacked sections without JS - see .tabs__tab below.
   JS turns it into a real switcher: one visible group instead of an endless
   scroll of four, which is the actual point of using tabs here. */
/* Sticks just under the main header, so the tab strip - which is the page's
   real in-page navigation once content is split into panels - stays
   reachable on a long page instead of scrolling away with tab 1. */
.tabs__list {
  position: sticky;
  top: 4rem;
  z-index: 40;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  margin-bottom: 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 62em) { .tabs__list { top: 4.75rem; } }
.tabs__list::-webkit-scrollbar { display: none; }

.tabs__tab {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0.85rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tabs__tab:hover { color: var(--text); }
.tabs__tab[aria-selected="true"] { color: var(--navy-900); border-color: var(--navy-800); }
.tabs__tab-n {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--accent);
}

/* Without JS every panel is just a normal section in flow. */
.tabs__panel[hidden] { display: none; }
.tabs__panel + .tabs__panel { margin-top: 3rem; }
[data-tabs-active] .tabs__panel + .tabs__panel { margin-top: 0; }

/* ------------------------------------------------------------------- FAQ */

.qa { border-top: 1px solid var(--line); }
.qa__q {
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  line-height: 1.25; letter-spacing: -0.015em;
  text-align: left; color: var(--text);
}
.qa__sign { position: relative; width: 0.85rem; height: 0.85rem; flex: none; margin-top: 0.4rem; }
.qa__sign::before, .qa__sign::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.qa__sign::before { left: 0; top: 50%; width: 100%; height: 1.5px; transform: translateY(-50%); }
.qa__sign::after  { top: 0; left: 50%; height: 100%; width: 1.5px; transform: translateX(-50%); }
.qa__q[aria-expanded="true"] .qa__sign::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.qa__a { overflow: hidden; }
.qa__a[hidden] { display: none; }
.qa__a p { color: var(--muted); font-size: 0.9375rem; padding-bottom: 1.5rem; max-width: var(--measure); }

/* ------------------------------------------------------------------ forms */

.field { margin-bottom: 1.1rem; }
.field__label {
  display: block;
  font-family: var(--sans); font-size: 0.875rem; font-weight: 500;
  color: var(--muted); margin-bottom: 0.4rem;
}
.input {
  width: 100%;
  min-height: 3rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;              /* 16px minimum, or iOS zooms the page on focus */
  transition: border-color 0.2s, background 0.2s;
}
.input:focus { border-color: var(--navy-700); background: var(--paper); outline: none; }
textarea.input { min-height: 7rem; resize: vertical; }
select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.35rem, calc(100% - 0.85rem) 1.35rem;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}
@media (min-width: 34em) {
  .field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: var(--paper);
}
.form-note { font-size: 0.8125rem; color: var(--faint); margin-top: 1.1rem; }
.form-error { color: #B23A2A; font-size: 0.875rem; margin-top: 1rem; }
#form-sent[hidden] { display: none; }
.sent__tick {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--navy-800); position: relative; margin-bottom: 1.25rem;
}
.sent__tick::after {
  content: ""; position: absolute; left: 0.95rem; top: 0.85rem;
  width: 0.6rem; height: 0.32rem;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Numbered steps on the contact page */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.9rem;
  padding: 0.7rem 0; color: var(--muted); font-size: 0.9375rem;
}
.steps li::before {
  content: counter(step); counter-increment: step;
  font-family: var(--serif); font-style: italic; font-size: 1rem;
  color: var(--accent); padding-top: 0.05rem;
}
.steps { counter-reset: step; }

/* ---------------------------------------------------------------- footer */

.ftr { background: var(--navy-900); color: var(--on-dark-mute); }
.ftr__grid { display: grid; gap: 2.25rem; padding-block: clamp(2.75rem, 8vw, 4.5rem) 2rem; }
@media (min-width: 40em) { .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62em) { .ftr__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; } }

.ftr__h {
  font-family: var(--sans); font-size: 0.875rem; font-weight: 600;
  color: var(--blue-200); margin-bottom: 1rem;
}
.ftr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; font-size: 0.9063rem; }
.ftr a:hover { color: var(--on-dark); }
.ftr__base {
  border-top: 1px solid var(--on-dark-line);
  padding-block: 1.5rem 2.5rem;
  display: grid; gap: 0.75rem;
  /* --faint (3.40:1 here) is tuned for light backgrounds only; the footer
     needs its own dark-safe tone for the fine print, same bug class as the
     .tlink and .sectors fixes above. */
  font-size: 0.8125rem; color: var(--on-dark-mute);
}
@media (min-width: 62em) { .ftr__base { grid-template-columns: 1fr auto; } }

/* --------------------------------------------------------- touch targets */

/* On phones every link gets a comfortable hit area even where the visual text
   is small. Reverted at desktop, where a 44px footer link would just look
   loose and the pointer is precise anyway. */
@media (max-width: 61.99em) {
  .ftr__list a,
  .tlink,
  .mnav__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .mnav__link { display: flex; }
  .logo { padding-block: 0.4rem; }
}

/* ---------------------------------------------------------------- motion */

[data-reveal] { opacity: 0; transform: translateY(12px); }
[data-reveal][data-in] {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ----------------------------------------------------------------- print */

@media print {
  .hdr, .ftr, .burger, .mnav { display: none !important; }
  body { color: #000; }
  .section--dark { background: none !important; color: #000 !important; }
  .qa__a[hidden] { display: block !important; }
}
