/* ---- Nav dropdowns ---- */
.nav__dd { position: relative; }
.nav__dd > button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; font-weight: 500; color: var(--ink-2); transition: color var(--fast); }
.nav__dd > button svg { transition: transform 200ms var(--ease); }
.nav__dd:hover > button, .nav__dd:focus-within > button, .nav__dd.is-active > button, .nav__dd > button[aria-expanded="true"] { color: var(--ink); }
.nav__dd > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__menu {
  position: absolute; left: -12px; top: calc(100% + 10px); min-width: 220px; padding: 8px; border-radius: 14px;
  background: var(--bg); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 0s linear 160ms;
}
.nav__menu--wide { min-width: 300px; }
.nav__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__dd:hover .nav__menu, .nav__dd:focus-within .nav__menu, .nav__dd > button[aria-expanded="true"] + .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__menu li a { display: grid; gap: 1px; padding: 9px 12px; border-radius: 9px; transition: background var(--fast); }
.nav__menu li a:hover, .nav__menu li a[aria-current="page"] { background: var(--bg-2); }
.nav__menu b { font-weight: 600; font-size: 14px; color: var(--ink); }
.nav__menu span { font-size: 14px; color: var(--ink-3); }
.nav__mobile details summary { list-style: none; cursor: pointer; padding: 12px 4px; font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.nav__mobile details summary::-webkit-details-marker { display: none; }
.nav__mobile details summary::after { content: '+'; color: var(--ink-3); }
.nav__mobile details[open] summary::after { content: '–'; }
.nav__mobile details a { padding: 12px 16px; font-size: 15px; display: flex; align-items: center; min-height: 44px; color: var(--ink-2); }

/* ---- Breadcrumb ---- */
.crumbs { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); padding-top: 4px; }
.crumbs a { display: inline-block; padding: 12px 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---- Product hero ---- */
.phero { padding-block: 0 clamp(40px, 6vw, 80px); overflow: clip; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 6vw, 72px); }
.phero__copy { gap: 18px; }
.phero__points { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.phero__points li { position: relative; padding-left: 14px; }
.phero__points li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.phero__shot { margin: 0; border-radius: var(--r-3); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); background: var(--bg-2); transform: rotateY(-4deg) rotateX(1deg); transform-origin: left center; }
.phero__shot img { width: 100%; height: auto; }
.phero .hero__bg { z-index: -1; }
@media (max-width: 1000px) { .phero__grid { grid-template-columns: 1fr; } .phero__copy { justify-items: start; text-align: left; } .phero__shot { transform: none; } }

.features--page .feature:first-child { padding-top: 0; }
.features--page .feature:nth-child(even) .feature__copy { order: 2; }
@media (max-width: 860px) { .features--page .feature:nth-child(even) .feature__copy { order: 0; } }
.feature__mock--dark { background: var(--bg-2); display: grid; place-items: center; padding: 32px; aspect-ratio: auto; }
.feature__mock--dark .pdoc { box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }

