/* Tabmatch marketing site. One small stylesheet, no framework, system fonts. */
:root {
  --navy: #0B1F3A;
  --turquoise: #19C3B1;
  --turquoise-dark: #0E8F82;
  --bg: #F4F7FA;
  --card: #FFFFFF;
  --border: #EDF1F5;
  --muted: #5B6B7A;
  --radius: 24px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--turquoise-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--turquoise); color: var(--navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--turquoise); color: var(--navy); }
.btn-primary:hover { background: #2BD4C2; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: #163457; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
/* Same proportions as the app header (AppLogo): the icon, a gap of 0.28x its
   height, and a wordmark 0.72x its height, all vertically centred. */
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; }
.brand-mark img { display: block; width: 36px; height: 36px; }
.brand-text { display: flex; align-items: center; }
.brand-text strong { font-size: 26px; }
.wordmark { font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.wordmark .wm-tab { color: #fff; }
.wordmark .wm-match { color: #19C3B1; }
.on-light .wordmark .wm-tab { color: #0B1F3A; }
.site-nav { display: flex; align-items: center; gap: .3rem; }
.nav-item { position: relative; }
.nav-link { color: #fff; text-decoration: none; padding: .55rem .8rem; border-radius: 10px; background: none; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.nav-link:hover, .menu-btn[aria-expanded="true"] { background: rgba(255,255,255,.1); }
.site-nav .btn { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; content: ""; position: relative; }
.bars::before { position: absolute; top: -7px; }
.bars::after { position: absolute; top: 7px; }

/* Mega menu */
.header-row { position: relative; }
.nav-item { position: static; }
.mega { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; color: var(--navy); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(11,31,58,.25); padding: 1.5rem; }
.mega[hidden] { display: none; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem 1.5rem; }
.mega-col h3 { font-size: .95rem; margin-bottom: .4rem; }
.mega-col h3 a { color: var(--navy); text-decoration: none; }
.mega-col ul { list-style: none; }
.mega-col li a { display: block; padding: .18rem 0; color: var(--muted); text-decoration: none; font-size: .93rem; }
.mega-col li a:hover { color: var(--turquoise-dark); }

/* Hero and page heads */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #14335c 100%); color: #fff; padding: clamp(3rem, 8vw, 6rem) 0; }
.hero-sm { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.hero-inner { max-width: 820px; }
.eyebrow { color: var(--turquoise); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.85); max-width: 680px; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.crumbs a { color: rgba(255,255,255,.85); }
.page-head { background: var(--navy); color: #fff; padding: 2.4rem 0; }
.page-head h1 { margin-bottom: .2em; }
.lead-dark { color: rgba(255,255,255,.75); margin: 0; }

/* Sections */
.section { padding: clamp(2.4rem, 6vw, 4rem) 0; }
.section.alt { background: #fff; }
.section-lead { color: var(--muted); margin-bottom: 1.5rem; }
.split, .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.card { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.alt .card { background: var(--bg); }
.muted-on-dark { color: rgba(255,255,255,.7); }
.tag { display: inline-block; margin-left: .4rem; padding: .1rem .55rem; border-radius: 999px; background: rgba(25,195,177,.15); color: var(--turquoise-dark); font-size: .72rem; font-weight: 700; vertical-align: middle; }

/* Sector accordion */
.accordion { display: grid; gap: .8rem; }
.sector { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0 1.4rem; }
.alt .sector { background: var(--bg); }
.sector summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; }
.sector summary::-webkit-details-marker { display: none; }
.sector summary::after { content: "+"; font-size: 1.5rem; color: var(--turquoise-dark); margin-left: auto; }
.sector[open] summary::after { content: "\2212"; }
.sector summary small { color: var(--muted); font-weight: 500; font-size: .85rem; }
.sector-blurb { color: var(--muted); margin: 0 0 .8rem; }

/* Chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding-bottom: 1.3rem; }
.chips a { display: inline-block; padding: .5rem 1rem; border-radius: 999px; background: rgba(25,195,177,.12); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; }
.chips a:hover { border-color: var(--turquoise); }
.chips-lg a { padding: .7rem 1.3rem; font-size: 1rem; }
.chips-lg { padding-bottom: 0; }

/* Journey and steps */
.journey { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; counter-reset: j; }
.journey li { position: relative; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; display: flex; flex-direction: column; gap: .3rem; font-size: .9rem; }
.journey li span:last-child { color: var(--muted); }
.journey-num, .step-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--turquoise); color: var(--navy); font-weight: 800; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.steps li { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.alt .steps li { background: var(--bg); }
.steps p { color: var(--muted); margin: 0; }

/* Trust, features, lists */
.trust-grid, .feature-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.trust-grid p, .feature-list p { color: var(--muted); margin: 0; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: .35rem 0 .35rem 1.8rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .75rem; width: 1rem; height: .5rem; border-left: 3px solid var(--turquoise); border-bottom: 3px solid var(--turquoise); transform: rotate(-45deg) scale(.9); }
.faq { background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0 1.2rem; margin-bottom: .7rem; }
.faq summary { padding: 1rem 0; font-weight: 700; cursor: pointer; }
.faq p { color: var(--muted); }

/* CTA band and footer */
.cta-band { background: linear-gradient(160deg, var(--navy) 0%, #14335c 100%); color: #fff; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band p { color: rgba(255,255,255,.8); }
.cta-band .btn-row { justify-content: center; }
.site-footer { background: #071528; color: #fff; padding: 2.5rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-size: 23px; margin-bottom: .6rem; }
.footer-brand .brand-mark { width: 32px; height: 32px; }
.footer-brand .brand-mark img { width: 32px; height: 32px; }
.footer-tagline { font-size: .75rem; color: rgba(255,255,255,.55); margin-top: .6rem; }
.footer-h { font-weight: 700; margin-bottom: .5rem; }
.site-footer ul { list-style: none; }
.site-footer li { padding: .15rem 0; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--turquoise); }
.footer-base { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.55); }

/* Tablet */
@media (max-width: 980px) {
  .journey { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid, .feature-list { grid-template-columns: repeat(2, 1fr); }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Mobile */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: .8rem 1rem 1.2rem; max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .nav-link { text-align: left; padding: .8rem; }
  .site-nav .btn { margin: .5rem 0 0; }
  .mega { position: static; box-shadow: none; padding: .4rem .4rem 0; background: rgba(255,255,255,.06); color: #fff; border-radius: var(--radius-sm); }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-col h3 a { color: #fff; }
  .mega-col li a { color: rgba(255,255,255,.7); }
  .split, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .journey, .steps, .trust-grid, .feature-list { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Icons (vendored Lucide, inline SVG via currentColor) ---- */
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
.icon-tile { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(25,195,177,.16); color: var(--navy); }
.icon-tile .icon { width: 24px; height: 24px; vertical-align: 0; }
.icon-tile-lg { width: 56px; height: 56px; border-radius: 18px; }
.icon-tile-lg .icon { width: 28px; height: 28px; }
.icon-tile-hero { width: 76px; height: 76px; border-radius: 24px; background: var(--turquoise); color: var(--navy); }
.icon-tile-hero .icon { width: 40px; height: 40px; }
.chips a { display: inline-flex; align-items: center; }
.chip-icon { width: 1.05em; height: 1.05em; margin-right: .45rem; vertical-align: 0; color: var(--turquoise-dark); }
.card > .icon-tile { margin-bottom: .8rem; }

/* Hero with icon cluster */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 360px; justify-self: end; padding-bottom: 22px; }
.art-tile { aspect-ratio: 1; display: grid; place-items: center; border-radius: 24px; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.14); color: var(--turquoise); }
.art-tile .icon { width: 38%; height: 38%; vertical-align: 0; }
.hero-art .art-tile:nth-child(3n+2) { transform: translateY(22px); }
.hero-art .art-1, .hero-art .art-5, .hero-art .art-9 { background: var(--turquoise); color: var(--navy); border-color: transparent; }

/* Sector strip in page heads */
.sector-strip { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.sector-strip a { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; padding: .3rem .85rem .3rem .3rem; border-radius: 999px; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.14); }
.sector-strip a:hover { border-color: var(--turquoise); }
.art-strip { width: 32px; height: 32px; aspect-ratio: auto; border-radius: 50%; background: var(--turquoise); color: var(--navy); border: 0; }
.art-strip .icon { width: 18px; height: 18px; }

/* Sector cards (home) */
.sector-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.sector-card { display: flex; flex-direction: column; gap: .5rem; height: 100%; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.3rem; color: inherit; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.sector-card:hover { transform: translateY(-3px); border-color: var(--turquoise); box-shadow: 0 12px 28px rgba(11,31,58,.08); }
.sector-card h3 { margin: .5rem 0 0; }
.sector-card p { color: var(--muted); margin: 0; font-size: .93rem; flex: 1; }
.sector-count { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; color: var(--turquoise-dark); }
.sector-count .arrow { width: 1em; height: 1em; vertical-align: 0; }
.sector summary { gap: .9rem; }
.sector summary .sector-name { flex: 1; }
.sector summary::after { margin-left: 0; }

/* Steps and journey */
.step-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--turquoise-dark); }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.journey li { gap: .35rem; }
.journey .icon-tile { margin-bottom: .3rem; }

/* Service page title row */
.title-row { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1rem; }
.title-row h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cat-chip { display: inline-block; padding: .15rem .7rem; border-radius: 999px; background: rgba(25,195,177,.18); color: var(--turquoise); font-size: .78rem; font-weight: 700; margin-bottom: .35rem; }

@media (max-width: 980px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 300px; }
}
@media (max-width: 560px) {
  .sector-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 240px; }
  .icon-tile-hero { width: 60px; height: 60px; border-radius: 18px; }
  .icon-tile-hero .icon { width: 32px; height: 32px; }
  .title-row { align-items: flex-start; }
}

/* Keep hero text on the same left edge as the nav and page content. */
.hero-inner.wrap { max-width: var(--wrap); }
.hero-inner.wrap > *:not(.title-row) { max-width: 820px; }
.hero-inner.wrap > .title-row { max-width: 820px; }

/* Legal / prose pages */
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose p, .prose li { color: #24374f; }
.draft-note { background: rgba(25,195,177,.12); border: 1.5px solid var(--turquoise); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
.draft-note.draft-strong { background: #FFF4E5; border-color: #B45309; }
.draft-note.draft-strong strong { color: #92400E; }
/* A choice the owner / a lawyer still has to make, or a value to fill in before launch. */
.decide { background: #FFF4E5; border-left: 4px solid #B45309; padding: .45rem .8rem; border-radius: 4px; color: #6B3A08; font-size: .95rem; }
.fill-in { background: #FFF4E5; border-radius: 4px; padding: 0 .35rem; color: #6B3A08; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid #DCE4EC; color: #24374f; }
.prose th { background: #F1F5F9; font-weight: 700; }
.prose .toc { columns: 2; column-gap: 2rem; margin: 1rem 0 0; padding-left: 1.1rem; }
@media (max-width: 640px) { .prose .toc { columns: 1; } .prose table { display: block; overflow-x: auto; } }
.muted-text { color: var(--muted); }

/* Small screens: the wordmark stays, smaller (icon 28px, text 20px = 0.72x,
   gap 8px = 0.28x, the app's proportions), so the menu button still fits. */
@media (max-width: 559px) {
  .site-header .brand { gap: 8px; }
  .site-header .brand-mark, .site-header .brand-mark img { width: 28px; height: 28px; }
  .site-header .brand-text strong { font-size: 20px; }
}
