/* Lapse — inner-page styles. Loaded after style.css on every route except the home page. */

/* ---------- active nav state (inner pages only) ---------- */
.link{color:var(--grey)}
.link[aria-current="page"]{color:var(--white)}
.link[aria-current="page"]::after{content:"";display:block;width:14px;height:1px;margin-top:6px;background:var(--white)}
.menu-link[aria-current="page"]{color:var(--white)}

/* ---------- page shell ---------- */
.page{width:100%;max-width:var(--canvas);margin:0 auto;padding:0 20px}
.page-head{display:flex;flex-direction:column;gap:24px;max-width:760px;padding:100px 0 0}
.page-head .t-h1{max-width:720px}
.page-intro{color:var(--grey);font-size:18px;line-height:1.4em;max-width:620px}
.section{width:100%;max-width:var(--canvas);margin:0 auto;padding:100px 20px;display:flex;flex-direction:column;gap:48px}
.section--tight{padding:64px 20px;gap:40px}
.section-head{display:flex;flex-direction:column;gap:16px;max-width:680px}
@media (width<=1199.98px){.page-head{padding:80px 0 0}.section{padding:80px 20px}}
@media (width<=809.98px){.page-head{padding:64px 0 0}.section{padding:64px 20px;gap:40px}}

/* ---------- about ---------- */
.about-hero{width:100%;max-width:var(--canvas);margin:0 auto;padding:100px 20px 0;display:flex;flex-direction:column;gap:48px}
.about-hero-media{border-radius:16px;overflow:clip;width:100%}
.about-hero-media img{width:100%;height:auto;display:block}
.about-logos{display:flex;flex-direction:column;gap:20px}
.about-logos .t-eyebrow{color:var(--dark-grey)}
.logo-row{display:flex;flex-wrap:wrap;align-items:center;gap:32px}
.logo-row img{height:22px;width:auto;opacity:.6}
.about-story{display:flex;flex-direction:column;gap:20px;max-width:760px}
.about-story .t-body-m{font-size:17px;line-height:1.5em;color:var(--grey)}
.about-rules{display:flex;flex-direction:column;gap:32px}
.rules-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.rule-card{background:var(--surface);border-radius:16px;padding:32px;display:flex;flex-direction:column;gap:24px;overflow:clip}
.rule-texture{width:100%;height:140px;object-fit:cover;border-radius:8px;display:block}
.rule-num{font-family:var(--font-mono);letter-spacing:.8px;color:var(--dark-grey);font-size:11px}
.rule-text{color:var(--white);font-size:20px;line-height:1.3em;font-weight:400}
.about-team{display:flex;flex-direction:column;gap:40px}
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.team-card{display:flex;flex-direction:column;gap:16px}
.team-photo{border-radius:16px;overflow:clip;aspect-ratio:1/1}
.team-photo img{width:100%;height:100%;object-fit:cover;display:block}
.team-name{color:var(--white);font-size:16px;line-height:1.2em}
.team-role{font-family:var(--font-mono);color:var(--dark-grey);font-size:12px;line-height:1.2em}
@media (width<=1199.98px){.rules-grid{grid-template-columns:1fr}.team-grid{grid-template-columns:repeat(2,1fr)}}
@media (width<=809.98px){.about-hero{padding:64px 20px 0}.team-grid{grid-template-columns:1fr 1fr}.rule-card{padding:24px}}

/* ---------- pricing compare ---------- */
.compare-wrap{width:100%;overflow:clip;border-radius:16px;background:var(--surface)}
.compare{width:100%;border-collapse:collapse}
.compare th,.compare td{padding:18px 20px;text-align:left;border-bottom:1px solid rgba(255,255,255,.08);vertical-align:middle}
.compare thead th{color:var(--white);font-weight:400;font-size:16px}
.compare thead th:first-child{width:34%}
.compare tbody th{color:var(--white);font-weight:400;font-size:14px}
.compare td{color:var(--grey);font-size:14px;line-height:1.3em}
.compare-group-head td{color:var(--dark-grey);font-family:var(--font-mono);font-size:11px;letter-spacing:.8px;text-transform:uppercase;padding-top:32px;border-bottom:1px solid rgba(255,255,255,.12)}
.compare .yes{color:var(--white)}
.compare .no{color:var(--dark-grey)}
.compare-foot{color:var(--dark-grey);font-size:14px;padding:24px 20px 0}
@media (width<=809.98px){.compare-wrap{overflow-x:auto}.compare{min-width:640px}}