/* ---- Related tiles ---- */
.related { padding-top: 0; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile--link { color: inherit; position: relative; }
.tile__more { font-size: 14px; font-weight: 600; color: var(--brand); margin-top: 6px; }
@media (max-width: 800px) { .related__grid { grid-template-columns: 1fr; } }

/* ---- Sequence mock ---- */
.seq { padding: 20px; display: grid; gap: 16px; align-content: start; }
.seq__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.seq__head b { font-weight: 600; }
.seq__steps { display: grid; gap: 10px; }
.seq__steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); }
.seq__steps li div { display: grid; }
.seq__steps b { font-weight: 600; font-size: 12.5px; } .seq__steps i { font-style: normal; font-size: 11px; color: var(--ink-3); }
.seq__steps em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.seq__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bg-3); color: var(--ink-2); }
.seq__steps li.is-done .seq__n { background: rgba(23,198,83,.15); color: #0F8F3A; }
.seq__steps li.is-done em { color: #0F8F3A; }
.seq__steps li.is-current { box-shadow: inset 0 0 0 1.5px var(--brand); }
.seq__steps li.is-current .seq__n { background: var(--brand); color: #fff; }
.seq__steps li.is-stop { background: transparent; border: 1px dashed var(--line-2); }

/* ---- CTA (no form) ---- */
.cta__grid--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.cta__grid--center .cta__copy { justify-items: center; max-width: 720px; }
.cta__grid--center .hero__actions { justify-content: center; }
.btn--ghost-dark { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.08); }
.steps__more { margin-top: 8px; }
.steps__more .btn { display: inline-flex; }

/* ---- Generic page sections ---- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.page-head .section__head { margin-bottom: 0; }
.prose { max-width: 720px; margin-inline: auto; font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-family: var(--font-display); font-size: 30px; letter-spacing: -.02em; color: var(--ink); margin: 2.2em 0 .6em; line-height: 1.15; }
.prose h3 { font-size: 20px; color: var(--ink); margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--ink); font-size: 19px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--bg-2); padding: 2px 6px; border-radius: 5px; }
.prose img { border-radius: var(--r-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* ---- Blog ---- */
.post-list { display: grid; gap: 16px; max-width: 800px; margin-inline: auto; }
.post-card { display: grid; gap: 8px; padding: 24px 28px; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--bg); transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.post-card p { color: var(--ink-2); font-size: 15.5px; }
.post-meta { font-size: 14px; color: var(--ink-3); display: flex; gap: 10px; }
.post-hero { max-width: 720px; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) 24px; display: grid; gap: 16px; }
.post-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -.03em; line-height: 1.08; }
.post-hero .section__lead { font-size: 19px; }
.post-body { padding-top: 0; }
.post-nav { max-width: 720px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---- Vs pages ---- */
.vs-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; font-size: 15px; }
.vs-table th, .vs-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vs-table tr:last-child td { border-bottom: 0; }
.vs-table thead th { background: var(--bg-2); font-size: 14px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.vs-table td:first-child { font-weight: 600; color: var(--ink); width: 18%; }
.vs-table td { color: var(--ink-2); }
.vs-table td:last-child { color: var(--ink); background: rgba(27,132,255,.04); }
.vs-table-wrap { overflow-x: auto; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { padding: 24px; border-radius: var(--r-3); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.card p { color: var(--ink-2); font-size: 15px; }
.card--soft { background: var(--bg-2); }
.section--alt { background: var(--bg-2); }
@media (max-width: 800px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }

/* ---- Contact page ---- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form--light { background: var(--bg); border: 1px solid var(--line); backdrop-filter: none; }
.form--light .form__field { color: var(--ink-2); }
.form--light .form__field input, .form--light .form__field textarea { background: var(--bg-2); color: var(--ink); border-color: var(--line-2); }
@media (max-width: 1000px) { .contact__grid { grid-template-columns: 1fr; } .contact__grid .hero__copy { justify-items: start; text-align: left; } }

.form__done { text-align: center; justify-items: center; padding: 40px 28px; }
.form__error { padding: 10px 14px; border-radius: 10px; background: rgba(241,65,108,.1); color: #B3123F; font-size: 14px; }

/* ---- Integration blocks ---- */
.int-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.int-list .card h3 { display: flex; align-items: center; gap: 10px; }
.int-list .card h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
@media (max-width: 800px) { .int-list { grid-template-columns: 1fr; } }

/* ---- About ---- */
.about__story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-3); overflow: hidden; }
.about__facts div { background: var(--bg); padding: 20px 24px; display: grid; gap: 4px; }
.about__facts b { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; }
.about__facts span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 800px) { .about__story { grid-template-columns: 1fr; } }

/* ---- 404 ---- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .display { font-size: clamp(64px, 12vw, 140px); line-height: 1; background: linear-gradient(92deg, var(--g1), var(--g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.post-hero .eyebrow a { display: inline-block; padding: 11px 0; margin: -11px 0; }
