/* ============================================================================
   Teryli Landing — visual style
   Brand canon v1.2 — Navy #0F2538 · Warm Cream #F7F3EC · Soft Cream #FBF9F5
   · Leaf Green #67B156. Cormorant Garamond editorial display + Inter UI.
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/CormorantGaramond-Medium.ttf") format("truetype");
}

:root {
  /* Locked brand palette */
  --navy:        #0F2538;
  --navy-deep:   #0A1B2A;
  --navy-soft:   #16314A;
  --navy-line:   #1C3850;
  --leaf:        #67B156;
  --leaf-strong: #4E9B41;
  --leaf-soft:   #A8D08D;
  --cream-warm:  #F7F3EC;
  --cream-soft:  #FBF9F5;
  --cream-deep:  #EFE9DC;  /* derived, for hairline rules on cream */
  --paper:       #FFFFFF;

  /* Text */
  --ink:         #0F2538;
  --ink-muted:   #5A6B7A;
  --ink-subtle:  #8895A2;
  --ink-on-navy: #E8E2D4;     /* soft-cream-ish over navy */
  --ink-on-navy-muted: rgba(232, 226, 212, 0.62);

  /* Lines */
  --hair-cream: rgba(15, 37, 56, 0.10);
  --hair-navy:  rgba(232, 226, 212, 0.12);

  /* Type */
  --f-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Geometry */
  --gutter: clamp(20px, 4vw, 56px);
  --container: 1240px;
  --shadow-soft: 0 1px 2px rgba(15, 37, 56, 0.04), 0 12px 32px rgba(15, 37, 56, 0.06);
  --shadow-lift: 0 4px 12px rgba(15, 37, 56, 0.05), 0 24px 56px rgba(15, 37, 56, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream-warm);
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

::selection { background: rgba(103, 177, 86, 0.22); color: var(--navy); }

/* Container */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Sections */
section { position: relative; }
.section-cream { background: var(--cream-warm); }
.section-soft  { background: var(--cream-soft); }
.section-navy  { background: var(--navy); color: var(--ink-on-navy); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--cream-soft); }

/* Typography */
.eyebrow {
  font: 500 11px/1.4 var(--f-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-navy .eyebrow { color: var(--ink-on-navy-muted); }

.display {
  font-family: var(--f-serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0;
  text-wrap: pretty;
}
.section-navy .display { color: var(--cream-soft); }

.h-section {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.section-navy .h-section { color: var(--cream-soft); }

.lede {
  font: 400 17px/1.6 var(--f-sans);
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0;
}
.section-navy .lede { color: var(--ink-on-navy-muted); }

.kicker {
  font: 400 13px/1.5 var(--f-sans);
  color: var(--ink-subtle);
}
.section-navy .kicker { color: var(--ink-on-navy-muted); }

/* Leaf glyph divider (matches business-card ornament) */
.leaf-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--leaf);
}
.leaf-rule::before, .leaf-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}
.leaf-rule svg { flex: 0 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font: 500 14px/1 var(--f-sans);
  letter-spacing: 0.01em;
  transition: transform 200ms cubic-bezier(.16,1,.3,1),
              background 200ms cubic-bezier(.16,1,.3,1),
              box-shadow 200ms cubic-bezier(.16,1,.3,1),
              color 200ms cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.btn-primary {
  background: var(--navy);
  color: var(--cream-soft);
  box-shadow: 0 1px 2px rgba(15, 37, 56, 0.10), 0 8px 24px rgba(15, 37, 56, 0.12);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(15, 37, 56, 0.10), 0 14px 32px rgba(15, 37, 56, 0.16);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 13px 8px;
}
.btn-ghost .arrow { transition: transform 200ms cubic-bezier(.16,1,.3,1); }
.btn-ghost:hover .arrow { transform: translateX(3px); }

.section-navy .btn-primary {
  background: var(--cream-warm);
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 12px 28px rgba(0,0,0,0.30);
}
.section-navy .btn-primary:hover { background: var(--paper); }
.section-navy .btn-ghost { color: var(--cream-soft); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease;
}
.nav.scrolled {
  background: rgba(247, 243, 236, 0.94);
  border-bottom-color: var(--hair-cream);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 26px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font: 500 13.5px/1 var(--f-sans);
  color: var(--ink);
  letter-spacing: 0.005em;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--leaf-strong); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream-soft);
  font: 500 13px/1 var(--f-sans);
}
.nav-cta:hover { background: var(--navy-deep); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ============================================================================
   HERO
   ============================================================================ */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  width: 90%;
  height: 80%;
  background: radial-gradient(ellipse at center,
              rgba(103, 177, 86, 0.07) 0%,
              rgba(103, 177, 86, 0) 60%);
  transform: translateX(-50%);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(-52%, 0) scale(1); }
  100% { transform: translate(-48%, -3%) scale(1.04); }
}

