/* ═══════════════════════════════════════════════════════════════
   vivo° landing — design tokens
   MIRROR backend/staticfiles/core/css/design-system.css
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* base — vivo° palette */
  --bg:           #F8F6F2;
  --surface:      #FFFFFF;
  --surface-alt:  #F3F1EC;
  --text:         #1A1A1A;
  --text-2:       #4A4A4A;
  --text-3:       #757575;
  --text-4:       #A8A49A;
  --border:       #E8E5E0;
  --border-2:     #D5D1CA;

  /* accent — Grano (from production) */
  --accent:       #C4A36E;
  --accent-d:     #B08E55;
  --accent-light: rgba(196,163,110,0.10);
  --accent-edge:  rgba(196,163,110,0.28);

  /* state — exact production tokens */
  --green:        #4A7C59;
  --green-bg:     rgba(74,124,89,0.10);
  --green-edge:   rgba(74,124,89,0.24);
  --yellow:       #C17F24;
  --yellow-bg:    rgba(193,127,36,0.10);
  --yellow-edge:  rgba(193,127,36,0.24);
  --orange:       #D35400;
  --orange-bg:    rgba(211,84,0,0.10);
  --orange-edge:  rgba(211,84,0,0.24);
  --red:          #C0392B;
  --red-bg:       rgba(192,57,43,0.10);
  --red-edge:     rgba(192,57,43,0.24);
  --critical:     #8B0000;
  --critical-bg:  rgba(139,0,0,0.10);
  --critical-edge: rgba(139,0,0,0.28);

  /* glass surfaces — same as backend */
  --glass:        rgba(255,255,255,0.6);
  --glass-edge:   rgba(255,255,255,0.7);

  /* typography — same as backend */
  --display: 'Unbounded', system-ui, sans-serif;
  --serif:   'Fraunces', Georgia, serif;
  --sans:    'Outfit', system-ui, sans-serif;

  --t-display:  clamp(40px, 6vw, 72px);
  --t-h2:       clamp(28px, 3.6vw, 44px);
  --t-h3:       clamp(19px, 1.7vw, 22px);
  --t-lead:     clamp(16px, 1.3vw, 18px);
  --t-body:     16px;
  --t-eyebrow:  11px;

  --section-pad: clamp(96px, 11vw, 128px);

  --ease:    cubic-bezier(0.22,0.61,0.36,1);
  --ease-2:  cubic-bezier(0.16,1,0.3,1);

  --maxw:   1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(160deg, #f7f4ef 0%, #ece7de 35%, #e3ddd3 70%, #dbd4c8 100%);
  background-attachment: fixed;
  text-transform: lowercase;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01','liga','kern';
  overflow-x: clip;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection { background: var(--accent); color: var(--text); }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-weight: 200;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  line-height: 1.06;
}
h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-h2); line-height: 1.04; }
h3 { font-size: var(--t-h3); font-weight: 300; line-height: 1.25; letter-spacing: -0.018em; }
h4 { font-size: 16px; font-weight: 400; letter-spacing: -0.015em; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 300; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
}
.dot { color: var(--accent); }
.num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--accent-d);
  letter-spacing: 0.04em;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.4; }
}

/* ═══ NAV ═══ */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(247,244,239,0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
nav.top.scrolled {
  background: rgba(247,244,239,0.92);
  border-bottom-color: var(--border);
}
nav.top .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: var(--display);
  font-weight: 200;
  font-size: 21px;
  letter-spacing: -0.025em;
  display: inline-flex;
  align-items: baseline;
}
.logo .deg { color: var(--accent); font-size: 0.8em; margin-left: 1px; }

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-2);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-2);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform-origin: left; transform: scaleX(1); }

.nav-actions { display: flex; gap: 6px; align-items: center; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 3px;
  margin-right: 6px;
  background: rgba(255,255,255,0.4);
}
.lang-switch button {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.3s var(--ease);
}
.lang-switch button.active { background: var(--text); color: var(--bg); }
.lang-switch button:hover:not(.active) { color: var(--text); }

