/*
 * Cravd Studio dark theme: near-black warm ground, cream type, green-to-orange
 * as the only accent (the same palette as the launch carousel and the company
 * banner). Loaded LAST on every page, so it overrides the light styles without
 * touching them.
 *
 * Accessibility (WCAG 2.2 AA, which is what UK Equality Act duties are judged
 * against in practice):
 *  - text >= 4.5:1, large text and UI boundaries >= 3:1 on the grounds below
 *  - one visible focus style (3px, 3:1+) on every interactive element
 *  - dark text on the bright gradient buttons (white on orange fails)
 *  - motion and smooth scrolling switch off for prefers-reduced-motion
 *  - forced-colors / high-contrast users keep native colours
 *
 * Text is pure white (no beige or orange text); the only colour in type is the
 * green-to-orange gradient on a few display words and the mint of links.
 * Measured contrast on --ground (#0b0806):
 *   white 19.5:1 | --ink-dim (86%) ~14:1 | --ink-faint (74%) ~10:1
 *   --mint #78d6a2 11:1 | input border #9a8c7e 6:1 | focus ring white 19.5:1
 */
:root {
  --ground: #0b0806;
  --ground-2: #14100c;
  --ground-3: #1b1611;
  --cream: #ffffff;
  --title: #f6ede0; /* headings: warm off-white, softer than the pure white of body text */
  --gold-lite: #ffffff;
  --mint: #78d6a2;
  --orange-bright: #f2a65a;
  --hair: rgba(255, 255, 255, 0.12);
  --hair-strong: #9a8c7e;
  --glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.04) 62%, rgba(255, 255, 255, 0.11) 100%);
  --glass-line: 1px solid rgba(255, 255, 255, 0.3);
  /* a pane of frosted glass lit from the top: bright rim, soft white glow around it,
     a faint inner glow, and only a whisper of dark shadow underneath */
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 26px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 34px -6px rgba(255, 255, 255, 0.16),
    0 0 90px -34px rgba(255, 255, 255, 0.2),
    0 18px 34px -22px rgba(0, 0, 0, 0.45);
  --glass-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 30px rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 44px -4px rgba(255, 255, 255, 0.24),
    0 0 110px -30px rgba(255, 255, 255, 0.26),
    0 18px 34px -22px rgba(0, 0, 0, 0.45);
  --grad-bright: linear-gradient(105deg, #4fbf86, #d9a35a 58%, #f2a65a);

  /* The tokens every page already uses, flipped. */
  --paper: var(--ground);
  --paper-2: var(--ground-2);
  --panel: var(--ground-3);
  --ink: var(--cream);
  --ink-dim: rgba(255, 255, 255, 0.86);
  --ink-faint: rgba(255, 255, 255, 0.74);
  --dim: rgba(255, 255, 255, 0.86);
  --green: var(--mint);
  --gold: var(--gold-lite);
  --orange: var(--orange-bright);
  --line: var(--hair);
  --grad: var(--grad-bright);
  --shadow-sm: 0 3px 14px rgba(0, 0, 0, 0.5);
  --shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

html {
  background: var(--ground);
}
body {
  color: var(--cream);
  background: var(--ground) !important;
  background-image:
    radial-gradient(48% 34% at 88% -6%, rgba(242, 166, 90, 0.13), transparent 62%),
    radial-gradient(46% 36% at 0% 6%, rgba(35, 126, 75, 0.2), transparent 64%),
    radial-gradient(40% 30% at 100% 52%, rgba(35, 126, 75, 0.1), transparent 64%) !important;
  background-attachment: fixed;
}
/* The home and video pages paint their own glows behind the content. */
body::before,
body:before {
  background:
    radial-gradient(40% 30% at 85% -4%, rgba(242, 166, 90, 0.14), transparent 60%),
    radial-gradient(38% 30% at 2% 8%, rgba(35, 126, 75, 0.2), transparent 62%) !important;
}
::selection {
  background: #f2a65a;
  color: #0b0806;
}

/* ---------- links and focus ---------- */
a {
  text-decoration-color: rgba(120, 214, 162, 0.6);
}
p a,
li a,
.fine a,
.form-note a,
.answer a,
.faq a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 3px !important;
  border-radius: 10px;
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  color: var(--title);
}
p,
li,
.lead,
.answer,
.sub,
.lede {
  color: var(--ink-dim);
}
.eyebrow,
.bh,
.cap,
.route-label,
.card .tag {
  color: var(--gold-lite);
}
.grad-text,
.stat .n {
  background-image: linear-gradient(100deg, #6fd29c 0%, #e2b072 55%, #f2a65a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
strong {
  color: var(--cream);
}

/* ---------- buttons: dark text on the bright gradient (white on orange fails 4.5:1) ---------- */
.button,
.btn-primary,
.nav .cta,
.nav-cta .btn-primary,
.panel-demo,
.cta-card a,
.chip.on,
.lang-btn.on,
.m-add {
  background: var(--grad-bright) !important;
  color: #0b0806 !important;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 32px -14px rgba(242, 166, 90, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.button:hover,
.btn-primary:hover {
  box-shadow: 0 18px 38px -12px rgba(242, 166, 90, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.button.alt,
.btn-ghost {
  color: var(--cream) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--hair-strong) !important;
  box-shadow: none;
}
.button.alt:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* ---------- navigation ---------- */
nav,
.nav {
  background: rgba(11, 8, 6, 0.82) !important;
  border-bottom: 1px solid var(--hair) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.nav-prod {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--hair) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06) !important;
}
.nav-prod a,
.nav-links a,
.nav-cta a:not(.btn) {
  color: var(--cream) !important;
}
.nav-prod a:hover,
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: var(--cream) !important;
  box-shadow: none !important;
}
.nav-prod a[aria-current="page"] {
  background: var(--grad-bright) !important;
  color: #0b0806 !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 9px 22px -12px rgba(242, 166, 90, 0.6) !important;
}
.navlinks > a:not(.button),
.nav-blog,
.nav-cta a:not(.btn) {
  color: var(--ink-dim) !important;
  background: none;
  border-color: transparent;
}
.navlinks > a:not(.button):hover,
.nav-blog:hover,
.navlinks > a[aria-current="page"],
.nav-blog[aria-current="page"] {
  color: var(--gold-lite) !important;
}
.nav-burger i,
.nav-burger i::before,
.nav-burger i::after {
  background: var(--cream);
}
.nav-burger[aria-expanded="true"] i {
  background: transparent;
}
@media (max-width: 1080px) {
  .nav-panel {
    background: var(--ground-2) !important;
    border-bottom: 1px solid var(--hair) !important;
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9) !important;
  }
  .nav-panel a {
    color: var(--cream) !important;
  }
  .nav-panel a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
  }
  .nav-panel a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
  }
  .nav-panel .panel-sep {
    border-top: 1px solid var(--hair) !important;
  }
  .nav-panel .panel-login {
    color: var(--cream) !important;
    border: 1px solid var(--hair-strong) !important;
    background: rgba(255, 255, 255, 0.05) !important;
  }
}