.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.hero-copy {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}
.hero-eyebrow {
  justify-content: center;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--navy);
  font-weight: 500;
}
.hero-sub {
  font: 400 18px/1.55 var(--f-sans);
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto 32px;
}
.hero-ctas {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta {
  margin-top: 22px;
  font: 400 13px/1.5 var(--f-sans);
  color: var(--ink-subtle);
  font-style: italic;
}

/* Product UI peek */
.hero-stage {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  padding-bottom: 0;
}
.hero-stage-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
/* Layered shadow effect under the screenshot */
.hero-stage-inner::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -20px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(15, 37, 56, 0.14) 0%, rgba(15, 37, 56, 0) 70%);
  filter: blur(8px);
  z-index: -1;
}

/* ============================================================================
   App mockup ("realistic operational UI")
   ============================================================================ */
.app {
  background: var(--paper);
  border: 1px solid var(--hair-cream);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 560px;
}
.app-side {
  background: #FCFAF6;
  border-right: 1px solid var(--hair-cream);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 18px;
}
.app-side-brand img { height: 22px; }
.app-side-section {
  font: 500 10px/1.4 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  padding: 14px 10px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font: 500 13px/1 var(--f-sans);
  color: var(--ink);
  position: relative;
}
.nav-item .ic { width: 14px; height: 14px; opacity: 0.7; }
.nav-item .count {
  margin-left: auto;
  font: 500 11px/1 var(--f-sans);
  color: var(--ink-subtle);
}
.nav-item.active {
  background: rgba(103, 177, 86, 0.10);
  color: var(--navy);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--leaf);
  border-radius: 2px;
}

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hair-cream);
}
.crumbs {
  font: 500 12.5px/1 var(--f-sans);
  color: var(--ink-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.crumbs strong { color: var(--ink); font-weight: 600; }
.app-head .spacer { flex: 1; }
.app-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--cream-soft);
  border: 1px solid var(--hair-cream);
  border-radius: 8px;
  color: var(--ink-subtle);
  font: 400 12.5px/1 var(--f-sans);
  min-width: 200px;
}
.app-avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream-soft);
  display: grid; place-items: center;
  font: 600 11px/1 var(--f-sans);
}

.app-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--hair-cream);
  flex-wrap: wrap;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  font: 500 12px/1 var(--f-sans);
  color: var(--ink-muted);
  border: 1px solid var(--hair-cream);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.active {
  background: var(--navy);
  color: var(--cream-soft);
  border-color: var(--navy);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
}
.chip.warn { color: #94591B; background: rgba(193, 131, 50, 0.10); border-color: rgba(193,131,50,0.20); }
.chip.warn .dot { background: #C18332; }

.app-body { padding: 6px 0 18px; }
.row {
  display: grid;
  grid-template-columns: 18px 1.4fr 1fr 1.1fr 1.2fr 100px;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--hair-cream);
  font-size: 13.5px;
  transition: background 160ms ease;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--cream-soft); }
