/* ==========================================================================
   rehannawaz.com
   Design tokens follow devin.ai: near-white page, #191919 ink with opacity
   steps for secondary text, 8% hairlines, black pill CTAs, blue accent for
   small highlights, white elevated "product UI" panels.
   Type: Inter Tight (stand-in for NB International Pro), Inter for UI
   mockups, IBM Plex Mono for labels.
   ========================================================================== */

:root {
  --bg: #fcfcfc;
  --wash: #f8f8f8;
  --elevated: #ffffff;
  --text: #191919;
  --text-2: rgba(25, 25, 25, .56);
  --text-3: rgba(25, 25, 25, .4);
  --border: rgba(0, 0, 0, .08);
  --border-2: rgba(0, 0, 0, .06);
  --tint: rgba(0, 0, 0, .04);
  --tint-faint: rgba(0, 0, 0, .02);
  --blue: #317cff;
  --blue-text: #2f6fe0;
  --blue-tint: rgba(49, 124, 255, .08);
  --green: #00a558;
  --orange: #e8590c;
  --red: #e5484d;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1248px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(56px, 7vw, 96px);
  --r-card: 16px;
  --r-ui: 12px;
  --shadow-ui: 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -12px rgba(0, 0, 0, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.55; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue-tint); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.section--wash { background: var(--wash); }
.section--tight { padding: calc(var(--section) * .6) 0; }

/* ---------- Type ---------- */
.display { font-size: clamp(42px, 6vw, 64px); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.h2 { font-size: clamp(32px, 4vw, 40px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; }
.h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.h4 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.sub { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.45; color: var(--text-2); max-width: 600px; letter-spacing: -0.01em; }
.t2 { color: var(--text-2); }
.t3 { color: var(--text-3); }
.small { font-size: 15px; }
.xs { font-size: 13px; }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 13px; color: var(--text-3); letter-spacing: 0; }
.blue { color: var(--blue-text); }
.link { color: var(--blue-text); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-weight: 500; }
.arrow-link svg { width: 14px; height: 14px; transition: transform .15s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

.head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 720px; }
.head--center { text-align: center; justify-items: center; margin-inline: auto; }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn--primary { background: var(--text); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--secondary { background: var(--elevated); color: var(--text); border-color: rgba(0, 0, 0, .12); }
.btn--secondary:hover { background: var(--wash); }
.btn--lg { height: 52px; padding: 0 24px; font-size: 18px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 252, 252, .86); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; height: 68px; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.brand__mark { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 26px; flex: 1; }
.nav__links a { text-decoration: none; font-size: 15.5px; color: var(--text); opacity: .85; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; color: var(--blue-text); }
.nav__cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__toggle { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .12); background: var(--elevated); cursor: pointer; place-items: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 16px; height: 1.5px; background: var(--text); position: relative; transition: transform .2s ease; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -5px; } .nav__toggle span::after { top: 5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 980px) {
  .nav { gap: 16px; }
  .nav__links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 4px var(--gutter) 16px; display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border-2); font-size: 17px; opacity: 1; }
  .nav__toggle { display: grid; }
  .nav__cta .btn--secondary { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 10vw, 128px) 0 0; position: relative; }
.hero__copy { display: grid; gap: 22px; max-width: 760px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--text-2); }
.hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 14px; height: 14px; color: var(--green); }
@media (max-width: 560px) { .hero__ctas .btn { flex: 1 1 100%; } }