/* ---------- glass panels ---------- */
.glass,
.step,
.flow article,
.safety,
.cta,
.demo-card,
.card,
.proof,
.route,
.deep-panel,
.decision-table,
.bench,
.related,
.sci-card,
.filter-row,
.approval,
.ai-note,
#faq details,
.faq details {
  background: var(--glass-bg) !important;
  border: var(--glass-line) !important;
  box-shadow: var(--glass-shadow) !important;
  color: var(--ink-dim);
}
.proof {
  background: linear-gradient(158deg, rgba(35, 126, 75, 0.28), rgba(255, 255, 255, 0.04)) !important;
}
.faq details {
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hair) !important;
  box-shadow: none !important;
  border-radius: 0;
}
.faq summary,
#faq summary {
  color: var(--cream);
}
.step:before,
.flow article:before,
.step,
.opt .step,
#faq summary::after {
  color: var(--gold-lite);
}
.ticks li:before {
  color: var(--mint);
}
.glass p,
.step p,
.flow p,
.card p,
.faq details p,
.ticks li,
.stat .l,
.bench .foot {
  color: var(--ink-dim);
}
.bench .foot,
.sci-card .src,
.section {
  border-color: var(--hair);
}
.sci-card .claim {
  color: var(--cream);
}
.stat .cap,
.bench .bh {
  color: var(--gold-lite);
}
.approval strong {
  color: var(--mint);
}
.decision-table th {
  color: var(--gold-lite) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}
