/* Wrapped look for the public site, light only: off-white ground, one key colour (near-black) for headline,
   body, numbers and rules, colour kept to blurred field art at the edges, wide heavy type for what matters.
   Loaded last on every public page (not admin/portal, which use wrapped.css). */

body:not(.admin) {
  --wr-ground: #f4f4f2;
  --wr-surface: #ffffff;
  --wr-key: #1c1c1c;
  --wr-on-key: #ffffff;
  --wr-muted: rgba(28,28,28,.62);
  --wr-stroke: rgba(28,28,28,.09);
  --wr-display: "Archivo", "Inter", system-ui, sans-serif;
  --wr-text: "Figtree", "Inter", system-ui, sans-serif;
  --wr-ease: cubic-bezier(.22,1,.36,1);
  --wr-field:
    radial-gradient(34% 60% at 6% 0%, #5138c7, transparent 70%),
    radial-gradient(28% 50% at 32% -10%, #6a82df, transparent 70%),
    radial-gradient(26% 50% at 68% -6%, #bdefe8, transparent 70%),
    radial-gradient(32% 60% at 98% 4%, #e3c976, transparent 70%),
    radial-gradient(34% 60% at 4% 108%, #6ba584, transparent 70%),
    radial-gradient(30% 50% at 48% 112%, #6f9b41, transparent 70%),
    radial-gradient(32% 60% at 96% 104%, #5138c7, transparent 70%);
  --brand: #1c1c1c !important; --accent: #1c1c1c !important; --coral: #1c1c1c !important; --ocean-bright: #1c1c1c !important;
  --ocean-pale: #1c1c1c !important; --tint-ink: #1c1c1c !important; --amber-ink: #1c1c1c !important; --pill: #1c1c1c !important; --pill-2: #1c1c1c !important;
  --bg: var(--wr-ground); --surface: var(--wr-surface); --ink: var(--wr-key); --line: var(--wr-stroke);
  background: var(--wr-ground) !important;
  color: var(--wr-key);
  font-family: var(--wr-text);
  -webkit-font-smoothing: antialiased;
}

/* Type */
body:not(.admin) :is(h1, h2, h3, .plan .price, .plan strong.amount, .ed-hero-aside b, .stat b, .kpi-value) {
  font-family: var(--wr-display) !important; font-stretch: 125%; font-weight: 900 !important;
  letter-spacing: -.012em !important; color: var(--wr-key) !important;
}
body:not(.admin) h1 { line-height: 1.02 !important; }
body:not(.admin) h1 span, body:not(.admin) h2 span { color: var(--wr-muted) !important; }
body:not(.admin) h3 { font-weight: 800 !important; }
body:not(.admin) :is(.ed-kicker, .kicker, .eyebrow, .section-kicker, .solution-kicker) {
  font-family: var(--wr-display) !important; font-stretch: 125%; font-weight: 450 !important;
  letter-spacing: .05em !important; color: var(--wr-muted) !important;
}
body:not(.admin) :is(p, li, td, th, label, input, textarea, select, small, summary, dd, dt) { font-family: var(--wr-text); }

/* Every dark band becomes the light ground; colour moves to field art at its edges. */
body:not(.admin) :is(.ed-home-hero, .ed-industries-strip, .ed-final, .solution-final, .price-stage, footer,
  header.nav, header.nav > .wrap, .call-scene, .plan.featured, .solution-card.solution-feature) {
  background: var(--wr-ground) !important; background-image: none !important; color: var(--wr-key) !important;
  box-shadow: none !important;
}
body:not(.admin) :is(.call-scene, .plan.featured, .solution-card.solution-feature) {
  background: var(--wr-surface) !important; border: 1px solid var(--wr-stroke) !important;
}
body:not(.admin) :is(.ed-home-hero, .ed-industries-strip, .ed-final, .solution-final, .price-stage, footer,
  header.nav, .call-scene, .plan.featured, .solution-feature)
  :is(h1, h2, h3, h4, p, span, small, b, strong, li, label, dt, dd, a:not(.btn), em, i:not(:empty), figcaption, div) {
  color: inherit;
}
body:not(.admin) :is(.ed-home-hero, .ed-final, .solution-final, .call-scene, .plan.featured, .solution-feature)
  :is(p, small, li) { color: var(--wr-muted) !important; }
body:not(.admin) :is(.ed-home-hero, .ed-final, .solution-final, .price-stage) { position: relative; isolation: isolate; overflow: hidden; }
body:not(.admin) :is(.ed-home-hero, .ed-final, .solution-final, .price-stage)::before {
  content: "" !important; position: absolute; inset: -10% -5%; z-index: -1; pointer-events: none;
  background: var(--wr-field) !important; filter: blur(60px) saturate(1.1); opacity: .28 !important; animation: none !important;
}
body:not(.admin) :is(.ed-home-hero, .ed-final, .solution-final, .price-stage)::after {
  content: "" !important; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .06 !important; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") !important;
}
/* The hero's voice-signal lines were drawn white for a dark ground. */
body:not(.admin) .voice-art svg { filter: invert(1) contrast(1.1); opacity: .55; }

/* Nav and footer */
body:not(.admin) header.nav { border-bottom: 1px solid var(--wr-stroke) !important; backdrop-filter: blur(16px); background: rgba(244,244,242,.82) !important; }
body:not(.admin) header.nav > .wrap { background: transparent !important; border: 0 !important; }
body:not(.admin) header.nav :is(a, summary, button):not(.btn) { color: var(--wr-key) !important; }
body:not(.admin) header.nav .logo img { filter: none !important; }
body:not(.admin) header.nav img[src*="logo-white"] { filter: invert(1) !important; }
body:not(.admin) footer { border-top: 1px solid var(--wr-stroke) !important; }
body:not(.admin) footer :is(h3, h4, strong) { font-family: var(--wr-display) !important; font-stretch: 125%; font-weight: 800 !important; }

/* Controls: pills. One fill: near-black with white text; the old yellow is gone. */
body:not(.admin) :is(.btn, button.btn, a.btn) { border-radius: 999px !important; font-family: var(--wr-display); font-stretch: 125%; font-weight: 800 !important; }
body:not(.admin) :is(.btn-brand, .nav-demo, .btn-dark, .btn-primary, .plan.featured .btn) {
  background: var(--wr-key) !important; color: var(--wr-on-key) !important; border-color: var(--wr-key) !important; box-shadow: none !important;
}
body:not(.admin) :is(.btn-brand, .nav-demo, .btn-dark, .btn-primary, .plan.featured .btn) svg { color: var(--wr-on-key) !important; stroke: currentColor; }
body:not(.admin) :is(.btn-brand, .nav-demo, .btn-dark, .btn-primary):hover { background: #000 !important; }
body:not(.admin) :is(.btn-ghost, .btn-secondary, .ed-secondary, .btn-light, .btn-outline) {
  background: transparent !important; color: var(--wr-key) !important; border: 1px solid rgba(28,28,28,.22) !important;
}
body:not(.admin) :is(.badge, .pill, .tag, .chip, mark) { border-radius: 999px; }
body:not(.admin) :is(mark, .badge-yellow, .save-badge) { background: var(--wr-key) !important; color: var(--wr-on-key) !important; }
body:not(.admin) .plan.featured :is(li svg, li::before, .check) { color: var(--wr-key) !important; fill: currentColor; }

/* Cards: flat white, hairline. */
body:not(.admin) :is(.plan, .ed-use, .solution-card, .solution-hub-card, .faq-item, .ed-industry-grid > a, .form-card, .ed-example) {
  box-shadow: none !important;
}
body:not(.admin) :is(.plan, .solution-card, .solution-hub-card, .form-card) { border-radius: 22px !important; }

/* Arrival: fade and rise, no overshoot. Reduced motion keeps everything still. */
@keyframes wr-site-rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  body:not(.admin) main > section:first-child :is(h1, .ed-hero-lead, .ed-actions, .ed-kicker, .solution-hero p) {
    animation: wr-site-rise .8s var(--wr-ease) both;
  }
  body:not(.admin) main > section:first-child .ed-kicker { animation-delay: 0ms; }
  body:not(.admin) main > section:first-child h1 { animation-delay: 100ms; }
  body:not(.admin) main > section:first-child :is(.ed-hero-lead, .solution-hero p) { animation-delay: 200ms; }
  body:not(.admin) main > section:first-child .ed-actions { animation-delay: 300ms; }
}

/* The old yellow accent, mapped to the key colour (generated from the site stylesheets). */
body:not(.admin).editorial.editorial-home .capability-bento .ed-feature-row .ed-text-link{color:var(--wr-key)!important}
body:not(.admin) .scene-art svg{stroke:var(--wr-key)!important}
body:not(.admin) .scene-art i::after{background:var(--wr-key)!important;color:var(--wr-on-key)!important}
body:not(.admin) #features .scene-copy .ed-text-link{color:var(--wr-key)!important}
body:not(.admin).checkout .form-card input:not([type=checkbox]):not([type=radio]):focus{box-shadow:none!important}
body:not(.admin) .handoff .orb{box-shadow:none!important}
body:not(.admin) .handoff.on .edge{box-shadow:none!important}

/* Wide type needs smaller sizes to keep headlines to two or three lines. */
body:not(.admin) h1 { font-size: clamp(2.2rem, 4.6vw, 4.1rem) !important; }
body:not(.admin) h2 { font-size: clamp(1.7rem, 3.2vw, 2.9rem) !important; line-height: 1.05 !important; }
body:not(.admin) .ed-hero-copy h1 { max-width: 11ch; }
body:not(.admin) :is(.ed-home-hero, .ed-final, .solution-final, .price-stage)::before { opacity: .42 !important; }
body:not(.admin) .ed-note :is(button, .btn) { color: var(--wr-key) !important; background: transparent !important; border: 1px solid rgba(28,28,28,.22) !important; }

/* Contrast fixes found by the page checker. */
body:not(.admin) .ed-industry-section { background: var(--wr-ground) !important; color: var(--wr-key) !important; }
body:not(.admin) .ed-industry-section :is(.industry-select, .industry-link, strong, span, p) { color: var(--wr-key) !important; }
body:not(.admin) .industry-example { background: var(--wr-surface) !important; }
body:not(.admin) .industry-example :is(strong, span, small) { color: var(--wr-key) !important; }
body:not(.admin) :is(.solution-outline, .btn-line) { background: transparent !important; color: var(--wr-key) !important; border: 1px solid rgba(28,28,28,.22) !important; }
body:not(.admin) :is(.solution-outline, .btn-line):hover { background: var(--wr-key) !important; color: var(--wr-on-key) !important; }
body:not(.admin) :is(.solution-section, .call-scene, .ed-index) :is(p, li, span:not(.solution-badge), small, a:not(.btn)) { color: var(--wr-muted) !important; }
body:not(.admin) .ed-index { color: var(--wr-muted) !important; }
body:not(.admin) :is(.solution-section, .call-scene) :is(h2, h3, h4, strong, b) { color: var(--wr-key) !important; }
body:not(.admin) :is(.solution-badge, .save) { background: var(--wr-key) !important; color: var(--wr-on-key) !important; }
body:not(.admin) :is(.solution-card, .guide-plan) { background: var(--wr-surface) !important; background-image: none !important; color: var(--wr-key) !important; }
body:not(.admin) :is(.solution-card, .guide-plan) :is(h2, h3, h4, strong, b, .amount, .price) { color: var(--wr-key) !important; }
body:not(.admin) :is(.solution-card, .guide-plan) :is(p, li, small, span:not(.solution-badge)) { color: var(--wr-muted) !important; }
body:not(.admin) :is(.solution-card, .guide-plan) :is(svg, i) { color: var(--wr-key) !important; }
body:not(.admin) .guide-plan.featured { border: 2px solid var(--wr-key) !important; box-shadow: none !important; }
body:not(.admin) :is(.stage-price, .stage-price .digit, .stage-price b) { color: var(--wr-key) !important; font-family: var(--wr-display); font-stretch: 125%; font-weight: 900; }
body:not(.admin) :is(.stage-price .cur, .stage-price .cents, .stage-plan, .stage-per, .stage-mins) { color: var(--wr-muted) !important; }
body:not(.admin) footer .logo img { filter: brightness(0) !important; }
body:not(.admin) :is(.scene-art, .ed-product-mark) svg { color: var(--wr-key) !important; stroke: currentColor; }
