/* ============================================================
   TENARIE.COM — Style Sheet
   Premium GRC platform by Tenarie Limited
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Color palette — aligned with platform brand (saas.css) */
  --color-navy:       #0f172a;
  --color-navy-light: #1a2a45;
  --color-navy-mid:   #253754;
  --color-slate:      #3d506b;
  --color-steel:      #6b7c95;
  --color-mist:       #a8b5c8;
  --color-cloud:      #d6dde8;
  --color-ice:        #eef1f6;
  --color-white:      #ffffff;
  --color-border-soft:#e3e8f0;

  --color-accent:      #4384a8;
  --color-accent-hover:#376f8d;
  --color-accent-soft: rgba(67, 132, 168, 0.10);
  --color-link:        #376f8d;
  --color-link-hover:  #325f78;

  /* Primary action color — matches the app's --app-action-primary so primary
     buttons read identically to the product UI. */
  --color-action:       #376f8d;
  --color-action-hover: #325f78;

  --color-success:    #16a34a;
  --color-danger:     #dc2626;

  /* Amber accent — aligned to the app's gold (--bs-warning #ffbc00). The lead
     warm accent: hero CTA, badges, section markers and graphic series. Uses
     dark text on amber (amber fails AA with white). */
  --color-highlight:    #ffca28;                    /* bright — highlighted word on the dark hero */
  --color-proof:        #ffbc00;                    /* app gold */
  --color-proof-strong: #b8860b;                    /* deeper — text / white-on-amber badges */
  --color-proof-soft:   rgba(255, 188, 0, 0.14);    /* soft tile / ambient glow fill */
  --color-proof-border: rgba(255, 188, 0, 0.35);    /* hairline borders / rings */

  /* Typography — single modern family across the marketing site. Hierarchy
     comes from weight and size rather than a separate display typeface. */
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.5rem;
  --text-4xl:  3.25rem;
  --text-5xl:  4rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --container-max:    1200px;
  --container-narrow: 800px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows — base rgb aligned with platform (15, 23, 42) */
  --shadow-sm:  0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md:  0 4px 12px rgba(15, 23, 42, 0.08);

  /* Layered card shadows — soft at rest, lifted on hover, for a modern feel. */
  --shadow-card:       0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 20px -8px rgba(15, 23, 42, 0.10);
  --shadow-card-hover: 0 2px 5px rgba(15, 23, 42, 0.05), 0 18px 40px -14px rgba(15, 23, 42, 0.20);
  /* Deep, diffused float — for product graphics that lift off the page. */
  --shadow-float:      0 30px 60px -24px rgba(15, 23, 42, 0.32), 0 12px 28px -18px rgba(15, 23, 42, 0.16);

  /* Card hover ring — from platform .workspace-card:hover (saas.css) */
  --ring-accent: 0 0 0 2px rgba(67, 132, 168, 0.35);

  /* Transitions — aligned with platform 0.2s ease-in-out */
  --ease: ease-in-out;
  --duration: 0.2s;
}

body[data-public-theme="stone"] {
  --color-navy:        #15161b;
  --color-navy-light:  #292327;
  --color-navy-mid:    #413539;
  --color-slate:       #584d4f;
  --color-steel:       #7d7271;
  --color-mist:        #c6b8b0;
  --color-cloud:       #ddd0c4;
  --color-ice:         #f8f1ea;
  --color-border-soft: #e9ddd1;
  --color-accent:      #8c644b;
  --color-accent-hover:#744e39;
  --color-accent-soft: rgba(140, 100, 75, 0.10);
  --color-link:        #7d5942;
  --color-link-hover:  #674533;
}

body[data-public-theme="portal"] {
  --color-navy:        #101d28;
  --color-navy-light:  #1c3242;
  --color-navy-mid:    #294a5f;
  --color-slate:       #43667d;
  --color-steel:       #6c8799;
  --color-mist:        #b8c9d5;
  --color-cloud:       #d8e4ec;
  --color-ice:         #f3f8fb;
  --color-border-soft: #dce7ee;
  --color-accent:      #4384a8;
  --color-accent-hover:#376f8d;
  --color-accent-soft: rgba(67, 132, 168, 0.11);
  --color-link:        #376f8d;
  --color-link-hover:  #325f78;
}