.decision-table th:last-child {
  color: var(--mint) !important;
  background: linear-gradient(110deg, rgba(35, 126, 75, 0.25), rgba(242, 166, 90, 0.14)) !important;
}
.decision-table td {
  color: var(--ink-dim) !important;
  border-bottom: 1px solid var(--hair) !important;
}
.decision-table td:first-child,
.decision-table td:last-child {
  color: var(--cream) !important;
}
.decision-table td:nth-child(2) {
  color: var(--ink-faint) !important;
}
.decision-table td:last-child:before {
  color: #0b0806;
}

/* ---------- chips ---------- */
.lang-chips li,
.chips li,
.chip,
.lang-btn {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: var(--cream) !important;
  box-shadow: none !important;
}
.lang-chips li.more,
.chips li.more {
  border-color: var(--mint) !important;
  color: var(--mint) !important;
  background: rgba(120, 214, 162, 0.08) !important;
}
.lang-note,
.hero-note,
.fine,
.form-note,
.foot-legal {
  color: var(--ink-faint);
}
.tag-ok {
  color: #7fe0a8;
  background: rgba(127, 224, 168, 0.14);
}
.tag-hide {
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.07);
}

/* ---------- forms ---------- */
.field label {
  color: var(--ink-dim);
}
.field input,
.field textarea,
.field select {
  color: var(--cream) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--hair-strong) !important;
  box-shadow: none !important;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(247, 232, 214, 0.62) !important;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold-lite) !important;
}
.field select option {
  color: #0b0806;
  background: #f7e8d6;
}

/* ---------- footer and page edges ---------- */
footer,
.foot {
  border-top: 1px solid var(--hair) !important;
  color: var(--ink-dim);
}
.foot-links a,
.foot a {
  color: var(--ink-dim);
}
.foot-links a:hover,
.foot a:hover {
  color: var(--cream);
}

/* ---------- long-form pages (blog, legal, privacy) ---------- */
blockquote {
  background: rgba(255, 255, 255, 0.05) !important;
  border-left: 3px solid var(--orange-bright) !important;
  color: var(--ink-dim) !important;
}
table {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--hair) !important;
  box-shadow: none !important;
}
th {
  background: rgba(255, 255, 255, 0.07) !important;
  color: var(--cream);
}
th,
td {
  border-bottom: 1px solid var(--hair) !important;
}
code {
  background: rgba(255, 255, 255, 0.09) !important;
  color: var(--gold-lite);
}
hr {
  border-top: 1px solid var(--hair) !important;
}
.note {
  background: rgba(120, 214, 162, 0.08) !important;
  border: 1px solid rgba(120, 214, 162, 0.28) !important;
  color: var(--ink-dim) !important;
}
.cta-card {
  background: linear-gradient(120deg, #123d29, #2a2217) !important;
  border: var(--glass-line);
}
.cta-card h2 {
  color: var(--cream);
}
.cta-card p {
  color: var(--ink-dim);
}
.related a,
.back {
  color: var(--gold-lite) !important;
}
.dim,
.meta {
  color: var(--ink-faint) !important;
}
.lang-toggle {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--hair-strong) !important;
  color: var(--cream);
}
.landing-locale summary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--hair-strong) !important;
  color: var(--cream);
}
.locale-options,
.lang-dropdown {
  background: rgba(20, 16, 12, 0.97) !important;
  border: 1px solid var(--hair-strong) !important;
}

