/* Shapeherd: enterprise-style site.
   Brand: ink + indigo-violet, amber accent. Product surfaces (Edwitty) use the
   product's own colours so each brand keeps its identity. */
:root {
  --ink: #14112B;
  --ink-2: #2A2550;
  --brand: #4F35E8;
  --brand-hover: #3B22C9;
  --violet: #7C5CFF;
  --amber: #F5A524;
  --bg: #FFFFFF;
  --soft: #F6F5FB;
  --tint: #EEEAFF;
  --text: #1B1A27;
  --muted: #55536A;
  --line: #E3E1EE;
  --edwitty: #003A9B;
  --edwitty-light: #0066E6;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 1.6px 3.6px rgba(20, 17, 43, .08), 0 .3px .9px rgba(20, 17, 43, .06);
  --shadow-lg: 0 6.4px 14.4px rgba(20, 17, 43, .1), 0 1.2px 3.6px rgba(20, 17, 43, .08);
  --font: "Segoe UI", "Segoe UI Web", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.025em; }
h2, .h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.02em; }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.container { width: min(1280px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { font-size: .875rem; font-weight: 600; color: var(--muted); margin-bottom: .75em; letter-spacing: .01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; line-height: 1.55; }
.chev { display: inline-block; font-size: 1.25em; line-height: 0; transform: translateY(1px); transition: transform .15s; margin-left: 2px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 4px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; white-space: nowrap; cursor: pointer; }
.btn-sm { padding: 7px 16px; font-size: .875rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; box-shadow: var(--shadow-lg); }
.btn-secondary, .btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover, .btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); color: var(--ink); }
.btn-edwitty { background: var(--edwitty); color: #fff; }
.btn-edwitty:hover { background: var(--edwitty-light); color: #fff; }
.link-chev, .text-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; text-decoration: none; color: var(--brand); }
.link-chev:hover, .text-link:hover { text-decoration: underline; }
.link-chev:hover .chev { transform: translate(3px, 1px); }
.link-chev.light { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.nav-bar { display: flex; align-items: center; height: var(--header-h); gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.nav-divider { width: 1px; height: 24px; background: var(--line); }
.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-list > li > a, .mega-trigger { display: inline-flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0 12px; color: var(--text); text-decoration: none; font-size: .925rem; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.nav-list > li > a:hover, .mega-trigger:hover, .mega-trigger[aria-expanded="true"], .nav-list a.active, .mega-trigger.active { color: var(--ink); border-bottom-color: var(--ink); }
.caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.mega-trigger[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-1px); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-link-plain { color: var(--text); text-decoration: none; font-size: .9rem; }
.nav-link-plain:hover { text-decoration: underline; color: var(--ink); }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(20, 17, 43, .1); display: none; }
.mega.open { display: block; }
.mega-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 32px 0 36px; }
.mega-col { display: flex; flex-direction: column; gap: 10px; }
.mega-col > a { color: var(--text); text-decoration: none; font-size: .95rem; }
.mega-col > a:hover { color: var(--brand); text-decoration: underline; }
.mega-title { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
.mega-product { display: flex; gap: 14px; align-items: flex-start; padding: 12px; margin: 0 -12px; border-radius: var(--radius); text-decoration: none; }
a.mega-product:hover { background: var(--soft); text-decoration: none !important; }
.mega-product img { border-radius: 8px; flex-shrink: 0; }
.mega-product strong { display: block; color: var(--ink); font-size: 1rem; }
.mega-product span span { display: block; color: var(--muted); font-size: .875rem; }
.mega-promo { background: var(--soft); padding: 20px; border-radius: var(--radius); }
.mega-promo p { color: var(--muted); font-size: .9rem; margin: 0; }
.soon-mark { display: inline-flex; align-items: flex-end; gap: 4px; width: 40px; height: 40px; padding: 8px 5px; border-radius: 8px; background: var(--soft); flex-shrink: 0; }
.soon-mark i { display: block; }
.soon-mark .c { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.soon-mark .s { width: 9px; height: 9px; border-radius: 2px; background: var(--violet); }
.soon-mark .t { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--ink); }
.soon-mark.lg { width: auto; height: auto; padding: 0; background: none; gap: 8px; }
.soon-mark.lg .c { width: 26px; height: 26px; }
.soon-mark.lg .s { width: 24px; height: 24px; border-radius: 6px; }
.soon-mark.lg .t { border-left-width: 14px; border-right-width: 14px; border-bottom-width: 24px; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 1080px) { .nav-link-plain { display: none; } }
@media (max-width: 900px) {
  .nav-divider { display: none; }
  .site-nav { flex-wrap: wrap; }
  .js .nav-toggle { display: block; }
  .js .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none; max-height: calc(100vh - 110px); overflow-y: auto; box-shadow: 0 16px 32px rgba(20, 17, 43, .1); }
  .js .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list > li > a, .mega-trigger { height: auto; padding: 14px 4px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .nav-list > li > a:hover, .mega-trigger:hover, .mega-trigger[aria-expanded="true"], .nav-list a.active { border-bottom-color: var(--line); }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega-inner { grid-template-columns: 1fr; gap: 20px; padding: 16px 4px; width: 100%; }
  .nav-actions { padding-top: 16px; }
  .nav-actions .btn { width: 100%; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* Hero */
.hero { background: linear-gradient(115deg, #fff 0%, #fff 45%, var(--tint) 100%); padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art img { width: 100%; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 560px; } }

/* Sticky in-page sub-nav */
.subnav { position: sticky; top: var(--header-h); z-index: 90; background: #fff; border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav ul { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a:not(.btn) { display: block; padding: 14px; color: var(--text); text-decoration: none; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:not(.btn):hover, .subnav a.current { border-bottom-color: var(--ink); color: var(--ink); }
@media (max-width: 640px) { .subnav .btn { display: none; } }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft, .section-tint { background: var(--soft); }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin: 0; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Overview tiles */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .tile-grid { grid-template-columns: 1fr; } }
.tile { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s; }
.tile:hover { box-shadow: var(--shadow-lg); }
.tile-art { aspect-ratio: 2.3 / 1; position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; overflow: hidden; }
.art-violet { background: linear-gradient(135deg, #2A2550, #4F35E8); }
.art-edwitty { background: linear-gradient(135deg, #061B52, #0066E6); }
.art-edwitty img { width: 80px; height: 80px; border-radius: 18px; background: #fff; padding: 8px; }
.art-amber { background: linear-gradient(135deg, #FFE7B8, #F5A524); }
.ta-circle { width: 54px; height: 54px; border-radius: 50%; background: var(--amber); }
.ta-square { width: 50px; height: 50px; border-radius: 12px; background: var(--violet); border: 2px solid rgba(255, 255, 255, .25); }
.ta-tri { width: 0; height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 52px solid #fff; }
.ta-chat { width: 120px; height: 48px; border-radius: 14px 14px 14px 2px; background: #fff; box-shadow: var(--shadow-lg); transform: translate(-30px, -12px); }
.ta-chat-2 { position: absolute; width: 96px; background: var(--ink); border-radius: 14px 14px 2px 14px; transform: translate(42px, 26px); }
.tile-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.tile-body p { color: var(--muted); flex: 1; }

/* Tabs */
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 32px; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] { background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 18px; color: var(--muted); font-weight: 600; font-size: .98rem; cursor: pointer; white-space: nowrap; }
.tab-list [role="tab"]:hover { color: var(--ink); }
.tab-list [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.tab-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); }
.tab-panel[hidden] { display: none; }
.panel-copy p { color: var(--muted); }
.panel-art { background: linear-gradient(135deg, var(--tint), #FFF6E5); border-radius: var(--radius-lg); padding: clamp(12px, 2vw, 24px); }
@media (max-width: 900px) { .tab-panel { grid-template-columns: 1fr; } }
.product-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--edwitty); text-decoration: none; margin-bottom: 14px; }
.product-chip img { border-radius: 6px; }
.product-chip:hover { color: var(--edwitty-light); text-decoration: underline; }

/* Accordion */
.accordion { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .accordion { grid-template-columns: 1fr; } .acc-art { order: -1; max-width: 520px; width: 100%; } }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-item h3 { margin: 0; font-size: 1.15rem; }
.acc-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; background: none; border: 0; padding: 22px 0; color: var(--ink); font-weight: 600; cursor: pointer; }
.acc-item button::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; margin-right: 4px; }
.acc-item button[aria-expanded="true"]::after { transform: rotate(-135deg); }
.acc-item.is-open { box-shadow: inset 3px 0 0 var(--brand); padding-left: 20px; }
.acc-panel p { color: var(--muted); margin: -6px 0 24px; max-width: 520px; }
.acc-art { position: relative; background: var(--soft); border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.acc-visual { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 8%; opacity: 0; transition: opacity .3s; }
.acc-visual.is-active { opacity: 1; }
.acc-visual svg { width: 100%; height: 100%; }

/* Product family */
.product-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }
.product, .product-feature { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.product p { color: var(--muted); }
.product-edwitty { border-top: 4px solid var(--edwitty); }
.product-edwitty h2, .product-edwitty h3 { color: var(--edwitty); }
.product-edwitty .ticks li::before { border-color: var(--edwitty-light); }
.product-top, .product-feature-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; min-height: 60px; }
.product-tagline { font-weight: 600; color: var(--edwitty-light) !important; margin-top: -4px; }
.product-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.product-next { border: 1px dashed #C9C5DC; box-shadow: none; background: transparent; }
.tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border-radius: 4px; background: var(--tint); color: var(--brand); white-space: nowrap; }
.tag-live { background: #E3F5EC; color: #0B6B42; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .25em; width: 6px; height: 11px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks.two-col { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
@media (max-width: 640px) { .ticks.two-col { grid-template-columns: 1fr; } }
.list-title { margin-top: 36px; }

/* Cards (inner pages) */
.card-grid { display: grid; gap: 20px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid.three { grid-template-columns: 1fr; } }
.card-grid.compact { margin: 28px 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-bottom: 0; }
.card .btn { margin-top: 20px; }
.card-icon { width: 36px; height: 36px; margin-bottom: 18px; }
.icon-circle { border-radius: 50%; background: var(--amber); }
.icon-square { border-radius: 8px; background: var(--violet); }
.icon-triangle { width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 34px solid var(--ink); }
.mini { background: #F0F6FF; border-radius: var(--radius); padding: 22px; }
.mini h3 { font-size: 1.05rem; }
.mini p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Facts */
.fact-list { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 24px; box-shadow: var(--shadow); }
.fact-list div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.fact-list div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--muted); font-size: .9rem; }
.fact-list dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.fact-list.stacked { border: 0; box-shadow: none; padding: 0; background: none; }
.fact-list.stacked div { grid-template-columns: 1fr; gap: 2px; }
.legal-card { position: sticky; top: 96px; }
@media (max-width: 900px) { .legal-card { position: static; } }
@media (max-width: 480px) { .fact-list div { grid-template-columns: 1fr; gap: 2px; } }

/* Page hero (inner pages) */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); background: linear-gradient(115deg, #fff 0%, #fff 50%, var(--tint) 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--brand); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.not-found { border-bottom: 0; min-height: 50vh; }

/* Contact page */
.table-wrap { overflow-x: auto; }
.contact-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.contact-table th, .contact-table td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.contact-table thead th { background: var(--soft); color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.contact-table tbody th { color: var(--muted); font-weight: 400; width: 40%; }
.contact-table tbody td { font-weight: 600; color: var(--ink); }
.contact-table tbody tr:last-child th, .contact-table tbody tr:last-child td { border-bottom: 0; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: grid; gap: 4px; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
a.contact-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); color: var(--text); }
.contact-kind { font-size: .8rem; color: var(--muted); font-weight: 600; }
.contact-card strong { font-size: 1.15rem; color: var(--ink); overflow-wrap: anywhere; }
.contact-card span:last-child { color: var(--muted); font-size: .95rem; }
.contact-card address { font-style: normal; font-weight: 600; color: var(--ink); }

/* Legal prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* Contact band */
.contact-band { background: var(--ink); color: #D6D3E8; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.contact-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, .45), transparent 70%); }
.contact-band h2 { color: #fff; }
.contact-band p { margin: 0; max-width: 560px; }
.contact-band-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.contact-band-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; padding-top: 48px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 36px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { margin-top: 14px; max-width: 280px; }
.site-footer .footer-brand .brand { color: var(--ink); }
.site-footer .footer-brand .brand:hover { text-decoration: none; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-heading { font-size: .875rem; font-weight: 600; color: var(--ink); margin: 0 0 4px; letter-spacing: 0; }
.footer-legal { border-top: 1px solid var(--line); padding: 22px 0; display: grid; gap: 4px; }
.footer-legal p { margin: 0; }
.footer-legal strong { color: var(--text); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--line); padding: 18px 0 28px; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-bottom > p:last-child { margin-left: auto; }
.locale { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-bottom > p:last-child { margin-left: 0; width: 100%; } }

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

/* ---- Company-level sections (Shapeherd as the parent brand) ---- */
.mission { padding-bottom: clamp(48px, 7vw, 80px); }
.mission-statement { font-size: clamp(1.8rem, 3.8vw, 3rem); font-weight: 600; max-width: 1000px; line-height: 1.18; margin-bottom: 56px; }
.mission-statement span { color: var(--brand); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 40px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 28px; } }
.pillar p { color: var(--muted); margin: 0; }
.pillar-mark { display: block; margin-bottom: 18px; }
.mark-circle { width: 32px; height: 32px; border-radius: 50%; background: var(--amber); }
.mark-square { width: 30px; height: 30px; border-radius: 8px; background: var(--violet); }
.mark-triangle { width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 32px solid var(--ink); }

.section-head.with-link { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head.with-link > div { max-width: 720px; }
.section-head.with-link p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin: 0; }

.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .app-grid, .app-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .app-grid, .app-grid.three { grid-template-columns: 1fr; } }
.app-tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; min-height: 250px; }
a.app-tile:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--text); }
.app-tile img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 14px; }
.app-tile .soon-mark.lg { height: 56px; align-items: flex-end; margin-bottom: 14px; opacity: .55; }
.app-cat { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.app-tile strong { font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.app-desc { color: var(--muted); font-size: .95rem; flex: 1; }
.app-link { font-weight: 600; color: var(--brand); margin-top: 8px; }
.app-tile.is-soon { background: transparent; box-shadow: none; border-style: dashed; border-color: #CFCBE0; }
.app-tile.is-soon strong { color: var(--muted); }
.app-tile.is-cta { background: var(--ink); border-color: var(--ink); }
.app-tile.is-cta strong { color: #fff; }
.app-tile.is-cta .app-cat, .app-tile.is-cta .app-desc { color: #B9B5CF; }
.app-tile.is-cta .app-link { color: var(--amber); }
.cta-plus { width: 56px; height: 56px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 2rem; font-weight: 300; margin-bottom: 14px; line-height: 1; }


/* Mega-menu launcher grid */
.launcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.launch-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 8px; border-radius: var(--radius); text-decoration: none; color: var(--text); }
a.launch-item:hover { background: var(--soft); text-decoration: none !important; }
.launch-item img { border-radius: 10px; margin-bottom: 4px; }
.launch-item .soon-mark { width: 44px; height: 44px; margin-bottom: 4px; justify-content: center; opacity: .55; }
.launch-item strong { font-size: .9rem; color: var(--ink); font-weight: 600; }
.launch-item span:last-child { font-size: .78rem; color: var(--muted); }
.launch-item.is-soon strong { color: var(--muted); }

/* Products page listing (uses the product's own colours) */
.listing { display: grid; grid-template-columns: 320px 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
@media (max-width: 800px) { .listing { grid-template-columns: 1fr; } }
.listing-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px 24px; }
.listing-edwitty .listing-brand { background: linear-gradient(160deg, #F0F6FF, #E5EFFF); border-right: 1px solid #D0DEFF; }
.listing-tagline { margin: 0; font-weight: 600; color: var(--edwitty-light); font-size: .95rem; }
.listing-body { padding: clamp(24px, 4vw, 40px); }
.listing-body p { color: var(--muted); }
.listing-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.listing-cat { font-size: .875rem; color: var(--muted); }
.listing-edwitty h3 { color: var(--edwitty); font-size: 1.6rem; }
.listing-points { margin: 0 0 24px; padding-left: 1.1em; color: var(--text); }
.listing-points li { margin-bottom: 6px; }
.listing-points li::marker { color: var(--edwitty-light); }
.edwitty-link { color: var(--edwitty); }

/* Parent / product brand diagram */
.brand-diagram { background: var(--soft); border-radius: var(--radius-lg); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; }
.bd-parent { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px 10px 10px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); }
.bd-lines { width: 66%; height: 36px; border: 2px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; margin-top: 18px; position: relative; }
.bd-lines::before { content: ""; position: absolute; left: 50%; top: -20px; width: 2px; height: 20px; background: var(--line); }
.bd-children { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.bd-child { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px; font-size: .875rem; font-weight: 600; color: var(--ink); text-align: center; }
.bd-child img { border-radius: 8px; }
.bd-child.is-soon { background: transparent; border-style: dashed; color: var(--muted); }
.bd-child .soon-mark { opacity: .55; justify-content: center; }

/* ---- AI-first, interactive layer ---- */
.grad-text { background: linear-gradient(90deg, #4F35E8, #7C5CFF 45%, #E08A00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow-ai { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); background: var(--tint); padding: 6px 12px; border-radius: 999px; }
.eyebrow-ai.light { color: #CFC6FF; background: rgba(124, 92, 255, .16); }
.spark { width: 12px; height: 12px; display: inline-block; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.section-head.center { margin-inline: auto; text-align: center; }
.split.center-v { align-items: center; }

/* Hero motion */
.herd { width: 100%; height: auto; overflow: visible; }
.herd .layer { transition: transform .25s ease-out; will-change: transform; }
.float { animation: bob 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.f2 { animation-delay: -2.3s; }
.f3 { animation-delay: -4.6s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.flow { animation: flow 18s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -240; } }
.ai-chip { animation: bob 6s ease-in-out infinite; animation-delay: -1s; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* AI section */
.ai-section { background: #0E0B22; color: #C9C5DE; position: relative; overflow: hidden; }
.ai-section h2, .ai-section h3 { color: #fff; }
.ai-section .section-head > p:not(.eyebrow) { color: #B3AECB; }
.ai-glow { position: absolute; inset: -20% -10% auto; height: 520px; background: radial-gradient(ellipse at 50% 0%, rgba(124, 92, 255, .38), transparent 60%), radial-gradient(ellipse at 85% 30%, rgba(245, 165, 36, .14), transparent 50%); pointer-events: none; }
.ai-section .container { position: relative; }
.ai-demo { display: grid; grid-template-columns: 300px 1fr; gap: 24px; max-width: 1040px; margin: 0 auto; }
@media (max-width: 860px) { .ai-demo { grid-template-columns: 1fr; } }
.ai-prompts { display: flex; flex-direction: column; gap: 10px; }
.ai-prompts-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: #8E89A8; margin: 0 0 4px; }
.ai-prompt { text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); color: #E4E1F5; padding: 14px 16px; border-radius: 12px; cursor: pointer; font-size: .95rem; line-height: 1.4; transition: background .15s, border-color .15s; }
.ai-prompt:hover { background: rgba(255, 255, 255, .08); }
.ai-prompt.is-active { background: rgba(124, 92, 255, .2); border-color: #7C5CFF; color: #fff; }
@media (max-width: 860px) { .ai-prompts { flex-direction: row; overflow-x: auto; scrollbar-width: none; } .ai-prompts-title { display: none; } .ai-prompt { flex: 0 0 240px; } }
.ai-window { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); display: flex; flex-direction: column; min-height: 420px; color: var(--text); }
.ai-window-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #D9D6E8; }
.ai-window-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.ai-window-title .spark { color: var(--brand); }
.ai-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #0B6B42; font-weight: 600; }
.ai-live i { width: 8px; height: 8px; border-radius: 50%; background: #1DB46F; box-shadow: 0 0 0 0 rgba(29, 180, 111, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(29, 180, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 180, 111, 0); } }
.ai-chat { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: .97rem; line-height: 1.5; }
.bubble.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; width: 88%; }
.bubble.bot p { margin: 0; }
.bubble.bot ul { margin: 8px 0 0; padding-left: 1.1em; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9C93D9; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.mini-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 14px; padding-top: 8px; }
.mini-chart:empty { display: none; }
.mc-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mc-fill { width: 100%; max-width: 44px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #7C5CFF, #4F35E8); height: 0; transition: height .7s cubic-bezier(.2, .8, .2, 1); }
.mc-bar.hl .mc-fill { background: linear-gradient(180deg, #FFC15A, #F5A524); }
.mc-bar span { font-size: .72rem; color: var(--muted); }
.ai-input { margin: 0 16px 16px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 16px; color: #9A97AE; font-size: .92rem; }
.ai-send { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ai-note { text-align: center; font-size: .8rem; color: #8E89A8; margin: 16px 0 0; }
.ai-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 1000px) { .ai-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ai-features { grid-template-columns: 1fr; } }
.ai-feature { border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); padding: 24px; background: rgba(255, 255, 255, .03); transition: border-color .2s, background .2s; }
.ai-feature:hover { border-color: rgba(124, 92, 255, .6); background: rgba(124, 92, 255, .08); }
.ai-feature h3 { font-size: 1.05rem; }
.ai-feature p { margin: 0; color: #B3AECB; font-size: .95rem; }
.ai-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(124, 92, 255, .2); color: #CFC6FF; margin-bottom: 16px; }
.ai-icon svg { width: 22px; height: 22px; }

/* Interactive dashboard */
.dash { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 24px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.dash-head strong { color: var(--ink); font-size: 1.1rem; }
.seg { display: inline-flex; background: var(--soft); border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--soft); border-radius: 10px; padding: 14px; }
.kpi span { display: block; font-size: .78rem; color: var(--muted); }
.kpi strong { font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; border-bottom: 1px solid var(--line); }
.dash-bars .mc-fill { max-width: none; }
.dash-note { font-size: .75rem; color: var(--muted); margin: 10px 0 0; text-align: right; }

/* Approach steps (three) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 32px; } }
.step::before { content: ""; display: block; height: 3px; border-radius: 2px; margin-bottom: 24px; background: var(--line); }
.step:nth-child(1)::before { background: var(--amber); }
.step:nth-child(2)::before { background: var(--violet); }
.step:nth-child(3)::before { background: var(--ink); }
.step-num { display: block; font-size: .875rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; letter-spacing: .04em; }
.step h3 { font-size: 1.6rem; }
.step p { color: var(--muted); margin: 0; }

.acc-num { font-size: .85rem; color: var(--brand); font-weight: 700; margin-right: 12px; }
.acc-item button { justify-content: flex-start; }
.acc-item button::after { margin-left: auto; }
.acc-item h3 button { font-size: 1.3rem; }

@media (prefers-reduced-motion: reduce) {
  .float, .flow, .ai-chip, .ai-live i, .typing i { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Decipher analytics engine */
.deci-mark { width: 22px; height: 22px; flex-shrink: 0; }
.deci-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.deci-title { display: inline-flex; align-items: center; gap: 8px; }
.deci-points { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-top: 28px; }
@media (max-width: 560px) { .deci-points { grid-template-columns: 1fr; } }
.deci-points div { border-left: 3px solid var(--violet); padding-left: 14px; }
.deci-points strong { display: block; color: var(--ink); margin-bottom: 4px; }
.deci-points span { color: var(--muted); font-size: .95rem; }

/* Shapeherd AI: stats + interactive stack */
.ai-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 56px; border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ai-stats > div { padding: 28px 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.ai-stats > div:first-child { border-left: 0; padding-left: 0; }
.ai-stats dt { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; color: #fff; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 8px; background: linear-gradient(90deg, #fff, #CFC6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-stats dd { margin: 0; color: #B3AECB; font-size: .92rem; }
@media (max-width: 900px) { .ai-stats { grid-template-columns: repeat(2, 1fr); } .ai-stats > div:nth-child(3) { border-left: 0; padding-left: 0; } .ai-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); } }
@media (max-width: 480px) { .ai-stats { grid-template-columns: 1fr; } .ai-stats > div { border-left: 0; padding-left: 0; } .ai-stats > div + div { border-top: 1px solid rgba(255, 255, 255, .1); } }

.stack { display: grid; grid-template-columns: 420px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .stack { grid-template-columns: 1fr; } }
.stack-layers { display: flex; flex-direction: column; gap: 10px; perspective: 900px; }
.layer { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left; padding: 18px 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #E4E1F5; cursor: pointer; transition: transform .25s ease, background .25s, border-color .25s, box-shadow .25s; transform: rotateX(8deg); transform-origin: center bottom; }
.layer:hover { background: rgba(255, 255, 255, .08); }
.layer[aria-selected="true"] { transform: translateX(14px) rotateX(0); background: linear-gradient(100deg, rgba(124, 92, 255, .35), rgba(124, 92, 255, .08)); border-color: #7C5CFF; box-shadow: 0 18px 40px rgba(79, 53, 232, .35); }
.layer::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--c, #7C5CFF); opacity: .9; }
.l1 { --c: #F5A524; } .l2 { --c: #FFC876; } .l3 { --c: #B9ADF7; } .l4 { --c: #9C86FF; } .l5 { --c: #C9BEFF; }
.layer-num { grid-row: 1 / 3; align-self: center; font-size: .85rem; font-weight: 700; color: var(--c); }
.layer-name { font-weight: 600; font-size: 1.08rem; color: #fff; }
.layer-sub { font-size: .87rem; color: #A9A4C2; }
@media (max-width: 960px) { .layer { transform: none; } .layer[aria-selected="true"] { transform: none; } }
.stack-panel { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: clamp(28px, 4vw, 48px); min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; animation: panelIn .35s ease; }
.stack-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8E89A8; font-weight: 600; margin-bottom: 10px; }
.stack-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.stack-panel > p { color: #C9C5DE; font-size: 1.05rem; }
.stack-panel .link-chev { margin-top: 8px; }
.panel-points { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 14px; }
.panel-points li { position: relative; padding-left: 26px; color: #B3AECB; }
.panel-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: #7C5CFF; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.panel-points strong { color: #fff; font-weight: 600; }

.ai-showcase { padding-top: 0; }
.ai-showcase .container { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: clamp(56px, 8vw, 96px); }
@media (prefers-reduced-motion: reduce) { .stack-panel { animation: none; } .layer { transition: none; } }
