/* DAIS shared styles */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0D0D0D; color: #F5F5F3; font-family: Inter, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: #7DD9CE; text-decoration: none; }
a:hover { color: #B8EDE8; }
::selection { background: #1ABCAA; color: #04211d; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }

@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes flowDot { 0% { left: -2%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 102%; opacity: 0; } }
@keyframes glowPulse { 0%,100% { opacity: .55; } 50% { opacity: .9; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 clamp(20px,5vw,64px); background: rgba(13,13,13,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #1A1A1A; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: clamp(18px,3vw,40px); }
.nav-links { display: none; gap: 32px; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: #ADADAB; }
.nav-links a:hover { color: #F5F5F3; }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Mobile menu */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 9px; background: none; border: 1px solid #2D2D2D; border-radius: 2px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: #F5F5F3; border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid #7DD9CE; outline-offset: 2px; }
@media (max-width: 899px) {
  .nav-toggle { display: flex; flex: none; }
  .site-nav .btn-primary { display: none; }
}
.site-nav .btn-primary { white-space: nowrap; }
@media (max-width: 479px) {
  .site-nav { padding: 0 16px; }
  .nav-logo img { height: 20px; }
  .nav-right { gap: 10px; }
}
.mobile-menu .menu-cta { color: #7DD9CE; font-weight: 700; }

.mobile-menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: rgba(13,13,13,0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #1A1A1A; }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 17px clamp(20px,5vw,64px); font-size: 15px; font-weight: 500; letter-spacing: 0.04em; color: #F5F5F3; border-top: 1px solid #1A1A1A; }
.mobile-menu a:hover { color: #7DD9CE; background: #111111; }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; background: #1ABCAA; color: #04211d; font-weight: 700; border-radius: 2px; }
.btn-primary:hover { background: #7DD9CE; color: #04211d; }
.btn-primary:focus-visible { outline: 2px solid #B8EDE8; outline-offset: 2px; }
.btn-outline { display: inline-flex; align-items: center; gap: 9px; color: #F5F5F3; font-weight: 500; border: 1px solid #2D2D2D; border-radius: 2px; }
.btn-outline:hover { border-color: #1ABCAA; color: #B8EDE8; }
.btn-outline:focus-visible { outline: 2px solid #7DD9CE; outline-offset: 3px; }
.btn-inverse { display: inline-flex; align-items: center; background: #0D0D0D; color: #F5F5F3; font-weight: 700; font-size: 16px; padding: 18px 34px; border-radius: 2px; }
.btn-inverse:hover { background: #1ABCAA; color: #04211d; }
.btn-inverse:focus-visible { outline: 2px solid #1ABCAA; outline-offset: 3px; }

/* Responsive grids: inline styles define the wide layout, these override on narrow screens */
@media (max-width: 899px) {
  [data-hero-grid] { grid-template-columns: 1fr !important; }
  [data-footer-grid] { grid-template-columns: 1fr !important; }
}
@media (max-width: 719px) {
  [data-stack] { grid-template-columns: 1fr !important; }
}

/* FAQ */
[data-faq] summary:focus-visible { outline: 2px solid #1ABCAA; outline-offset: 4px; }

/* Footer */
.site-footer { background: #050505; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: clamp(56px,7vw,88px) clamp(20px,5vw,64px) 40px; }
.footer-logo img { height: 32px; width: auto; display: block; }
.footer-link { font-size: 14px; color: #ADADAB; }
.footer-link:hover { color: #F5F5F3; }
.footer-muted-link { font-size: 13px; color: #8A8A88; }
.footer-muted-link:hover { color: #F5F5F3; }
.trust-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: #C8C8C6; padding: 8px 14px; border: 1px solid #262626; border-radius: 2px; }
.trust-badge:hover { border-color: #1ABCAA; color: #F5F5F3; }

/* ---------- Legal pages: same design system as the homepage ---------- */

/* Page hero: mirrors the homepage hero (radial teal glow, dash kicker, Barlow 300 display) */
.legal-hero { position: relative; overflow: hidden; border-bottom: 1px solid #161616; }
.legal-hero-glow { position: absolute; inset: 0; background: radial-gradient(120% 90% at 78% 12%, rgba(26,188,170,0.14), rgba(13,107,107,0.06) 42%, rgba(13,13,13,0) 70%); pointer-events: none; }
.legal-hero-inner { position: relative; max-width: 1160px; margin: 0 auto; padding: clamp(64px,9vh,110px) clamp(20px,5vw,64px) clamp(48px,7vh,84px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px; animation: heroRise .8s cubic-bezier(.2,.7,.2,1) both; }
.kicker .kicker-dash { width: 22px; height: 1px; background: #1ABCAA; }
.kicker .kicker-label { font-family: Barlow, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #7DD9CE; }
.legal-hero h1 { margin: 0; font-family: Barlow, sans-serif; font-weight: 300; font-size: clamp(2.4rem,5.6vw,4.8rem); line-height: 1.02; letter-spacing: -0.015em; color: #F5F5F3; animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .08s both; }
.legal-hero h1 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: #7DD9CE; }
.legal-date { margin: 26px 0 0; font-family: Barlow, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #6E6E6C; animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .16s both; }
.legal-intro { max-width: 780px; margin: 30px 0 0; font-size: clamp(16px,1.5vw,18px); line-height: 1.68; color: #ADADAB; animation: heroRise .9s cubic-bezier(.2,.7,.2,1) .24s both; }
.legal-intro a { color: #7DD9CE; }

/* Content shell */
.legal-body { max-width: 1160px; margin: 0 auto; padding: clamp(56px,8vw,110px) clamp(20px,5vw,64px) clamp(80px,10vw,140px); }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.68; color: #ADADAB; }
.legal-body p { margin: 0 0 16px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body strong { color: #DCDCDA; }

/* Numbered section rows: mirrors "How an engagement runs" */
.num-row { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px,4vw,56px); padding: clamp(30px,4vw,44px) 0; border-top: 1px solid #1E1E1E; }
.num-row:last-child { border-bottom: 1px solid #1E1E1E; }
.num-row .num { font-family: Barlow, sans-serif; font-weight: 300; font-size: clamp(2.4rem,4vw,3.4rem); line-height: 1; color: #1ABCAA; min-width: 2ch; }
.num-row h2 { margin: 0 0 14px; font-family: Barlow, sans-serif; font-weight: 700; font-size: clamp(1.1rem,1.6vw,1.35rem); text-transform: uppercase; letter-spacing: 0.03em; color: #F5F5F3; }
.num-row .num-content { max-width: 780px; }
.num-row h3 { margin: 24px 0 8px; font-size: 1.02rem; font-weight: 700; color: #F5F5F3; }
@media (max-width: 719px) { .num-row { grid-template-columns: 1fr; gap: 12px; } }

/* Term rows: mirrors the "Our terms" commitments grid (title left, body right) */
.term-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px,5vw,72px); padding: clamp(30px,4vw,40px) 0; border-top: 1px solid #232323; }
.term-row:last-of-type { border-bottom: 1px solid #232323; }
.term-row > h2 { margin: 0; font-size: clamp(1.15rem,1.8vw,1.45rem); font-weight: 700; line-height: 1.2; color: #F5F5F3; }
.term-row .term-content h3 { margin: 18px 0 8px; font-size: 1.02rem; font-weight: 700; color: #F5F5F3; }
.term-row .term-content h3:first-child { margin-top: 0; }
@media (max-width: 719px) { .term-row { grid-template-columns: 1fr; gap: 14px; } }

/* Section header inside content: mirrors homepage section headers */
.section-kicker { font-family: Barlow, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #7DD9CE; margin: 0 0 18px; }
.section-title { margin: 0 0 clamp(24px,4vw,40px); font-family: Barlow, sans-serif; font-weight: 700; font-size: clamp(1.6rem,3.4vw,2.6rem); line-height: 1.04; text-transform: uppercase; letter-spacing: 0.005em; color: #F5F5F3; }
.section-gap { margin-top: clamp(56px,8vw,96px); }

/* Featured callout: mirrors the "We carry the integration" card */
.featured-card { position: relative; margin: clamp(40px,6vw,64px) 0 0; padding: clamp(28px,4vw,48px); border: 1px solid #0F5049; border-radius: 4px; background: linear-gradient(150deg,#0A2C28 0%,#0B1615 60%,#0B0B0B 100%); overflow: hidden; }
.featured-card .featured-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg,#0D6B6B,#1ABCAA); }
.featured-card .featured-glow { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle,rgba(26,188,170,0.16),rgba(26,188,170,0) 70%); animation: glowPulse 6s ease-in-out infinite; }
.featured-card .featured-kicker { position: relative; font-family: Barlow, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #7DD9CE; margin-bottom: 14px; }
.featured-card p { position: relative; margin: 0; max-width: 720px; font-size: clamp(16px,1.5vw,18px); line-height: 1.66; color: #DCDCDA; }
.featured-card p em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: #7DD9CE; }

/* Tables: dark bordered cards consistent with homepage panels */
.table-wrap { overflow-x: auto; margin: 20px 0 8px; border: 1px solid #1E1E1E; border-radius: 4px; background: linear-gradient(180deg,#111111,#0B0B0B); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; min-width: 620px; }
.legal-table th { font-family: Barlow, sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #6E6E6C; text-align: left; padding: 16px 20px; border-bottom: 1px solid #232323; }
.legal-table td { padding: 16px 20px; color: #ADADAB; border-bottom: 1px solid #161616; vertical-align: top; }
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td:first-child { color: #F5F5F3; font-weight: 700; }
.legal-table td a { font-size: 13px; }

/* Proof chips: mirrors "The Foundation" chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { font-size: 13px; font-weight: 500; color: #C8C8C6; padding: 9px 16px; border: 1px solid #262626; border-radius: 2px; background: #111111; }

/* ---------- Team page ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2.4vw,28px); }
@media (max-width: 719px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { position: relative; display: flex; flex-direction: column; border: 1px solid #1E1E1E; border-radius: 4px; background: linear-gradient(180deg,#111111,#0B0B0B); overflow: hidden; transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.team-card:hover { border-color: #2D2D2D; transform: translateY(-6px); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.7); }
.team-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 1px solid #1A1A1A; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.02); transition: transform .45s ease; }
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,0) 62%, rgba(11,11,11,0.55) 100%); pointer-events: none; }
.team-info { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.team-role { font-family: Barlow, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #7DD9CE; margin: 0 0 8px; }
.team-name { margin: 0 0 12px; font-family: Barlow, sans-serif; font-weight: 700; font-size: clamp(1.2rem,1.8vw,1.45rem); line-height: 1.1; color: #F5F5F3; }
.team-bio { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #8A8A88; }
.team-links { margin-top: auto; }
.btn-linkedin { display: inline-flex; align-items: center; gap: 9px; color: #C8C8C6; font-weight: 500; font-size: 13px; letter-spacing: 0.04em; padding: 9px 16px; border: 1px solid #262626; border-radius: 2px; transition: border-color .25s ease, color .25s ease; }
.btn-linkedin svg { width: 14px; height: 14px; fill: #7DD9CE; transition: fill .25s ease; }
.btn-linkedin:hover { border-color: #1ABCAA; color: #F5F5F3; }
.btn-linkedin:focus-visible { outline: 2px solid #7DD9CE; outline-offset: 3px; }
.founder-tag { display: inline-flex; align-items: center; gap: 7px; font-family: Barlow, sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: #D4A853; margin-bottom: 10px; }
.founder-tag::before { content: ""; width: 14px; height: 1px; background: #D4A853; }

/* ---------- Intake form ---------- */
/* Compact hero for the form page: less headroom than content pages */
.legal-hero.compact .legal-hero-inner { padding: clamp(32px,5vh,52px) clamp(20px,5vw,64px) clamp(24px,4vh,40px); }
.legal-hero.compact h1 { font-size: clamp(1.9rem,4vw,3rem); }
.legal-hero.compact .kicker { margin-bottom: 18px; }
.legal-hero.compact .legal-intro { margin-top: 16px; }
.legal-body.compact { padding-top: clamp(28px,4vh,44px); padding-bottom: clamp(40px,6vh,64px); }
.intake-wrap { max-width: 720px; }
.intake-progress { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(18px,2.5vh,26px); }
.intake-progress .step-dot { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #262626; font-family: Barlow, sans-serif; font-weight: 700; font-size: 12px; color: #6E6E6C; background: #111111; }
.intake-progress .step-dot.active { border-color: #1ABCAA; color: #04211d; background: #1ABCAA; }
.intake-progress .step-dot.done { border-color: #0F5049; color: #7DD9CE; background: #0A2C28; }
.intake-progress .step-bar { flex: 1; height: 1px; background: #232323; }
.intake-step { display: none; }
.intake-step.active { display: block; animation: heroRise .5s cubic-bezier(.2,.7,.2,1) both; }
.intake-step h2 { margin: 0 0 6px; font-family: Barlow, sans-serif; font-weight: 700; font-size: clamp(1.25rem,2.2vw,1.7rem); line-height: 1.1; color: #F5F5F3; }
.intake-step h2 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: #7DD9CE; }
.intake-help { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #8A8A88; }
.form-label { display: block; font-family: Barlow, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #ADADAB; margin: 14px 0 6px; }
.form-input, .form-select { width: 100%; box-sizing: border-box; background: #111111; border: 1px solid #262626; border-radius: 2px; color: #F5F5F3; font-family: Inter, sans-serif; font-size: 15px; padding: 11px 14px; transition: border-color .25s ease; }
.form-input:focus, .form-select:focus { outline: none; border-color: #1ABCAA; }
.form-input::placeholder { color: #5E5E5C; }
.form-select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237DD9CE' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.form-select:invalid, .form-select option[value=""] { color: #5E5E5C; }
.form-error { display: none; margin-top: 8px; font-size: 13px; color: #E8642A; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 7px; background: #111111; border: 1px solid #262626; border-radius: 2px; cursor: pointer; transition: border-color .25s ease, background .25s ease; }
.radio-card:hover { border-color: #2D2D2D; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card .radio-letter { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 2px; border: 1px solid #2D2D2D; font-family: Barlow, sans-serif; font-weight: 700; font-size: 12px; color: #8A8A88; transition: all .25s ease; }
.radio-card .radio-text { font-size: 14px; line-height: 1.4; color: #C8C8C6; }
.radio-card.selected { border-color: #1ABCAA; background: #0A2C28; }
.radio-card.selected .radio-letter { border-color: #1ABCAA; background: #1ABCAA; color: #04211d; }
.radio-card.selected .radio-text { color: #F5F5F3; }
.radio-card:focus-within { outline: 2px solid #7DD9CE; outline-offset: 2px; }
/* Sticky action bar: Back/Next stay visible while the step scrolls */
.intake-nav { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 0 16px; background: linear-gradient(180deg, rgba(13,13,13,0) 0%, #0D0D0D 32%); }
.btn-back { display: inline-flex; align-items: center; gap: 8px; color: #ADADAB; font-weight: 500; font-size: 14px; padding: 14px 22px; border: 1px solid #2D2D2D; border-radius: 2px; background: none; font-family: Inter, sans-serif; cursor: pointer; }
.btn-back:hover { border-color: #1ABCAA; color: #F5F5F3; }
.btn-next { display: inline-flex; align-items: center; background: #1ABCAA; color: #04211d; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 2px; border: none; font-family: Inter, sans-serif; cursor: pointer; }
.btn-next:hover { background: #7DD9CE; }
.btn-next:focus-visible, .btn-back:focus-visible { outline: 2px solid #B8EDE8; outline-offset: 2px; }
.intake-done { display: none; text-align: left; }
.intake-done.active { display: block; animation: heroRise .5s cubic-bezier(.2,.7,.2,1) both; }