body[data-public-theme="sage"] {
  --color-navy:        #111914;
  --color-navy-light:  #1f2f26;
  --color-navy-mid:    #304338;
  --color-slate:       #4a5d53;
  --color-steel:       #708479;
  --color-mist:        #bac7bd;
  --color-cloud:       #d1dbd2;
  --color-ice:         #f1f5ef;
  --color-border-soft: #dde5dd;
  --color-accent:      #5f7661;
  --color-accent-hover:#4d6250;
  --color-accent-soft: rgba(95, 118, 97, 0.10);
  --color-link:        #506958;
  --color-link-hover:  #405447;
}

body[data-public-theme="clay"] {
  --color-navy:        #1c1517;
  --color-navy-light:  #33232a;
  --color-navy-mid:    #493139;
  --color-slate:       #62484d;
  --color-steel:       #896a6d;
  --color-mist:        #d0b5af;
  --color-cloud:       #e5cbc5;
  --color-ice:         #fcf2ee;
  --color-border-soft: #f0ddd6;
  --color-accent:      #be7054;
  --color-accent-hover:#a25a42;
  --color-accent-soft: rgba(190, 112, 84, 0.10);
  --color-link:        #ac6349;
  --color-link-hover:  #904f3a;
}

body[data-public-theme="ember"] {
  --color-navy:        #221411;
  --color-navy-light:  #3b241d;
  --color-navy-mid:    #57372d;
  --color-slate:       #6e5146;
  --color-steel:       #947265;
  --color-mist:        #d4b4a6;
  --color-cloud:       #ead2c4;
  --color-ice:         #fff5ef;
  --color-border-soft: #f3dfd4;
  --color-accent:      #d07a4b;
  --color-accent-hover:#b6653a;
  --color-accent-soft: rgba(208, 122, 75, 0.11);
  --color-link:        #bc6e43;
  --color-link-hover:  #9f5934;
}

body[data-public-theme="olive"] {
  --color-navy:        #181910;
  --color-navy-light:  #2d2f1e;
  --color-navy-mid:    #44472f;
  --color-slate:       #5c6146;
  --color-steel:       #828866;
  --color-mist:        #c6c9af;
  --color-cloud:       #dee0c8;
  --color-ice:         #f8f8ec;
  --color-border-soft: #eaead8;
  --color-accent:      #8a8f4b;
  --color-accent-hover:#70753a;
  --color-accent-soft: rgba(138, 143, 75, 0.11);
  --color-link:        #767b40;
  --color-link-hover:  #5f6434;
}

body[data-public-theme="dusk"] {
  --color-navy:        #1c1624;
  --color-navy-light:  #32263f;
  --color-navy-mid:    #49375b;
  --color-slate:       #62506f;
  --color-steel:       #89759a;
  --color-mist:        #c9bbd6;
  --color-cloud:       #e0d5ea;
  --color-ice:         #f8f2fc;
  --color-border-soft: #ede3f4;
  --color-accent:      #8d6cb3;
  --color-accent-hover:#76569a;
  --color-accent-soft: rgba(141, 108, 179, 0.11);
  --color-link:        #7c5ea0;
  --color-link-hover:  #684d87;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Guard against horizontal scroll on both the root and body. Needed because the
   fixed off-canvas mobile nav (translateX(100%)) and decorative graphic glows can
   sit past the right edge on small screens; clipping at the root keeps fixed
   elements from creating a sideways scroll. */
html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-navy);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--color-link-hover);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1, h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.centered {
  text-align: center;
}

.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: #f3f5f7;
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark p,
.section-dark li,
.section-dark .section-label {
  color: var(--color-white);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* Amber kicker marker — a restrained, single touch of the proof accent that
   leads every section label. */
.section-label::before {
  content: '';
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-proof);
}

.section-label-light {
  color: var(--color-mist);
}

.section-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-slate);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