.row-head {
  font: 500 10.5px/1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  padding-top: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair-cream);
}
.row-head:hover { background: transparent; }
.cell-flag { display: grid; place-items: center; }
.flag {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--leaf);
}
.flag.warn   { background: #C18332; }
.flag.danger { background: #C8453A; }

.cell-name { font-weight: 600; color: var(--navy); }
.cell-name small { display: block; font: 400 12px/1.4 var(--f-sans); color: var(--ink-subtle); margin-top: 2px; }
.cell-meta { color: var(--ink-muted); font-size: 12.5px; }
.readiness { display: flex; align-items: center; gap: 10px; }
.readiness-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 37, 56, 0.08);
  overflow: hidden;
  position: relative;
}
.readiness-bar > i {
  display: block;
  height: 100%;
  background: var(--leaf);
  border-radius: 999px;
}
.readiness-bar.warn > i { background: #C18332; }
.readiness-bar.danger > i { background: #C8453A; }
.readiness span { font: 500 12px/1 var(--f-sans); color: var(--ink-muted); min-width: 32px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 500 11.5px/1.4 var(--f-sans);
  background: rgba(103, 177, 86, 0.10);
  color: var(--leaf-strong);
}
.pill.amber  { background: rgba(193, 131, 50, 0.10); color: #94591B; }
.pill.muted  { background: rgba(15, 37, 56, 0.06); color: var(--ink-muted); }
.pill.danger { background: rgba(200, 69, 58, 0.10); color: #983D34; }

.cell-action {
  text-align: right;
  font: 500 12px/1 var(--f-sans);
  color: var(--leaf-strong);
}

/* Side card behind / next to main app — adds layered depth */
.app-aside {
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--hair-cream);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 18px 18px 14px;
  z-index: 2;
  display: none;     /* shown at desktop */
}
@media (min-width: 1100px) { .app-aside { display: block; } }
.aside-head {
  font: 500 11px/1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 12px;
}
.activity {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair-cream);
}
.activity:last-child { border-bottom: 0; }
.activity .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  margin-top: 6px;
  flex: 0 0 auto;
}
.activity .dot.muted { background: var(--ink-subtle); }
.activity .body { flex: 1; font-size: 13px; }
.activity .body strong { color: var(--navy); font-weight: 600; }
.activity .body p { margin: 2px 0 0; color: var(--ink-muted); font-size: 12.5px; }
.activity .time {
  font: 400 11.5px/1 var(--f-sans);
  color: var(--ink-subtle);
  margin-top: 4px;
}

/* ============================================================================
   Operational problem section
   ============================================================================ */
.problem {
  padding: clamp(80px, 11vw, 140px) 0 clamp(80px, 11vw, 140px);
  border-top: 1px solid var(--hair-cream);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; gap: 48px; }
}
.problem-quote {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.005em;
  color: var(--navy);
  margin: 18px 0 0;
  text-wrap: pretty;
}
.problem-quote em { font-style: italic; color: var(--leaf-strong); }
.problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--hair-cream);
}
.problem-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair-cream);
}
.problem-list .n {
  font-family: var(--f-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--leaf-strong);
}
.problem-list .t { font: 500 16px/1.5 var(--f-sans); color: var(--navy); }
.problem-list .d { font: 400 14px/1.55 var(--f-sans); color: var(--ink-muted); margin-top: 4px; }

/* ============================================================================
   How Teryli helps — navy section
   ============================================================================ */