.nav-link-text {
  font-size: 13px;
  color: var(--text-2);
  padding: 8px 14px;
  transition: color 0.2s var(--ease);
}
.nav-link-text:hover { color: var(--text); }

.nav-cta {
  font-size: 13px;
  font-weight: 400;
  padding: 9px 18px;
  border: 1px solid var(--text);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
  z-index: 1;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-2);
  z-index: -1;
}
.nav-cta:hover { color: var(--bg); }
.nav-cta:hover::before { transform: translateY(0); }

@media (max-width: 1180px) { .nav-links { display: none; } }
@media (max-width: 700px)  { .nav-link-text { display: none; } }

/* ═══ shared button ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-2), box-shadow 0.4s var(--ease-2);
  z-index: 1;
  text-transform: lowercase;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-2);
  z-index: -1;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -14px rgba(26,26,23,0.4); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { width: 14px; height: 14px; transition: transform 0.4s var(--ease-2); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border-2);
  transition: all 0.3s var(--ease);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text); background: rgba(0,0,0,0.025); }

/* ═══ HERO ═══ */
.hero {
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 50vw; height: 50vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
  background: radial-gradient(circle, rgba(74,124,89,0.18) 0%, transparent 65%);
  top: -20%; right: -10%;
  animation: drift 28s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 42vw; height: 42vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 65%);
  bottom: -25%; left: -8%;
  animation: drift 32s ease-in-out -16s infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(28px, -18px) scale(1.05); }
}

.hero .wrap { position: relative; z-index: 2; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 56px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}
.hero-meta .right {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  font-size: 13px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta .right::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2.6s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

.hero-copy h1 {
  font-size: var(--t-display);
  margin-top: 24px;
  font-weight: 200;
  line-height: 0.99;
}
.hero-copy h1 .ln { display: block; overflow: hidden; }
.hero-copy h1 .ln span {
  display: inline-block;
  transform: translateY(108%);
  animation: rise 1s var(--ease-2) forwards;
}
.hero-copy h1 .ln:nth-child(2) span { animation-delay: 0.1s; }
.hero-copy h1 .ln:nth-child(3) span { animation-delay: 0.2s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-copy h1 .em { font-family: var(--serif); font-style: italic; font-weight: 300; }
.hero-copy h1 .ring {
  display: inline-block;
  width: 0.32em; height: 0.32em;
  border: 0.06em solid var(--accent);
  border-radius: 50%;
  vertical-align: 0.22em;
  margin: 0 0.04em 0 0.05em;
}

.hero-lede {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 42ch;
  opacity: 0;
  transform: translateY(14px);
  animation: rise2 0.85s var(--ease-2) 0.5s forwards;
}
@keyframes rise2 { to { opacity: 1; transform: translateY(0); } }

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  opacity: 0;
  animation: rise2 0.85s var(--ease-2) 0.65s forwards;
}

.hero-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.25s var(--ease);
  opacity: 0;
  animation: rise2 0.85s var(--ease-2) 0.75s forwards;
}
.hero-tertiary:hover {
  color: var(--text);
}
.hero-tertiary svg {
  transition: transform 0.25s var(--ease);
}
.hero-tertiary:hover svg {
  transform: translateY(2px);
}

