/*
 * adivedam.in, in the Adimyra brand kit: Sage leads (buttons, highlights),
 * Forest carries the deep bands, on warm neutrals; Space Grotesk headings
 * over IBM Plex Sans, as the adiVEDAM portal itself is set.
 */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --paper: #fafaf8;
  --card: #ffffff;
  --ink: #191b17;
  --muted: #5b5f58;
  --line: #e3e5e0;
  --input: #c6c9c2;
  --sage: #44563e; /* Sage 600 */
  --sage-700: #313f2c;
  --sage-300: #a1b69a;
  --sage-100: #dee6db;
  --sage-50: #f1f5f0;
  --forest: #2b5f4e; /* Forest 600 */
  --forest-900: #17302a;
  --amber: #b28636;
  --amber-tint: #f4ead6;
  --amber-ink: #6f531f;
  --clay: #8c3a2e;
  --radius: 14px;
  --wide: 1240px;
  --narrow: 860px;
  --gutter: clamp(18px, 5vw, 56px);
  --heading: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--sage); }
:focus-visible { outline: 3px solid var(--sage-300); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--card); padding: 10px 14px; border-radius: 8px; }

/* ---- Buttons and links ------------------------------------------------ */
.button, button, .hero-primary {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 15px/1.2 var(--body); cursor: pointer; text-decoration: none;
  background: var(--sage); color: #fff; border: 1px solid var(--sage);
  border-radius: 999px; padding: 13px 22px; transition: background .15s;
}
.button:hover, button:hover, .hero-primary:hover { background: var(--sage-700); border-color: var(--sage-700); }
.button.ghost, .secondary, .hero-secondary {
  background: transparent; color: var(--ink); border: 1px solid var(--input);
  display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1.2 var(--body);
  border-radius: 999px; padding: 13px 22px; text-decoration: none;
}
.button.ghost:hover, .secondary:hover, .hero-secondary:hover { background: var(--sage-50); border-color: var(--sage-300); }
.button.light { background: #fff; color: var(--forest-900); border-color: #fff; }
.button.light:hover { background: var(--sage-50); }
.textlink, .link { color: var(--sage); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--sage-300); padding-bottom: 2px; }
.textlink:hover, .link:hover { border-color: var(--sage); }

