/* ==========================================================================
   Stravix — Quiet Luxury Design System
   Warm espresso ink · ivory paper · antique brass · restrained sage
   Classic editorial proportions. No neon, no rainbow gradients.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@400;450;500;600;700&display=swap');

:root {
  /* warm espresso scale (replaces cold obsidian) */
  --ink-000: #0c0a08;
  --ink-050: #16120e;
  --ink-100: #1e1915;
  --ink-200: #2b241e;
  --ink-300: #3c332b;
  --ink-400: #544940;
  --ink-500: #6f6358;

  /* ivory / parchment scale (replaces cold platinum) */
  --plat-050: #fdfbf7;
  --plat-100: #f7f2e9;
  --plat-200: #ece3d5;
  --plat-300: #dbcfbc;
  --plat-400: #9c8f79;   /* decorative only — never body text */
  --plat-500: #6b6153;   /* 5.4:1 on tint — AA */
  --plat-600: #574e41;   /* 7.3:1 on tint — AA */

  /* antique brass — the single hero accent */
  --brass: #b08d57;
  --brass-deep: #7a5d33;  /* 5.5:1 on tint — AA */
  --brass-light: #d7bb8a;
  --brass-pale: #efe2cb;
  --brass-text: #6d5329;   /* 6.5:1 — for brass-coloured text and links */

  /* restrained secondary + status */
  --sage: #4a5748;
  --sage-light: #8fa08d;
  --burgundy: #6e3038;
  --amber: #85600f;
  --lime: #4c6136;
  --rose: #8f3540;

  /* Compatibility aliases: the rest of the sheet and a few inline styles
     still reference the original token names. Mapping them here recolours
     everything at once and keeps a single source of truth. */
  --cyan: var(--brass);
  --cyan-dim: var(--brass-deep);
  --violet: var(--brass-light);
  --glacier: var(--sage);

  /* "prism" is now a whisper-quiet brass wash, not a rainbow */
  --prism: linear-gradient(120deg, var(--brass-deep) 0%, var(--brass) 55%, var(--brass-light) 100%);
  --prism-soft: linear-gradient(120deg, rgba(176, 141, 87, .10), rgba(176, 141, 87, .04));

  /* hairline rules — classic layouts are built on lines, not shadows */
  --rule: rgba(43, 36, 30, .12);
  --rule-strong: rgba(43, 36, 30, .2);
  --rule-light: rgba(247, 242, 233, .14);

  --font-display: 'Lora', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* restrained radii — classic, not pill-shaped */
  --r-xs: 3px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;

  --shadow-sm: 0 1px 2px rgba(22, 18, 14, .05), 0 1px 3px rgba(22, 18, 14, .04);
  --shadow-md: 0 2px 8px rgba(22, 18, 14, .06), 0 8px 24px rgba(22, 18, 14, .05);
  --shadow-lg: 0 8px 20px rgba(22, 18, 14, .07), 0 24px 56px rgba(22, 18, 14, .09);
  --shadow-glow: 0 0 0 1px rgba(176, 141, 87, .28), 0 12px 36px rgba(176, 141, 87, .12);

  --nav-h: 76px;
  --wrap: 1200px;
  --wrap-narrow: 760px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;          /* was 16 — measurably easier to read */
  line-height: 1.68;
  color: var(--ink-300);    /* 11.1:1 on tint */
  background: var(--plat-050);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-050);
  letter-spacing: -.005em;
  line-height: 1.16;
  margin: 0 0 .55em;
  font-weight: 650;
  text-wrap: balance;
}
/* Lora sits larger on the line than Cormorant did, so the scale is tighter. */
h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); line-height: 1.14; letter-spacing: -.016em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: -.012em; }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.38rem); line-height: 1.32; }
/* h4/h5 drop to the sans: small serif headings are the least legible size. */
h4 { font-size: 1.02rem; font-family: var(--font-body); font-weight: 650; letter-spacing: -.008em; }
h5 { font-family: var(--font-body); font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink-050); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--cyan-dim); }

img, svg, canvas { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--plat-200); margin: 2.4rem 0; }

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

::selection { background: rgba(176, 141, 87, .28); color: var(--ink-000); }