.hero-trust {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: rise2 0.85s var(--ease-2) 0.8s forwards;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* hero preview = owner dashboard mirror — multi-card composition */
.hero-preview {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  animation: rise2 1s var(--ease-2) 0.35s forwards;
}
.preview-stage {
  position: relative;
  width: 100%;
  perspective: 1400px;
}
.preview-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 60px 100px -40px rgba(26,26,23,0.22),
    0 24px 50px -22px rgba(26,26,23,0.12),
    0 6px 14px -8px rgba(26,26,23,0.06);
  border-radius: 20px;
  padding: 22px;
  position: relative;
  z-index: 2;
}
.preview-main {
  transform: rotateX(2deg) rotateY(-2deg);
  transform-style: preserve-3d;
  animation: floatA 9s ease-in-out infinite alternate;
}
@keyframes floatA {
  0%   { transform: rotateX(2deg) rotateY(-2deg) translateY(0); }
  100% { transform: rotateX(1.5deg) rotateY(-1.6deg) translateY(-6px); }
}
.preview-head {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.85);
  border-left: 3px solid var(--green);
  border-radius: 11px;
  padding: 13px 16px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
}
.preview-head .pdot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.preview-head .plabel { font-family: var(--display); font-weight: 300; font-size: 12.5px; }
.preview-head .pmetric { text-align: center; }
.preview-head .pmv { font-family: var(--display); font-weight: 300; font-size: 20px; line-height: 1; }
.preview-head .pml { font-size: 9.5px; color: var(--text-3); margin-top: 3px; letter-spacing: 0.04em; }
.preview-head .pmv.green { color: var(--green); }

.preview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.pstat {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 9px;
  padding: 10px 11px;
}
.pstat-v { font-family: var(--display); font-weight: 300; font-size: 16px; line-height: 1; }
.pstat-l { font-size: 9.5px; color: var(--text-3); margin-top: 4px; letter-spacing: 0.02em; }
.pstat.warn .pstat-v { color: var(--red); }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.pscore {
  border-radius: 9px;
  padding: 11px 12px;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 9px;
}
.pscore.green   { background: var(--green-bg);  border-color: var(--green-edge); }
.pscore.yellow  { background: var(--yellow-bg); border-color: var(--yellow-edge); }
.pscore.orange  { background: var(--orange-bg); border-color: var(--orange-edge); }
.pscore.red     { background: var(--red-bg);    border-color: var(--red-edge); }
.pavatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid;
  font-family: var(--display);
  font-weight: 300;
  font-size: 9.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pscore.green  .pavatar { color: var(--green);  border-color: var(--green);  background: rgba(74,124,89,0.06); }
.pscore.yellow .pavatar { color: var(--yellow); border-color: var(--yellow); background: rgba(193,127,36,0.06); }
.pscore.orange .pavatar { color: var(--orange); border-color: var(--orange); background: rgba(211,84,0,0.06); }
.pscore.red    .pavatar { color: var(--red);    border-color: var(--red);    background: rgba(192,57,43,0.06); }
.pname { flex: 1; font-size: 11.5px; }
.pname small { display: block; font-size: 10px; color: var(--text-3); margin-top: 2px; }
.pval { font-family: var(--display); font-weight: 300; font-size: 16px; line-height: 1; }
.pscore.green  .pval { color: var(--green); }
.pscore.yellow .pval { color: var(--yellow); }
.pscore.orange .pval { color: var(--orange); }
.pscore.red    .pval { color: var(--red); }

/* floating cards — secondary product surfaces */
.preview-float {
  position: absolute;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 28px 50px -22px rgba(26,26,23,0.2),
    0 10px 22px -10px rgba(26,26,23,0.08);
  z-index: 3;
  pointer-events: none;
}
.preview-float-1 {
  top: -28px;
  right: -36px;
  width: 248px;
  padding: 14px 16px;
  transform: rotate(2.5deg);
  animation: floatB 8s ease-in-out infinite alternate;
}
.preview-float-2 {
  bottom: -22px;
  left: -32px;
  width: 234px;
  padding: 12px 14px;
  transform: rotate(-2.2deg);
  animation: floatC 7s ease-in-out -2s infinite alternate;
}
@keyframes floatB {
  0%   { transform: rotate(2.5deg) translateY(0) translateX(0); }
  100% { transform: rotate(2.2deg) translateY(-8px) translateX(-3px); }
}
@keyframes floatC {
  0%   { transform: rotate(-2.2deg) translateY(0) translateX(0); }
  100% { transform: rotate(-1.8deg) translateY(6px) translateX(4px); }
}

