/* Casebook+ landing page. Built on tokens.css (Casebook+ design kit v1). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper-100); color: var(--ink-900); font-family: var(--font-sans); font-feature-settings: var(--font-features); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--yellow-300); color: var(--ink-900); }
:focus-visible { outline: 2px solid var(--teal-700); outline-offset: 3px; border-radius: 4px; }
.sec-dark :focus-visible, .sec-deep :focus-visible, .foot :focus-visible, .plan-feature :focus-visible { outline-color: var(--yellow-500); }

.wrap { width: min(100% - 48px, 1200px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal-700); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Type */
h1, h2, h3 { font-weight: 700; letter-spacing: var(--tracking-heading); text-wrap: balance; }
h1 { font-size: var(--text-hero); line-height: 1.02; letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-2xl); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; line-height: 1.25; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--teal-700); margin-bottom: 16px; }
.page-voice { font-family: var(--font-serif); font-feature-settings: normal; }

/* The highlighter: one phrase per heading, the same stroke everywhere. */
.hl { background: linear-gradient(to top, var(--yellow-300) 0, var(--yellow-300) 0.36em, transparent 0.36em); background-repeat: no-repeat; background-position: 0 92%; padding: 0 0.06em; margin: 0 -0.06em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sec-dark .hl, .sec-deep .hl { background-image: linear-gradient(to top, rgb(240 195 0 / 0.5) 0, rgb(240 195 0 / 0.5) 0.36em, transparent 0.36em); }
mark { background: var(--yellow-300); color: var(--ink-900); padding: 0 0.2em; border-radius: 2px; }

/* Buttons: rectangles act */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius-md); border: 1px solid transparent; font-weight: 600; font-size: 0.9375rem; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.btn .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--teal-800); }
.btn-primary:disabled { background: var(--teal-200); color: var(--teal-800); cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: #fff; color: var(--ink-900); border-color: var(--ink-300); }
.btn-secondary:hover { background: var(--paper-100); border-color: var(--ink-500); }
.btn-yellow { background: var(--yellow-500); color: var(--ink-900); }
.btn-yellow:hover { background: var(--yellow-300); }
.btn-quiet { background: transparent; color: var(--teal-700); padding: 0 10px; }
.btn-quiet:hover { background: var(--teal-50); }

/* Pills: pills describe */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; line-height: 1.4; }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-ok { background: var(--success-bg); color: var(--success); }
.pill-neutral { background: var(--paper-200); color: var(--ink-700); }
.dot { width: 16px; height: 16px; flex: none; }
.tag, .plus-tag { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border-radius: var(--radius-full); background: var(--yellow-50); border: 1px solid var(--yellow-200); color: var(--yellow-700); font-size: 0.8125rem; font-weight: 600; }
.plus-tag { font-size: 0.75rem; gap: 6px; padding: 2px 10px 2px 4px; }
.plus-tag .dot { width: 14px; height: 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 12px -6px rgb(18 40 43 / 0.18); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink-500); flex: none; }
.brand img { height: 18px; width: auto; align-self: center; }
.brand-by { font-size: 0.75rem; font-weight: 500; white-space: nowrap; align-self: center; padding-top: 3px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 12px; border-radius: 8px; color: var(--ink-700); font-size: 0.9rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color var(--dur-fast) var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: var(--yellow-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink-900); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: transparent; border-radius: 8px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform var(--dur) var(--ease), top var(--dur) var(--ease); }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav-sheet { display: grid; gap: 2px; padding: 8px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
.nav-sheet[hidden] { display: none; }
.nav-sheet a:not(.btn) { padding: 13px 4px; color: var(--ink-900); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-sheet .btn { margin-top: 14px; }

/* Hero */
.hero { position: relative; padding: 56px 0 72px; background: #fff; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 46%; background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgb(0 112 120 / 0.09) 35px 36px); -webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 80%, transparent); mask-image: linear-gradient(to right, transparent, #000 30%, #000 80%, transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero-copy h1 { margin-top: 22px; }
.lede { margin-top: 24px; max-width: 38ch; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.5; color: var(--ink-700); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 0.875rem; font-weight: 500; color: var(--ink-700); }
.checks li { display: inline-flex; align-items: center; gap: 7px; }
.checks .ico { width: 16px; height: 16px; color: var(--teal-700); }
.checks-dark { color: var(--teal-200); flex-direction: column; gap: 10px; margin-top: 32px; font-size: 0.9375rem; }
.checks-dark .ico { color: var(--yellow-500); }

/* The stage: the practice dashboard, with the note it starts from laid over its corner.
   On wide screens the dashboard runs into the right margin, never past the viewport. */
.stage { position: relative; --bleed: clamp(0px, (100vw - 1248px) / 2, 96px); }
.stage-art { position: relative; padding-bottom: 13%; }
.stage-dash { position: relative; width: calc(100% + var(--bleed)); border-radius: 14px; will-change: transform; }
.stage-dash picture, .stage-dash img { display: block; width: 100%; }
/* The screenshot is cropped mid-page; fade its last rows out so no line of text is cut in half. */
.stage-dash::after { content: ""; position: absolute; inset: auto 0 0 0; height: 9%; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 60%); pointer-events: none; }
.stage-pair { position: absolute; left: -7%; bottom: 0; width: 34%; z-index: 2; will-change: transform; }
.stage-note { aspect-ratio: 1000 / 1080; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-xl); transform: rotate(-4deg); transform-origin: 30% 50%; background: #FAF8F0; }
.stage-note img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.stage-plus { position: absolute; right: -22px; top: -20px; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow-500); color: var(--ink-900); display: grid; place-items: center; box-shadow: 0 0 0 6px #fff, var(--shadow-md); }
.stage-plus svg { width: 22px; height: 22px; fill: currentColor; }
.stage figcaption { text-align: right; }
/* Hero: one signed note turning into the practice's operations (a looping clip on sample data). */
.ops-video { display: block; width: calc(100% + var(--bleed)); height: auto; aspect-ratio: 1400 / 1076; background: #fff; }
.js .ops-video { opacity: 0; animation: draft-in 800ms var(--ease) 150ms forwards; }
figcaption, .cap { margin-top: 12px; font-size: 0.75rem; color: var(--ink-500); }

/* hero entrance */
.js .hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise var(--dur-slow) var(--ease) forwards; }
.js .hero-copy > *:nth-child(2) { animation-delay: 60ms; } .js .hero-copy > *:nth-child(3) { animation-delay: 120ms; }
.js .hero-copy > *:nth-child(4) { animation-delay: 180ms; } .js .hero-copy > *:nth-child(5) { animation-delay: 240ms; }
.js .stage-dash { opacity: 0; animation: draft-in 800ms var(--ease) 150ms forwards; }
.js .stage-note { opacity: 0; animation: note-in 700ms var(--ease) 520ms forwards; }
.js .stage-plus { opacity: 0; animation: pop 500ms var(--ease) 950ms forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes note-in { from { opacity: 0; transform: translateY(18px) rotate(-8deg); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes note-in-r { from { opacity: 0; transform: translateY(18px) rotate(8deg); } to { opacity: 1; transform: rotate(4deg); } }
@keyframes draft-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.4); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }

/* Marquee band */
.band { background: var(--teal-700); color: #fff; overflow: hidden; padding: 15px 0; }
.band-track { display: flex; width: max-content; animation: slide 78s linear infinite; }
.band-track span { display: inline-flex; align-items: center; gap: 11px; padding: 0 26px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.band-track svg { width: 13px; height: 13px; fill: var(--yellow-500); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec-white { background: #fff; }
.sec-paper { background: var(--paper-100); }
.sec-dark { background: var(--teal-900); color: #fff; }
.sec-deep { background: var(--teal-950); color: #fff; padding-bottom: 0; }
.sec-dark .eyebrow, .sec-deep .eyebrow { color: var(--yellow-500); }
.sec-head { max-width: 800px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-lede { margin-top: 18px; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-700); max-width: 56ch; }
.sec-dark .sec-lede, .sec-deep .sec-lede { color: var(--teal-200); }
.sec-deep .sec-lede a { color: var(--yellow-500); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Problem */
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.pains li { padding: 30px 28px 6px 0; border-right: 1px solid var(--line); }
.pains li + li { padding-left: 28px; }
.pains li:last-child { border-right: 0; padding-right: 0; }
.pain-n { display: block; font-size: 3.5rem; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--teal-700); font-variant-numeric: tabular-nums; margin-bottom: 22px; }
.pains h3 { margin-bottom: 10px; }
.pains p { color: var(--ink-700); }
.source { margin-top: 44px; max-width: 76ch; font-size: 0.875rem; color: var(--ink-500); padding-left: 16px; border-left: 3px solid var(--yellow-500); }

/* The practice workspace: product screens, then the administrator's questions */
.ops { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.ops-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xs); transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.ops-card:hover { box-shadow: var(--shadow-lg); border-color: var(--teal-300); }
.ops-wide { grid-column: span 7; }
.ops-narrow { grid-column: span 5; }
.ops-copy { padding: 28px 28px 24px; }
.ops-copy h3 { font-size: 1.375rem; margin-bottom: 8px; }
.ops-copy p { color: var(--ink-700); max-width: 46ch; }
.ops-shot { flex: 1; display: flex; align-items: flex-end; margin-top: auto; padding: 28px 28px 0; background: var(--paper-100); border-top: 1px solid var(--line); overflow: hidden; }
.ops-shot img { width: 100%; border-radius: 12px 12px 0 0; box-shadow: var(--shadow-lg); transition: transform var(--dur-slow) var(--ease); }
.ops-narrow .ops-shot { justify-content: center; }
.ops-narrow .ops-shot img { max-width: 400px; }
.ops-bleed { align-items: flex-start; height: 0; min-height: 360px; padding-right: 0; }
.ops-bleed img { flex: none; width: 112%; max-width: none; border-radius: 0; box-shadow: none; }
.ops-narrow:hover .ops-shot img { transform: translateY(-6px); }
.ops-cap { margin-top: 16px; }

.admin { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; margin-top: clamp(40px, 5vw, 64px); padding: clamp(28px, 4vw, 48px); background: var(--teal-900); color: #fff; border-radius: var(--radius-xl); background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgb(143 208 212 / 0.07) 35px 36px); }
.admin .eyebrow { color: var(--yellow-500); }
.admin-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; }
.admin-head p:last-child { margin-top: 14px; color: var(--teal-200); }
.asks { border-top: 1px solid rgb(143 208 212 / 0.25); }
.asks li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgb(143 208 212 / 0.25); font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.005em; }
.asks .pill { flex: none; background: rgb(143 208 212 / 0.16); color: var(--teal-100); white-space: nowrap; }

/* Steps */
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding: 40px 0; }
.step + .step { border-top: 1px solid var(--line); }
.step-flip .step-copy { order: 2; }
.step-n { display: inline-flex; font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--teal-700); margin-bottom: 14px; }
.step h3 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
.step-copy p { color: var(--ink-700); font-size: 1.125rem; max-width: 42ch; }
.step-copy .try { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-900); }
.try .dot { margin-top: 4px; }
.step-media { min-width: 0; }
.step-wide { grid-template-columns: 1fr; gap: 32px; }
.step-wide .step-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
.step-wide .step-copy .step-n { grid-column: 1 / -1; justify-self: start; }
.step-wide .step-copy h3 { margin: 0; }
.step-wide .step-copy p:last-child { max-width: 56ch; padding-top: 6px; }

.phone { width: min(300px, 78%); margin-inline: auto; padding: 9px; border-radius: 40px; background: var(--ink-900); box-shadow: var(--shadow-xl); }
.phone img { border-radius: 31px; width: 100%; aspect-ratio: 900 / 1700; object-fit: cover; object-position: top; }
.step-media figcaption { text-align: center; }
.browser { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow-xl); }
.browser-bar { display: flex; gap: 6px; padding: 11px 14px; background: var(--paper-200); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser img { width: 100%; }

/* Flag demo: the product's review panel, live */
.demo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-lg); max-width: 560px; margin-inline: auto; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo blockquote { margin-top: 16px; padding: 14px 16px; background: var(--paper-100); border-radius: var(--radius-md); font-size: 1.0625rem; line-height: 1.45; color: var(--ink-700); font-style: italic; }
.flags { margin-top: 16px; padding: 16px 16px 8px; background: var(--yellow-50); border: 1px solid var(--yellow-200); border-left: 3px solid var(--yellow-500); border-radius: var(--radius-lg); }
.flags legend { display: flex; align-items: center; gap: 8px; float: left; width: 100%; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; }
.flags label { clear: both; display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; font-size: 0.9rem; line-height: 1.45; cursor: pointer; transition: opacity var(--dur) var(--ease); }
.flags label + label { border-top: 1px solid rgb(201 162 0 / 0.25); }
.flags input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--ink-500); border-radius: var(--radius-xs); background: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.flags input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform var(--dur-fast) var(--ease); }
.flags input:checked { background: var(--teal-700); border-color: var(--teal-700); }
.flags input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.flags label:has(input:checked) span { color: var(--ink-500); text-decoration: line-through; text-decoration-color: rgb(86 101 103 / 0.5); }
.demo-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.demo-foot .btn-primary { flex: 1; }
.demo-done { margin-top: 12px; font-size: 0.9rem; color: var(--success); font-weight: 500; min-height: 1.4em; }
.demo.is-signed .flags { background: var(--success-bg); border-color: #BFE3CD; border-left-color: var(--success); }
.demo.is-signed .flags label { opacity: 0.75; }
.step-media .cap { text-align: center; }

/* The plus */
.plus-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.plus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgb(143 208 212 / 0.25); }
.plus-grid li { padding: 26px 28px 28px 0; border-bottom: 1px solid rgb(143 208 212 / 0.25); transition: background-color var(--dur) var(--ease); }
.plus-grid li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid rgb(143 208 212 / 0.25); }
.plus-grid h3 { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; margin-bottom: 10px; }
.plus-grid h3 svg { width: 17px; height: 17px; fill: var(--yellow-500); flex: none; transition: transform var(--dur) var(--ease); }
.plus-grid li:hover h3 svg { transform: rotate(90deg); }
.plus-grid p { color: var(--teal-200); font-size: 1rem; }
.sheet-fig { position: sticky; top: 100px; }
.sheet { background: #fff; color: var(--ink-900); border-radius: 6px; padding: 30px 30px 26px; box-shadow: var(--shadow-xl); transform: rotate(1.4deg); background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(0 112 120 / 0.08) 31px 32px); background-position: 0 14px; }
.sheet-title { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--teal-700); margin-bottom: 14px; }
.sheet dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; font-size: 1rem; line-height: 32px; }
.sheet dt { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600; color: var(--ink-500); white-space: nowrap; }
.sheet dd { min-width: 0; }
.sheet-fig figcaption { color: var(--teal-300); margin-top: 22px; }