/* --------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 26px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section-dark { background: var(--ink-050); color: var(--plat-300); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-tint { background: var(--plat-100); }
.section-line { border-top: 1px solid var(--plat-200); }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.g-auto-sm { grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); }
.g-auto-lg { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.flex { display: flex; }
.fcol { flex-direction: column; }
.fwrap { flex-wrap: wrap; }
.aic { align-items: center; }
.ais { align-items: flex-start; }
.jcb { justify-content: space-between; }
.jcc { justify-content: center; }
.gap-xs { gap: 6px } .gap-sm { gap: 10px } .gap { gap: 16px } .gap-lg { gap: 26px } .gap-xl { gap: 40px }

.tc { text-align: center; }
.mt0 { margin-top: 0 } .mb0 { margin-bottom: 0 }
.mt-sm { margin-top: 12px } .mt { margin-top: 22px } .mt-lg { margin-top: 40px } .mt-xl { margin-top: 60px }
.mb-sm { margin-bottom: 12px } .mb { margin-bottom: 22px } .mb-lg { margin-bottom: 40px }

/* ---------------------------------------------------------------- type --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: .705rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-text); margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--prism);
}
.section-dark .eyebrow { color: var(--plat-400); }

.lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--ink-400); line-height: 1.7; max-width: 68ch; }
.section-dark .lede { color: var(--plat-400); }
.muted { color: var(--ink-400); }   /* 8.4:1 — real body contrast */
.section-dark .muted { color: var(--plat-500); }
.small { font-size: .92rem; }
.xsmall { font-size: .84rem; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: .82em; letter-spacing: -.01em; }
.strong { font-weight: 600; color: var(--ink-050); }
.section-dark .strong { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Emphasis is now an italic serif in brass — a classic editorial device
   rather than a clipped rainbow gradient. */
.gradient-text {
  font-style: italic;
  color: var(--brass-text);
  font-weight: 600;
}
.hero .gradient-text { color: var(--brass-deep); }

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-size: .88rem; font-weight: 600; letter-spacing: .005em;
  padding: 13px 24px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
  text-decoration: none; line-height: 1.2; position: relative;
}
.btn:disabled, .btn[disabled], .btn[aria-disabled='true'] { opacity: .42; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--ink-050); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ink-000); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--brass-deep); color: #fff; font-weight: 600; letter-spacing: .01em; }
.btn-accent:hover { background: var(--ink-050); color: #fff; box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--ink-050); border-color: var(--plat-300); }
.btn-outline:hover { border-color: var(--ink-300); background: var(--plat-100); color: var(--ink-050); }

.btn-ghost { background: transparent; color: var(--ink-300); padding-inline: 12px; }
.btn-ghost:hover { color: var(--ink-050); background: var(--plat-100); }

/* On light surfaces this behaves like a normal outline button. The white
   variant is scoped to dark sections only, where it is legible. */
.btn-outline-light {
  color: var(--ink-050); border-color: var(--rule-strong); background: transparent;
}
.btn-outline-light:hover {
  background: var(--plat-100); border-color: var(--brass); color: var(--ink-000);
}
.section-dark .btn-outline, .section-dark .btn-outline-light {
  color: #fff; border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .05);
}
.section-dark .btn-outline:hover, .section-dark .btn-outline-light:hover {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .42); color: #fff;
}
.section-dark .btn-primary { background: #fff; color: var(--ink-050); }
.section-dark .btn-primary:hover { background: var(--plat-100); color: var(--ink-000); }

.btn-sm { padding: 9px 16px; font-size: .82rem; border-radius: var(--r-xs); }
.btn-lg { padding: 16px 30px; font-size: .98rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .885rem;
  font-family: var(--font-display); color: var(--ink-050);
}
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--cyan-dim); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------- cards --- */
.card {
  background: #fff; border: 1px solid var(--plat-200); border-radius: var(--r-lg);
  padding: 26px; transition: all .24s var(--ease); position: relative; overflow: hidden;
}
.card-hover:hover { border-color: var(--plat-300); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-flush { padding: 0; }
.card-pad { padding: 26px; }
.card-tint { background: var(--plat-100); border-color: var(--plat-200); }

.card-dark {
  background: linear-gradient(165deg, var(--ink-100) 0%, var(--ink-050) 100%);
  border: 1px solid var(--ink-300); color: var(--plat-400);
}
.card-dark h3, .card-dark h4 { color: #fff; }

.glass {
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--r-md);
}

.card-accent-top::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--prism);
  opacity: 0; transition: opacity .24s var(--ease);
}
.card-hover.card-accent-top:hover::before { opacity: 1; }