.pf-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pf-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pf-icon svg { width: 14px; height: 14px; }
.pf-eyebrow {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-d);
  font-weight: 500;
}
.pf-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  margin-top: 2px;
  color: var(--text);
}
.pf-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-2);
  font-family: var(--serif);
  font-style: italic;
}
.pf-meta .pf-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.pf-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pf-mini-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pf-mini-icon svg { width: 14px; height: 14px; }
.pf-mini-body { flex: 1; min-width: 0; }
.pf-mini-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pf-mini-time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
}
.pf-pulse {
  position: absolute;
  top: 12px; right: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,124,89,0.5);
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(74,124,89,0.55); }
  100% { box-shadow: 0 0 0 10px rgba(74,124,89,0); }
}

/* glow halo behind preview */
.preview-stage::before {
  content: '';
  position: absolute;
  inset: 8% -4% 8% -4%;
  background: radial-gradient(ellipse at center, rgba(196,163,110,0.18) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .preview-card { max-width: 460px; margin: 0 auto; }
  .preview-main { transform: none; animation: none; }
  .preview-float-1 { top: -16px; right: -8px; width: 200px; }
  .preview-float-2 { bottom: -16px; left: -8px; width: 200px; }
}
@media (max-width: 600px) {
  .preview-float-1, .preview-float-2 { display: none; }
}

/* ═══ shared section heading ═══ */
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 64px;
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
}
.sec-head h2 { margin-top: 24px; }
.sec-head .lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--t-lead);
  color: var(--text-2);
  max-width: 46ch;
  line-height: 1.5;
}

/* ═══ COS'È VIVO° — explainer ═══ */
.whatis {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.whatis .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) {
  .whatis .grid { grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
}
.whatis-quote {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-transform: lowercase;
  color: var(--text);
  max-width: 16ch;
}
.whatis-quote .em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent-d);
}
.whatis-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
  max-width: 52ch;
}
.whatis-body strong { font-weight: 500; color: var(--text); }
.whatis-body .pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
  padding: 18px 0 18px 22px;
  border-left: 1px solid var(--accent);
  margin-top: 6px;
}

/* ═══ PORTALI ═══ */
.portals {
  padding: var(--section-pad) 0;
  background: rgba(255,255,255,0.32);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.portals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px)  { .portals-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .portals-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.portal-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s var(--ease-2), box-shadow 0.4s var(--ease-2), border-color 0.4s var(--ease);
}
.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -20px rgba(0,0,0,0.10);
  border-color: var(--accent-edge);
}
.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.portal-role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--accent-d);
}
.portal-name {
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.018em;
  margin-top: 4px;
}
.portal-icon {
  width: 28px; height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.pp-mini { display: flex; flex-direction: column; gap: 6px; }
.pp-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  font-size: 12px;
}
.pp-row.green { border-left: 2px solid var(--green); }
.pp-row.yellow { border-left: 2px solid var(--yellow); }
.pp-row.orange { border-left: 2px solid var(--orange); }
.pp-row.red { border-left: 2px solid var(--red); }
.pp-row .av {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-d);
  font-family: var(--display);
  font-weight: 300;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pp-row .nm { color: var(--text); font-size: 12px; }
.pp-row .nm small { display: block; font-size: 10px; color: var(--text-3); font-family: var(--serif); font-style: italic; margin-top: 1px; }
.pp-row .vl { font-family: var(--display); font-weight: 300; font-size: 13px; }
.pp-row.green .vl { color: var(--green); }
.pp-row.yellow .vl { color: var(--yellow); }
.pp-row.orange .vl { color: var(--orange); }
.pp-row.red .vl { color: var(--red); }

.portal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.portal-stat {
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  padding: 10px 12px;
}
.portal-stat-v { font-family: var(--display); font-weight: 300; font-size: 17px; line-height: 1; }
.portal-stat-l { font-size: 10px; color: var(--text-3); margin-top: 4px; letter-spacing: 0.02em; }

.portal-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.portal-features li {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.45;
}
.portal-features li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