/* ---------- photos and phones keep their own darkness; give them a hairline ---------- */
.phone,
.photo-band,
.imgband,
.craft-card,
.dish,
img.rounded {
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.phone {
  box-shadow: 0 34px 80px -26px #000, 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ---------- cookie notice ---------- */
#cookie-banner,
.cookie-banner,
[role="dialog"] {
  background: rgba(20, 16, 12, 0.97);
  color: var(--cream);
  border: 1px solid var(--hair-strong);
}

/* ---------- skip link (keyboard users jump past the navigation) ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 12px;
  background: #ffffff;
  color: #0b0806;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- motion, contrast and forced-colours preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (prefers-contrast: more) {
  :root {
    --ink-dim: #ffffff;
    --ink-faint: #ffffff;
    --hair: rgba(255, 255, 255, 0.4);
  }
}
@media (forced-colors: active) {
  .button,
  .btn-primary,
  .nav-prod a[aria-current="page"] {
    border: 2px solid ButtonText !important;
    forced-color-adjust: auto;
  }
  .grad-text,
  .stat .n {
    color: CanvasText;
    background: none;
  }
}

/* =====================================================================
   Refinements after the first visual pass
   ===================================================================== */

/* Glass: blur what is behind, bright top edge, soft close shadow. */
.glass,
.step,
.flow article,
.safety,
.cta,
.demo-card,
.card,
.proof,
.route,
.deep-panel,
.decision-table,
.bench,
.related,
.sci-card,
.filter-row,
.approval,
.ai-note,
#faq details,
.provider-card,
.hub-link,
.tech-card,
.link-example,
ul.facts,
a[href^="/blog/"][style*="flex-direction:column"] {
  background: var(--glass-bg) !important;
  border: var(--glass-line) !important;
  box-shadow: var(--glass-shadow) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  color: var(--ink-dim);
}
a[href^="/blog/"][style*="flex-direction:column"] h3,
a[href^="/blog/"][style*="flex-direction:column"] strong {
  color: #ffffff;
}
a[href^="/blog/"][style*="flex-direction:column"] p,
a[href^="/blog/"][style*="flex-direction:column"] span {
  color: var(--ink-dim);
}
.provider-card h2,
.provider-card h3,
.hub-link strong,
.tech-card h3,
ul.facts strong {
  color: #ffffff;
}

/* The "Option 1" labels use the .step class but are plain labels, not cards. */
.opt .step {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.12em;
}

/* No orange or beige type: card titles, labels and eyebrows are white. */
.step:before,
.flow article:before,
.eyebrow,
.bh,
.stat .cap,
.cap,
.route-label,
.card .tag,
.imgband .cap .e,
.discover .eyebrow,
#faq summary::after {
  color: #ffffff !important;
}
.eyebrow,
.bh,
.stat .cap {
  opacity: 0.9;
}
.beat .k {
  font-weight: 600;
}
.ai-badge {
  background: var(--mint) !important;
  color: #0b0806 !important;
}
.decision-table th,
.decision-table th:last-child {
  color: #ffffff !important;
}
.nav-prod a,
.nav-links a,
.chip,
.lang-chips li,
.chips li,
.field input,
.field textarea,
.field select {
  color: #ffffff !important;
}
.nav-prod a[aria-current="page"] {
  color: #0b0806 !important;
}
.chip.on,
.lang-btn.on,
.button,
.btn-primary {
  color: #0b0806 !important;
}

/* Language switch: a round chip, not a boxed square. */
.lang-toggle,
#langToggle {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 999px !important;
  padding: 5px !important;
  box-shadow: none !important;
}
.lang-toggle:hover,
#langToggle:hover {
  background: rgba(255, 255, 255, 0.16) !important;
}
.lang-toggle img,
#flagIcon {
  border-radius: 50%;
}

/* Mobile menu button: three clear white bars. */
.nav-burger i,
.nav-burger i::before,
.nav-burger i::after {
  background: #ffffff !important;
  opacity: 1 !important;
}
.nav-burger[aria-expanded="true"] i {
  background: transparent !important;
}
.nav-burger {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 12px;
}

.foot-word {
  height: 26px !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
}

/* Visually hidden text that screen readers still announce. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   Shorter pages: keep three-up groups in one row on tablets and use tighter
   section spacing. Phones (under 620px) still stack so type stays readable.
   ===================================================================== */