/* Stage: the product-UI panel with soft background tiles, like devin.ai */
.stage { position: relative; margin-top: clamp(48px, 6vw, 80px); padding: 0 0 clamp(40px, 6vw, 80px); }
.stage__tiles { position: absolute; inset: -40px 0 40px; pointer-events: none; overflow: hidden; }
.tile { position: absolute; border: 1px solid var(--border-2); background-color: #f1f4f7; opacity: .9; }
.tile--grid { background-image: linear-gradient(rgba(49, 124, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(49, 124, 255, .12) 1px, transparent 1px); background-size: 18px 18px; }
.tile--dots { background-color: #f4f4f2; background-image: radial-gradient(rgba(0, 0, 0, .18) 1px, transparent 1.2px); background-size: 9px 9px; }
.tile--lines { background-color: #eef1f4; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .1) 0 1px, transparent 1px 10px); }
.tile--serp { background: #fff; padding: 10px; display: grid; gap: 6px; align-content: start; }
.tile--serp i { display: block; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .08); }
.tile--serp i:nth-child(3n+1) { background: rgba(49, 124, 255, .35); width: 60%; }
@media (max-width: 760px) { .stage__tiles { display: none; } }

/* ---------- Product UI mockups (Inter, smaller, like real app chrome) ---------- */
.ui { position: relative; z-index: 1; font-family: var(--font-ui); font-size: 13px; line-height: 1.45; letter-spacing: -0.003em; background: var(--elevated); border-radius: var(--r-ui); box-shadow: var(--shadow-ui); overflow: hidden; }
.ui__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--border-2); color: var(--text-2); }
.ui__dots { display: flex; gap: 6px; }
.ui__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.ui__dots i:nth-child(2) { background: #febc2e; } .ui__dots i:nth-child(3) { background: #28c840; }
.ui__title { color: var(--text); font-weight: 500; }
.ui__body { display: grid; grid-template-columns: 220px 1fr 340px; min-height: 440px; }
.ui__side { border-right: 1px solid var(--border-2); padding: 12px 10px; display: grid; gap: 2px; align-content: start; background: var(--tint-faint); }
.ui__side .row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--text); }
.ui__side .row.is-active { background: var(--tint); }
.ui__side .row svg { width: 14px; height: 14px; color: var(--text-2); flex: none; }
.ui__side .grp { padding: 14px 8px 4px; color: var(--text-3); font-size: 12px; }
.ui__side .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-left: auto; }
.ui__main { padding: 22px 26px; display: grid; gap: 14px; align-content: start; }
.bubble { justify-self: end; max-width: 80%; background: var(--wash); border: 1px solid var(--border-2); padding: 9px 12px; border-radius: 10px; }
.step-line { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.step-line::before { content: "›"; color: var(--text-3); }
.step-line b { color: var(--green); font-weight: 500; }
.msg { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.msg__av { width: 26px; height: 26px; border-radius: 7px; background: var(--text); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.msg__who { font-weight: 600; } .msg__who span { color: var(--text-3); font-weight: 400; margin-left: 6px; }
.msg p + p { margin-top: 6px; }
.ui-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; background: var(--elevated); }
.ui-card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chip-ui { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--text-2); }
.chip-ui--blue { background: var(--blue-tint); color: var(--blue-text); }
.chip-ui--green { background: rgba(0, 165, 88, .1); color: var(--green); }
.chip-ui--red { background: rgba(229, 72, 77, .1); color: var(--red); }
.chip-ui--orange { background: rgba(232, 89, 12, .1); color: var(--orange); }
.btn-ui { display: inline-flex; height: 26px; align-items: center; padding: 0 10px; border-radius: 6px; background: var(--text); color: #fff; font-size: 12px; font-weight: 500; width: fit-content; }
.ui__panel { border-left: 1px solid var(--border-2); padding: 18px; display: grid; gap: 12px; align-content: start; }
.ui__panel h4 { font-family: var(--font-ui); font-size: 17px; letter-spacing: -0.02em; font-weight: 600; }
.finding { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--border-2); }
.finding:first-of-type { border-top: 0; }
.bar { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.ui-note { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-family: var(--mono); font-size: 11px; color: var(--text-3); background: rgba(255, 255, 255, .9); padding: 2px 6px; border-radius: 4px; }
@media (max-width: 1080px) { .ui__body { grid-template-columns: 200px 1fr; } .ui__panel { display: none; } }
@media (max-width: 720px) { .ui__body { grid-template-columns: 1fr; min-height: 0; } .ui__side { display: none; } .ui__main { padding: 16px; } }

/* ---------- Logo wall ---------- */
.logos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.logo-cell { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); min-height: 64px; background: var(--bg); }
.logo-cell img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.logo-cell span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1080px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-cell { padding: 14px 12px; font-size: 13px; } }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--elevated); border: 1px solid var(--border); border-radius: var(--r-card); padding: clamp(22px, 2.6vw, 28px); display: grid; gap: 12px; align-content: start; }
.card--wash { background: var(--wash); }
.card p { color: var(--text-2); }
a.card { text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: rgba(0, 0, 0, .16); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .25); }
.card__foot { margin-top: auto; padding-top: 6px; }
.icon { width: 36px; height: 36px; border-radius: 10px; background: var(--wash); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text); }
.icon svg { width: 18px; height: 18px; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; color: var(--text-2); font-size: 15.5px; }
.ticks svg { width: 16px; height: 16px; color: var(--green); flex: none; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--font-ui); font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--text-2); }