/* ---------- OFFCANVAS / MODAL CONTRACT ---------- */
.offcanvas-record-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.offcanvas-record-summary-card {
  margin-bottom: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.offcanvas-record-summary-card .card-body {
  padding: 0;
}

.offcanvas-record-summary-value {
  color: var(--color-navy);
  font-weight: 400;
}

.offcanvas-record-summary-text {
  color: inherit;
  font-weight: inherit;
  line-height: 1.45;
}

.offcanvas-record-summary-meta {
  color: var(--color-muted);
}

.offcanvas-record-summary-placeholder {
  color: var(--color-muted);
}

.offcanvas-record-summary-placeholder > *,
.offcanvas-record-summary-placeholder p,
.offcanvas-record-summary-placeholder li {
  color: inherit;
}

.app-info-alert {
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(67, 132, 168, 0.24);
  border-radius: var(--radius-md);
  background: rgba(67, 132, 168, 0.1);
  color: var(--color-navy);
  box-shadow: none;
}

.app-info-alert i {
  color: var(--color-link);
}

.app-info-alert a {
  color: var(--color-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.app-info-alert code {
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.06);
  color: var(--color-navy);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.65em 1.5em;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-action);
  color: var(--color-white);
  border-color: var(--color-action);
}

.btn-primary:hover {
  background: var(--color-action-hover);
  border-color: var(--color-action-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Amber secondary CTA — the warm counterpoint to the indigo primary. Uses dark
   text for contrast (amber fails AA with white). */
.btn-amber {
  background: var(--color-proof);
  color: var(--color-navy);
  border-color: var(--color-proof);
}

.btn-amber:hover {
  background: var(--color-proof-strong);
  border-color: var(--color-proof-strong);
  color: var(--color-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.btn-outline-accent {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline-accent:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-nav {
  background: var(--color-accent);
  color: var(--color-white) !important;
  border-color: var(--color-accent);
  padding: 0.5em 1.25em;
  font-size: var(--text-sm);
}

.nav-list li:has(.btn-nav) + li:has(.btn-nav) {
  margin-left: calc(-1 * var(--space-sm));
}

.btn-nav:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white) !important;
}

.btn-lg {
  font-size: var(--text-base);
  padding: 0.85em 2em;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--color-cloud);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.logo-img-footer {
  filter: brightness(0) invert(1);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-list a,
.nav-modal-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-slate);
  transition: color var(--duration) var(--ease);
}

.nav-modal-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.nav-list a:hover,
.nav-modal-link:hover,
.nav-modal-link:focus-visible {
  color: var(--color-navy);
}

.nav-modal-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.no-script-nav {
  display: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

.no-script-nav a {
  color: var(--color-slate);
  font-weight: 600;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-navy-light) 55%,
    var(--color-navy-mid) 100%
  );
}

/* Faint blueprint grid — adds depth and a "workspace" feel without a heavy
   image. Masked to fade out toward the edges so it never competes with copy. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 28% 42%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 28% 42%, #000 30%, transparent 78%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

/* Translucent overlay keeps hero text legible while the workspace screenshot
   reads as a subtle backdrop beneath it. */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-navy-light) 55%,
    var(--color-navy-mid) 100%
  );
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.hero-headline {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.025em;
}

.text-highlight {
  color: var(--color-highlight);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-mist);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Staggered hero entrance. Guarded by prefers-reduced-motion below so the copy
   is never left invisible when animation is disabled. */
.hero-headline,
.hero-sub,
.hero-actions {
  opacity: 0;
  animation: hero-rise 0.7s var(--ease) forwards;
}

.hero-headline   { animation-delay: 0.16s; }
.hero-sub        { animation-delay: 0.3s; }
.hero-actions    { animation-delay: 0.42s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ---------- SOLUTIONS ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.public-light-border {
  border: 1px solid var(--color-border-soft);
}

.public-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Keep the glyph at its own width and hard left when the card is a flex
     column (the linked overview cards), instead of stretching full width. */
  align-self: flex-start;
  margin: 0 0 var(--space-md);
  color: var(--color-accent);
  transition: transform var(--duration) var(--ease),
              color var(--duration) var(--ease);
}

.public-card-icon svg {
  width: 30px;
  height: 30px;
  /* Heavier than the 1.5 baked into the markup: standing on their own without a
     tile, the line icons need more weight to feel substantial. */
  stroke-width: 1.75;
}

/* Icon + title block used by the marketing cards. The bare line icon sits above
   the heading (chip-less, editorial) so the glyph reads clearly and the card
   feels lighter and more modern than a tinted tile. */
.public-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  text-align: center;
}

/* Soft circular icon tile — matches the app's stat-card / workspace-card icons
   (light gray disc, steel-blue line glyph). */
.public-card-head .public-card-icon {
  align-self: center;
  margin: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-ice);
  color: var(--color-accent);
}

