/* Home page only. Shared header, footer, buttons and type live in styles.css. */

.home{
  --grid-line:rgba(21,32,31,.055);
  --bubble:#ffffff;
  --chat-bar:#20302e;
  --mark:#fde7d4;
  --check-bg:#fff4e2;
  --check-line:#e9b86a;
  --check-ink:#6b3f07;
}
html[data-theme="dark"] .home{
  --grid-line:rgba(241,243,239,.045);
  --bubble:#1d2927;
  --chat-bar:#0d1514;
  --mark:#4a2c14;
  --check-bg:#2b2212;
  --check-line:#8a6424;
  --check-ink:#f3d7a6;
}

/* Header sits on the light hero until the page scrolls. */
.home .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]){color:var(--ink)}
.home .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .desktop-nav a,
.home .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .text-link{color:var(--ink-soft)}
.home .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .desktop-nav a:hover,
.home .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .text-link:hover{color:var(--ink)}
.home .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .icon-button{color:var(--ink);border-color:var(--line-strong);background:transparent}
.home .site-header:not([data-scrolled="true"]):not([data-menu-open="true"]) .brand-name small{color:var(--orange)}

.button-outline{background:transparent;color:var(--ink);border-color:var(--line-strong)}
.button-outline:hover{border-color:var(--ink)}
.button-teal{background:var(--teal);color:#fff;border-color:var(--teal)}
.text-arrow{display:inline-block;margin-top:22px;color:var(--ink);font-weight:700;text-underline-offset:4px}

/* ---------- Hero ---------- */
.hero{
  padding:148px 0 104px;
  background-color:var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px,transparent 1px),
    linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size:28px 28px;
  border-bottom:1px solid var(--line);
}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);gap:72px;align-items:center}
.hero-kicker{margin:0 0 20px;color:var(--teal);font-size:1rem;font-weight:600}
.hero h1{max-width:640px;font-size:5.4rem;line-height:.92;color:var(--ink)}
.hero-lede{max-width:560px;margin-top:26px;font-size:1.12rem;line-height:1.65}
.hero .button-row{margin-top:34px}