/* ---- Header ----------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-head .bar { max-width: var(--wide); margin: auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; }
.identity { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px var(--heading); letter-spacing: -0.03em; }
.identity strong { font-weight: 700; color: var(--sage); }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--sage); color: #fff; display: grid; place-items: center; font: 700 17px var(--heading); }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { color: var(--ink); background: var(--sage-50); }
.site-nav a[aria-current="page"] { color: var(--sage-700); background: var(--sage-50); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.head-actions .plain { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; }
.head-actions .button { padding: 10px 18px; }
.menu-toggle { display: none; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 9px 12px; }
.menu-toggle:hover { background: var(--sage-50); }

/* ---- Layout ----------------------------------------------------------- */
.band { padding: clamp(48px, 7vw, 96px) var(--gutter); }
.band > .inner, .inner { max-width: var(--wide); margin: auto; }
.band.tint { background: var(--sage-50); }
.band.deep { background: var(--forest-900); color: #f3f6f1; }
.band.deep h2 em { color: var(--sage-300); }
.eyebrow { display: inline-block; font: 600 13px/1.4 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.band.deep .eyebrow { color: var(--sage-300); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 36px; }
.section-title h2 { font-size: clamp(30px, 3.6vw, 48px); max-width: 20ch; }
.section-title p { color: var(--muted); max-width: 46ch; }
.band.deep .section-title p { color: #c9d4c5; }

/* ---- Home: hero ------------------------------------------------------- */
.lms-hero { padding: clamp(36px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 72px); }
.hero-grid { max-width: var(--wide); margin: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-message h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-message p { color: var(--muted); font-size: clamp(17px, 1.4vw, 20px); max-width: 48ch; margin: 22px 0 30px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scene { margin: 0; position: relative; }
.hero-scene img { width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; border-radius: 28px 28px 28px 120px; box-shadow: 0 30px 60px -30px rgb(23 48 42 / 0.45); }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding: 18px var(--gutter); border-block: 1px solid var(--line); background: var(--card); font-size: 15px; color: var(--muted); }
.facts span::before { content: "✓"; color: var(--sage); font-weight: 700; margin-right: 8px; }

/* ---- Cards and grids -------------------------------------------------- */
.segments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.segments article, .tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s;
}
.segments article:hover, .tile:hover { border-color: var(--sage-300); transform: translateY(-2px); }
.segments h3, .tile h3 { font-size: 21px; }
.segments p, .tile p { color: var(--muted); font-size: 16px; flex: 1; }
.segments a { color: var(--sage); font-weight: 600; text-decoration: none; font-size: 15px; }
.segments a:hover { text-decoration: underline; }
.segments .icon, .tile .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sage-50); color: var(--sage); display: grid; place-items: center; font: 700 18px var(--heading); margin-bottom: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.module-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.module-list h3 { font-size: 24px; margin-bottom: 6px; }
.module-list > p { color: var(--muted); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--sage-50); color: var(--sage-700); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 500; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan { background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.14); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.plan.featured { background: #fff; color: var(--ink); border-color: #fff; }
.plan h3 { font-size: 22px; }
.plan .price { font: 700 40px/1 var(--heading); letter-spacing: -0.03em; margin-top: 8px; }
.plan .price small { font: 400 15px var(--body); opacity: 0.75; letter-spacing: 0; }
.plan .who { opacity: 0.8; font-size: 15px; }
.plan ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.plan li::before { content: "✓"; color: var(--sage-300); font-weight: 700; margin-right: 9px; }
.plan.featured li::before { color: var(--sage); }
.plan .tag { align-self: flex-start; background: var(--amber-tint); color: var(--amber-ink); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600; }
.fineprint { margin-top: 22px; font-size: 14px; color: #c9d4c5; }

.steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sage); color: #fff; font: 700 15px var(--heading); margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }
.steps a { color: var(--sage); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 10px; }

/* Older home sections, kept for any page that still uses them. */
.studio { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.studio p { color: inherit; opacity: 0.85; margin: 16px 0 24px; max-width: 46ch; }
.outline { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.outline h3 { font-size: 22px; margin-bottom: 8px; }
.outline p { opacity: 1; color: var(--muted); }

/* ---- Closing band (every page) ---------------------------------------- */
.closing { background: var(--sage); color: #fff; border-radius: 24px; max-width: var(--wide); margin: 0 auto; padding: clamp(28px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.closing-wrap { padding: 0 var(--gutter) clamp(48px, 7vw, 88px); }
.closing h2 { font-size: clamp(26px, 3vw, 38px); }
.closing p { opacity: 0.88; margin-top: 8px; max-width: 52ch; }
.closing .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.closing .button.ghost { color: #fff; border-color: rgb(255 255 255 / 0.5); }
.closing .button.ghost:hover { background: rgb(255 255 255 / 0.1); }

/* ---- Inner pages ------------------------------------------------------ */
.detail { max-width: var(--narrow); margin: auto; padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(40px, 6vw, 72px); }
.detail.wide { max-width: var(--wide); }
.crumb { display: block; font-size: 14px; color: var(--muted); }
.crumb a { color: var(--sage); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.pageintro { padding: 22px 0 34px; border-bottom: 1px solid var(--line); }
.pageintro h1 { font-size: clamp(34px, 4.8vw, 58px); letter-spacing: -0.03em; max-width: 22ch; }
.pageintro p { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 62ch; margin-top: 18px; }
.pageintro .button, .pageintro .textlink { margin-top: 22px; }
.pagebody { margin-top: 12px; }
.pagebody h2 { font-size: clamp(22px, 2.4vw, 28px); }
.pagebody p { max-width: 70ch; margin: 10px 0 12px; }
.pagebody p .button, .pagebody .button { margin-top: 6px; }
.answer { padding: 26px 0; border-bottom: 1px solid var(--line); }
.answer:last-of-type { border-bottom: 0; }
.related { margin-top: 26px; background: var(--sage-50); border-radius: var(--radius); padding: 24px 26px; }
.related h2 { font-size: 18px; margin-bottom: 6px; }
.related a, .pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; margin: 8px 8px 0 0; font-size: 15px; text-decoration: none; }
.related a::after { content: "→"; color: var(--sage); }
.related a:hover, .pill:hover { border-color: var(--sage-300); }

.directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.directory a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; transition: border-color .15s; }
.directory a:hover { border-color: var(--sage-300); }
.directory a[hidden] { display: none; }
.directory strong { display: block; font: 600 20px/1.25 var(--heading); }
.directory span { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }

/* The live demos: an optional email, then a card for each demo. */
.demo-lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 22px; margin-top: 8px; }
.demo-lead > p { color: var(--muted); font-size: 15px; margin: 0; }
.demo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.demo-trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.demo-error { margin-top: 12px; color: var(--clay); font-size: 15px; }
.demos { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.demo-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.demo-card[hidden] { display: none; }
.demo-card h2 { font-size: 21px; }
.demo-card .demo-name { color: var(--muted); font-size: 14px; margin: 0; }
.demo-card p { margin: 0; font-size: 15px; }
.demo-card ul { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--muted); flex: 1; }
.demo-card li::before { content: "✓"; color: var(--sage); font-weight: 700; margin-right: 8px; }
.demo-card .button { margin-top: auto; text-align: center; }
.demo-card .button[aria-busy="true"] { opacity: 0.7; }
@media (max-width: 1020px) { .demos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .demos, .demo-fields { grid-template-columns: 1fr; } }

.tablewrap { overflow-x: auto; margin: 16px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tablewrap table { border-collapse: collapse; width: 100%; font-size: 16px; }
.tablewrap caption { text-align: left; padding: 16px 18px 4px; color: var(--muted); font-size: 14px; }
.tablewrap th, .tablewrap td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.tablewrap thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: var(--sage-50); }
.tablewrap tbody tr:last-child td, .tablewrap tbody tr:last-child th { border-bottom: 0; }
.tablewrap tbody th { font-family: var(--heading); }

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.numbers div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.numbers dt { color: var(--muted); font-size: 14px; }
.numbers dd { margin: 6px 0 0; font: 700 34px/1.1 var(--heading); color: var(--sage-700); }
.choices { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0; }

/* ---- Forms ------------------------------------------------------------ */
label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 15px; }
input, textarea, select { width: 100%; border: 1px solid var(--input); padding: 12px 14px; background: var(--card); border-radius: 10px; font: 16px/1.5 var(--body); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--sage-100); border-color: var(--sage); }
textarea { min-height: 100px; resize: vertical; }
#query { max-width: 640px; }

/* ---- Course Builder samples (studio and courses) ---------------------- */
.library, .workspace { max-width: var(--wide); margin: auto; padding: clamp(28px, 4vw, 48px) var(--gutter) 64px; }
.workspace { max-width: 980px; }
.workspace h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 14px 0; }
.workspace p { max-width: 70ch; }
.sectionhead { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.sectionhead::after { content: ""; height: 1px; flex: 1; background: var(--line); order: 1; }
.sectionhead p { order: 2; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card h3 { font-size: 21px; margin: 16px 0 6px; }
.card p { color: var(--muted); font-size: 16px; }
.cover { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.75; padding: 22px 24px; border-radius: var(--radius); background: var(--sage); color: #fff; }
.cover::after { content: ""; position: absolute; z-index: -1; right: -18%; bottom: -40%; width: 66%; height: 140%; border-radius: 50% 50% 0 0; background: repeating-radial-gradient(ellipse at bottom, transparent 0 12px, rgb(255 255 255 / 0.18) 13px 14px); }
.c1 { background: var(--forest); }
.c2 { background: var(--amber); }
.cover small, .meta { font: 600 12px/1.5 var(--body); text-transform: uppercase; letter-spacing: 0.1em; }
.cover b { font: 600 clamp(24px, 2.6vw, 38px)/1.05 var(--heading); letter-spacing: -0.03em; max-width: 80%; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); margin: 20px 0; }
.panel h2 { font-size: 26px; margin-bottom: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > a { color: var(--sage); }
.lesson { padding: 18px 0; border-top: 1px solid var(--line); }
.lesson h3 { font-size: 19px; }
.reader { display: grid; grid-template-columns: minmax(200px, 1fr) 2.2fr; gap: 28px; }
.reader aside a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; }
.reader aside a:hover { background: var(--sage-50); }
.active { background: var(--sage-50); color: var(--sage-700); font-weight: 600; }
.bodytext { white-space: pre-wrap; overflow-wrap: anywhere; }
.card, .workspace, .cover, .reader > * { min-width: 0; overflow-wrap: anywhere; }
.note { font-size: 14px; color: var(--muted); }
.notice { margin: 12px 0; color: var(--clay); }

/* ---- Footer ----------------------------------------------------------- */
.sitefoot { background: var(--forest-900); color: #dfe7dc; padding: clamp(40px, 6vw, 64px) var(--gutter) 28px; }
.sitefoot .inner { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.sitefoot .about-col p { color: #b9c5b5; font-size: 15px; margin-top: 12px; max-width: 30ch; }
.sitefoot .identity { color: #fff; }
.sitefoot .identity strong { color: var(--sage-300); }
.sitefoot .mark { background: var(--sage-300); color: var(--forest-900); }
.sitefoot h2 { font: 600 13px var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 12px; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sitefoot ul a { text-decoration: none; font-size: 15px; color: #dfe7dc; }
.sitefoot ul a:hover { color: #fff; text-decoration: underline; }
.sitefoot .legal { max-width: var(--wide); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #a9b6a5; }

/* ---- Narrow screens --------------------------------------------------- */
@media (max-width: 1020px) {
  .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sitefoot .inner { grid-template-columns: 1fr 1fr; }
  .sitefoot .about-col { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-head .bar { flex-wrap: wrap; gap: 12px; }
  .site-nav, .head-actions { display: none; width: 100%; }
  .site-head.open .site-nav { display: flex; flex-direction: column; margin: 0; padding-top: 6px; }
  .site-head.open .head-actions { display: flex; margin: 0 0 6px; }
  .site-head.open .head-actions .button { flex: 1; }
  .site-nav a { padding: 12px; font-size: 16px; }
  .hero-grid, .split, .studio { grid-template-columns: 1fr; }
  .hero-scene img { aspect-ratio: 1.6; border-radius: 22px 22px 22px 70px; }
  .plans, .steps { grid-template-columns: 1fr; }
  .section-title { display: block; }
  .section-title p { margin-top: 12px; }
  .directory, .grid, .reader { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .segments { grid-template-columns: 1fr; }
  .sitefoot .inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-links .button, .hero-links .hero-primary, .hero-links .hero-secondary { flex: 1 1 100%; }
  .closing .actions { width: 100%; }
  .closing .actions a { flex: 1; }
  .facts { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ==== Motion and depth ====================================================
 * The hero is a stage in three dimensions; parts rise into view; cards lean
 * towards the pointer (assets/motion.js). Everything that moves is inside
 * "no-preference", so asking for less motion leaves a still page.
 */
.site-head { transition: box-shadow .25s, background .25s; }
.site-head.scrolled { box-shadow: 0 10px 30px -22px rgb(23 48 42 / 0.55); }

/* ---- The hero's stage -------------------------------------------------- */
.lms-hero { position: relative; overflow-x: clip; }
.hero-scene { perspective: 1400px; }
.stage {
  position: relative; transform-style: preserve-3d; will-change: transform;
  transform: rotateX(var(--rx, 3deg)) rotateY(var(--ry, -9deg));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.stage img { transform: translateZ(0); }
.stage::after { /* the stage's shadow on the floor, behind it */
  content: ""; position: absolute; inset: 16% 6% 4%; z-index: -1; border-radius: 40px;
  background: rgb(23 48 42 / 0.28); filter: blur(38px); transform: translateZ(-80px);
}
/* A corner holds its cards one on another; the one that is "on" shows. */
.float { position: absolute; transform-style: preserve-3d; display: grid; }
.float > .float-card { grid-area: 1 / 1; }
.float-a { justify-items: start; align-items: start; }
.float-b { justify-items: end; align-items: end; }
.float-card:not(.on) { opacity: 0; visibility: hidden; }
/* The picture keeps room above and below it, and its two cards sit on its
 * top and bottom edges, mostly outside it: over the wall and the table,
 * never over the people. */
.stage { padding: 36px 0 54px; }
.float-a { top: 0; left: -5%; transform: translateZ(60px); }
.float-b { bottom: 8px; right: 0; transform: translateZ(90px); }
.float-card {
  display: flex; align-items: center; gap: 12px; background: rgb(255 255 255 / 0.97);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 22px 40px -20px rgb(23 48 42 / 0.5); white-space: nowrap;
}
.float-card b { display: block; font: 600 14px/1.3 var(--heading); }
.float-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.float-card .dot { flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--sage-50); color: var(--sage); display: grid; place-items: center; font-weight: 700; }
.float-card .dot.amber { background: var(--amber-tint); color: var(--amber-ink); }
.float-card .dot.forest { background: #d7eae3; color: var(--forest); }
.orb { position: absolute; border-radius: 50%; filter: blur(50px); z-index: -1; translate: calc(var(--px, 0px) * -1) calc(var(--py, 0px) * -1); transition: translate .6s ease-out; }
.orb-a { width: 62%; aspect-ratio: 1; right: -16%; top: -14%; background: rgb(161 182 154 / 0.55); }
.orb-b { width: 44%; aspect-ratio: 1; left: -12%; bottom: -12%; background: rgb(178 134 54 / 0.22); }

/* ---- The plans band: a slow light behind it ---------------------------- */
.band.deep { position: relative; overflow: hidden; isolation: isolate; }
.band.deep::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: radial-gradient(closest-side at 30% 40%, rgb(68 86 62 / 0.9), transparent 70%), radial-gradient(closest-side at 72% 62%, rgb(43 95 78 / 0.75), transparent 70%);
}
.plans { perspective: 1200px; }
.plan.featured { box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6); }

/* ---- Cards that lean towards the pointer ------------------------------- */
.tilt { position: relative; transform-style: preserve-3d; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(161 182 154 / 0.28), transparent 70%);
}
.tilt:hover::after { opacity: 1; }
.plan.tilt:not(.featured)::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 0.14), transparent 70%); }
.motion .rise.in.tilt.settled, .motion .rise.in.tilt.settled:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out, border-color .15s, box-shadow .25s;
}
.tilt.settled:hover { box-shadow: 0 24px 44px -28px rgb(23 48 42 / 0.5); }
.tilt.settled > * { transform: translateZ(18px); }

@media (prefers-reduced-motion: no-preference) {
  /* Rising into view (the script adds .rise, then .in). */
  .motion .rise { opacity: 0; transform: translateY(28px); }
  .motion .rise.in { opacity: 1; transform: none; transition: opacity .7s ease var(--wait, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--wait, 0ms); }

  /* The hero's words, one after another, and its stage swinging in. */
  [data-enter] > * { animation: enter .8s cubic-bezier(.2, .7, .2, 1) both; }
  [data-enter] > :nth-child(2) { animation-delay: .08s; }
  [data-enter] > :nth-child(3) { animation-delay: .16s; }
  [data-enter] > :nth-child(4) { animation-delay: .24s; }
  .hero-scene { animation: swing 1.1s cubic-bezier(.2, .7, .2, 1) .1s both; }
  /* A corner bobs; its cards come forward out of the picture and go back. */
  .float { animation: bob 6s ease-in-out infinite; }
  .float-b { animation-duration: 7s; animation-delay: -2s; }
  /* The one leaving drifts up and softens away; the one coming waits a
   * moment below, then rises into the place left for it. */
  .float-card { will-change: opacity, transform; transition: opacity 1s cubic-bezier(.4, 0, .2, 1) .45s, transform 1.2s cubic-bezier(.22, 1, .36, 1) .45s, filter 1s ease .45s, visibility 0s .45s; }
  .float-card:not(.on) { transform: translateY(12px) scale(.98); filter: blur(3px); transition: none; }
  .float-card.out:not(.on) { transform: translateY(-10px) scale(.98); filter: blur(3px); transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .9s cubic-bezier(.4, 0, .2, 1), filter .7s ease, visibility 0s .9s; }
  .orb-a { animation: drift 16s ease-in-out infinite alternate; }
  .orb-b { animation: drift 20s ease-in-out infinite alternate-reverse; }
  .band.deep::before { animation: turn 40s linear infinite; }
  .mark { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .identity:hover .mark { transform: rotate(-8deg) scale(1.06); }
  .button, .hero-primary { transition: background .15s, transform .15s, box-shadow .2s; }
  .button:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -14px rgb(23 48 42 / 0.6); }
  .button:active { transform: translateY(0); }
}
@keyframes enter { from { opacity: 0; transform: translateY(22px); } }
@keyframes swing { from { opacity: 0; transform: translateY(30px) rotateY(-16deg); } }
@keyframes bob { 50% { translate: 0 -9px; } }
@keyframes drift { to { transform: translate(6%, 8%) scale(1.12); } }
@keyframes turn { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .stage { transform: rotateX(var(--rx, 2deg)) rotateY(var(--ry, -4deg)); }
  .float-a { left: 2%; top: 0; }
  .float-b { right: 2%; }
  .hero-scene { margin-top: 8px; }
}
@media (max-width: 560px) {
  .float-b { display: none; }
  .float-card { padding: 9px 12px; }
  .stage { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stage { transform: none; }
}

/* ==== Landing pages for each kind of institution ==========================
 * The hero's stage carries a small screen of the product in place of a
 * picture (scripts/site-landings.js): a heading, bars or rows, and pills.
 */
.hero-message .crumb { margin-bottom: 18px; }
.screen { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(23 48 42 / 0.45); }
.screen-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--sage-50); border-bottom: 1px solid var(--line); }
.screen-head b { display: block; font: 600 17px/1.2 var(--heading); }
.screen-head small { display: block; color: var(--muted); font-size: 13px; }
.lights { display: flex; gap: 5px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--sage-300); }
.lights i:first-child { background: var(--sage); }
.rows { list-style: none; margin: 0; padding: 6px 20px 10px; }
.rows li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows b { display: block; font: 600 15px/1.3 var(--body); }
.rows small { display: block; color: var(--muted); font-size: 13px; }
.pill { flex: none; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; background: var(--sage-50); color: var(--sage-700); white-space: nowrap; }
.pill.ok { background: #d7eae3; color: var(--forest); }
.pill.wait { background: var(--amber-tint); color: var(--amber-ink); }
.bars { padding: 18px 20px 4px; display: grid; gap: 12px; }
.bars > div { display: grid; grid-template-columns: 7.5em 1fr 3em; align-items: center; gap: 12px; font-size: 14px; }
.bars .track { height: 9px; border-radius: 99px; background: var(--sage-100); overflow: hidden; }
.bars .track i { display: block; height: 100%; border-radius: 99px; background: var(--sage); transform-origin: left; }
.bars b { font: 600 14px var(--heading); text-align: right; }
.segments.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segments article h2 { font-size: 21px; }
.band .related { margin-top: 36px; }
@media (prefers-reduced-motion: no-preference) {
  .bars .track i { animation: fill 1.4s cubic-bezier(.2, .7, .2, 1) .8s both; }
}
@keyframes fill { from { transform: scaleX(0); } }
@media (max-width: 1020px) {
  .segments.three { grid-template-columns: 1fr; }
}

/* ---- The home page: a demo of each kind, and a trial begun on the page -- */
.hero-demos { margin-top: 22px; }
.hero-demos > p { color: var(--muted); font-size: 15px; margin: 0 0 10px; max-width: none; }
.hero-demos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-demos li[hidden] { display: none; }
.hero-demos .button { padding: 8px 14px; font-size: 15px; border-radius: 999px; }
.hero-demos .button[aria-busy="true"] { opacity: 0.7; }
.trial-start { margin-top: 18px; background: var(--sage-50); border: 1px solid var(--sage-100); border-radius: var(--radius); padding: 26px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 18px 32px; align-items: end; scroll-margin-top: 96px; }
.trial-words h3 { font-size: 22px; margin-bottom: 6px; }
.trial-words p { color: var(--muted); font-size: 16px; margin: 0; }
.trial-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0 14px; align-items: end; }
.trial-fields label { margin-top: 0; }
.trial-fields button { white-space: nowrap; }
@media (max-width: 1020px) { .trial-start { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .trial-fields { grid-template-columns: 1fr; gap: 14px; } }

/* ---- What customers say: from testimonials.json, samples labelled ---- */
section[data-testimonials][hidden] { display: none; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quote-card { position: relative; margin: 0; display: flex; flex-direction: column; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.quote-card blockquote { margin: 0; font-size: 17px; line-height: 1.6; flex: 1; }
.quote-card blockquote::before { content: "\201C"; display: block; font: 700 42px/0.6 var(--heading); color: var(--sage-300); margin-bottom: 8px; }
.quote-card figcaption { display: grid; gap: 2px; font-size: 15px; }
.quote-card figcaption span { color: var(--muted); }
.quote-card figcaption small { color: var(--sage); font-weight: 600; font-size: 13px; margin-top: 4px; }
.sample-tag { position: absolute; top: 14px; right: 14px; font: 600 12px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--clay); border: 1px solid var(--clay); border-radius: 999px; padding: 5px 9px; }
@media (max-width: 1020px) { .quotes { grid-template-columns: 1fr; } }
