/* Trellisly website.
   Layout concept: left-aligned editorial pages on a cool paper ground, with one dark ink band per page.
   The trellis grid (the logo's 3x3 squares) is the one signature element; everything else stays quiet. */
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #061E39;        /* navy from the logo: text and the dark band */
  --paper: #F6F8FB;      /* cool page ground */
  --white: #FFFFFF;
  --mist: #E2E9F1;       /* hairlines and quiet fills */
  --slate: #4F6884;      /* secondary text */
  --sky: #95AFCA;        /* logo blue, used on dark */
  --leaf: #56A573;       /* the logo's leaf: Trellisly accent, decoration */
  --leaf-deep: #2B6E48;  /* buttons and links on light (AA contrast) */
  --amber: #E0A93B;      /* Trellisly CRM accent */
  --amber-deep: #8A5A00;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: 2.3rem; --step-4: 3.2rem; --step-5: 4.4rem;
  --wrap: 1180px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--step-0); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; border-radius: 6px; z-index: 99; }
.skip:focus { left: 12px; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; }
h1.display { font-size: clamp(2.6rem, 6.4vw, var(--step-5)); }
h2.display { font-size: clamp(2rem, 4.2vw, var(--step-4)); line-height: 1.05; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--slate); max-width: 38em; line-height: 1.5; }
.muted { color: var(--slate); }
.small { font-size: var(--step--1); }
.measure { max-width: 34em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--sans); padding: 14px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--leaf-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #F0BC52; color: var(--ink); }
.on-ink .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.35); }
.on-ink .btn-ghost:hover { border-color: var(--white); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--mist); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--leaf-deep); }
.nav .login, .nav .login:hover { padding: 10px 18px; font-size: .95rem; color: var(--ink); }
.nav .btn { padding: 11px 18px; font-size: 0.95rem; }
.nav .btn-primary, .nav .btn-primary:hover { color: var(--white); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--mist); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--mist);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--mist); }
  .nav .btn { margin-top: 12px; border-bottom: 0; padding: 14px; }
  .nav .login { margin-top: 16px; }
  .nav .login + .btn { margin-top: 8px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.band-ink { background: var(--ink); color: var(--white); }
.band-ink .lede, .band-ink .muted { color: #B9C8D8; }
.band-ink a:not(.btn) { color: #9FD3B2; }
.band-white { background: var(--white); border-block: 1px solid var(--mist); }
.head-block { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-note { font-size: var(--step--1); color: var(--slate); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 64px); }
.page-hero .wrap { display: grid; gap: 20px; }

/* The meeting board: an illustration of a real Trellisly week (sample data) */
.board { background: var(--white); border-radius: 22px; border: 1px solid var(--mist); box-shadow: 0 30px 60px -30px rgba(6,30,57,.35); overflow: hidden; min-width: 0; }
.board-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--ink); color: var(--white); }
.board-top b { font-weight: 600; }
.board-top .timer { margin-left: auto; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 999px; font-size: .88rem; }
.board-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.agenda { list-style: none; margin: 0; padding: 14px 10px; border-right: 1px solid var(--mist); display: grid; gap: 2px; align-content: start; font-size: .86rem; }
.agenda li { display: flex; justify-content: space-between; gap: 6px; padding: 7px 9px; border-radius: 8px; color: var(--slate); }
.agenda li.now { background: #E9F4EE; color: var(--ink); font-weight: 600; }
.agenda li span { font-variant-numeric: tabular-nums; }
.board-main { padding: 16px 18px 18px; display: grid; gap: 14px; min-width: 0; }
.board-h { font-size: .78rem; color: var(--slate); font-weight: 600; letter-spacing: .02em; }
.score { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.score td { padding: 7px 4px; border-bottom: 1px solid var(--mist); }
.score td:nth-child(2), .score td:nth-child(3) { text-align: right; white-space: nowrap; }
.score .on { color: var(--leaf-deep); font-weight: 600; }
.score .off { color: #B4432E; font-weight: 600; }
.todos { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.todo { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--mist); border-radius: 10px; font-size: .88rem; background: var(--white); }
.todo button { all: unset; cursor: pointer; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #9DB0C5; display: grid; place-items: center; flex: none; }
.todo button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.todo.done button { background: var(--leaf); border-color: var(--leaf); }
.todo.done button::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--white); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.todo .t { flex: 1; min-width: 0; }
.todo.done .t { text-decoration: line-through; color: var(--slate); }
.who { font-size: .76rem; color: var(--slate); white-space: nowrap; }
.av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 700; color: var(--white); flex: none; }
.board-foot { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--slate); }
.board-foot .count { color: var(--leaf-deep); font-weight: 600; }
.cheer { position: absolute; pointer-events: none; width: 10px; height: 10px; border-radius: 2px; animation: cheer .9s ease-out forwards; }
@keyframes cheer { from { transform: translate(0,0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }
.board-caption { margin-top: 12px; font-size: var(--step--1); color: var(--slate); }
@media (max-width: 560px) { .board-body { grid-template-columns: 1fr; } .agenda { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--mist); } .agenda li { flex: none; } }

/* ---------- Outcome row ---------- */
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.outcome { display: grid; gap: 10px; align-content: start; border-top: 2px solid var(--ink); padding-top: 18px; }
.outcome p { color: var(--slate); }
@media (max-width: 820px) { .outcomes { grid-template-columns: 1fr; } }

/* ---------- Feature rows ---------- */
.rows { display: grid; gap: clamp(56px, 8vw, 96px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.row.flip > :first-child { order: 2; }
.row-copy { display: grid; gap: 14px; }
.row-copy p { color: var(--slate); max-width: 32em; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; break-inside: avoid; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; border-radius: 3px; background: var(--leaf); }
.band-ink .ticks li::before { background: var(--amber); }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row.flip > :first-child { order: 0; } }

/* Small illustrations (sample data), drawn as interface pieces */
.pane { background: var(--white); border: 1px solid var(--mist); border-radius: 18px; padding: 18px; display: grid; gap: 10px; min-width: 0; box-shadow: 0 18px 40px -28px rgba(6,30,57,.35); }
.pane .bar { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.pane .bar .lbl { width: 110px; flex: none; color: var(--slate); }
.pane .meter { flex: 1; height: 10px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.pane .meter i { display: block; height: 100%; background: var(--leaf); border-radius: inherit; }
.pane .meter i.full { background: var(--amber); }
.pane .note { font-size: .82rem; color: var(--slate); }
.paste { font-size: .86rem; background: var(--paper); border-radius: 12px; padding: 12px 14px; color: var(--slate); line-height: 1.5; }
.found { display: grid; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #E9F4EE; color: var(--leaf-deep); white-space: nowrap; }
.chip.amber { background: #FBF0D8; color: var(--amber-deep); }
.chip.slate { background: var(--mist); color: var(--slate); }
.line { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--mist); border-radius: 10px; font-size: .88rem; }
.line .grow { flex: 1; min-width: 0; }
.prayer { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #F1F6FB; font-size: .9rem; }
.prayer .meta { font-size: .78rem; color: var(--slate); }

/* ---------- Audience strip ---------- */
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--mist); }
.aud { padding: 28px 28px 28px 0; display: grid; gap: 10px; align-content: start; }
.aud + .aud { padding-left: 28px; border-left: 1px solid var(--mist); }
.aud p { color: var(--slate); }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; } .aud, .aud + .aud { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--mist); } }

/* ---------- CRM band ---------- */
.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: #0E2A4A; border: 1px solid #1E3E63; border-radius: 18px; padding: 14px; min-width: 0; }
.stage { display: grid; gap: 8px; align-content: start; min-width: 0; }
.stage h4 { margin: 0; font-size: .78rem; font-weight: 600; color: var(--sky); display: flex; justify-content: space-between; }
.deal { background: #143457; border-radius: 10px; padding: 10px; display: grid; gap: 3px; font-size: .84rem; color: var(--white); }
.deal span { color: #B9C8D8; font-size: .76rem; }
.deal.hot { box-shadow: inset 3px 0 0 var(--amber); }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr 1fr; } .stage:last-child { display: none; } }

/* ---------- Bundle ---------- */
.bundle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.bundle-math { background: var(--white); border: 1px solid var(--mist); border-radius: 20px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; font-variant-numeric: tabular-nums; }
.bundle-math .ln { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--mist); }
.bundle-math .ln.total { border-bottom: 0; font-weight: 700; font-size: 1.15rem; }
.bundle-math s { color: var(--slate); font-weight: 400; margin-right: 8px; }
@media (max-width: 860px) { .bundle { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-group { display: grid; gap: 20px; margin-bottom: clamp(56px, 7vw, 88px); }
.price-group > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.plans { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border: 1px solid var(--mist); border-radius: 20px; background: var(--white); overflow: hidden; }
.plan { padding: 24px 22px 26px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.plan + .plan { border-left: 1px solid var(--mist); }
.plan.pick { background: #F2F8F4; }
.plan.pick.amber { background: #FDF7EA; }
.plan .name { font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan .amt { font-family: var(--display); font-size: 2.9rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.plan .amt small { font-family: var(--sans); font-size: .9rem; color: var(--slate); margin-left: 4px; }
.plan .for { color: var(--slate); font-size: .94rem; min-height: 2.8em; }
.plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; font-size: .92rem; }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 2px; background: var(--leaf); }
.plan.crm li::before { background: var(--amber); }
.plan .btn { margin-top: 8px; width: 100%; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plan:nth-child(3) { border-left: 0; } .plan:nth-child(n+3) { border-top: 1px solid var(--mist); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan + .plan { border-left: 0; border-top: 1px solid var(--mist); } }
.plans.two { --cols: 2; }
@media (max-width: 980px) { .plans.two .plan:nth-child(2) { border-left: 1px solid var(--mist); border-top: 0; } }
@media (max-width: 600px) { .plans.two .plan:nth-child(2) { border-left: 0; border-top: 1px solid var(--mist); } }
.fine { font-size: var(--step--1); color: var(--slate); max-width: 52em; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.founder .mark { width: 76px; height: 76px; }
.founder blockquote { margin: 0; display: grid; gap: 14px; }
.founder blockquote p:first-child { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder .portrait { max-width: 320px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; border-top: 1px solid var(--mist); }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--slate); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--slate); max-width: 42em; }

/* ---------- Closing CTA ---------- */
.closer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
@media (max-width: 760px) { .closer { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; background: var(--white); border: 1px solid var(--mist); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--white); border: 1.5px solid #C9D5E2; border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--leaf-deep); box-shadow: 0 0 0 3px rgba(86,165,115,.25); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.form legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { font-weight: 500; display: inline-flex; flex-direction: row; align-items: center; gap: 8px; border: 1.5px solid #C9D5E2; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.choices input { width: auto; accent-color: var(--leaf-deep); }
.choices label:has(input:checked) { border-color: var(--leaf-deep); background: #F2F8F4; }
.hp { position: absolute; left: -5000px; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.steps b { display: block; }
.steps span { color: var(--slate); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #B9C8D8; padding-block: 56px 40px; font-size: .95rem; }
.site-foot .wrap { display: grid; gap: 36px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-top img { height: 30px; width: auto; }
.foot-top h4 { margin: 0 0 10px; color: var(--white); font-size: .95rem; }
.foot-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: #DDE6EF; text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.foot-bottom { border-top: 1px solid #1E3E63; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }

/* The one load moment: the hero board's squares settle in */
@media (prefers-reduced-motion: no-preference) {
  .board { animation: rise .7s cubic-bezier(.2,.7,.2,1) both .1s; }
  .board .todo { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .board .todo:nth-child(1) { animation-delay: .45s; } .board .todo:nth-child(2) { animation-delay: .55s; } .board .todo:nth-child(3) { animation-delay: .65s; }
}
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

.plans.three { --cols: 3; }
@media (max-width: 980px) { .plans.three { grid-template-columns: 1fr; } .plans.three .plan + .plan { border-left: 0; border-top: 1px solid var(--mist); } }

/* Why switch: one comparison table, Trellisly column set off */
.compare { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 1rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--mist); }
.compare thead th { font-size: .95rem; color: var(--slate); font-weight: 600; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td { color: var(--slate); width: 36%; }
.compare .us { background: #F2F8F4; color: var(--ink); }
.compare thead .us { color: var(--leaf-deep); border-top-left-radius: 12px; border-top-right-radius: 12px; }
@media (max-width: 640px) {
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 16px 0; border-bottom: 1px solid var(--mist); display: grid; gap: 8px; }
  .compare th, .compare td, .compare tbody th { border: 0; padding: 0; width: auto; }
  .compare td { padding: 10px 12px; border-radius: 10px; font-size: .95rem; }
  .compare td::before { content: attr(data-k); display: block; font-size: .78rem; font-weight: 600; color: var(--slate); margin-bottom: 2px; }
  .compare td.us::before { color: var(--leaf-deep); }
}

/* Story: the week, told as moments */
.scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.scene { padding: 20px 22px 22px 0; display: grid; gap: 8px; align-content: start; }
.scene + .scene { padding-left: 22px; border-left: 1px solid var(--mist); }
.scene-time { font-size: .85rem; font-weight: 600; color: var(--slate); font-variant-numeric: tabular-nums; }
.scene p { font-size: 1.08rem; }
.scene:last-child p { color: var(--ink); }
.stat { margin-top: clamp(28px, 4vw, 44px); font-size: 1.05rem; color: var(--ink); max-width: 46rem; display: flex; gap: 16px; align-items: center; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 3.4rem; line-height: 1; color: var(--ink); flex: none; }
@media (max-width: 900px) { .scenes { grid-template-columns: 1fr 1fr; } .scene:nth-child(3) { padding-left: 0; border-left: 0; } .scene:nth-child(n+3) { border-top: 1px solid var(--mist); } }
@media (max-width: 560px) { .scenes { grid-template-columns: 1fr; } .scene, .scene + .scene { padding: 18px 0; border-left: 0; } .scene + .scene { border-top: 1px solid var(--mist); } }

/* The trellis story: the one signature visual */
.trellis-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.trellis-story .row-copy p { color: var(--slate); max-width: 34em; font-size: 1.08rem; }
.trellis-story .row-copy p b { color: var(--ink); }
.lattice { display: grid; gap: 12px; justify-items: center; }
.lattice svg { width: min(340px, 80%); height: auto; overflow: visible; }
.lattice.go .sq { animation: sq .55s cubic-bezier(.2,.8,.2,1.2) both; animation-delay: calc(var(--i) * 110ms); transform-box: fill-box; transform-origin: center; }
@keyframes sq { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) { .trellis-story { grid-template-columns: 1fr; } .lattice svg { width: 200px; } }

/* Getting started: a real sequence */
.plan-steps { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); }
.plan-steps li { counter-increment: p; display: grid; gap: 8px; align-content: start; }
.plan-steps li::before { content: counter(p); font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--leaf); }
.plan-steps b { font-size: 1.15rem; }
.plan-steps span { color: var(--slate); }
@media (max-width: 760px) { .plan-steps { grid-template-columns: 1fr; } }
.board-top .board-org { color: #B9C8D8; }
@media (max-width: 480px) { .board-top .board-org { display: none; } }

/* Monthly / yearly switch */
.billing-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--mist); border-radius: 999px; padding: 4px; gap: 4px; }
.billing-toggle button { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--slate); display: inline-flex; gap: 8px; align-items: center; }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.billing-toggle button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.billing-toggle .save { font-size: .75rem; color: var(--leaf-deep); background: #E9F4EE; padding: 2px 8px; border-radius: 999px; }
.billing-toggle button[aria-pressed="true"] .save { background: rgba(255,255,255,.16); color: #CFEBDA; }

/* CRM: what it replaces */
.stack-swap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); gap: 28px; align-items: center; }
.replaced { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.replaced li { padding: 8px 14px; border-radius: 999px; border: 1px dashed #B9C8D8; color: var(--slate); text-decoration: line-through; text-decoration-color: rgba(79,104,132,.5); font-size: .95rem; }
.swap-arrow { width: 56px; height: 2px; background: var(--ink); position: relative; }
.swap-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--ink); }
.one-place { display: grid; gap: 6px; justify-items: start; padding: 22px; border-radius: 18px; background: #FDF7EA; border: 1px solid #F1DFB4; }
.one-place b { font-size: 1.2rem; }
@media (max-width: 860px) { .stack-swap { grid-template-columns: 1fr; } .swap-arrow { transform: rotate(90deg); margin: 6px 0 6px 24px; } }

/* CRM modules */
.mod-group { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; padding-block: 28px; border-top: 1px solid var(--mist); }
.mod-group:last-of-type { border-bottom: 1px solid var(--mist); margin-bottom: 18px; }
.mod-h { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px 28px; }
.mod { display: grid; gap: 6px; align-content: start; }
.mod b { font-size: 1.05rem; }
.mod p { color: var(--slate); font-size: .96rem; }
.mod .chip { justify-self: start; margin-top: 2px; }
@media (max-width: 760px) { .mod-group { grid-template-columns: 1fr; gap: 14px; } }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { display: grid; gap: 18px; max-width: 38em; font-size: 1.12rem; line-height: 1.65; }
.prose p:first-child { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.25; }
.facts { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); background: var(--white); border: 1px solid var(--mist); border-radius: 20px; padding: 24px; display: grid; gap: 14px; }
.facts dl { margin: 0; display: grid; gap: 10px; }
.facts dt { font-size: .82rem; color: var(--slate); font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .facts { position: static; } }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.sec { padding: 24px 24px 26px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--mist); }
.sec:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--mist); }
.sec p { color: var(--slate); }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr; } .sec, .sec:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; } }

/* Compare page */
.compare.four { min-width: 860px; }
.compare.four td { width: auto; }
.compare.four tbody th { width: 18%; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.fit > div { display: grid; gap: 8px; }
.fit p { color: var(--slate); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .compare.four { min-width: 860px; } .compare.four thead { display: table-header-group; } .compare.four, .compare.four tbody { display: table; width: 100%; } .compare.four tr { display: table-row; padding: 0; } .compare.four th, .compare.four td { display: table-cell; padding: 12px 14px; border-bottom: 1px solid var(--mist); } .compare.four td::before { content: none; } }

.portrait { display: block; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px -34px rgba(6,30,57,.45); }
.about-side { display: grid; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); align-self: start; }
.about-side .facts { position: static; }
@media (max-width: 860px) { .about-side { position: static; } .about-side .portrait { max-width: 360px; } }

/* Pricing: consultants and agencies */
.agency-band { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--white); border: 1px solid var(--mist); border-radius: 20px; padding: clamp(22px, 3vw, 36px); }
.agency-cta { display: grid; gap: 10px; padding: 22px; border-radius: 16px; background: #F2F8F4; }
.agency-cta b { font-size: 1.15rem; }
@media (max-width: 860px) { .agency-band { grid-template-columns: 1fr; } }

/* The real cost */
.cost { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.cost-stat { padding: 22px 24px 24px 0; display: grid; gap: 8px; align-content: start; }
.cost-stat + .cost-stat { padding-left: 24px; border-left: 1px solid var(--mist); }
.cost-stat b { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; }
.cost-stat p { font-size: 1.05rem; }
.cost-math { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 12px; max-width: 46rem; font-size: 1.15rem; }
.cost-vs { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; }
.cost-vs b { font-weight: 400; color: var(--leaf-deep); }
@media (max-width: 760px) { .cost { grid-template-columns: 1fr; } .cost-stat, .cost-stat + .cost-stat { padding: 18px 0; border-left: 0; } .cost-stat + .cost-stat { border-top: 1px solid var(--mist); } }