.three,
.sci,
.glass-grid,
.steps,
.craft-grid,
.ctrl-grid,
.why-grid {
  gap: 16px;
}
.three,
.sci,
.glass-grid,
.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.beat,
.sci-card,
.glass-grid .glass,
.steps .step {
  padding: 22px 20px;
}
.beat .k {
  font-size: 16px;
}
.beat p,
.sci-card p,
.glass-grid .glass p,
.steps .step p {
  font-size: 14.5px;
  line-height: 1.5;
}
@media (max-width: 620px) {
  .three,
  .sci,
  .glass-grid,
  .steps {
    grid-template-columns: 1fr !important;
  }
}
/* Four-up and six-up groups: two rows of three beat one long column. */
@media (min-width: 621px) and (max-width: 900px) {
  .ctrl-grid,
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 901px) {
  section,
  .section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
}
@media (max-width: 900px) {
  section,
  .section {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
}
.hero {
  padding-top: 40px;
  padding-bottom: 44px;
}
.lede h2 + p,
.section-head h2 + p {
  margin-top: 12px;
}

/* Home headline: "The smart menu" stays on one line. */
.hero h1 {
  font-size: clamp(38px, 4.7vw, 64px) !important;
  line-height: 1.06;
}

/* Cookie notice and preferences panel: dark glass, white text, mint links. */
#cookieBanner,
#cookiePrefs {
  background: rgba(20, 16, 12, 0.96) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.7) !important;
}
#cookieBanner a,
#cookiePrefs a {
  color: var(--mint) !important;
  text-decoration: underline !important;
}
#cookiePrefs p,
#cookiePrefs span,
#cookiePrefs div {
  color: rgba(255, 255, 255, 0.9) !important;
}
#cookiePrefs [style*="border:1px solid"] {
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.04);
}
#ckPreferencesTrack,
#ckAnalyticsTrack {
  border: 1px solid #9a8c7e;
}
#ckAccept,
#cookiePrefs button:not(#ckManage):not([id*="Reject"]):not([id*="Close"]) {
  color: #0b0806 !important;
  background: var(--grad-bright) !important;
}
#ckManage,
#cookiePrefs button {
  border-color: rgba(255, 255, 255, 0.7) !important;
}
#cookiePrefsBackdrop {
  background: rgba(0, 0, 0, 0.6) !important;
}

/* Titles in warm off-white (body text, navigation and controls stay pure white). */
h1,
h2,
h3,
h4,
strong,
summary,
.faq summary,
#faq summary,
.sci-card .claim,
.beat .k,
a[href^="/blog/"][style*="flex-direction:column"] h3,
a[href^="/blog/"][style*="flex-direction:column"] strong,
.provider-card h2,
.provider-card h3,
.hub-link strong,
.tech-card h3,
ul.facts strong {
  color: var(--title) !important;
}
.grad-text,
.stat .n {
  color: transparent !important;
}

/* One Blog button everywhere: an outlined pill that is always visible. */
.nav-blog,
.navlinks > a:not(.button),
.nav-cta a.nav-blog {
  display: inline-flex !important;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
}
.nav-blog:hover,
.navlinks > a:not(.button):hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}
.nav-blog[aria-current="page"] {
  border-color: #ffffff !important;
}