.helps { padding: clamp(80px, 11vw, 140px) 0 clamp(96px, 12vw, 160px); }
.helps-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
@media (max-width: 880px) { .helps-intro { grid-template-columns: 1fr; } }
.helps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair-navy);
  border-top: 1px solid var(--hair-navy);
  border-bottom: 1px solid var(--hair-navy);
}
@media (max-width: 980px) { .helps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .helps-grid { grid-template-columns: 1fr; } }
.help {
  background: var(--navy);
  padding: 36px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.help-num {
  font-family: var(--f-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 18px;
  color: var(--leaf-soft);
}
.help h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.18;
  color: var(--cream-soft);
  margin: 0;
}
.help p {
  font: 400 14.5px/1.6 var(--f-sans);
  color: var(--ink-on-navy-muted);
  margin: 0;
}
.help .mini-rule {
  width: 24px;
  height: 1px;
  background: var(--leaf-soft);
  margin-top: 4px;
  opacity: 0.6;
}

/* ============================================================================
   Real workflow views — tabbed
   ============================================================================ */
.views {
  padding: clamp(96px, 13vw, 160px) 0;
  border-top: 1px solid var(--hair-cream);
}
.views-head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.views-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 4vw, 56px);
}
@media (max-width: 980px) { .views-shell { grid-template-columns: 1fr; } }
.views-list {
  display: flex;
  flex-direction: column;
}
.view-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 18px 0;
  border-top: 1px solid var(--hair-cream);
  position: relative;
  transition: padding 200ms cubic-bezier(.16,1,.3,1);
}
.view-tab:last-child { border-bottom: 1px solid var(--hair-cream); }
.view-tab .tab-num {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 4px;
}
.view-tab .tab-title {
  font: 500 16px/1.3 var(--f-sans);
  color: var(--ink);
  transition: color 200ms ease;
}
.view-tab .tab-blurb {
  font: 400 13.5px/1.5 var(--f-sans);
  color: var(--ink-muted);
  margin-top: 6px;
  display: none;
}
.view-tab[aria-selected="true"] { padding-left: 16px; }
.view-tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0; top: 22px; bottom: 22px;
  width: 2px;
  background: var(--leaf);
  border-radius: 2px;
}
.view-tab[aria-selected="true"] .tab-num { color: var(--leaf-strong); }
.view-tab[aria-selected="true"] .tab-title { color: var(--navy); }
.view-tab[aria-selected="true"] .tab-blurb { display: block; }
.view-tab:hover .tab-title { color: var(--leaf-strong); }

.views-stage {
  background: var(--paper);
  border: 1px solid var(--hair-cream);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-height: 460px;
}
.view-panel { display: none; }
.view-panel.is-active {
  display: block;
  animation: fadeIn 320ms cubic-bezier(.16,1,.3,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hair-cream);
  font: 500 13px/1 var(--f-sans);
  color: var(--ink);
}
.panel-head .meta {
  margin-left: auto;
  font: 400 12px/1 var(--f-sans);
  color: var(--ink-subtle);
}

/* Program directory grid */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hair-cream);
  border-top: 1px solid var(--hair-cream);
}
@media (max-width: 720px) { .dir-grid { grid-template-columns: 1fr; } }
.dir-card {
  background: var(--paper);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dir-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.dir-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--cream-warm);
  display: grid; place-items: center;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--navy);
  flex: 0 0 auto;
}
.dir-meta { font: 400 12.5px/1.4 var(--f-sans); color: var(--ink-subtle); }
.dir-name { font: 600 14.5px/1.3 var(--f-sans); color: var(--navy); }
.dir-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tag {
  font: 500 11px/1 var(--f-sans);
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--cream-soft);
  color: var(--ink-muted);
  border: 1px solid var(--hair-cream);
}
.tag.fit { background: rgba(103, 177, 86, 0.10); color: var(--leaf-strong); border-color: rgba(103,177,86,0.20); }
.dir-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  font: 400 12.5px/1 var(--f-sans);
  color: var(--ink-subtle);
}
.fit-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12.5px/1 var(--f-sans);
  color: var(--leaf-strong);
}

/* Outreach table */
.tbl {
  display: grid;
  grid-template-columns: 1.6fr 1.2fr 0.9fr 1.1fr 0.9fr;
  font-size: 13.5px;
}
.tbl > div {
  padding: 13px 22px;
  border-bottom: 1px solid var(--hair-cream);
  display: flex; align-items: center; gap: 8px;
}
.tbl .th {
  font: 500 10.5px/1 var(--f-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-subtle);
  padding-top: 14px; padding-bottom: 10px;
}
.tbl .tn { font-weight: 600; color: var(--navy); }
.tbl .tm { color: var(--ink-muted); }
.tbl .row-sep { display: contents; }