/* Roles */
.roles { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.role-tabs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.role-tabs button { display: grid; gap: 0; text-align: left; padding: 18px 16px 18px 20px; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; background: transparent; cursor: pointer; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.role-tabs b { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-700); transition: color var(--dur-fast) var(--ease); }
.role-tabs span { display: grid; grid-template-rows: 0fr; color: var(--ink-700); font-size: 0.9375rem; line-height: 1.5; transition: grid-template-rows var(--dur) var(--ease), margin var(--dur) var(--ease), opacity var(--dur) var(--ease); opacity: 0; overflow: hidden; }
.role-tabs span::before { content: none; }
.role-tabs button > span { min-height: 0; }
.role-tabs button:hover { background: var(--paper-100); }
.role-tabs button:hover b { color: var(--ink-900); }
.role-tabs button[aria-selected="true"] { background: var(--teal-50); border-left-color: var(--yellow-500); }
.role-tabs button[aria-selected="true"] b { color: var(--teal-800); }
.role-tabs button[aria-selected="true"] span { display: block; opacity: 1; margin-top: 6px; }
.role-tabs button:not([aria-selected="true"]) span { display: none; }
.role-img { aspect-ratio: 2000 / 1294; background: var(--paper-100); }
.role-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 220ms var(--ease); }
.role-img img.is-out { opacity: 0; }