/* staff portal mockup — replicates staff/home.html shift card */
.staff-mock {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.75);
  border-left: 3px solid var(--green);
  border-radius: 11px;
  padding: 14px 16px;
}
.staff-mock-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 11px;
}
.staff-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.staff-label {
  font-family: var(--display);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: -0.01em;
}
.staff-hours { text-align: right; }
.staff-hours-v {
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
  line-height: 1;
  color: var(--green);
}
.staff-hours-v span { font-size: 11px; color: var(--text-3); margin-left: 1px; }
.staff-hours-l { font-size: 9px; color: var(--text-3); margin-top: 3px; letter-spacing: 0.04em; }
.staff-mock-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.staff-mml {
  font-size: 9.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.staff-mmv {
  font-family: var(--display);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.staff-mmv.staff-score { color: var(--green); font-size: 18px; }

/* kiosk mockup — clean SVG QR */
.kiosk-mock {
  background: rgba(26,26,26,0.05);
  border: 1px solid rgba(26,26,26,0.06);
  border-radius: 11px;
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.kiosk-qr {
  width: 100%;
  aspect-ratio: 1;
  max-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.kiosk-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.kiosk-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.kiosk-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,124,89,0.5);
  animation: pulseRing 2.4s ease-out infinite;
}

/* ═══ SCORING ENGINE ═══ */
.scoring {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.scoring .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 980px) {
  .scoring .grid { grid-template-columns: 1fr 1.05fr; gap: 72px; }
}

.scoring-text h2 { margin-top: 24px; max-width: 14ch; }
.scoring-text h2 .em { font-family: var(--serif); font-style: italic; color: var(--accent-d); }
.scoring-text .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 42ch;
  margin-top: 24px;
}
.scoring-text .body {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 46ch;
}
.scoring-text .body strong { color: var(--text); font-weight: 500; }

/* threshold visual bar */
.threshold-bar {
  margin-top: 28px;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  height: 32px;
  font-size: 9.5px;
  font-family: var(--sans);
  font-weight: 500;
  color: white;
}
.threshold-bar > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.threshold-bar > div b {
  font-family: var(--display);
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: -0.01em;
  display: block;
}
.threshold-bar .tb-critical { background: rgba(139,0,0,0.85); }
.threshold-bar .tb-red      { background: rgba(192,57,43,0.78); }
.threshold-bar .tb-orange   { background: rgba(211,84,0,0.78); }
.threshold-bar .tb-yellow   { background: rgba(193,127,36,0.78); }
.threshold-bar .tb-green    { background: rgba(74,124,89,0.85); }

/* tabs for manager/staff */
.role-tabs {
  display: flex;
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  width: fit-content;
  background: rgba(255,255,255,0.5);
}
.role-tabs button {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: none;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 7px;
  transition: all 0.3s var(--ease);
}
.role-tabs button.active { background: var(--text); color: var(--bg); }

/* component breakdown */
.components {
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.component {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.component-info { display: flex; flex-direction: column; gap: 3px; }
.component-name { font-size: 14px; color: var(--text); font-weight: 400; }
.component-desc { font-size: 12px; color: var(--text-3); font-family: var(--serif); font-style: italic; }
.component-weight {
  font-family: var(--display);
  font-weight: 300;
  font-size: 18px;
  color: var(--accent-d);
  letter-spacing: -0.02em;
  min-width: 48px;
  text-align: right;
}

/* mockup */
.mockup {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 36px 64px -32px rgba(26,26,23,0.16),
    0 10px 24px -14px rgba(26,26,23,0.06);
  position: relative;
}
.mockup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.mockup-head .title {
  font-family: var(--display);
  font-weight: 300;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mockup-head .title .pill {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-d);
  background: var(--accent-light);
  border: 1px solid var(--accent-edge);
  padding: 2px 7px;
  border-radius: 999px;
}
.mockup-head .week {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.mockup-head .nav-arrows { display: flex; gap: 6px; }
.mockup-head .nav-arrows button {
  width: 24px; height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
}
.mockup-head .nav-arrows button:hover { border-color: var(--text); color: var(--text); }

.mock-row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
  border-radius: 6px;
  margin: 0 -8px;
}
.mock-row:hover { background: rgba(255,255,255,0.55); padding-left: 12px; }
.mock-row:last-of-type { border-bottom: none; }
.mock-row .avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid;
  font-family: var(--display);
  font-weight: 300;
  font-size: 9.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}
.mock-row[data-state="green"]   .avatar { color: var(--green);  border-color: var(--green);  background: var(--green-bg); }
.mock-row[data-state="yellow"]  .avatar { color: var(--yellow); border-color: var(--yellow); background: var(--yellow-bg); }
.mock-row[data-state="orange"]  .avatar { color: var(--orange); border-color: var(--orange); background: var(--orange-bg); }
.mock-row[data-state="red"]     .avatar { color: var(--red);    border-color: var(--red);    background: var(--red-bg); }
.mock-row .name { font-size: 13px; font-weight: 400; color: var(--text); line-height: 1.2; }
.mock-row .name small {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 300;
  margin-top: 2px;
}
.mock-row .bar {
  width: 52px; height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.mock-row .bar i {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 1.2s var(--ease-2);
  width: 0;
}
.mock-row.in-view .bar i { width: var(--w, 0%); }
.mock-row[data-state="green"]    .bar i { background: var(--green); }
.mock-row[data-state="yellow"]   .bar i { background: var(--yellow); }
.mock-row[data-state="orange"]   .bar i { background: var(--orange); }
.mock-row[data-state="red"]      .bar i { background: var(--red); }

.mock-score {
  font-family: var(--display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1;
  min-width: 34px;
  text-align: right;
}
.mock-row[data-state="green"]   .mock-score { color: var(--green); }
.mock-row[data-state="yellow"]  .mock-score { color: var(--yellow); }
.mock-row[data-state="orange"]  .mock-score { color: var(--orange); }
.mock-row[data-state="red"]     .mock-score { color: var(--red); }

.mock-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-3);
}
.mock-foot .live { display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.04em; }
.mock-foot .live::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.mock-foot .avg { font-family: var(--serif); font-style: italic; }
.mock-foot .avg b {
  font-style: normal;
  font-family: var(--display);
  font-weight: 300;
  color: var(--text);
  margin-left: 4px;
}

/* ═══ HR DECISIONS ═══ */
.decisions {
  padding: var(--section-pad) 0;
  background: rgba(255,255,255,0.32);
  border-bottom: 1px solid var(--border);
}
.decisions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 56px;
}
@media (min-width: 700px)  { .decisions-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .decisions-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } }

.decision {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  border-top: 3px solid;
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s var(--ease-2), box-shadow 0.4s var(--ease-2);
}
.decision:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -16px rgba(0,0,0,0.08); }
.decision.green   { border-top-color: var(--green); }
.decision.yellow  { border-top-color: var(--yellow); }
.decision.orange  { border-top-color: var(--orange); }
.decision.red     { border-top-color: var(--red); }
.decision.critical { border-top-color: var(--critical); }

.decision .num { font-size: 11px; letter-spacing: 0.04em; }
.decision h4 {
  font-family: var(--display);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: -0.018em;
  line-height: 1.3;
  text-transform: lowercase;
}
.decision p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}
.decision .meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-3);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

/* ═══ CAPABILITIES ═══ */
.capabilities {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
}
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 56px;
}
@media (min-width: 700px)  { .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }

.cap {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s var(--ease-2), box-shadow 0.4s var(--ease-2), border-color 0.4s var(--ease);
  min-height: 220px;
}
.cap:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(0,0,0,0.08);
  border-color: var(--accent-edge);
}
.cap-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.cap .index {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  color: var(--accent-d);
}
.cap-icon {
  width: 28px; height: 28px;
  color: var(--accent);
  flex-shrink: 0;
  transition: color 0.4s var(--ease), transform 0.5s var(--ease-2);
}
.cap:hover .cap-icon { color: var(--text); transform: rotate(-6deg) scale(1.04); }
.cap h3 {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.015em;
}
.cap-desc {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.cap-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

/* ═══ EVENTS LOG ═══ */
.events {
  padding: var(--section-pad) 0;
  background: rgba(255,255,255,0.32);
  border-bottom: 1px solid var(--border);
}
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 980px) {
  .events-grid { grid-template-columns: 1fr 1.05fr; gap: 80px; }
}
.events-text h2 { margin-top: 24px; max-width: 12ch; }
.events-text .lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 42ch;
  margin-top: 24px;
}
.events-text .body {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 44ch;
}