/* Readiness checklist */
.checklist { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .checklist { grid-template-columns: 1fr; } }
.cl-col h4 {
  font: 500 11px/1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 14px;
}
.cl-item {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair-cream);
}
.cl-item:last-child { border-bottom: 0; }
.cb {
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-subtle);
  display: grid; place-items: center;
  margin-top: 1px;
}
.cb.done {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--cream-soft);
}
.cl-text { font: 500 13.5px/1.5 var(--f-sans); color: var(--navy); }
.cl-text small { display: block; font: 400 12px/1.4 var(--f-sans); color: var(--ink-muted); margin-top: 2px; }
.cl-time { font: 400 11.5px/1 var(--f-sans); color: var(--ink-subtle); }

/* Workflow queues — kanban-ish columns */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair-cream);
  border-top: 1px solid var(--hair-cream);
}
@media (max-width: 720px) { .kanban { grid-template-columns: 1fr; } }
.kc {
  background: var(--cream-soft);
  padding: 16px 16px 22px;
}
.kc-head {
  display: flex; align-items: center; justify-content: space-between;
  font: 500 11px/1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 12px;
}
.kc-count {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0;
}
.kcard {
  background: var(--paper);
  border: 1px solid var(--hair-cream);
  border-radius: 10px;
  padding: 12px 13px;
  margin-bottom: 10px;
}
.kcard:last-child { margin-bottom: 0; }
.kcard .who { font: 600 13.5px/1.2 var(--f-sans); color: var(--navy); }
.kcard .what { font: 400 12.5px/1.45 var(--f-sans); color: var(--ink-muted); margin-top: 4px; }
.kcard .when {
  display: flex; align-items: center; gap: 6px;
  font: 500 11.5px/1 var(--f-sans);
  color: var(--ink-subtle);
  margin-top: 10px;
}