.demo{position:relative;margin:0;padding-bottom:8px}
.chat{width:82%;border-radius:12px;overflow:hidden;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.chat-top{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--chat-bar);color:#f7f7f2}
.chat-top strong,.chat-top small{display:block;line-height:1.3}
.chat-top strong{font-size:.9rem}
.chat-top small{font-size:.78rem;color:rgba(247,247,242,.7)}
.chat-avatar{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--teal);font-size:.75rem;font-weight:700}
.bubble{position:relative;margin:16px 18px 20px;padding:12px 14px;border-radius:0 10px 10px 10px;background:var(--bubble);border:1px solid var(--line)}
.bubble .line{margin:0;padding:1px 6px;border-radius:4px;color:var(--ink);font-size:.92rem;line-height:1.5}
.bubble .line.muted{color:var(--muted)}
.bubble .line.strong{margin-top:6px;font-weight:700}
.bubble .photos{display:flex;align-items:center;gap:6px;margin-top:8px;color:var(--muted);font-size:.85rem}
.bubble .photos span{width:26px;height:26px;border-radius:4px;background:linear-gradient(135deg,#9fb3ac,#5d7a72)}

.record{position:relative;width:84%;margin:-22px 0 0 auto;padding:18px 18px 16px;border-radius:10px;background:var(--surface);border:1px solid var(--line-strong);box-shadow:var(--shadow)}
.record-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.record-top strong{font-size:.98rem}
.chip{padding:3px 10px;border-radius:999px;font-size:.78rem;font-weight:600}
.chip-draft{background:var(--surface-soft);color:var(--ink-soft);border:1px solid var(--line)}
.record-team{margin-top:4px;font-size:.85rem;color:var(--muted)}
.record table{width:100%;margin-top:12px;border-collapse:collapse;font-size:.88rem}
.record th{padding:0 8px 6px 0;text-align:left;font-weight:600;color:var(--muted);border-bottom:1px solid var(--line)}
.record td{padding:8px 8px 8px 0;border-bottom:1px solid var(--line);color:var(--ink)}
.record td:first-child{font-weight:700}
.record-check{margin-top:12px;padding:10px 12px;border-radius:6px;background:var(--check-bg);border-left:3px solid var(--check-line);color:var(--check-ink);font-size:.86rem;line-height:1.45}

.demo-caption{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;font-size:.85rem;color:var(--muted)}
.replay{padding:6px 12px;border:1px solid var(--line-strong);border-radius:6px;background:transparent;color:var(--ink);font-size:.82rem;font-weight:600;cursor:pointer}
.replay:hover{border-color:var(--ink)}

/* The one orchestrated moment: the pipeline plays daily -> weekly -> monthly. */
.stage-tabs{display:flex;gap:6px;margin-bottom:14px;padding:4px;width:max-content;border-radius:10px;background:var(--surface-soft);border:1px solid var(--line)}
.stage-tabs button{padding:7px 16px;border:0;border-radius:7px;background:transparent;color:var(--ink-soft);font-size:.92rem;font-weight:600;cursor:pointer}
.stage-tabs button[aria-selected="true"]{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(21,32,31,.15)}
.stages{display:grid}
.stage{grid-area:1/1;align-self:center;opacity:0;visibility:hidden;transition:opacity .35s ease,visibility 0s linear .35s}
.stage.is-current{opacity:1;visibility:visible;transition:opacity .35s ease}
.stage .sheet{margin-top:6px}
.sheet{padding:20px;border-radius:12px;background:var(--surface);border:1px solid var(--line-strong);box-shadow:var(--shadow)}
.chip-teal{background:var(--teal-soft);color:var(--teal);border:1px solid transparent}
.sheet-line{margin-top:6px;font-size:.88rem;color:var(--muted)}
.days{list-style:none;display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:12px 0 0;padding:0}
.days li{padding:6px 0;border-radius:6px;background:var(--teal-soft);color:var(--teal);text-align:center;font-size:.8rem;font-weight:700}
.matrix-mini{width:100%;margin-top:14px;border-collapse:separate;border-spacing:4px;font-size:.8rem}
.matrix-mini th{font-weight:600;color:var(--muted);text-align:left;padding:0 4px}
.matrix-mini .cell{height:34px;border-radius:5px;background:var(--surface-soft);border:1px solid var(--line)}
.matrix-mini .cell span{display:block;padding:0 8px;color:inherit;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.matrix-mini .cell.done{background:var(--teal);border-color:var(--teal);color:#fff}
.matrix-mini .cell.reported{background:var(--mark);border-color:var(--check-line);color:var(--check-ink)}
.sheet-foot{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:.85rem;color:var(--ink-soft);font-weight:600}
.gauges{margin:16px 0 0;display:grid;gap:14px}
.gauges div{display:grid;gap:6px}
.gauges dt{font-size:.88rem;color:var(--ink-soft);font-weight:600}
.gauges dd{margin:0;display:flex;align-items:center;gap:12px}
.gauges b{min-width:44px;text-align:right;font-family:"Barlow Condensed",sans-serif;font-size:1.5rem;line-height:1}
.bar{flex:1;height:10px;border-radius:999px;background:var(--surface-soft);overflow:hidden;border:1px solid var(--line)}
.bar i{display:block;height:100%;border-radius:inherit}
.bar-progress{width:46%;background:var(--teal)}
.bar-time{width:71%;background:var(--orange)}
.bar-money{width:38%;background:var(--ink-soft)}

.js .is-playing .bubble [data-step]{animation:read 1.1s ease both}
.js .is-playing .record [data-step]{animation:land .45s ease both}
.js .is-playing [data-step="1"]{animation-delay:.5s}
.js .is-playing [data-step="2"]{animation-delay:1.3s}
.js .is-playing [data-step="3"]{animation-delay:2.1s}
.js .is-playing [data-step="4"]{animation-delay:2.9s}
.js .is-playing .record [data-step="1"]{animation-delay:.9s}
.js .is-playing .record [data-step="2"]{animation-delay:1.7s}
.js .is-playing .record [data-step="3"]{animation-delay:2.5s}
.js .is-playing .record [data-step="4"]{animation-delay:3.3s}
.js .is-playing .days li{animation:land .3s ease both}
.js .is-playing .days li:nth-child(2){animation-delay:.12s}.js .is-playing .days li:nth-child(3){animation-delay:.24s}
.js .is-playing .days li:nth-child(4){animation-delay:.36s}.js .is-playing .days li:nth-child(5){animation-delay:.48s}
.js .is-playing .days li:nth-child(6){animation-delay:.6s}
.js .is-playing .matrix-mini .cell.done,.js .is-playing .matrix-mini .cell.reported{animation:fill .5s ease both}
.js .is-playing .matrix-mini tr:nth-child(4) .cell{animation-delay:.8s}
.js .is-playing .matrix-mini tr:nth-child(3) .cell{animation-delay:1.1s}
.js .is-playing .matrix-mini tr:nth-child(2) .cell{animation-delay:1.4s}
.js .is-playing .matrix-mini tr:nth-child(1) .cell{animation-delay:1.7s}
.js .is-playing .bar i{animation:grow 1.2s cubic-bezier(.2,.7,.2,1) both .3s}
@keyframes read{0%{background:transparent}25%{background:var(--mark)}100%{background:transparent}}
@keyframes land{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes fill{from{background:var(--surface-soft);color:transparent;border-color:var(--line)}}
@keyframes grow{from{width:0}}

/* ---------- The problem ---------- */
.problem{position:relative;min-height:600px;display:flex;align-items:flex-end;overflow:hidden;background:var(--forest);color:#fff}
.problem-media,.problem-media img{position:absolute;inset:0;width:100%;height:100%}
.problem-media img{object-fit:cover;object-position:62% center}
.problem::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,18,17,.9) 0%,rgba(10,18,17,.72) 45%,rgba(10,18,17,.1) 80%)}
.problem-copy{position:relative;z-index:1;padding:120px 0 84px}
.problem-copy h2{max-width:640px;color:#fff}
.problem-copy p{max-width:560px;margin-top:22px;color:rgba(255,255,255,.82);font-size:1.1rem;line-height:1.7}

/* ---------- One day on site ---------- */
.story-section{background:var(--bg)}
.timeline{position:relative;list-style:none;margin:72px 0 0;padding:0}
.timeline::before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;background:var(--line)}
.moment{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:96px;align-items:center}
.moment+.moment{margin-top:88px}
.moment picture img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:10px;box-shadow:var(--shadow)}
.moment:nth-child(even) picture{order:2}
.moment::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -6px;border-radius:50%;background:var(--orange);box-shadow:0 0 0 6px var(--surface)}
.moment-time{display:flex;align-items:baseline;gap:12px;margin-bottom:10px;color:var(--ink-soft);font-size:.98rem;font-weight:600}
.moment-time time{font-family:"Barlow Condensed",sans-serif;font-size:2.4rem;font-weight:700;line-height:1;color:var(--orange)}
.moment h3{margin:0;font-family:"Barlow Condensed",sans-serif;font-size:2.3rem;line-height:1.05}
.moment-copy>p:last-child{max-width:470px;margin-top:14px;font-size:1.04rem;line-height:1.7}

/* ---------- Human review ---------- */
.review-section{background:var(--surface-soft)}
.review-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:72px;align-items:center}
.review-copy h2{max-width:560px}
.review-copy>p{max-width:560px;margin-top:22px;font-size:1.06rem;line-height:1.7}
.facts{list-style:none;margin:30px 0 0;padding:0}
.facts li{padding:14px 0 14px 22px;border-top:1px solid var(--line);position:relative;color:var(--ink-soft);line-height:1.55}
.facts li::before{content:"";position:absolute;left:0;top:22px;width:10px;height:10px;border-radius:2px;background:var(--teal)}
.facts strong{color:var(--ink)}