/* Feature row: text + UI */
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 7vw, 96px); }
.feature--flip .feature__copy { order: 2; }
.feature__copy { display: grid; gap: 18px; align-content: start; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature__copy { order: 0; } }

/* Services index */
.svc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.svc-tab { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .12); background: var(--elevated); font-size: 15px; cursor: pointer; color: var(--text); }
.svc-tab[aria-selected="true"] { background: var(--text); color: #fff; border-color: var(--text); }
@media (max-width: 640px) { .svc-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); } .svc-tabs::-webkit-scrollbar { display: none; } .svc-tab { flex: none; } }
.svc-card[hidden] { display: none; }
.svc-card .label { display: flex; justify-content: space-between; }

/* Stats (clearly labelled examples) */
.metric { font-size: clamp(44px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }

/* Industries */
.ind { display: grid; gap: 10px; align-content: start; }
.ind .label { color: var(--blue-text); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--text); }
.step p { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 19px; letter-spacing: -0.015em; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 7px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 12px; }
.faq__a { padding: 0 0 22px; color: var(--text-2); max-width: 760px; }
.faq__a p + p { margin-top: 10px; }

/* CTA band */
.cta-band { background: var(--text); color: #fff; border-radius: 20px; padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: end; }
.cta-band .sub { color: rgba(255, 255, 255, .62); }
.cta-band .btn--primary { background: #fff; color: var(--text); }
.cta-band .btn--primary:hover { background: #ededed; }
.cta-band .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.cta-band .btn--secondary:hover { background: rgba(255, 255, 255, .08); }
.cta-band__ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band__ctas { justify-content: flex-start; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 500; }
.opt { color: var(--text-3); font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .12); background: var(--elevated); font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23191919' stroke-opacity='.5' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red); }
.form__note { font-size: 13.5px; color: var(--text-3); }
.form__status { font-size: 15px; padding: 12px 14px; border-radius: 10px; display: none; }
.form__status.is-success { display: block; background: rgba(0, 165, 88, .08); color: #00733d; }
.form__status.is-error { display: block; background: rgba(229, 72, 77, .08); color: #b4232a; }
.form__status a { color: inherit; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; height: 34px; align-items: center; padding: 0 13px; border-radius: 999px; font-size: 14.5px; cursor: pointer; border: 1px solid rgba(0, 0, 0, .12); background: var(--elevated); user-select: none; }
.chip span:hover { background: var(--wash); }
.chip input:checked + span { background: var(--text); color: #fff; border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-panel { background: var(--elevated); border: 1px solid var(--border); border-radius: 20px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }

.review-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 960px) { .review-wrap { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-hero .display { font-size: clamp(38px, 5vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-3); margin-bottom: 22px; }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--blue-text); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-3); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: 92px; display: grid; gap: 16px; }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }

.prose { font-size: 18px; line-height: 1.65; color: var(--text); max-width: 720px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.12; margin-top: 2em; }
.prose h3 { font-size: 21px; line-height: 1.25; margin-top: 1.6em; letter-spacing: -0.02em; }
.prose p, .prose li { color: rgba(25, 25, 25, .78); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--text-3); }
.prose a { color: var(--blue-text); text-decoration: underline; text-decoration-color: rgba(49, 124, 255, .35); text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--blue); color: var(--text-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 600; background: var(--wash); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
.answer { border: 1px solid var(--border); background: var(--wash); border-radius: 14px; padding: 18px 20px; font-size: 17px; color: var(--text); }
.answer .label { display: block; margin-bottom: 6px; }
.toc { display: grid; gap: 8px; font-size: 14.5px; }
.toc a { text-decoration: none; color: var(--text-2); }
.toc a:hover { color: var(--blue-text); }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; color: var(--text-2); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: clamp(48px, 6vw, 80px) 0 28px; font-size: 15px; color: var(--footer-text); background: var(--wash); --footer-text: rgba(25, 25, 25, .7); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 40px 28px; }
.footer__grid h4 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--footer-text); font-weight: 500; margin-bottom: 14px; }
.footer__grid h4.footer__h-gap { margin-top: 28px; }
.footer__grid ul { display: grid; gap: 4px; }
.footer__grid ul a { display: inline-block; padding: 3px 0; text-decoration: none; color: var(--text); opacity: .82; line-height: 1.35; transition: color .15s ease, opacity .15s ease; }
.footer__grid ul a:hover { opacity: 1; color: var(--blue-text); }
.footer__brand { display: grid; gap: 16px; align-content: start; max-width: 320px; }
.footer__cta { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 10px 16px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background .15s ease; }
.footer__cta:hover { background: #333; }
.footer__cta svg { width: 14px; height: 14px; transition: transform .15s ease; }
.footer__cta:hover svg { transform: translateX(3px); }
.footer__grid .footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__grid .footer__social a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--elevated); font-size: 14px; opacity: 1; }
.footer__grid .footer__social a:hover { border-color: var(--blue-text); }
.footer__social svg { width: 15px; height: 15px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: clamp(40px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--footer-text); }
.footer__bottom ul { display: flex; gap: 20px; }
.footer__bottom a { text-decoration: none; color: inherit; }
.footer__bottom a:hover { color: var(--blue-text); }
@media (max-width: 1080px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } .footer__brand { grid-column: 1 / -1; max-width: 520px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } .footer__bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-ui); transform: translateY(160%); transition: transform .2s ease; }
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; height: 44px; }
@media (max-width: 760px) { .mobile-cta { display: flex; } body { padding-bottom: 76px; } }