.public-card-head .public-card-icon svg {
  width: 22px;
  height: 22px;
}

.public-card-head h3 {
  margin-bottom: 0;
  font-size: var(--text-md);
  /* Even out wrapped titles into balanced lines instead of long + short. */
  text-wrap: balance;
}

.solution-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border-soft);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

/* Unified card hover: lift, accent border and a soft ring. Applies whether or
   not the card is wrapped in a whole-card feature link. */
.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover), var(--ring-accent);
}

/* The icon chip "activates" with the card — a small lift, scale and accent
   border that ties the interaction together. */
.solution-card:hover .public-card-icon {
  transform: translateY(-2px) scale(1.08);
  color: var(--color-accent-hover);
  background: var(--color-accent-soft);
}

.solution-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.solution-card p {
  color: var(--color-slate);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ---------- PLATFORM SHOWCASE ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  overflow: visible;
}

/* Grid/flex items holding graphics must shrink below their content's
   min-content. Otherwise a long mock header (e.g. a test-package name) gives the
   graphic a wide min-content that forces its column — and the paragraph beside
   it — past the viewport on mobile. */
.showcase-text,
.showcase-image,
.trust-text,
.trust-image,
.feature-row-text,
.feature-row-media {
  min-width: 0;
}

.showcase-image {
  position: relative;
  z-index: 2;
}

.showcase-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.showcase-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.showcase-text p {
  color: var(--color-slate);
  font-size: var(--text-md);
  margin-bottom: var(--space-lg);
}

/* ---------- FRAMEWORKS ---------- */
.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.framework-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border-soft);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.framework-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover), var(--ring-accent);
}

.framework-card:hover .framework-icon {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--color-accent);
}

.framework-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(150deg, var(--color-accent-soft), transparent 78%);
  border: 1px solid var(--color-border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin: 0 auto var(--space-md);
  transition: transform var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.framework-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.framework-type {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.2em 0.7em;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.framework-card p:last-child {
  color: var(--color-slate);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ---------- WHY TENARIE ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.why-card {
  padding: var(--space-lg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover), var(--ring-accent);
}

.why-card:hover .public-card-icon {
  transform: translateY(-2px) scale(1.08);
  color: var(--color-accent-hover);
  background: var(--color-accent-soft);
}

.why-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.why-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.why-card p {
  color: var(--color-slate);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ---------- PLANS ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(var(--space-md), 2vw, var(--space-lg));
  /* Stretch cards in a row to equal height; the card's flex column with
     .pricing-features { flex: 1 } keeps each CTA aligned at the bottom. */
  align-items: stretch;
}

.pricing-card {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-lg), 2vw, var(--space-xl));
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover), var(--ring-accent);
}

/* The recommended, "available now" plan carries the proof amber (matching its
   badge) so it reads as the proven, ready-to-use choice. */
.pricing-card-featured {
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 2px var(--color-highlight), var(--shadow-card-hover);
}

.pricing-card-featured:hover {
  transform: translateY(-4px);
  border-color: var(--color-highlight);
  box-shadow: 0 0 0 2px var(--color-highlight), var(--shadow-card-hover);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  /* Amber marks the recommended, "available now" plan — the one proof moment in
     the plan grid. */
  background: var(--color-highlight);
  color: var(--color-navy);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-cloud);
}

.pricing-header h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.pricing-desc {
  font-size: var(--text-sm);
  color: var(--color-slate);
  line-height: 1.6;
}

.pricing-features {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--color-slate);
  line-height: 1.5;
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 2px;
}

/* Muted state for coming-soon plans */
.pricing-card-muted {
  opacity: 0.6;
}

.pricing-card-muted:hover {
  border-color: var(--color-cloud);
  box-shadow: none;
}

.pricing-badge-muted {
  background: var(--color-steel);
  color: var(--color-white);
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* ---------- TRUST ---------- */
.trust-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  overflow: visible;
}

.trust-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.trust-image-certification {
  display: grid;
  place-items: center;
}

.trust-image .trust-certification-badge {
  width: min(100%, 14rem);
  height: auto;
  border-radius: 0;
}

.trust-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.trust-text > p {
  color: var(--color-slate);
  font-size: var(--text-md);
  margin-bottom: var(--space-xl);
}