.check-card{padding:22px;border-radius:12px;background:var(--check-bg);border:1px solid var(--check-line)}
.check-title{color:var(--check-ink);font-weight:700;font-size:1.05rem}
.check-note{margin-top:4px;color:var(--check-ink);font-size:.92rem;opacity:.85}
.check-photos{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0 0;padding:0}
.check-photos li{position:relative;border-radius:8px;overflow:hidden;background:var(--surface)}
.check-photos img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.check-photos span{position:absolute;left:6px;bottom:6px;padding:3px 8px;border-radius:5px;background:rgba(13,21,20,.82);color:#fff;font-size:.74rem;font-weight:600}
.check-photos span.moved{background:var(--teal);outline:2px solid #fff}
.check-action{margin-top:18px}
.check-action .button{cursor:default}

/* ---------- How a report gets made ---------- */
.section-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:56px;align-items:end}
.section-intro p{font-size:1.08rem;line-height:1.7}
.flow-section{background:var(--surface)}
.flow{list-style:none;counter-reset:flow;margin:64px 0 0;padding:0}
.flow-step{counter-increment:flow;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:64px;align-items:center;padding:48px 0;border-top:1px solid var(--line)}
.flow-label{display:flex;align-items:center;gap:12px;color:var(--teal);font-weight:600}
.flow-label::before{content:counter(flow);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--ink);color:var(--bg);font-family:"Barlow Condensed",sans-serif;font-size:1.2rem;font-weight:700}
.flow-step h3{margin:12px 0 18px;font-family:"Barlow Condensed",sans-serif;font-size:2.5rem;line-height:1}
.flow-step dl{margin:0;display:grid;gap:14px}
.flow-step dl div{display:grid;grid-template-columns:120px 1fr;gap:16px;padding-top:14px;border-top:1px solid var(--line)}
.flow-step dt{font-weight:700;color:var(--ink)}
.flow-step dd{margin:0;color:var(--ink-soft);line-height:1.6}
.product-screen{margin:0;overflow:hidden;border-radius:10px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);aspect-ratio:1440/1000}
.product-screen img{width:100%;height:100%;object-fit:cover;object-position:top left}
.flow-photo{margin:0}
.flow-photo img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:10px;box-shadow:var(--shadow)}