.event-types {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.evt-type {
  padding: 12px 10px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid;
}
.evt-type-l {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.evt-type.complaint  { background: var(--red-bg);    border-color: var(--red-edge);    color: var(--red); }
.evt-type.incident   { background: var(--orange-bg); border-color: var(--orange-edge); color: var(--orange); }
.evt-type.problem    { background: var(--yellow-bg); border-color: var(--yellow-edge); color: var(--yellow); }
.evt-type.escalation { background: var(--critical-bg); border-color: var(--critical-edge); color: var(--critical); }
.evt-type.positive   { background: var(--green-bg);  border-color: var(--green-edge);  color: var(--green); }
@media (max-width: 600px) { .event-types { grid-template-columns: repeat(2, 1fr); } }

.severity-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.severity-row span {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}

/* event log mockup */
.log-mock {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 36px 64px -32px rgba(26,26,23,0.16);
}
.log-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.log-head .t {
  font-family: var(--display);
  font-weight: 300;
  font-size: 12.5px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.log-head .t .pill {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-d);
  background: var(--accent-light);
  border: 1px solid var(--accent-edge);
  padding: 2px 7px;
  border-radius: 999px;
}
.log-head .day {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.log-head .lock {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11.5px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.log-head .lock svg { width: 12px; height: 12px; }

.log-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.log-row:last-child { border-bottom: none; }
.log-row .icon-wrap {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.log-row .icon-wrap.complaint  { background: var(--red-bg);    color: var(--red); }
.log-row .icon-wrap.incident   { background: var(--orange-bg); color: var(--orange); }
.log-row .icon-wrap.problem    { background: var(--yellow-bg); color: var(--yellow); }
.log-row .icon-wrap.escalation { background: var(--critical-bg); color: var(--critical); }
.log-row .icon-wrap.positive   { background: var(--green-bg);  color: var(--green); }
.log-row .icon-wrap svg { width: 14px; height: 14px; }
.log-row .lbody { display: flex; flex-direction: column; gap: 3px; }
.log-row .head-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.log-row .who { font-size: 13px; font-weight: 400; color: var(--text); }
.log-row .severity {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--text-3);
}
.log-row .severity.high { background: var(--red-bg); color: var(--red); }
.log-row .severity.medium { background: var(--orange-bg); color: var(--orange); }
.log-row .severity.low { background: var(--yellow-bg); color: var(--yellow); }
.log-row .severity.critical { background: var(--critical-bg); color: var(--critical); }
.log-row .desc {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.log-row .ts {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

/* ═══ FONDATORI ═══ */
.founders {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
}
.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}
@media (min-width: 800px) { .founders-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.founder {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 28px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  transition: transform 0.4s var(--ease-2), box-shadow 0.4s var(--ease-2);
}
.founder:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -16px rgba(0,0,0,0.10); }
.founder-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1.5px solid var(--accent-edge);
  color: var(--accent-d);
  font-family: var(--display);
  font-weight: 300;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.founder .role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--accent-d);
  margin-bottom: 4px;
}
.founder h3 {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 10px;
}
.founder p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ═══ QUOTE ═══ */
.quote-section {
  padding: clamp(112px, 14vw, 160px) 0;
  background: var(--text);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '';
  position: absolute;
  top: -30%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196,163,110,0.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
.quote-section .wrap { position: relative; z-index: 2; }
.quote-block { max-width: 920px; margin: 0 auto; }
.quote-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}
.quote-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }
.quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--bg);
  max-width: 24ch;
}
.quote-text .em-mark {
  font-family: var(--display);
  font-style: normal;
  font-weight: 200;
  color: var(--accent);
}
.quote-text em { color: var(--accent); font-style: italic; }
.quote-author {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(248,246,242,0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.quote-author .avatar-lg {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-family: var(--display);
  font-weight: 300;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quote-author .name {
  font-family: var(--display);
  font-weight: 300;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: var(--bg);
}
.quote-author .role {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: rgba(248,246,242,0.6);
  margin-top: 4px;
}

/* ═══ CTA ═══ */
.cta {
  padding: clamp(96px, 12vw, 140px) 0;
  background: var(--text);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74,124,89,0.16) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,163,110,0.14) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.cta .wrap { position: relative; z-index: 2; }
.cta .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) {
  .cta .grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
}
.cta-left { display: flex; flex-direction: column; gap: 24px; }
.cta-left .num { color: var(--accent); }
.cta h2 {
  color: var(--bg);
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 0.99;
  max-width: 14ch;
}
.cta h2 .em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.cta-left p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: rgba(248,246,242,0.72);
  max-width: 38ch;
  margin-top: 8px;
}