.trust-list {
  display: grid;
  gap: var(--space-md);
}

.trust-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-list li strong {
  font-size: var(--text-base);
  color: var(--color-navy);
}

.trust-list li span {
  font-size: var(--text-sm);
  color: var(--color-slate);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-cloud);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-cloud);
}

.faq-question {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  padding: var(--space-lg) 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: color var(--duration) var(--ease);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-steel);
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-item[open] .faq-question {
  color: var(--color-accent);
}

.faq-answer {
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  color: var(--color-slate);
  font-size: var(--text-base);
  line-height: 1.8;
}

/* ---------- CONTACT ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: stretch;
}

.contact-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.contact-text > p {
  color: var(--color-mist);
  font-size: var(--text-md);
  margin-bottom: var(--space-xl);
}

.contact-actions {
  margin-bottom: var(--space-xl);
}

.contact-details {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.contact-detail strong {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-mist);
  margin-bottom: 4px;
}

.contact-detail a,
.contact-detail span {
  color: var(--color-white);
  font-size: var(--text-base);
}

.contact-detail a:hover {
  color: var(--color-link);
}

.contact-image {
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
  opacity: 0.6;
  max-height: 200px;
  width: 100%;
  object-fit: cover;
}

.contact-panel {
  display: grid;
  gap: var(--space-lg);
}

.contact-panel-card {
  background: linear-gradient(180deg, rgba(26, 42, 69, 0.96), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--color-navy-mid);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.contact-panel-card-primary {
  background:
    radial-gradient(circle at top right, rgba(67, 132, 168, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(37, 55, 84, 0.98), rgba(15, 23, 42, 1));
}

.contact-panel-kicker {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mist);
  margin-bottom: var(--space-sm);
}

.contact-panel-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.contact-panel-card p {
  color: var(--color-mist);
}

.contact-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.contact-stat {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(214, 221, 232, 0.12);
}

.contact-stat strong {
  display: block;
  font-size: var(--text-lg);
  color: var(--color-white);
  margin-bottom: 4px;
}

.contact-stat span {
  display: block;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-mist);
}

.contact-list {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.contact-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-mist);
  line-height: 1.7;
}

.contact-list li::before {
  content: '';
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-link);
}

.contact-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-white);
}

.footer-company {
  margin-top: var(--space-xs) !important;
  font-size: var(--text-xs) !important;
  color: var(--color-white) !important;
}

.footer-brand .logo {
  color: var(--color-white);
}

/* "Featured on" badge strip — left-aligned, wraps as more badges are added */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.footer-badge {
  display: inline-flex;
  line-height: 0;
  transition: opacity var(--duration) var(--ease);
}

.footer-badge:hover {
  opacity: 0.85;
}

.footer-badge img {
  display: block;
  height: auto;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-links ul {
  display: grid;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-white);
  transition: color var(--duration) var(--ease);
}

.footer-link-button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--color-white);
  cursor: pointer;
  font: inherit;
  font-size: var(--text-sm);
  padding: 0;
  text-align: left;
  transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--color-white);
}

.footer-link-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--color-navy-mid);
  padding-top: var(--space-lg);
  font-size: var(--text-xs);
  color: var(--color-white);
}

/* ---------- LEGAL PAGES ---------- */
.legal-section {
  padding-top: calc(72px + var(--space-3xl));
}

.legal-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}

.legal-meta {
  font-size: var(--text-sm);
  color: var(--color-steel);
  margin-bottom: var(--space-xl);
}

.legal-callout,
.legal-toc {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: var(--color-ice);
}

.legal-callout {
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  border-left: 4px solid var(--color-accent);
}

.legal-callout p {
  margin: 0;
  color: var(--color-slate);
  line-height: 1.7;
}

.legal-callout strong {
  color: var(--color-navy);
}

.legal-toc {
  padding: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.legal-toc h2 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.legal-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-xl);
  row-gap: var(--space-xs);
  margin: 0;
  padding-left: var(--space-lg);
}

.legal-toc li {
  color: var(--color-steel);
  padding-left: var(--space-xs);
}

.legal-toc a {
  color: var(--color-slate);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.legal-body {
  line-height: 1.8;
}

.legal-block {
  margin-bottom: var(--space-2xl);
}

.legal-block h2 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-navy);
}

.legal-block h3 {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-navy);
}