/* Dashboard panel */
.dash {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair-cream);
  border-radius: 0 0 12px 12px;
  border-top: 1px solid var(--hair-cream);
  margin-top: -1px;
}
@media (max-width: 880px) { .dash { grid-template-columns: repeat(2, 1fr); padding: 0; } }
.metric {
  background: var(--paper);
  padding: 22px;
}
.metric .label {
  font: 500 11px/1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.metric .value {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.1;
  color: var(--navy);
  margin-top: 8px;
}
.metric .delta {
  font: 500 12px/1 var(--f-sans);
  color: var(--leaf-strong);
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 4px;
}
.metric .delta.muted { color: var(--ink-muted); }
.metric .spark {
  height: 38px;
  margin-top: 14px;
}
.metric .spark svg { width: 100%; height: 100%; }

/* Transition risk review (single-client deep view) */
.risk {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1px;
  background: var(--hair-cream);
  border-top: 1px solid var(--hair-cream);
}
@media (max-width: 760px) { .risk { grid-template-columns: 1fr; } }
.risk-col { background: var(--paper); padding: 24px; }
.risk-key {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  font-size: 13px;
}
.risk-key dt {
  font: 500 11px/1.5 var(--f-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.risk-key dd {
  margin: 0;
  font: 500 13.5px/1.5 var(--f-sans);
  color: var(--navy);
}
.risk-name {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 26px;
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 4px;
}
.risk-sub {
  font: 400 13px/1.5 var(--f-sans);
  color: var(--ink-muted);
  margin: 0 0 22px;
}
.risk-list {
  list-style: none; padding: 0; margin: 0;
}
.risk-list li {
  padding: 12px 0;
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px;
  color: var(--navy);
  border-bottom: 1px solid var(--hair-cream);
}
.risk-list li:last-child { border-bottom: 0; }
.risk-list .marker {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  flex: 0 0 auto;
}
.risk-list .marker.warn   { background: #C18332; }
.risk-list .marker.danger { background: #C8453A; }
.risk-list .when {
  margin-left: auto;
  font: 400 12px/1 var(--f-sans);
  color: var(--ink-subtle);
}

/* ============================================================================
   What Teryli is not
   ============================================================================ */
.isnot {
  background: var(--cream-soft);
  padding: clamp(80px, 11vw, 140px) 0;
}
.isnot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (max-width: 760px) { .isnot-grid { grid-template-columns: 1fr; gap: 36px; } }
.isnot-col h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 18px;
  color: var(--ink-muted);
}
.isnot-col.is h3 { color: var(--leaf-strong); }
.isnot-col ul { list-style: none; padding: 0; margin: 0; }
.isnot-col li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--hair-cream);
  font: 500 16px/1.45 var(--f-sans);
}
.isnot-col li:last-child { border-bottom: 1px solid var(--hair-cream); }
.isnot-col .mk {
  width: 16px; height: 16px;
  flex: 0 0 auto;
  margin-top: 3px;
}
.isnot-col.not li { color: var(--ink-muted); }
.isnot-col.is li { color: var(--navy); }

/* ============================================================================
   Why it feels different
   ============================================================================ */
.different {
  padding: clamp(96px, 13vw, 160px) 0;
}
.different-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 880px) { .different-grid { grid-template-columns: 1fr; } }
.different-quote {
  font-family: var(--f-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.22;
  color: var(--cream-soft);
  margin: 16px 0 0;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.different-quote::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--leaf-soft);
  margin-bottom: 24px;
  opacity: 0.7;
}
.signature {
  margin-top: 32px;
  display: flex; align-items: center; gap: 12px;
  font: 500 13px/1.4 var(--f-sans);
  color: var(--ink-on-navy-muted);
}
.signature strong {
  display: block;
  font-weight: 600;
  color: var(--cream-soft);
}
.different-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hair-navy);
  border-top: 1px solid var(--hair-navy);
  border-bottom: 1px solid var(--hair-navy);
}
.dp {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  background: var(--navy);
  align-items: start;
}
.dp .label {
  font: 500 11px/1.4 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-soft);
  opacity: 0.8;
}
.dp h4 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--cream-soft);
  margin: 0 0 6px;
  line-height: 1.2;
}
.dp p {
  font: 400 14.5px/1.6 var(--f-sans);
  color: var(--ink-on-navy-muted);
  margin: 0;
}

/* ============================================================================
   CTA card
   ============================================================================ */
.cta-section {
  padding: clamp(96px, 13vw, 160px) 0;
  background:
    linear-gradient(var(--cream-warm), var(--cream-warm));
}
.cta-card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--hair-cream);
  border-radius: 16px;
  padding: clamp(40px, 6vw, 72px);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.cta-watermark {
  position: absolute;
  right: -20px;
  bottom: -40px;
  width: 280px;
  opacity: 0.05;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; } }
.cta-h {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  color: var(--navy);
  margin: 14px 0 18px;
  text-wrap: balance;
}
.cta-sub {
  font: 400 16px/1.6 var(--f-sans);
  color: var(--ink-muted);
  max-width: 38ch;
  margin: 0 0 28px;
}
.cta-name {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hair-cream);
  font: 400 13px/1.4 var(--f-sans);
  color: var(--ink-muted);
}
.cta-name strong { color: var(--navy); font-weight: 600; display: block; font-size: 14px; }

.contact-list { display: grid; gap: 14px; }
.contact {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--hair-cream);
  border-radius: 12px;
  background: var(--cream-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.contact:hover {
  border-color: rgba(103, 177, 86, 0.40);
  background: var(--paper);
  transform: translateY(-1px);
}
.contact-ic {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--hair-cream);
  display: grid; place-items: center;
  color: var(--leaf-strong);
}
.contact-meta {
  font: 500 11px/1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 4px;
}
.contact-val { font: 500 15px/1.3 var(--f-sans); color: var(--navy); }
.contact .go {
  color: var(--leaf-strong);
  font: 500 13px/1 var(--f-sans);
  display: inline-flex; align-items: center; gap: 6px;
}
.contact:hover .go .arrow { transform: translateX(3px); }
.contact .arrow { transition: transform 200ms cubic-bezier(.16,1,.3,1); }