.cta-form-card {
  background: rgba(248,246,242,0.04);
  border: 1px solid rgba(248,246,242,0.12);
  border-radius: 18px;
  padding: 32px 28px;
  backdrop-filter: blur(8px);
}

form.waitlist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
form.waitlist label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}
form.waitlist input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(248,246,242,0.22);
  color: var(--bg);
  padding: 10px 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  width: 100%;
}
form.waitlist input::placeholder {
  color: rgba(248,246,242,0.35);
  font-family: var(--serif);
  font-style: italic;
}
form.waitlist input:focus { border-color: var(--accent); }
form.waitlist input.error { border-color: var(--red); }

form.waitlist .row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 600px) { form.waitlist .row-2 { grid-template-columns: 1fr 1fr; gap: 24px; } }

form.waitlist button {
  margin-top: 8px;
  justify-self: start;
  background: var(--bg);
  color: var(--text);
}
form.waitlist button::before { background: var(--accent); }
form.waitlist button:hover { color: var(--text); }

.success-msg {
  display: none;
  padding: 22px 0 0;
  margin-top: 16px;
  border-top: 1px solid rgba(248,246,242,0.18);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bg);
  max-width: 42ch;
}
.success-msg.show { display: block; }
.success-msg strong {
  color: var(--accent);
  font-weight: 400;
  font-style: normal;
  font-family: var(--display);
}

.cta-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 11px;
  color: rgba(248,246,242,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cta-meta span { display: inline-flex; align-items: center; gap: 8px; }
.cta-meta span::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ═══ FOOTER ═══ */
footer {
  padding: 56px 0 36px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 800px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; }
}
.footer-brand .logo { font-size: 26px; }
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-3);
  max-width: 32ch;
  margin-top: 12px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--accent-d); }

.legal {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.legal .made {
  font-family: var(--serif);
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  font-size: 12.5px;
}

/* ═══ REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-2), transform 0.9s var(--ease-2);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d-1 { transition-delay: 0.08s; }
.reveal.d-2 { transition-delay: 0.16s; }
.reveal.d-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-copy h1 .ln span { transform: none; animation: none; }
  .hero-lede, .hero-actions, .hero-tertiary, .hero-trust, .hero-preview { opacity: 1; transform: none; animation: none; }
}


/* founder avatar — image variant */
.founder-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.founder-avatar:has(img) {
  padding: 0;
  overflow: hidden;
}

/* quote avatar — image variant */
.quote-author .avatar-lg img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.quote-author .avatar-lg:has(img) {
  padding: 0;
  overflow: hidden;
  background: transparent;
}