.legal-block p {
  color: var(--color-slate);
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

.legal-block ul,
.legal-block ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-block ul {
  list-style: disc;
}

.legal-block ol {
  list-style: decimal;
}

.legal-block ul li,
.legal-block ol li {
  color: var(--color-slate);
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

.legal-block ul li strong,
.legal-block ol li strong {
  color: var(--color-navy);
}

.legal-definitions {
  margin: 0;
}

.legal-definitions dt {
  color: var(--color-navy);
  font-weight: 700;
  margin-top: var(--space-md);
}

.legal-definitions dt:first-child {
  margin-top: 0;
}

.legal-definitions dd {
  color: var(--color-slate);
  line-height: 1.7;
  margin: var(--space-xs) 0 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: var(--space-md) 0 var(--space-lg);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--color-white);
}

.legal-table th,
.legal-table td {
  padding: var(--space-md);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--color-slate);
  line-height: 1.65;
}

.legal-table th {
  color: var(--color-navy);
  background: var(--color-ice);
  font-size: var(--text-sm);
  font-weight: 700;
}

.legal-table td:first-child {
  width: 30%;
  color: var(--color-navy);
  font-weight: 600;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-contact-list {
  list-style: none;
  padding-left: 0;
}

.legal-contact-list li {
  margin-bottom: var(--space-xs);
}

@media (max-width: 720px) {
  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .legal-callout,
  .legal-toc {
    padding: var(--space-md);
  }
}

/* ---------- ANIMATIONS (scroll reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  /* Per-element stagger delay is set inline by main.js so grids animate in
     sequence rather than all at once. */
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect users who ask for reduced motion: show everything immediately and
   drop the entrance, drift and reveal transitions. */
@media (prefers-reduced-motion: reduce) {
  .hero-headline,
  .hero-sub,
  .hero-actions {
    opacity: 1;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms !important;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-headline {
    font-size: var(--text-4xl);
  }

  .section-header h2,
  .showcase-text h2,
  .trust-text h2,
  .contact-text h2,
  .legal-title {
    font-size: var(--text-2xl);
  }

  .solutions-grid,
  .why-grid,
  .frameworks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .frameworks-grid .framework-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 5rem;
    --space-3xl: 3.5rem;
  }

  /* Mobile nav */
  .js-enabled .mobile-toggle {
    display: flex;
  }

  noscript .no-script-nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: end;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .nav-list a,
  .nav-modal-link {
    font-size: var(--text-xl);
  }

  .nav-list .btn-nav {
    font-size: var(--text-sm);
    padding: 0.5em 1.25em;
    display: inline-block;
  }

  .nav-list li:has(.btn-nav) + li:has(.btn-nav) {
    margin-left: 0;
  }

  /* Hero */
  .hero-headline {
    font-size: var(--text-3xl);
  }

  .hero-sub {
    font-size: var(--text-base);
  }

  .hero-actions {
    flex-direction: column;
  }

  /* Grids to single column */
  .showcase-grid,
  .trust-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .solutions-grid,
  .why-grid,
  .frameworks-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .frameworks-grid .framework-card:last-child {
    max-width: none;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Trust image order */
  .trust-image {
    order: -1;
  }

  .contact-details {
    flex-direction: column;
    gap: var(--space-md);
  }

  .contact-stat-grid,
  .contact-link-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .hero-headline {
    font-size: var(--text-2xl);
  }

  /* Display heading was overflowing (and clipping) on small screens. */
  .section-header h2 {
    font-size: var(--text-xl);
  }
}

/* Long display headings must wrap, never overflow the viewport. */
.hero-headline,
.page-hero h1,
.section-header h2 {
  overflow-wrap: break-word;
}

/* ============================================================
   PUBLIC SITE — ADDITIVE LAYOUT HELPERS
   Marketing pages (Product, Features, feature detail, Why,
   Pricing, FAQ). Additive only: reuses existing design tokens,
   adds inner-page hero, generic card grids, checklists and
   image placeholders without changing existing components.
   ============================================================ */

/* Inner-page hero — compact navy banner that clears the fixed header */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 55%, var(--color-navy-mid) 100%);
  color: var(--color-white);
  padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
}

.page-hero .section-label {
  color: var(--color-mist);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  max-width: 20ch;
}

.page-hero p {
  color: var(--color-mist);
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 640px;
}