/* ---------- forms (contact + demo) ---------- */
.contact-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:48px;align-items:start}
.form{display:flex;flex-direction:column;gap:24px;width:100%}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.field{display:flex;flex-direction:column;gap:8px}
.field--full{grid-column:1 / -1}
.field-label{font-family:var(--font-mono);color:var(--dark-grey);font-size:12px;letter-spacing:.8px;text-transform:uppercase;line-height:1.2em}
.input,.textarea,.select{background:var(--surface);border:1px solid var(--grey-20);border-radius:12px;color:var(--white);font-family:var(--font);font-size:16px;line-height:1.3em;padding:14px 16px;width:100%;outline:none;transition:border-color .3s var(--ease-soft)}
.input:focus,.textarea:focus,.select:focus{border-color:var(--grey)}
.textarea{min-height:140px;resize:vertical}
.select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'><path d='M 5 9 L 12 16 L 19 9' fill='none' stroke='%236d6a6a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");background-repeat:no-repeat;background-position:right 16px center;padding-right:44px}
.input::placeholder,.textarea::placeholder{color:var(--dark-grey)}
.form-note{color:var(--dark-grey);font-size:13px;line-height:1.4em}
.form-submit{margin-top:8px}
.form-side{display:flex;flex-direction:column;gap:20px}
.channel{background:var(--surface);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:6px}
.channel-label{font-family:var(--font-mono);color:var(--dark-grey);font-size:11px;letter-spacing:.8px;text-transform:uppercase}
.channel-value{color:var(--white);font-size:16px;line-height:1.3em}
.channel-value a{color:var(--white)}
.next-steps{background:var(--surface);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:16px}
.next-steps h3{color:var(--white);font-size:18px;font-weight:400}
.next-steps ol{list-style:none;counter-reset:step;display:flex;flex-direction:column;gap:14px}
.next-steps li{counter-increment:step;display:flex;gap:12px;color:var(--grey);font-size:14px;line-height:1.4em}
.next-steps li::before{content:counter(step,decimal-leading-zero);flex:none;font-family:var(--font-mono);color:var(--dark-grey);font-size:12px}
@media (width<=1199.98px){.contact-grid{grid-template-columns:1fr;gap:40px}}
@media (width<=809.98px){.form-grid{grid-template-columns:1fr}}

/* ---------- blog index: hero ---------- */
.blog-hero{display:flex;flex-direction:column;align-items:center;gap:80px;max-width:var(--canvas);margin:0 auto;padding:100px 20px 40px}
.bh-head{display:flex;justify-content:space-between;align-items:flex-end;width:100%}
.bh-title{display:flex;flex-direction:column;gap:24px;width:700px;max-width:100%}
.bh-blurb{width:273px;max-width:100%}
.bh-featured{display:flex;gap:8px;width:100%;height:577px}
.bh-content{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;flex:none;width:400px;padding:32px;border-radius:16px;overflow:clip;background:var(--surface);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}
.bh-top{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}
.bh-copy{display:flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%}
.bh-copy h2,.bh-copy p{width:100%}
.bh-cover{flex:1 1 0;min-width:0;height:100%;border-radius:16px;overflow:clip}
.bh-cover img{width:100%;height:100%;object-fit:cover}
@media (width<=1199.98px){.blog-hero{gap:48px}.bh-head{flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:24px}.bh-title,.bh-blurb{width:100%}.bh-featured{flex-direction:column;height:auto}.bh-content{width:100%;justify-content:flex-start;gap:24px}.bh-cover{flex:none;width:100%;height:320px}}
@media (width<=809.98px){.blog-hero{gap:40px;padding:64px 20px 32px}.bh-head{gap:20px}.bh-content{padding:20px}.bh-cover{height:220px}}