/* ============================================================================
   Footer
   ============================================================================ */
.footer {
  padding: clamp(56px, 7vw, 88px) 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hair-navy);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr 1fr; } }
.footer-brand img { height: 28px; margin-bottom: 18px; }
.footer-brand p {
  font: 400 13.5px/1.6 var(--f-sans);
  color: var(--ink-on-navy-muted);
  margin: 0;
  max-width: 32ch;
}
.footer-col h5 {
  font: 500 11px/1 var(--f-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-navy-muted);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  font: 400 13.5px/1.4 var(--f-sans);
  color: var(--cream-soft);
  opacity: 0.85;
  transition: opacity 200ms ease;
}
.footer-col a:hover { opacity: 1; color: var(--leaf-soft); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px;
  font: 400 12.5px/1 var(--f-sans);
  color: var(--ink-on-navy-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .links { display: flex; gap: 22px; }
.footer-bottom a { color: inherit; }

/* ============================================================================
   Scroll reveal
   ============================================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

/* ============================================================================
   LIVE — hero workspace ticker
   Readiness bars animate in, activity feed tickers, one row pulses "live".
   ============================================================================ */

/* Readiness bars: start at 0, ease to target when scrolled into view */
.readiness-bar > i {
  transition: width 1.4s cubic-bezier(.16, 1, .3, 1);
}

/* Live pulse — quiet expanding ring behind the flag dot */
.flag.live {
  position: relative;
  z-index: 0;
}
.flag.live::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  z-index: -1;
  opacity: 0;
  animation: tr-pulse 2.6s cubic-bezier(.16, 1, .3, 1) infinite;
  pointer-events: none;
}
@keyframes tr-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(2.6); opacity: 0;    }
  100% { transform: scale(2.6); opacity: 0;    }
}

/* Activity feed enter / leave + fresh-item dot pulse */
.activity {
  overflow: hidden;
  transition:
    opacity 360ms cubic-bezier(.16, 1, .3, 1),
    transform 360ms cubic-bezier(.16, 1, .3, 1),
    max-height 420ms cubic-bezier(.16, 1, .3, 1),
    padding 420ms cubic-bezier(.16, 1, .3, 1);
  max-height: 160px;
}
.activity.is-entering {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}
.activity.is-leaving {
  opacity: 0;
  transform: translateY(4px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}
.activity.is-fresh .dot {
  position: relative;
}
.activity.is-fresh .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  animation: tr-pulse 2.4s cubic-bezier(.16, 1, .3, 1) 2;
  color: var(--leaf);
}

/* Tiny "just arrived" highlight on a row that updates */
.row.is-touched {
  background: rgba(103, 177, 86, 0.05);
  transition: background 1600ms cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .flag.live::after,
  .activity.is-fresh .dot::after { animation: none; }
  .readiness-bar > i { transition: none; }
  .activity { transition: none; }
}

/* ============================================================================
   PANEL ANIMATORS — each tabbed product surface has its own "live moment"
   ============================================================================ */

/* Auto-tour progress bar (under tab list when in viewport) */
.view-tab .auto-fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--leaf);
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
}
.view-tab[aria-selected="true"] .auto-fill.is-running {
  opacity: 0.6;
  animation: tr-auto-fill 6.5s linear forwards;
}
@keyframes tr-auto-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ─── v-risk: discharge urgency + resolving risk item ─────────────────── */
.risk-key dd[data-discharge] { transition: color 460ms cubic-bezier(.16, 1, .3, 1); }
.risk-key dd[data-discharge].is-urgent {
  color: #94591B;
}
.risk-key dd[data-discharge] .days-pill {
  display: inline-block;
  padding: 1px 8px;
  margin-left: 6px;
  border-radius: 999px;
  font: 500 12px/1.4 var(--f-sans);
  background: rgba(15, 37, 56, 0.06);
  color: var(--ink-muted);
  transition: background 460ms cubic-bezier(.16, 1, .3, 1), color 460ms cubic-bezier(.16, 1, .3, 1);
}
.risk-key dd[data-discharge].is-urgent .days-pill {
  background: rgba(193, 131, 50, 0.14);
  color: #94591B;
}