.page-hero p + p {
  margin-top: var(--space-sm);
}

.page-hero .hero-actions {
  margin-top: var(--space-lg);
}

/* Generic card grids reused across marketing pages */
.public-block-gap-lg {
  margin-top: var(--space-xl);
}

.public-card-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}

.public-card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.public-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.public-card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Whole-card link without inheriting the default link color */
.public-feature-link {
  color: inherit;
  display: flex;
}

.public-feature-link:hover {
  color: inherit;
}

.public-feature-link .solution-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* "Learn more" affordance for whole-card links. Always visible and anchored to
   the bottom (margin-top:auto) so it aligns across a row of equal-height cards;
   the arrow nudges right on hover as an interaction cue. */
.public-feature-link .solution-card::after {
  content: "Learn more \2192";
  margin-top: auto;
  padding-top: var(--space-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  transform: translateX(0);
  transition: transform var(--duration) var(--ease);
}

.public-feature-link:hover .solution-card::after {
  transform: translateX(4px);
}

/* Two-up text block, e.g. "the challenge" beside "what Tenarie does" */
.public-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.public-split p {
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

/* Numbered lifecycle / workflow steps */
.public-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Centered call-to-action button row */
.public-cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* Home hero trust signals */
.hero-trust {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}

.hero-trust li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-mist);
  font-size: var(--text-sm);
}

.hero-trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-link);
}

/* Alternating feature showcase rows — features overview page.
   Each feature is shown inline: text one side, image the other, flipping
   every second row. No click-through; users scroll the full list. */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  scroll-margin-top: 96px;
}

.feature-row + .feature-row {
  margin-top: var(--space-3xl);
}

/* Give the group heading room to breathe before its first feature row,
   matching the header-to-content rhythm used elsewhere on the site. */
.section-header + .feature-row {
  margin-top: var(--space-2xl);
}

/* Flip rows place the image on the left and text on the right */
.feature-row.flip .feature-row-text {
  order: 2;
}

.feature-row-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-xs);
}

.feature-row-lead {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.feature-row-text > p {
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.feature-row-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.feature-row-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-slate);
  line-height: 1.4;
}

.feature-row-list li svg {
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 3px;
}

/* Dark-section variants for the additive helpers */
.section-dark .section-intro,
.section-dark .public-split p,
.section-dark .trust-text > p {
  color: var(--color-white);
}

/* Generated SEO navigation keeps deeper pages discoverable and oriented. */
.site-breadcrumb {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.site-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-slate);
  font-size: var(--text-sm);
}

.site-breadcrumb li + li::before {
  content: '/';
  margin-right: var(--space-xs);
  color: var(--color-muted);
}

.site-breadcrumb a {
  color: var(--color-link);
  font-weight: 600;
}

.site-breadcrumb a:hover,
.site-breadcrumb a:focus-visible {
  color: var(--color-link-hover);
}

.seo-related-features {
  background: var(--color-off-white);
}

.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.seo-related-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  color: var(--color-navy);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.seo-related-card:hover,
.seo-related-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-link);
  box-shadow: var(--shadow-md);
}

.seo-related-card h3 {
  margin-bottom: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.seo-related-card p {
  flex: 1;
  margin-bottom: var(--space-md);
  color: var(--color-slate);
}

.seo-related-card > span {
  color: var(--color-link);
  font-size: var(--text-sm);
  font-weight: 700;
}


/* Responsive collapse mirrors the existing breakpoints */
@media (max-width: 1024px) {
  .public-card-grid-3,
  .public-card-grid-4,
  .public-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row {
    gap: var(--space-2xl);
  }

  .seo-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero h1 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 768px) {
  .public-card-grid-2,
  .public-card-grid-3,
  .public-card-grid-4,
  .public-split,
  .public-steps {
    grid-template-columns: 1fr;
  }

  .seo-related-grid {
    grid-template-columns: 1fr;
  }

  /* Stack feature rows; keep text above the image regardless of flip */
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-row.flip .feature-row-text {
    order: 0;
  }

  /* Inner-page hero heading was overflowing on small screens (its base rule sits
     after the earlier breakpoints, so the mobile step must live here). */
  .page-hero h1 {
    font-size: var(--text-2xl);
  }

  .page-hero h1 {
    font-size: var(--text-2xl);
  }
}