.simple { padding: clamp(96px, 14vw, 180px) 0; }
.simple .stack { display: grid; gap: 22px; max-width: 640px; }
.ui__bar svg { width: 16px; height: 16px; }
.ui__side .row svg, .ui__bar svg { flex: none; }

/* Service clusters */
.cluster { gap: 14px; }
.cluster__head { display: flex; justify-content: space-between; align-items: center; }
.svc-rows { margin-top: 6px; border-top: 1px solid var(--border); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 2px 12px; padding: 13px 0; border-bottom: 1px solid var(--border-2); text-decoration: none; color: var(--text); }
.svc-rows li:last-child .svc-row { border-bottom: 0; padding-bottom: 0; }
.svc-row__name { font-weight: 500; letter-spacing: -0.01em; }
.svc-row__line { grid-column: 1; color: var(--text-2); font-size: 15px; }
.svc-row svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 14px; height: 14px; color: var(--text-3); transition: transform .15s ease, color .15s ease; }
.svc-row:hover .svc-row__name { color: var(--blue-text); }
.svc-row:hover svg { transform: translateX(3px); color: var(--blue-text); }
.prose, .faq__a, .answer { overflow-wrap: anywhere; }
.prose table { overflow-wrap: normal; }

/* Compact industry grid (home) */
.ind-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ind-chip { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--elevated); }
.ind-chip b { font-weight: 500; font-size: 18px; letter-spacing: -0.015em; }
.ind-chip span { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 960px) { .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero__ctas .arrow-link { align-self: center; margin-left: 6px; }
a.ind-chip { text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; height: 100%; }
a.ind-chip:hover { border-color: rgba(0, 0, 0, .16); box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .25); }
a.ind-chip:hover b { color: var(--blue-text); }
.ind-chip { position: relative; }
.ind-chip__go { position: absolute; top: 20px; right: 18px; width: 15px; height: 15px; color: var(--text-3); transition: transform .15s ease, color .15s ease; }
a.ind-chip:hover .ind-chip__go { transform: translateX(3px); color: var(--blue-text); }
.ind-chip { align-content: start; }

/* Author box at the end of guides */
.author-box { margin-top: 48px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 12px; display: grid; gap: 10px; }
.author-box p { margin: 0; }