/* ---------------------------------------------------------------- chips -- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 100px;
  font-size: .715rem; font-weight: 600; letter-spacing: .025em;
  font-family: var(--font-display);
  background: var(--plat-100); color: var(--ink-300); border: 1px solid var(--plat-300);
  white-space: nowrap;
}
.chip-accent { background: rgba(176, 141, 87, .14); color: var(--brass-text); border-color: rgba(176, 141, 87, .38); }
.chip-violet { background: rgba(176, 141, 87, .1); color: var(--brass-text); border-color: rgba(176, 141, 87, .3); }
.chip-glacier { background: rgba(74, 87, 72, .1); color: var(--sage); border-color: rgba(74, 87, 72, .3); }
.chip-amber { background: rgba(133, 96, 15, .1); color: var(--amber); border-color: rgba(133, 96, 15, .3); }
.chip-lime { background: rgba(76, 97, 54, .1); color: var(--lime); border-color: rgba(76, 97, 54, .3); }
.chip-rose { background: rgba(143, 53, 64, .09); color: var(--rose); border-color: rgba(143, 53, 64, .28); }
.chip-dark { background: var(--ink-100); color: var(--plat-300); border-color: var(--ink-300); }
.section-dark .chip { background: rgba(255,255,255,.06); color: var(--plat-400); border-color: rgba(255,255,255,.1); }
.section-dark .chip-accent { background: rgba(176, 141, 87,.13); color: var(--cyan); border-color: rgba(176, 141, 87,.3); }

.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.dot-live { background: var(--lime); box-shadow: 0 0 0 3px rgba(159, 232, 112, .22); }
.dot-warn { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 181, 68, .2); }
.dot-info { background: var(--glacier); box-shadow: 0 0 0 3px rgba(95, 111, 95, .2); }
.dot-mute { background: var(--plat-400); }
.dot-rose { background: var(--rose); box-shadow: 0 0 0 3px rgba(255,122,133,.2); }

/* --------------------------------------------------------------- navbar -- */
.nav {
  position: sticky; top: 0; z-index: 900; height: var(--nav-h);
  background: rgba(250, 251, 252, .82);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--plat-200);
  transition: box-shadow .2s var(--ease);
}
.nav.scrolled { box-shadow: 0 1px 22px rgba(22, 18, 14, .07); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text {
  /* Lora needs less negative tracking than the old grotesk. */
  font-family: var(--font-display); font-weight: 650; font-size: 1.04rem;
  letter-spacing: -.008em; color: var(--ink-050); line-height: 1;
}
.logo-text span { color: var(--ink-400); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link {
  font-family: var(--font-display); font-size: .868rem; font-weight: 500; color: var(--ink-300);
  padding: 9px 13px; border-radius: var(--r-xs); transition: all .16s var(--ease);
  display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link.active { background: var(--plat-100); color: var(--ink-050); }
.nav-link .caret { width: 9px; height: 9px; opacity: .5; transition: transform .18s var(--ease); }
.has-mega[aria-expanded='true'] .caret { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 9px; flex: none; }

/* mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: #fff; border-bottom: 1px solid var(--plat-200);
  box-shadow: 0 22px 60px rgba(22, 18, 14, .1);
  opacity: 0; visibility: hidden; transform: translateY(-9px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.mega.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { padding: 34px 26px 38px; display: grid; gap: 34px; grid-template-columns: 1fr 1fr 1fr 300px; }
.mega-col h5 {
  font-size: .69rem; letter-spacing: .15em; text-transform: uppercase; color: var(--plat-500);
  margin-bottom: 14px; font-weight: 600;
}
.mega-item { display: block; padding: 9px 11px; margin-inline: -11px; border-radius: var(--r-xs); transition: background .15s; }
.mega-item:hover { background: var(--plat-100); }
.mega-item .t { font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--ink-050); display: block; }
.mega-item .d { font-size: .775rem; color: var(--plat-500); line-height: 1.45; display: block; margin-top: 2px; }
.mega-feature {
  background: linear-gradient(160deg, var(--ink-100), var(--ink-050)); border-radius: var(--r-md);
  padding: 24px; color: var(--plat-400);
}
.mega-feature h4 { color: #fff; font-size: 1.02rem; margin-bottom: 8px; }
.mega-feature p { font-size: .81rem; line-height: 1.55; margin-bottom: 16px; }

/* mobile nav */
.nav-toggle { display: none; background: none; border: 0; padding: 9px; cursor: pointer; border-radius: var(--r-xs); }
.nav-toggle:hover { background: var(--plat-100); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-100); border-radius: 2px; transition: all .22s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0; background: #fff; z-index: 899;
  overflow-y: auto; padding: 22px 26px 60px;
  transform: translateX(100%); transition: transform .28s var(--ease); visibility: hidden;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-group { border-bottom: 1px solid var(--plat-200); padding: 6px 0; }
.mobile-group summary {
  list-style: none; cursor: pointer; padding: 13px 0; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink-050);
}
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary::after { content: '+'; font-size: 1.2rem; color: var(--plat-500); font-weight: 400; }
.mobile-group[open] summary::after { content: '−'; }
.mobile-group a { display: block; padding: 9px 0 9px 14px; font-size: .9rem; color: var(--plat-600); }
.mobile-group a:hover { color: var(--ink-050); }

/* ------------------------------------------------------------- HERO ----- */
/* Classic editorial hero: ivory paper, generous negative space, hairline
   brass rules. Light on purpose — the old dark neon collage read as noisy. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 88% -12%, rgba(176, 141, 87, .09), transparent 64%),
    linear-gradient(174deg, var(--plat-050) 0%, var(--plat-100) 100%);
  color: var(--ink-300);
  padding: clamp(60px, 8vw, 104px) 0 clamp(56px, 7vw, 92px);
  border-bottom: 1px solid var(--rule);
}
.hero h1 { color: var(--ink-050); }

/* Faint engraved rule texture instead of a glowing tech grid. */
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(43, 36, 30, .045) 1px, transparent 1px);
  background-size: 100% 34px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 76%);
}

.hero-inner {
  position: relative; display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 6vw, 84px); align-items: center;
}
.hero-copy { max-width: 620px; }
.hero-sub {
  font-size: clamp(1.02rem, 1.25vw, 1.14rem); color: var(--ink-400);
  line-height: 1.72; margin: 24px 0 34px; max-width: 52ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-secondary {
  display: flex; flex-wrap: wrap; gap: 26px; font-size: .845rem;
  padding-top: 24px; border-top: 1px solid var(--rule);
}
.hero-secondary a { color: var(--ink-400); display: inline-flex; align-items: center; gap: 7px; }
.hero-secondary a:hover { color: var(--brass-deep); }
.hero-secondary svg { color: var(--brass); }

/* Eyebrow, not a glowing pill. */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .715rem; letter-spacing: .17em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-500); margin-bottom: 26px;
}
.hero-badge b { color: var(--brass-deep); font-weight: 600; }
.hero-badge::after { content: ''; width: 46px; height: 1px; background: var(--brass); opacity: .6; }

/* ---- The Atelier Mark: single framed plate replacing the panel collage -- */
.atelier { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }

.atelier-plate {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 4 / 5;
  display: grid; place-items: center; padding: 34px;
  background: linear-gradient(168deg, #fffdf9 0%, var(--plat-100) 58%, var(--plat-200) 100%);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
}
/* inner hairline frame — the classic double-rule plate */
.atelier-plate::before {
  content: ''; position: absolute; inset: 14px;
  border: 1px solid rgba(176, 141, 87, .3); pointer-events: none;
}
/* brass corner ticks */
.atelier-corner { position: absolute; width: 13px; height: 13px; pointer-events: none; }
.atelier-corner.tl { top: 8px; left: 8px; border-top: 2px solid var(--brass); border-left: 2px solid var(--brass); }
.atelier-corner.tr { top: 8px; right: 8px; border-top: 2px solid var(--brass); border-right: 2px solid var(--brass); }
.atelier-corner.bl { bottom: 8px; left: 8px; border-bottom: 2px solid var(--brass); border-left: 2px solid var(--brass); }
.atelier-corner.br { bottom: 8px; right: 8px; border-bottom: 2px solid var(--brass); border-right: 2px solid var(--brass); }

.atelier-inner { position: relative; text-align: center; }
.atelier-eyebrow {
  font-size: .64rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--plat-500); font-weight: 600; margin-bottom: 20px;
}
.atelier-monogram {
  font-family: var(--font-display); font-size: clamp(3.8rem, 6.4vw, 5.2rem);
  font-weight: 600; line-height: 1; letter-spacing: .04em;
  color: var(--brass-deep);
  /* faint engraved lift, no glow */
  text-shadow: 0 1px 0 #fff, 0 2px 14px rgba(140, 109, 63, .16);
}
.atelier-rule {
  width: 62px; height: 1px; margin: 22px auto;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}
.atelier-word {
  font-family: var(--font-display); font-size: 1.32rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-100);
}
.atelier-sub {
  font-size: .75rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-500); margin-top: 9px;
}
.atelier-cap { font-size: .84rem; color: var(--ink-400); text-align: center; }
.atelier-cap b { color: var(--ink-100); font-weight: 600; }

/* One slow, barely-there settle. Nothing spins or floats. */
.atelier-plate { animation: plate-settle 1s var(--ease) both; }
@keyframes plate-settle {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.atelier-still .atelier-plate { animation: none; }

/* Progress bars + sparkline kept: still used by the client portal. */
.bar-track { height: 4px; background: rgba(43, 36, 30, .1); border-radius: 3px; overflow: hidden; margin-top: 9px; }
.bar-fill { height: 100%; border-radius: 3px; background: var(--brass); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 8px; }
.spark i { flex: 1; background: linear-gradient(180deg, var(--brass), rgba(176, 141, 87, .16)); border-radius: 2px 2px 0 0; display: block; }


/* ------------------------------------------------------------ trust bar -- */
.trustbar { background: var(--plat-100); border-block: 1px solid var(--rule); padding: 15px 0; overflow: hidden; }
.trust-track { display: flex; gap: 46px; align-items: center; animation: marquee 46s linear infinite; width: max-content; }
.trustbar:hover .trust-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.trust-item {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: .755rem; font-weight: 500; color: var(--ink-400);
  letter-spacing: .07em; text-transform: uppercase;
}
.trust-item svg { width: 13px; height: 13px; flex: none; color: var(--brass); }

/* ------------------------------------------------------- content blocks -- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--plat-200); border: 1px solid var(--plat-200); border-radius: var(--r-md); overflow: hidden; }
.stat { background: #fff; padding: 22px 20px; }
.stat-v { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 650; color: var(--ink-050); letter-spacing: -.035em; line-height: 1; }
.stat-l { font-size: .755rem; color: var(--plat-500); margin-top: 7px; letter-spacing: .015em; }
.section-dark .stat-row { background: var(--ink-300); border-color: var(--ink-300); }
.section-dark .stat { background: var(--ink-100); }
.section-dark .stat-v { color: #fff; }

.icon-box {
  width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none;
  background: var(--brass-pale); border: 1px solid rgba(176, 141, 87, .3); color: var(--brass-deep);
}
.icon-box svg { width: 19px; height: 19px; }
.section-dark .icon-box, .card-dark .icon-box { background: rgba(176, 141, 87, .1); border-color: rgba(176, 141, 87, .24); color: var(--cyan); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .888rem; line-height: 1.58; color: var(--plat-600); }
.feature-list li::before {
  content: ''; width: 15px; height: 15px; border-radius: 50%; flex: none; margin-top: 3px;
  background: var(--prism-soft); border: 1px solid rgba(176, 141, 87, .35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%238c6d3f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.6 6.2l2.2 2.2 4.6-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}
.section-dark .feature-list li { color: var(--plat-400); }

.bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 17px; font-size: .875rem; line-height: 1.58; color: var(--plat-600); }
.bullets li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.section-dark .bullets li { color: var(--plat-400); }

/* process timeline */
.process { display: grid; gap: 1px; background: var(--ink-300); border: 1px solid var(--ink-300); border-radius: var(--r-md); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); }
.process-step { background: var(--ink-100); padding: 22px 20px; position: relative; transition: background .2s; }
.process-step:hover { background: var(--ink-200); }
.process-num { font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: var(--cyan); margin-bottom: 9px; }
.process-step h4 { color: #fff; font-size: .935rem; margin-bottom: 6px; }
.process-step p { font-size: .795rem; color: var(--plat-500); line-height: 1.55; margin: 0; }

/* pricing / package cards */
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-tag { font-family: var(--font-display); font-size: 1.82rem; font-weight: 650; color: var(--ink-050); letter-spacing: -.035em; line-height: 1; }
.price-tag small { font-size: .85rem; font-weight: 500; color: var(--plat-500); letter-spacing: 0; }
.price-note { font-size: .77rem; color: var(--plat-500); margin-top: 5px; }
.price-featured { border-color: var(--ink-300); box-shadow: var(--shadow-lg); }
.price-featured::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--prism); }

/* tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.table th {
  text-align: left; font-size: .69rem; letter-spacing: .11em; text-transform: uppercase; color: var(--plat-500);
  font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--plat-200); white-space: nowrap;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--plat-200); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--plat-050); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--plat-200); border-radius: var(--r-md); background: #fff; }

/* forms */
.field { margin-bottom: 17px; }
.field label, .flabel {
  display: block; font-size: .795rem; font-weight: 600; color: var(--ink-200); margin-bottom: 7px;
  font-family: var(--font-display); letter-spacing: -.005em;
}
.field label .req, .flabel .req { color: var(--rose); margin-left: 2px; }
.field .hint { font-size: .745rem; color: var(--plat-500); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%; padding: 11.5px 14px; font-family: var(--font-body); font-size: .905rem; color: var(--ink-100);
  background: #fff; border: 1px solid var(--plat-300); border-radius: var(--r-sm);
  transition: border-color .16s, box-shadow .16s; line-height: 1.45;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--plat-400); }
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(176, 141, 87, .15);
}
.input::placeholder, .textarea::placeholder { color: var(--plat-400); }
.textarea { min-height: 118px; resize: vertical; }
.select {
  appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237d8b9b' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 4.6L6 7.6l3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px;
}
.input.error, .select.error, .textarea.error { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(255, 122, 133, .13); }
.err-msg { font-size: .755rem; color: #c4404e; margin-top: 6px; display: none; }
.err-msg.show { display: block; }

.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: .9rem; line-height: 1.6; color: var(--ink-300); }

/* Currency-prefixed input, used by the "pay what you decide" amount field. */
.input-prefix { position: relative; display: block; }
.input-prefix > span {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--ink-400); font-weight: 600; font-size: .95rem; pointer-events: none;
}
.input-prefix > .input { padding-left: 30px; font-variant-numeric: tabular-nums; }
.check input[type='checkbox'] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brass-deep); flex: none; cursor: pointer; }
.check a { color: var(--ink-050); text-decoration: underline; text-decoration-color: var(--plat-300); text-underline-offset: 2px; font-weight: 500; }
.check a:hover { color: var(--brass-text); text-decoration-color: var(--brass); }

fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { padding: 0; }

/* ---------------------------------------------- searchable catalog combo -- */
.combo { position: relative; }
.combo-trigger {
  width: 100%; text-align: left; cursor: pointer; background: #fff;
  border: 1px solid var(--plat-300); border-radius: var(--r-md); padding: 14px 46px 14px 15px;
  transition: border-color .16s, box-shadow .16s; position: relative; font-family: var(--font-body);
}
.combo-trigger:hover { border-color: var(--plat-400); }
.combo-trigger:focus-visible, .combo.open .combo-trigger {
  outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(176, 141, 87, .15);
}
.combo-trigger::after {
  content: ''; position: absolute; right: 16px; top: 50%; width: 11px; height: 11px; margin-top: -5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237d8b9b' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 4.6L6 7.6l3-3'/%3E%3C/svg%3E") no-repeat center/contain;
  transition: transform .18s var(--ease);
}
.combo.open .combo-trigger::after { transform: rotate(180deg); }
.combo-placeholder { color: var(--plat-400); font-size: .905rem; }
.combo-selected { display: flex; align-items: center; gap: 12px; }
.combo-selected .cs-body { min-width: 0; flex: 1; }
.combo-selected .cs-name { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-050); display: block; line-height: 1.3; }
.combo-selected .cs-meta { font-size: .755rem; color: var(--plat-500); margin-top: 3px; display: flex; gap: 9px; flex-wrap: wrap; }
.combo-selected .cs-price { font-family: var(--font-display); font-weight: 650; font-size: .96rem; color: var(--ink-050); white-space: nowrap; letter-spacing: -.02em; }

.combo-panel {
  position: absolute; z-index: 60; top: calc(100% + 7px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--plat-200); border-radius: var(--r-md);
  box-shadow: 0 20px 54px rgba(22, 18, 14, .17); overflow: hidden; display: none;
}
.combo.open .combo-panel { display: block; }
.combo-search { padding: 11px; border-bottom: 1px solid var(--plat-200); background: var(--plat-050); }
.combo-search input {
  width: 100%; padding: 9.5px 13px 9.5px 34px; border: 1px solid var(--plat-300); border-radius: var(--r-xs);
  font-size: .87rem; font-family: var(--font-body); background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237d8b9b' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.5 10.5L14 14'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 10px center; background-size: 14px;
}
.combo-search input:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(176, 141, 87, .13); }
.combo-list { max-height: 366px; overflow-y: auto; overscroll-behavior: contain; }
.combo-group-label {
  padding: 11px 15px 7px; font-size: .655rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--plat-500); font-weight: 700; background: var(--plat-050);
  position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--plat-200);
}
.combo-group-label span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--plat-400); margin-left: 7px; font-size: .72rem; }
.combo-opt {
  display: flex; gap: 13px; align-items: flex-start; width: 100%; text-align: left;
  padding: 12px 15px; border: 0; background: none; cursor: pointer; border-bottom: 1px solid var(--plat-100);
  transition: background .13s; font-family: var(--font-body);
}
.combo-opt:hover, .combo-opt.active { background: rgba(176, 141, 87, .06); }
.combo-opt[aria-selected='true'] { background: rgba(176, 141, 87, .1); }
.combo-opt .co-icon {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--prism-soft); border: 1px solid rgba(176, 141, 87, .2);
  font-family: var(--font-display); font-size: .68rem; font-weight: 700; color: var(--cyan-dim);
}
.combo-opt .co-body { flex: 1; min-width: 0; }
.combo-opt .co-name { font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--ink-050); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; line-height: 1.3; }
.combo-opt .co-desc { font-size: .775rem; color: var(--plat-500); line-height: 1.46; margin-top: 3px; }
.combo-opt .co-meta { font-size: .715rem; color: var(--plat-400); margin-top: 5px; display: flex; gap: 11px; flex-wrap: wrap; }
.combo-opt .co-price { text-align: right; flex: none; }
.combo-opt .co-price b { font-family: var(--font-display); font-weight: 650; font-size: .93rem; color: var(--ink-050); letter-spacing: -.02em; display: block; white-space: nowrap; }
.combo-opt .co-price i { font-style: normal; font-size: .68rem; color: var(--plat-400); display: block; margin-top: 2px; }
.combo-empty { padding: 30px 18px; text-align: center; color: var(--plat-500); font-size: .85rem; }