/* ---------- blog index: articles list + tabs ---------- */
.blog-articles{display:flex;flex-direction:column;align-items:center;gap:20px;max-width:var(--canvas);margin:0 auto;padding:0 20px 100px}
.ba-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:16px;width:100%}
.ba-tab{display:flex;align-items:center;justify-content:center;padding:4px 12px;border-radius:8px;overflow:clip;font-family:var(--font-mono);font-size:10px;line-height:1.2em;letter-spacing:.8px;text-transform:uppercase;white-space:nowrap;user-select:none;color:var(--dark-grey);background:transparent;transition:background-color .4s var(--ease-out),color .4s var(--ease-out)}
.ba-tab[aria-pressed="true"]{background:var(--white);color:var(--black)}
.ba-list{display:grid;grid-template-columns:repeat(2,minmax(280px,1fr));gap:20px 8px;justify-content:start;width:100%}
.ba-card{display:flex;align-items:center;gap:8px;height:317px;border-radius:16px;overflow:clip;background:var(--surface)}
.ba-card[hidden]{display:none}
.ba-content{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:40px;flex:1 1 0;min-width:0;padding:32px}
.ba-content h3{width:100%}
.ba-cover{flex:none;width:307px;height:100%;overflow:clip}
.ba-cover img{width:100%;height:100%;object-fit:cover}
.ba-empty{grid-column:1 / -1;display:flex;align-items:center;padding:32px;border-radius:16px;border:1px dashed var(--surface)}
.ba-empty p{color:var(--dark-grey);flex:1}
@media (width<=1199.98px){.ba-list{display:flex;flex-direction:column;gap:20px}.ba-card,.ba-empty{width:100%}}
@media (width<=809.98px){.blog-articles{padding:0 20px 64px}.ba-tabs{flex-wrap:nowrap;gap:8px;padding-bottom:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.ba-tabs::-webkit-scrollbar{display:none}.ba-tab{flex:none}.ba-list{gap:16px}.ba-card{flex-direction:column;align-items:flex-start;height:auto}.ba-content{flex:none;width:100%;gap:20px;padding:20px}.ba-cover{order:-1;width:100%;height:180px}}
@media (prefers-reduced-motion:reduce){.ba-tab{transition:none}}

/* ---------- article page: top ---------- */
.article-top{display:flex;flex-direction:column;align-items:center;gap:40px;max-width:var(--canvas);margin:0 auto;padding:100px 20px 0}
.at-header{display:flex;flex-direction:column;align-items:center;gap:20px;width:100%}
.at-meta{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap}
.at-header>h1,.at-header>p{width:700px;max-width:100%;text-align:center}
.at-cover{width:100%;height:400px;object-fit:cover;border-radius:16px}
@media (width<=1199.98px){.at-header>h1,.at-header>p{width:100%}.at-cover{height:320px}}
@media (width<=809.98px){.article-top{gap:32px;padding:64px 20px 0}.at-header{gap:16px}.at-cover{height:220px}}

/* ---------- article page: body / prose ---------- */
.article-body{display:flex;flex-direction:column;align-items:center;gap:40px;max-width:var(--canvas);margin:0 auto;padding:40px 20px}
.prose,.ab-author{width:700px;max-width:100%}
.prose{display:flex;flex-direction:column}
.prose>*{margin:0}
.prose p{font-size:16px;line-height:1.5em;color:var(--grey)}
.prose>p,.prose>ul,.prose>h3{margin-top:20px}
.prose>h2,.prose>h4,.prose>h5{margin-top:40px}
.prose>:first-child{margin-top:0}
.prose h2,.prose h3,.prose h4,.prose h5{font-weight:400;line-height:1.1em;color:var(--white)}
.prose h2{font-size:32px}
.prose h3{font-size:24px}
.prose h4{font-size:20px}
.prose h5{font-size:18px;line-height:1.2em}
.prose strong{font-weight:600;color:var(--white)}
.prose a{color:var(--white);text-decoration:underline;text-underline-offset:2px}
.prose>ul{padding-left:20px;font-size:16px;line-height:1.5em;color:var(--grey)}
.prose>ul li{margin-top:10px}
.prose>ul li:first-child{margin-top:0}

/* callout: > **Title** then body */
.prose>blockquote{display:flex;flex-direction:column;gap:20px;margin:20px 0;padding:32px;border-radius:16px;background:var(--surface)}
.prose>blockquote p{margin:0}
.prose>blockquote>p:first-child{line-height:1.1em;color:var(--white)}
.prose>blockquote>p:first-child strong{font-weight:400}

/* step list: ordered list, numbered 01, 02 … */
.prose>ol{list-style:none;counter-reset:step;margin:20px 0}
.prose>ol li{counter-increment:step;display:flex;align-items:flex-start;gap:16px;padding:17px 0;font-size:16px;line-height:1.5em;color:var(--grey);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.prose>ol li::before{content:counter(step,decimal-leading-zero);flex:none;width:34px;font-family:var(--font-mono);font-size:14px;line-height:1.5em;color:var(--dark-grey)}
.prose>ol li:first-child{padding-top:37px}
.prose>ol li:last-child{padding-bottom:37px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(255,255,255,.08)}

/* figure: horizontal bar chart */
.prose>figure.figure{display:flex;flex-direction:column;margin:20px 0;padding:34px 36px 28px;border-radius:16px;overflow:clip;background:var(--surface)}
.prose .figure p{margin:0}
.prose .figure figcaption{display:flex;flex-direction:column;gap:8px}
.prose .figure-title{line-height:1.1em;color:var(--white)}
.prose .figure-subtitle,.prose .figure-axis p,.prose .figure-row p:nth-child(n+2){font-family:var(--font-mono);font-size:14px;line-height:1.2em;color:var(--dark-grey)}
.prose .figure-rows{display:flex;flex-direction:column;gap:16px;padding:30px 0 20px}
.prose .figure-row{display:grid;grid-template-columns:minmax(0,1fr) 66px;grid-template-rows:auto auto;column-gap:18px}
.prose .figure-row p:nth-child(1){grid-area:1 / 1}
.prose .figure-row p:nth-child(n+2){grid-area:1 / 2 / 3 / 3;align-self:center;text-align:right}
.prose .figure-row p:nth-child(2){margin-bottom:calc(1.2em + 5px);color:var(--white)}
.prose .figure-row p:nth-child(3){margin-top:calc(1.2em + 5px)}
.prose .figure-row::before,.prose .figure-row::after{content:"";grid-area:2 / 1;height:12px;margin-top:9px;border-radius:0 4px 4px 0}
.prose .figure-row::before{background:var(--surface)}
.prose .figure-row::after{width:var(--bar,0%);max-width:100%;background:var(--grey-20)}
.prose .figure-row.is-outline p:nth-child(1){color:var(--white)}
.prose .figure-row.is-outline::after{background:none;border:1px dashed rgba(255,255,255,.35)}
.prose .figure-axis{display:flex;justify-content:space-between;align-items:center;padding:14px 84px 20px 0;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.prose .figure .figure-caption{margin-top:18px;font-size:14px;line-height:1.2em;color:var(--dark-grey)}

/* author footer */
.ab-author{display:flex;align-items:flex-start;gap:16px;padding:20px 0;box-shadow:inset 0 1px 0 var(--grey-20)}
.ab-author img{flex:none;width:32px;height:32px;border-radius:999px;object-fit:cover}
.ab-name{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.ab-label{font-size:16px;line-height:1.1em;color:var(--grey)}
@media (width<=1199.98px){.prose,.ab-author{width:100%}.prose h2{font-size:28px}}
@media (width<=809.98px){.article-body{gap:32px;padding:32px 20px}.prose h2{font-size:26px}.prose>figure.figure{padding:24px 20px}}

/* ---------- related reading ---------- */
.related{display:flex;flex-direction:column;align-items:flex-start;gap:80px;max-width:var(--canvas);margin:0 auto;padding:40px 20px 100px}
.related h2{width:700px;max-width:100%}
@media (width<=1199.98px){.related{gap:48px}.related h2{width:100%}}
@media (width<=809.98px){.related{gap:32px;padding:32px 20px 64px}}