.risk-list li {
  transition:
    color 520ms cubic-bezier(.16, 1, .3, 1),
    text-decoration-color 520ms cubic-bezier(.16, 1, .3, 1);
}
.risk-list li.is-resolved {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(15, 37, 56, 0.25);
  text-decoration-thickness: 1px;
}
.risk-list li .marker {
  transition: background 520ms cubic-bezier(.16, 1, .3, 1);
}
.risk-list li.is-resolved .marker { background: var(--leaf); }
.risk-list li.is-resolved .when {
  color: var(--leaf-strong);
}

/* ─── v-dir: program directory "just touched" pulse ───────────────────── */
.dir-card {
  position: relative;
  transition: background 600ms cubic-bezier(.16, 1, .3, 1);
}
.dir-card.is-touched {
  background: rgba(103, 177, 86, 0.045);
}
.dir-card.is-touched::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(103, 177, 86, 0.45);
  animation: tr-card-touch 1800ms cubic-bezier(.16, 1, .3, 1) forwards;
  pointer-events: none;
}
@keyframes tr-card-touch {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ─── v-out: outreach pill stage transitions ──────────────────────────── */
.pill {
  transition:
    background 520ms cubic-bezier(.16, 1, .3, 1),
    color 520ms cubic-bezier(.16, 1, .3, 1),
    border-color 520ms cubic-bezier(.16, 1, .3, 1);
}
.tn, .tm { transition: background 1800ms cubic-bezier(.16, 1, .3, 1); }
.tn.is-touched,
.tm.is-touched { background: rgba(103, 177, 86, 0.06); }

/* ─── v-ready: checkbox fills + check draws in ───────────────────────── */
.cb {
  transition:
    background 420ms cubic-bezier(.16, 1, .3, 1),
    border-color 420ms cubic-bezier(.16, 1, .3, 1);
}
.cb svg path {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  transition: stroke-dashoffset 520ms cubic-bezier(.16, 1, .3, 1) 200ms;
}
.cb.done svg path { stroke-dashoffset: 0; }

/* ─── v-queue: count flashes + day countdown amber pulse ─────────────── */
.kc-count {
  transition: color 900ms cubic-bezier(.16, 1, .3, 1);
}
.kc-count.is-flash { color: var(--leaf-strong); }
.kcard.is-moving {
  box-shadow: inset 0 0 0 1px rgba(103, 177, 86, 0.55), var(--shadow-soft);
  transition: box-shadow 1400ms cubic-bezier(.16, 1, .3, 1);
}
.kcard .when .flag.warn { animation: tr-pulse 2.6s cubic-bezier(.16, 1, .3, 1) infinite; position: relative; z-index: 0; }
.kcard .when .flag.warn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: currentColor; z-index: -1; opacity: 0;
  animation: tr-pulse 2.6s cubic-bezier(.16, 1, .3, 1) infinite;
  pointer-events: none;
}

/* ─── v-dash: number count + sparkline draw ──────────────────────────── */
.metric .value { transition: color 320ms cubic-bezier(.16, 1, .3, 1); }
.metric .value.is-bumping { color: var(--leaf-strong); }
.spark svg polyline {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 1600ms cubic-bezier(.16, 1, .3, 1);
}
.spark.is-drawn svg polyline { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .view-tab[aria-selected="true"] .auto-fill.is-running,
  .dir-card.is-touched::before,
  .kcard .when .flag.warn,
  .kcard .when .flag.warn::after,
  .spark svg polyline { animation: none; transition: none; }
}