.badge-mini {
  font-size: .615rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 2.5px 7px; border-radius: 4px; font-family: var(--font-display);
}
.badge-popular { background: rgba(245, 181, 68, .16); color: #9a6c10; }
.badge-recommended { background: rgba(176, 141, 87, .16); color: #1f8a87; }
.badge-enterprise { background: rgba(215, 187, 138, .14); color: #6a5de0; }
.badge-new { background: rgba(120, 190, 70, .16); color: #487f22; }

/* ------------------------------------------------------- checkout layout -- */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, .88fr); gap: 34px; align-items: start; }
.summary-rail { position: sticky; top: calc(var(--nav-h) + 22px); }

.steps { display: flex; align-items: center; gap: 0; margin-bottom: 34px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.step-dot {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #fff; border: 1.5px solid var(--plat-300); color: var(--plat-500);
  font-family: var(--font-display); font-size: .755rem; font-weight: 700; transition: all .22s var(--ease);
}
.step.done .step-dot { background: var(--ink-050); border-color: var(--ink-050); color: #fff; }
.step.current .step-dot { background: var(--prism); border-color: transparent; color: var(--ink-000); box-shadow: 0 0 0 4px rgba(176, 141, 87, .16); }
.step-label { font-size: .78rem; font-weight: 600; color: var(--plat-500); font-family: var(--font-display); white-space: nowrap; }
.step.current .step-label, .step.done .step-label { color: var(--ink-050); }
.step-bar { flex: 1; height: 1.5px; background: var(--plat-300); margin: 0 12px; min-width: 14px; }
.step.done + .step .step-bar { background: var(--ink-300); }

.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: .875rem; }
.sum-row.total {
  border-top: 1px solid var(--plat-200); margin-top: 9px; padding-top: 15px;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 650; color: var(--ink-050);
}
.sum-row .k { color: var(--plat-600); }
.sum-row .v { font-weight: 600; color: var(--ink-100); font-variant-numeric: tabular-nums; }

.trust-badges { display: grid; gap: 11px; }
.trust-badge { display: flex; gap: 11px; align-items: flex-start; font-size: .79rem; color: var(--plat-600); line-height: 1.5; }
.trust-badge svg { width: 15px; height: 15px; flex: none; color: var(--cyan-dim); margin-top: 2px; }

/* mobile sticky summary */
.mobile-summary {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #fff; border-top: 1px solid var(--plat-200); padding: 13px 20px calc(13px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 26px rgba(22, 18, 14, .1);
}

/* ------------------------------------------------------------- portal ---- */
.portal { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 30px; align-items: start; }
.portal-nav { position: sticky; top: calc(var(--nav-h) + 22px); display: grid; gap: 2px; }
.portal-nav a {
  display: flex; align-items: center; gap: 11px; padding: 9.5px 13px; border-radius: var(--r-xs);
  font-size: .865rem; font-weight: 500; color: var(--plat-600); transition: all .14s;
}
.portal-nav a:hover { background: var(--plat-100); color: var(--ink-050); }
.portal-nav a.active { background: var(--ink-050); color: #fff; font-weight: 600; }
.portal-nav a svg { width: 16px; height: 16px; flex: none; opacity: .78; }
.portal-nav .sep { height: 1px; background: var(--plat-200); margin: 9px 13px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--plat-200); border-radius: var(--r-md); padding: 18px; }
.kpi-l { font-size: .715rem; letter-spacing: .07em; text-transform: uppercase; color: var(--plat-500); font-weight: 600; }
.kpi-v { font-family: var(--font-display); font-size: 1.62rem; font-weight: 650; color: var(--ink-050); letter-spacing: -.035em; margin-top: 7px; line-height: 1; }
.kpi-s { font-size: .745rem; color: var(--plat-500); margin-top: 6px; }

.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 5px; bottom: 5px; width: 1.5px; background: var(--plat-200); }
.tl-item { position: relative; padding-bottom: 20px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -26px; top: 4px; width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid var(--plat-300);
}
.tl-item.done::before { background: var(--cyan); border-color: var(--cyan); }
.tl-item.current::before { background: #fff; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(176, 141, 87, .2); }
.tl-t { font-family: var(--font-display); font-weight: 600; font-size: .89rem; color: var(--ink-050); }
.tl-d { font-size: .785rem; color: var(--plat-500); margin-top: 3px; line-height: 1.55; }
.tl-time { font-size: .715rem; color: var(--plat-400); margin-top: 4px; }

.empty { text-align: center; padding: 52px 24px; }
.empty-icon {
  width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 17px; display: grid; place-items: center;
  background: var(--plat-100); border: 1px solid var(--plat-200); color: var(--plat-400);
}
.empty h4 { margin-bottom: 7px; }
.empty p { font-size: .865rem; color: var(--plat-500); max-width: 42ch; margin-inline: auto; }

/* ----------------------------------------------------------- documents --- */
.doc {
  background: #fff; max-width: 860px; margin-inline: auto;
  border: 1px solid var(--plat-200); border-radius: var(--r-md); overflow: hidden;
}
.doc-head { padding: 34px 40px; border-bottom: 2px solid var(--ink-050); display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.doc-body { padding: 34px 40px; }
.doc-foot { padding: 24px 40px; background: var(--plat-050); border-top: 1px solid var(--plat-200); font-size: .775rem; color: var(--plat-500); line-height: 1.6; }
.doc-title { font-family: var(--font-display); font-size: 1.62rem; font-weight: 650; letter-spacing: -.035em; color: var(--ink-050); margin: 0; }
.doc-meta { font-size: .8rem; color: var(--plat-600); line-height: 1.75; }
.doc-meta b { color: var(--ink-100); font-weight: 600; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 30px; }
.doc-party h5 { font-size: .655rem; letter-spacing: .13em; text-transform: uppercase; color: var(--plat-500); margin-bottom: 9px; font-weight: 700; }
.doc-party p { font-size: .855rem; line-height: 1.65; margin: 0; color: var(--ink-200); }
.doc-party .nm { font-weight: 650; color: var(--ink-050); font-family: var(--font-display); }

.status-stamp {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 7px;
  font-family: var(--font-display); font-size: .745rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.stamp-paid { background: rgba(120, 190, 70, .14); color: #3d7020; border: 1px solid rgba(120, 190, 70, .3); }
.stamp-due { background: rgba(245, 181, 68, .14); color: #8a5f0c; border: 1px solid rgba(245, 181, 68, .3); }
.stamp-overdue { background: rgba(255, 122, 133, .13); color: #b8394a; border: 1px solid rgba(255, 122, 133, .3); }
.stamp-draft { background: var(--plat-100); color: var(--plat-600); border: 1px solid var(--plat-300); }
.stamp-info { background: rgba(95, 111, 95, .13); color: #2e6fc4; border: 1px solid rgba(95, 111, 95, .3); }

/* ---------------------------------------------------------------- misc --- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .785rem; color: var(--plat-500); flex-wrap: wrap; margin-bottom: 18px; }
.breadcrumb a { color: var(--plat-600); }
.breadcrumb a:hover { color: var(--ink-050); }
.breadcrumb .sep { opacity: .45; }
.section-dark .breadcrumb, .hero .breadcrumb { color: var(--plat-500); }
.section-dark .breadcrumb a, .hero .breadcrumb a { color: var(--plat-400); }
.section-dark .breadcrumb a:hover, .hero .breadcrumb a:hover { color: var(--cyan); }

.acc { border-bottom: 1px solid var(--plat-200); }
.acc summary {
  list-style: none; cursor: pointer; padding: 17px 34px 17px 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: .955rem; color: var(--ink-050); line-height: 1.45;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; margin-top: -5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%237d8b9b' stroke-width='1.9' stroke-linecap='round'%3E%3Cpath d='M3 4.6L6 7.6l3-3'/%3E%3C/svg%3E") no-repeat center/contain;
  transition: transform .2s var(--ease);
}
.acc[open] summary::after { transform: rotate(180deg); }
.acc-body { padding: 0 34px 19px 0; font-size: .89rem; color: var(--plat-600); line-height: 1.68; }

.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--plat-200); margin-bottom: 26px; overflow-x: auto; }
.tab {
  padding: 11px 16px; font-family: var(--font-display); font-size: .862rem; font-weight: 600;
  color: var(--plat-500); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; transition: all .16s;
}
.tab:hover { color: var(--ink-100); }
.tab.active { color: var(--ink-050); border-bottom-color: var(--cyan); }

.toast-host { position: fixed; top: calc(var(--nav-h) + 16px); right: 20px; z-index: 1000; display: grid; gap: 9px; max-width: 370px; }
.toast {
  background: var(--ink-050); color: #fff; padding: 13px 17px; border-radius: var(--r-sm);
  font-size: .862rem; box-shadow: var(--shadow-lg); display: flex; gap: 11px; align-items: flex-start;
  animation: toast-in .28s var(--ease); border-left: 3px solid var(--cyan);
}
.toast.err { border-left-color: var(--rose); }
.toast.ok { border-left-color: var(--lime); }
@keyframes toast-in { from { opacity: 0; transform: translateX(22px); } }

.alert { padding: 14px 17px; border-radius: var(--r-sm); font-size: .865rem; line-height: 1.6; display: flex; gap: 11px; align-items: flex-start; }
.alert svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.alert-info { background: rgba(95, 111, 95, .09); border: 1px solid rgba(95, 111, 95, .26); color: #2c5f9e; }
.alert-warn { background: rgba(245, 181, 68, .1); border: 1px solid rgba(245, 181, 68, .3); color: #8a5f0c; }
.alert-err { background: rgba(255, 122, 133, .09); border: 1px solid rgba(255, 122, 133, .28); color: #b8394a; }
.alert-ok { background: rgba(120, 190, 70, .1); border: 1px solid rgba(120, 190, 70, .28); color: #3d7020; }

.spinner {
  width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
.spinner-dark { border-color: rgba(11, 15, 20, .2); border-top-color: var(--ink-050); }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { background: linear-gradient(90deg, var(--plat-100) 25%, var(--plat-200) 50%, var(--plat-100) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* footer */
.footer { background: var(--ink-000); color: var(--plat-500); padding: 62px 0 30px; }
.footer h5 { color: #fff; font-size: .705rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer a { color: var(--plat-500); font-size: .845rem; display: block; padding: 4.5px 0; }
.footer a:hover { color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 34px; }
.footer-bottom {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--ink-300);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .785rem;
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { display: inline; padding: 0; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(760px 340px at 82% 6%, rgba(176, 141, 87, .17), transparent 62%),
    radial-gradient(620px 300px at 14% 92%, rgba(215, 187, 138, .14), transparent 60%),
    linear-gradient(140deg, var(--ink-050), var(--ink-100));
  border-radius: var(--r-xl); padding: clamp(38px, 5vw, 62px); position: relative; overflow: hidden;
  border: 1px solid var(--ink-300);
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: var(--plat-400); max-width: 56ch; }

/* sticky page CTA */
.sticky-cta {
  position: fixed; bottom: 22px; right: 22px; z-index: 300; display: flex; gap: 9px;
  background: rgba(250, 251, 252, .93); backdrop-filter: blur(14px);
  padding: 9px; border-radius: var(--r-md); border: 1px solid var(--plat-200); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: all .3s var(--ease);
}
.sticky-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* modal */
.modal-host {
  position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center;
  padding: 22px; background: rgba(22, 18, 14, .58); backdrop-filter: blur(4px);
}
.modal-host.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--r-lg); max-width: 560px; width: 100%;
  max-height: 88vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
  animation: modal-in .26s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: scale(.97) translateY(10px); } }
.modal-head { padding: 22px 26px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.modal-body { padding: 18px 26px 26px; }
.modal-close { background: none; border: 0; cursor: pointer; padding: 6px; color: var(--plat-500); border-radius: 6px; }
.modal-close:hover { background: var(--plat-100); color: var(--ink-050); }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .stage { height: 420px; max-width: 520px; margin-inline: auto; }
  .panel { width: 182px; }
  .mega-inner { grid-template-columns: 1fr 1fr 1fr; }
  .mega-feature { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-rail { position: static; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .nav-toggle { display: block; }
  .portal { grid-template-columns: 1fr; }
  .portal-nav { position: static; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 7px; }
  .portal-nav a { white-space: nowrap; }
  .portal-nav .sep { display: none; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .doc-parties { grid-template-columns: 1fr; gap: 20px; }
  .doc-head, .doc-body, .doc-foot { padding-inline: 24px; }
  .steps { overflow-x: auto; padding-bottom: 6px; }
  .step-label { display: none; }
  .step { flex: none; }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 18px; }
  .stage { height: 340px; }
  .prism-core { width: 128px; height: 128px; margin: -64px 0 0 -64px; }
  .prism-face:nth-child(1) { transform: translateZ(64px); }
  .prism-face:nth-child(2) { transform: rotateY(90deg) translateZ(64px); }
  .prism-face:nth-child(3) { transform: rotateY(180deg) translateZ(64px); }
  .prism-face:nth-child(4) { transform: rotateY(270deg) translateZ(64px); }
  .prism-face:nth-child(5) { transform: rotateX(90deg) translateZ(64px); }
  .prism-face:nth-child(6) { transform: rotateX(-90deg) translateZ(64px); }
  .core-glyph { transform: translate(-50%, -50%) translateZ(74px); font-size: 1.9rem; }
  .panel-a, .panel-c { left: -2%; }
  .panel-b, .panel-d { right: -2%; }
  .panel { width: 150px; padding: 10px 12px; }
  .panel-value { font-size: 1rem; }
  .g4, .g-auto, .g-auto-lg { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-summary { display: block; }
  .has-mobile-summary { padding-bottom: 92px; }
  .sticky-cta { left: 16px; right: 16px; bottom: 16px; }
  .sticky-cta .btn { flex: 1; }
  .core-halo.h3 { display: none; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------ a11y + printing -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after {
  animation: none !important; transition-duration: .001ms !important;
}

.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;
}
.skip-link {
  position: absolute; top: -60px; left: 14px; z-index: 2000; background: var(--ink-050); color: #fff;
  padding: 11px 18px; border-radius: var(--r-xs); font-size: .865rem; font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

@media print {
  .nav, .footer, .sticky-cta, .mobile-summary, .no-print, .toast-host { display: none !important; }
  body { background: #fff; font-size: 11.5pt; }
  .doc { border: 0; max-width: none; box-shadow: none; }
  .doc-head, .doc-body, .doc-foot { padding-inline: 0; }
  .section { padding: 0; }
  a { color: #000; text-decoration: none; }
  .table th, .table td { padding: 7px 9px; }
  @page { margin: 16mm; }
}