/* Product and contact pages keep their bar inside the page column: no panel behind it. */
nav.wrap,
.wrap.nav {
  background: transparent !important;
  border-bottom: 0 !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

main:focus {
  outline: none !important;
}

/* Glass lifts a little when pointed at (and never moves for reduced-motion users). */
.glass,
.card,
.beat,
.sci-card,
.opt,
.route,
.deep-panel,
a[href^="/blog/"][style*="flex-direction:column"] {
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.glass:hover,
.card:hover,
.beat:hover,
.sci-card:hover,
.opt:hover,
.route:hover,
.deep-panel:hover,
a[href^="/blog/"][style*="flex-direction:column"]:hover {
  box-shadow: var(--glass-shadow-hover) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}
/* Chips and pills: a small version of the same rim light. */
.chip,
.lang-chips li,
.chips li,
.nav-prod,
.nav-blog,
.lang-toggle,
#langToggle {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 16px -6px rgba(255, 255, 255, 0.18) !important;
}

/* On phones and tablets the top bar centres its logo with position:absolute; the
   footer logo shares the .brand class and was dragged on top of the footer text. */
footer .brand,
.foot .brand,
.foot-in .brand {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: block;
}

/* Phone mock-ups: a smaller, higher camera island (like a real phone) so the app's top
   bar (back arrow, menu section, language) sits clearly below it. */
.phone .isl,
.phone:before {
  top: 15px !important;
  width: 80px !important;
  height: 22px !important;
}

/* ---------- photo bands: copy centred in the image, no dead space below ---------- */
.photo-band {
  min-height: 320px !important;
  margin: 8px auto 0 !important;
  align-items: center !important;
  justify-content: center;
}
.photo-band::after {
  background: radial-gradient(ellipse at center, rgba(11, 8, 6, 0.62), rgba(11, 8, 6, 0.3) 70%, rgba(11, 8, 6, 0.18)) !important;
}
.photo-band .wrap {
  display: flex;
  justify-content: center;
}
.photo-band .band-copy {
  margin: 0 auto !important;
  max-width: 620px !important;
  text-align: center;
}

/* ---------- PDF vs Cravd comparison cards ---------- */
.vs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.vs-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--hair-strong);
  box-shadow: var(--glass-shadow);
}
.vs-row h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: var(--title);
}
.vs-row p {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  line-height: 1.5;
}
.vs-old {
  color: rgba(255, 255, 255, 0.72);
}
.vs-new {
  color: #fff;
  padding: 12px 14px;
  margin: 0 -14px !important;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(120, 214, 162, 0.14), rgba(244, 177, 131, 0.12));
  border: 1px solid rgba(120, 214, 162, 0.28);
}
.vs-mark {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}
.vs-new .vs-mark {
  background: linear-gradient(135deg, #78d6a2, #f4b183);
  color: #0b0806;
}
.vs-tag {
  display: block;
  margin-bottom: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
@media (max-width: 760px) {
  .vs {
    grid-template-columns: 1fr;
  }
}

/* ---------- interactive menu pop-up (desktop) ---------- */
html.popup-open {
  overflow: hidden;
}
.app-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(11, 8, 6, 0.28);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  backdrop-filter: blur(28px) saturate(1.2);
}
.app-popup-panel {
  position: relative;
  display: flex;
  align-items: center;
  width: min(1240px, 94vw);
  height: min(900px, 92vh);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 70px -10px rgba(255, 255, 255, 0.16);
}
.app-popup-copy {
  flex: 0 1 auto;
  box-sizing: border-box;
  max-width: min(480px, 40%);
  padding: 0 clamp(32px, 4vw, 56px) 36px;
  color: #fff;
}
.app-popup-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--title, #f6ede0);
}
.app-popup-copy .app-popup-lead {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}
.app-popup-copy .app-popup-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #78d6a2;
}
.app-popup-copy h3 {
  position: relative;
  margin: 0;
  padding: 18px 0 4px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.app-popup-copy h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #78d6a2, #f4b183);
}
.app-popup-copy h3 + p {
  margin: 0 0 14px;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}
.app-popup-panel iframe {
  flex: 1;
  min-width: 0;
  display: block;
  height: 100%;
  border: 0;
  background: transparent;
  color-scheme: light; /* a dark parent over a light app would paint the iframe opaque white */
}
@media (max-width: 1240px) {
  .app-popup-copy {
    position: absolute;
    left: 20px;
    bottom: 12px;
    z-index: 2;
    padding: 0;
  }
  .app-popup-copy > :not(.app-popup-new) {
    display: none;
  }
  .app-popup-new {
    margin-top: 0;
  }
}
.app-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(20, 16, 12, 0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.app-popup-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.app-popup-new {
  display: inline-block;
  margin-top: 26px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: rgba(20, 16, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

/* ---------- footer on the document pages (privacy, terms, legal, company, accessibility) ---------- */
.doc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  width: min(1064px, calc(100% - 56px));
  margin: 48px auto 0;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.doc-foot div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.doc-foot a {
  color: #fff;
  text-decoration: none;
}
.doc-foot a:hover,
.doc-foot a:focus-visible {
  text-decoration: underline;
}