/* Shown on phones, where the tabs are chips */
.role-desc { display: none; margin: 0 0 4px; font-size: 1rem; color: var(--ink-700); }

/* Security */
.sec-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-xs); }
.list { display: grid; gap: 12px; margin-top: 20px; font-size: 0.9688rem; }
.list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; align-items: start; }
.list .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--teal-300); }
.list .ico.ok { color: var(--teal-700); }
.list .ico.later { color: var(--ink-500); }
.closing { margin-top: 36px; max-width: 62ch; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-xl); padding: 32px 28px 28px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.plan:hover { box-shadow: var(--shadow-lg); border-color: var(--teal-300); }
.js .plan.reveal.in:hover { transform: translateY(-4px); }
.plan h3 { font-size: 1.125rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 18px; }
.price b { font-size: 3rem; line-height: 1; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.price span { font-size: 0.875rem; color: var(--ink-500); }
.plan-for { margin-top: 16px; font-size: 0.9375rem; color: var(--ink-700); min-height: 3em; }
.plan .list { margin: 22px 0 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.plan .btn { margin-top: auto; }
.plan-feature { background: var(--teal-900); color: #fff; border-color: var(--teal-900); box-shadow: var(--shadow-lg); }
.plan-feature:hover { border-color: var(--teal-900); box-shadow: var(--shadow-xl); }
.plan-feature .price span, .plan-feature .plan-for { color: var(--teal-200); }
.plan-feature .list { border-top-color: rgb(143 208 212 / 0.25); }
.plan-feature .list .ico { color: var(--yellow-500); }
.footnote { margin-top: 28px; font-size: 0.875rem; color: var(--ink-500); max-width: 80ch; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 108px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; list-style: none; transition: color var(--dur-fast) var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-700); }
.faq summary .ico { width: 20px; height: 20px; flex: none; color: var(--teal-700); transition: transform var(--dur) var(--ease); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 44px 24px 0; color: var(--ink-700); max-width: 68ch; }

/* Final CTA */
.demo-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.form { background: var(--teal-900); border: 1px solid rgb(143 208 212 / 0.22); border-radius: var(--radius-xl); padding: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; }
.field label { font-size: 0.8125rem; font-weight: 500; color: var(--teal-200); }
.field input, .field select { width: 100%; height: 46px; padding: 0 12px; border-radius: var(--radius-md); border: 1px solid transparent; background: #fff; color: var(--ink-900); font-size: 1rem; transition: box-shadow var(--dur-fast) var(--ease); }
.field input:focus-visible, .field select:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--yellow-500); border-radius: var(--radius-md); }
.field input[aria-invalid="true"] { box-shadow: 0 0 0 2px #F2A49B; }
.form-err { font-size: 0.875rem; color: #FBC9C2; }
.form-note { font-size: 0.8125rem; line-height: 1.5; color: var(--teal-300); }
.form-note a { color: #fff; }
.closer { margin-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(40px, 5vw, 64px); }
.closer img { width: min(100%, 1100px); margin-inline: auto; }

/* Footer */
.foot { background: var(--teal-950); color: var(--teal-200); border-top: 1px solid rgb(143 208 212 / 0.18); padding: 40px 0 36px; font-size: 0.875rem; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.foot-brand { color: #fff; font-weight: 600; font-size: 1rem; }
.foot-legal { margin-top: 8px; max-width: 46ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot a { color: var(--teal-200); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease), color var(--dur-fast) var(--ease); padding-bottom: 2px; }
.foot a:hover { color: #fff; background-size: 100% 1px; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgb(143 208 212 / 0.18); color: var(--teal-300); font-size: 0.8125rem; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 1180px) and (min-width: 961px) {
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pains li, .pains li + li { padding: 30px 32px 30px 0; }
  .pains li:nth-child(even) { padding: 30px 0 30px 32px; border-right: 0; }
  .pains li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .hero { padding: 36px 0 56px; }
  .stage-pair { left: -1%; width: 30%; }
  .ops-wide, .ops-narrow { grid-column: 1 / -1; }
  .ops-narrow .ops-shot img { max-width: 420px; }
  .admin { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero::before { inset: 42% 0 0 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); }
  .hero-grid, .step, .plus-layout, .roles, .faq-grid, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 44px; }
  .lede { max-width: 44ch; }
  .step { gap: 32px; padding: 36px 0; }
  .step-flip .step-copy { order: 0; }
  .step-wide .step-copy { grid-template-columns: 1fr; row-gap: 14px; }
  .plus-layout { gap: 44px; }
  .sheet-fig { position: static; max-width: 520px; }
  .roles { gap: 28px; }
  .faq-grid { gap: 8px; }
  .faq-grid .sec-head { position: static; margin-bottom: 32px; }
  .demo-grid { gap: 40px; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .plan-for { min-height: 0; }
  .pains { grid-template-columns: 1fr; }
  .pains li, .pains li + li { padding: 26px 0 26px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; }
  .pains li:last-child { border-bottom: 0; }
  .pain-n { grid-row: 1 / span 2; font-size: 2.75rem; margin: 0; }
  .sec-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 40px, 1200px); }
  .nav-in { height: 60px; }
  .brand-by { display: none; }
  html { scroll-padding-top: 68px; }
  .cta-row .btn { flex: 1 1 auto; }
  .checks { flex-direction: column; gap: 8px; }
  .stage-art { padding-bottom: 38%; }
  .stage-dash { border-radius: 12px; }
  .stage-dash .browser-bar { display: none; }
  .stage-dash::after { display: none; } /* the phone screenshot already ends on a clean edge */
  .stage-pair { left: auto; right: -1%; width: 38%; }
  .ops-video { width: 100%; aspect-ratio: 720 / 1080; } /* the portrait cut, chosen by the <source media> query */
  .stage-note { transform: rotate(4deg); transform-origin: 70% 50%; }
  .js .stage-note { animation-name: note-in-r; }
  .stage-plus { right: auto; left: -16px; top: -16px; width: 44px; height: 44px; box-shadow: 0 0 0 4px #fff, var(--shadow-md); }
  .stage-plus svg { width: 17px; height: 17px; }
  .stage figcaption { text-align: left; max-width: 55%; }
  .ops { gap: 16px; }
  .ops-copy { padding: 22px 20px 20px; }
  .ops-shot { padding: 20px 20px 0; }
  .ops-bleed { height: auto; min-height: 0; max-height: 300px; padding-right: 0; }
  .ops-bleed img { width: 150%; }
  .asks li { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 1rem; }
  .band-track span { font-size: 0.9375rem; padding: 0 18px; }
  .plus-grid { grid-template-columns: 1fr; }
  .plus-grid li, .plus-grid li:nth-child(even) { padding: 22px 0; border-left: 0; }
  .sheet { padding: 24px 20px 20px; transform: rotate(0.8deg); }
  .sheet dl { grid-template-columns: 1fr; line-height: 1.45; gap: 2px 0; }
  .sheet dt { margin-top: 10px; }
  .sheet { background-image: none; }
  .demo { padding: 18px; border-radius: var(--radius-lg); }
  .demo-top { flex-wrap: wrap; }
  .role-tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-top: 0; gap: 8px; padding-bottom: 4px; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .role-tabs::-webkit-scrollbar { display: none; }
  .role-tabs button { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-full); }
  .role-tabs b { font-size: 0.875rem; }
  .role-tabs button span, .role-tabs button[aria-selected="true"] span { display: none; }
  .role-tabs button[aria-selected="true"] { background: var(--teal-700); border-color: var(--teal-700); }
  .role-tabs button[aria-selected="true"] b { color: #fff; }
  .role-desc { display: block; }
  .faq summary { font-size: 1.0625rem; padding: 18px 0; }
  .faq .ans p { padding-right: 0; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .foot-in, .foot-base { flex-direction: column; gap: 20px; }
  .price b { font-size: 2.625rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .band-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