/* ---------- Template ---------- */
.template-section{background:var(--bg)}
.template-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:72px;align-items:center}
.template-grid h2{max-width:560px}
.template-grid>div>p{max-width:560px;margin-top:20px;font-size:1.06rem;line-height:1.7}
.file-card{padding:24px;border-radius:12px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.file{display:flex;align-items:center;gap:14px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.file-icon{display:grid;place-items:center;width:48px;height:58px;border-radius:6px;background:#2b579a;color:#fff;font-size:.7rem;font-weight:700}
.file strong,.file small{display:block}
.file small{color:var(--muted);font-size:.85rem}
.kept{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:10px}
.kept li{position:relative;padding-left:28px;color:var(--ink-soft)}
.kept li::before{content:"";position:absolute;left:4px;top:5px;width:12px;height:7px;border-left:2.5px solid var(--teal);border-bottom:2.5px solid var(--teal);transform:rotate(-45deg)}
.kept-note{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:.9rem}

/* ---------- Ways in ---------- */
.inputs-section{background:var(--surface)}
.inputs{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:24px;margin-top:44px}
.inputs article{padding:24px;border-radius:12px;border:1px solid var(--line);background:var(--bg)}
.inputs h3{margin:0 0 10px;font-family:"Barlow Condensed",sans-serif;font-size:1.8rem;line-height:1.05}
.inputs p{line-height:1.65}
.inputs .input-feature{background:var(--forest);border-color:var(--forest);color:#fff}
.input-feature h3{color:#fff}
.input-feature p{color:rgba(255,255,255,.8)}
.input-feature code{padding:1px 6px;border-radius:4px;background:rgba(255,255,255,.14);color:#fff;font-size:.9em}
.input-feature .text-arrow{color:#fff}

/* ---------- Modules ---------- */
.modules-section{background:var(--forest);color:var(--paper)}
.modules-section h2{color:#fff}
.modules-section .section-intro p{color:rgba(247,247,242,.74)}
.modules{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:48px;border-top:1px solid rgba(255,255,255,.18)}
.modules article{padding:26px 28px 26px 0;border-bottom:1px solid rgba(255,255,255,.18)}
.modules article:not(:nth-child(3n+1)){padding-left:28px;border-left:1px solid rgba(255,255,255,.18)}
.modules h3{margin:0 0 8px;color:#fff;font-family:"Barlow Condensed",sans-serif;font-size:1.7rem}
.modules p{color:rgba(247,247,242,.72);line-height:1.6}
.modules-screen{margin-top:48px;border-color:rgba(255,255,255,.2)}

/* ---------- Why it fits ---------- */
.why-section{background:var(--surface)}
.why-section h2{max-width:760px}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:48px}
.why-grid article{padding-top:22px;border-top:2px solid var(--teal)}
.why-grid h3{margin:0 0 10px;font-family:"Barlow Condensed",sans-serif;font-size:1.8rem;line-height:1.05}
.why-grid p{font-size:1rem;line-height:1.65}

/* ---------- Trust ---------- */
.trust-section{background:var(--surface);border-top:1px solid var(--line)}
.trust-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:72px;align-items:start}
.trust-grid p{font-size:1.06rem;line-height:1.7}

/* ---------- Also-line ---------- */
.also-line{margin-top:28px;font-size:.98rem;line-height:1.8;color:var(--ink-soft)}
.also-line span{display:inline-block;margin:4px 6px 4px 0;padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);font-size:.82rem;font-weight:600;color:var(--ink);white-space:nowrap}

/* ---------- FAQ ---------- */
.faq-section{background:var(--surface);border-top:1px solid var(--line)}
.faq-list{max-width:860px;margin-top:40px;display:grid;gap:14px}
.faq-list article{padding:22px 26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}
.faq-list h3{margin:0 0 8px;font-size:1.05rem;line-height:1.4}
.faq-list p{margin:0;font-size:.95rem;line-height:1.65;color:var(--ink-soft)}
.faq-list p a{text-underline-offset:3px}

/* ---------- Closing ---------- */
.closing-cta{position:relative;overflow:hidden;padding:120px 0;background:var(--forest);color:#fff;text-align:center}
.closing-media,.closing-media img{position:absolute;inset:0;width:100%;height:100%}
.closing-media img{object-fit:cover;object-position:center 35%}
.closing-cta::before{content:"";position:absolute;inset:0;z-index:1;background:rgba(12,21,20,.84)}
.closing-inner{position:relative;z-index:2}
.closing-inner{max-width:780px;margin-inline:auto}
.closing-cta h2{margin-inline:auto;color:#fff}
.closing-cta p{max-width:620px;margin:22px auto 0;color:rgba(255,255,255,.72)}
.closing-cta p.closing-note{margin-top:26px;font-size:.92rem;color:rgba(255,255,255,.64)}
.closing-note a{color:#fff;text-underline-offset:3px}

@media(max-width:1050px){
  .hero h1{font-size:4.5rem}
  .hero-grid,.review-grid{gap:48px}
}
@media(max-width:860px){
  .hero{padding:120px 0 72px}
  .hero-grid,.review-grid,.trust-grid{grid-template-columns:1fr}
  .section-intro,.why-grid,.template-grid,.flow-step{grid-template-columns:1fr;gap:24px}
  .flow-step{gap:28px;padding:36px 0}
  .inputs{grid-template-columns:1fr}
  .modules{grid-template-columns:1fr 1fr}
  .modules article,.modules article:not(:nth-child(3n+1)){padding:22px 20px 22px 0;border-left:0}
  .modules article:nth-child(even){padding-left:20px;border-left:1px solid rgba(255,255,255,.18)}
  .why-grid{gap:28px}
  .timeline::before{left:7px}
  .moment{grid-template-columns:1fr;gap:22px;padding-left:36px}
  .moment:nth-child(even) picture{order:0}
  .moment::after{left:7px;top:6px;margin:0 0 0 -6px}
  .moment+.moment{margin-top:56px}
  .problem{min-height:520px}
}
@media(max-width:620px){
  .hero{padding:104px 0 56px;background-size:22px 22px}
  .hero h1{font-size:3.5rem}
  .hero-lede{font-size:1.02rem}
  .chat,.record{width:100%}
  .record{margin-top:-18px;width:94%}
  .bubble .line{font-size:.88rem}
  .demo-caption{flex-direction:column;align-items:flex-start;gap:10px}
  .problem{min-height:560px}
  .problem::after{background:linear-gradient(0deg,rgba(10,18,17,.94) 0%,rgba(10,18,17,.7) 55%,rgba(10,18,17,.25) 100%)}
  .problem-copy{padding:180px 0 56px}
  .problem-copy p{font-size:1rem}
  .moment{padding-left:28px}
  .moment h3{font-size:2rem}
  .moment-time time{font-size:2rem}
  .check-photos{gap:8px}
  .check-photos span{font-size:.68rem;padding:2px 6px}
  .flow-step h3{font-size:2.1rem}
  .flow-step dl div{grid-template-columns:1fr;gap:4px}
  .modules{grid-template-columns:1fr}
  .modules article:nth-child(even){padding-left:0;border-left:0}
  .stage-tabs{width:100%}
  .stage-tabs button{flex:1}
  .days li{font-size:.72rem}
  .matrix-mini{font-size:.74rem}
  .closing-cta{padding:76px 0}
}

/* ---------- Demo request dialog ---------- */
.demo-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 30px 80px -30px rgba(0,0,0,.45)}
.demo-dialog::backdrop{background:rgba(10,16,15,.6)}
.demo-form{display:flex;flex-direction:column;max-height:calc(100dvh - 34px)}
.demo-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 14px;border-bottom:1px solid var(--line)}
.demo-head h2{margin:0;font-family:"Barlow Condensed",sans-serif;font-size:2rem;line-height:1}
.demo-head p{margin-top:8px;font-size:.95rem}
.demo-close{flex:none;width:44px;height:44px;border:0;border-radius:999px;background:transparent;color:var(--ink-soft);font-size:1.6rem;line-height:1;cursor:pointer}
.demo-close:hover{background:var(--surface-soft);color:var(--ink)}
.demo-fields{display:grid;gap:14px;padding:18px 24px;overflow-y:auto}
.demo-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.demo-field{display:grid;gap:6px;font-size:.92rem;font-weight:600;color:var(--ink)}
.demo-field em{color:#b42318;font-style:normal}
.demo-field input,.demo-field select,.demo-field textarea{width:100%;min-height:46px;box-sizing:border-box;padding:10px 12px;border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--surface);color:var(--ink);font:inherit;font-weight:400}
.demo-field textarea{min-height:88px;resize:vertical}
.demo-field input:focus,.demo-field select:focus,.demo-field textarea:focus{outline:2px solid var(--teal);outline-offset:1px;border-color:var(--teal)}
.demo-field [aria-invalid="true"]{border-color:#b42318}
.demo-hint{margin-top:-6px;font-size:.85rem}
.demo-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.demo-status{margin:0 24px;font-size:.95rem;font-weight:600}
.demo-status:empty{display:none}
.demo-status[data-tone="error"]{color:#b42318}
.demo-status[data-tone="success"]{padding:14px 16px;border-radius:var(--radius);background:var(--teal-soft);color:var(--ink)}
.demo-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:16px 24px 22px}
.demo-form.is-sent .demo-fields,.demo-form.is-sent [data-demo-submit]{display:none}
.demo-form.is-sent .demo-status{margin-top:18px}
@media (max-width:560px){
  .demo-pair{grid-template-columns:1fr}
  .demo-actions .button{width:100%}
}
html[data-theme="dark"] .demo-field em,html[data-theme="dark"] .demo-status[data-tone="error"]{color:#fda29b}
html[data-theme="dark"] .demo-field [aria-invalid="true"]{border-color:#fda29b}
/* The quiet button is styled for dark sections; inside the dialog it needs an outline. */
.demo-actions .button-quiet{border-color:var(--line-strong);background:var(--surface);color:var(--ink)}
.demo-actions .button-quiet:hover{border-color:var(--teal);color:var(--ink)}

.founder-section{background:var(--bg);border-top:1px solid var(--line)}
.founder-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:72px;align-items:start}
.founder-person{display:flex;align-items:center;gap:16px;margin-top:34px}
.founder-photo{flex:none;width:96px;height:96px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--orange)}
.founder-person p{margin:0;display:grid;gap:2px;line-height:1.35}
.founder-person strong{color:var(--ink);font-size:1.12rem}
.founder-person span{color:var(--muted);font-size:.95rem}
.founder-story p{font-size:1.06rem;line-height:1.7;color:var(--ink-soft);margin:0 0 18px}
.founder-contact{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.founder-address{margin-top:14px!important;font-size:.95rem!important;color:var(--muted)!important}
.founder-address a{color:var(--ink);text-underline-offset:3px}
@media(max-width:860px){.founder-grid{grid-template-columns:1fr;gap:32px}}
@media(max-width:560px){.founder-contact .button{width:100%}}
