/* ────────────────────────────────────────────────────────────────────────────
   Alffi Technologies — site styles, built on the Industry system in ds.css.

   Every piece of presentation lives here. The Content-Security-Policy blocks
   inline style attributes, so there is deliberately nowhere else for it to go —
   which also means markup stored in the admin cannot carry its own styling.
   ──────────────────────────────────────────────────────────────────────── */

body { margin: 0; background: var(--color-bg); }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.wrap.narrow { max-width: 780px; }
.centre { text-align: center; }

/* Keyboard users get to the content without tabbing the whole menu. */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-accent-900); color: #f2f2f3;
  padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 0; }

.lnk { color: var(--color-accent-700); text-decoration: none; font-family: var(--font-heading); cursor: pointer; }
.lnk:hover { color: var(--color-accent-800); text-decoration: underline; text-underline-offset: 3px; }

.navlnk { color: var(--color-text); text-decoration: none; font-size: 15px; cursor: pointer; padding: 4px 0; border-bottom: 1px solid transparent; }
.navlnk:hover { color: var(--color-accent-700); border-bottom-color: var(--color-accent); }
.navlnk[aria-current="page"] { color: var(--color-accent-700); border-bottom-color: var(--color-accent); }

.rowlnk { text-decoration: none; color: inherit; cursor: pointer; display: block; }
.rowlnk:hover { background: var(--color-accent-100); }

.stripe { background: repeating-linear-gradient(135deg, #e9e9ea 0 8px, #dcdcde 8px 16px); }
.ph { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #5d5d60; text-align: center; padding: 0 16px; }

.shell { min-height: 100vh; display: flex; flex-direction: column; font-family: var(--font-body); color: var(--color-text); }
main { flex: 1; }

/* — header — */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--color-bg); border-bottom: 1px solid var(--color-divider); }
.site-header .bar { display: flex; align-items: center; gap: 30px; padding-top: 18px; padding-bottom: 18px; }
.brand { margin-right: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  background: var(--color-accent-900); color: #f2f2f3; font-family: var(--font-heading); font-size: 21px; letter-spacing: .02em; }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-name { display: block; font-family: var(--font-heading); font-size: 23px; line-height: 1; }
.brand-sub { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-neutral-600); margin-top: 3px; }
.navlist { display: flex; align-items: center; gap: 30px; }
.hdr-phone { font-family: var(--font-heading); font-size: 17px; text-decoration: none; color: var(--color-text); white-space: nowrap; }
.hdr-phone:hover { color: var(--color-accent-700); }

.burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-divider); cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 1px; background: var(--color-text); position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--color-text); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* — sections — */
.sec { padding-top: 68px; padding-bottom: 68px; }
.hero-tint { background: #94bce3; }
.sec-tight { padding-top: 48px; padding-bottom: 48px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.kicker { font-family: var(--font-heading); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 18px; }
.kicker-muted { font-family: var(--font-heading); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-neutral-600); }
.h-xl { font-size: 68px; line-height: .98; margin: 0 0 24px; }
.h-lg { font-size: 60px; line-height: 1; margin: 0 0 20px; }
.h-md { font-size: 36px; margin: 0 0 26px; }
.lede { font-size: 18px; line-height: 1.65; color: var(--color-neutral-800); text-wrap: pretty; }
.lede-wide { max-width: 62ch; }
.body-copy { font-size: 17px; line-height: 1.7; color: var(--color-neutral-800); }
.muted { color: var(--color-neutral-700); }
.signature { font-family: var(--font-heading); font-size: 20px; margin-top: 26px; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 52px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn-row-centre { justify-content: center; }
.btn-lg { font-size: 15px; padding: 13px 24px; }
.btn-primary { color: var(--color-bg); }
.btn-primary:hover { color: var(--color-bg); }
.band { background: var(--color-neutral-100); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.band-dark { background: var(--color-accent-900); color: #f2f2f3; }
.band-dark h2, .band-dark h3 { color: #f2f2f3; }
.rule-top { border-top: 1px solid var(--color-divider); }

.crumbs { font-size: 13px; color: var(--color-neutral-600); margin-bottom: 20px; }
.crumbs a { color: var(--color-accent-700); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { color: var(--color-neutral-500); }

/* — spec panel — */
.spec { padding: 28px 26px; background: var(--color-neutral-100); }
.spec-title { margin-bottom: 14px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--color-divider); }
.spec-row:last-of-type { border-bottom: 0; }
.spec-row .k { font-size: 14px; color: var(--color-neutral-700); }
.spec-row .v { font-family: var(--font-heading); font-size: 19px; text-align: right; }

/* — steps — */
.step-dark { border-top: 1px solid rgba(242,242,243,.3); padding-top: 16px; }
.step-dark .n { font-family: var(--font-heading); font-size: 42px; line-height: 1; color: var(--color-accent-400); }
.step-dark .t { font-family: var(--font-heading); font-size: 20px; margin: 10px 0 6px; }
.step-dark p { font-size: 14px; margin: 0; color: rgba(242,242,243,.75); }
.step-box { padding: 22px; background: var(--color-bg); }
.step-box .n { font-family: var(--font-heading); font-size: 34px; line-height: 1; color: var(--color-accent); }
.step-box .t { font-family: var(--font-heading); font-size: 19px; margin: 8px 0 6px; }
.step-box p { font-size: 13px; margin: 0; color: var(--color-neutral-700); }

/* — feature cards — */
.feat-wrap { display: flex; }
.feat { padding: 24px; background: var(--color-bg); width: 100%; }
.feat .t { font-family: var(--font-heading); font-size: 21px; margin-bottom: 8px; }
.feat p { font-size: 14px; margin: 0 0 12px; color: var(--color-neutral-700); }

/* — faq — */
.faq-item { border-top: 1px solid var(--color-divider); padding: 18px 0; }
.faq-item .q { font-family: var(--font-heading); font-size: 20px; margin-bottom: 6px; }
.faq-item p { font-size: 14px; margin: 0; color: var(--color-neutral-700); }

/* — service rows — */
.srow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 26px; align-items: center; padding: 28px 16px; border-top: 1px solid var(--color-divider); }
.srow:last-child { border-bottom: 1px solid var(--color-divider); }
.srow .num { font-family: var(--font-heading); font-size: 13px; color: var(--color-neutral-500); letter-spacing: .1em; }
.srow .t { font-family: var(--font-heading); font-size: 28px; display: block; }
.srow .d { font-size: 15px; color: var(--color-neutral-700); margin-top: 4px; display: block; }
.srow .price { font-family: var(--font-heading); font-size: 22px; white-space: nowrap; }
.srow .arw { font-family: var(--font-heading); font-size: 16px; color: var(--color-accent-700); }

/* — plans — */
.plans .plan { padding: 26px; background: var(--color-bg); display: flex; flex-direction: column; gap: 14px; height: 100%; }
.plan .name { font-family: var(--font-heading); font-size: 26px; }
.plan .price { font-family: var(--font-heading); font-size: 44px; line-height: 1; }
.plan .price small { font-size: 16px; color: var(--color-neutral-600); }
.plan ul { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--color-neutral-700); display: flex; flex-direction: column; gap: 7px; }
.plan .btn { margin-top: auto; }
.plan-featured { outline: 2px solid var(--color-accent); outline-offset: 4px; }

/* — IT offers — */
.offer { padding: 26px; background: var(--color-bg); }
.offer h3 { margin: 8px 0 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--color-neutral-700); }
.ticks li { padding-left: 20px; position: relative; }
.ticks li::before { content: "—"; position: absolute; left: 0; color: var(--color-accent); }
.asks { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; }
.ask { border-top: 1px solid var(--color-divider); padding: 14px 0; font-size: 15px; color: var(--color-neutral-800); }

/* — media — */
.media { display: grid; place-items: center; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media-tall { aspect-ratio: 3 / 4; }
.media-wide { aspect-ratio: 3 / 2; }
.media-hero { aspect-ratio: 16 / 9; }

/* — case studies — */
.study-card { height: 100%; }
.study-card-body { padding: 22px; }
.study-card-body h3 { margin: 8px 0 8px; }
.study-card-body p { font-size: 14px; color: var(--color-neutral-700); margin-bottom: 12px; }
.study-sec { margin-bottom: 44px; }
.study-sec h2 { font-size: 28px; margin-bottom: 12px; }
.study-aside { position: sticky; top: 110px; }
.stats .stat { text-align: center; }
.stats .n { font-family: var(--font-heading); font-size: 46px; line-height: 1; color: var(--color-accent-800); }
.stats .l { font-size: 13px; color: var(--color-neutral-700); margin-top: 6px; }
.pull { margin: 44px 0 0; padding: 28px 0 0; border-top: 1px solid var(--color-divider); text-align: center; }
.pull p { font-family: var(--font-heading); font-size: 28px; line-height: 1.25; margin: 0 0 12px; }
.pull p::before { content: "\201C"; }
.pull p::after { content: "\201D"; }
.pull cite { font-style: normal; font-size: 13px; color: var(--color-neutral-600); }

/* — contact — */
.form-panel, .contact-panel { padding: 26px; }
.contact-panel { background: var(--color-neutral-100); }
.form-panel h2, .contact-panel h2 { font-size: 24px; margin-bottom: 18px; }
.grid-2-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.req { color: var(--color-accent-700); }
.input-bad { border-color: #8c2f2f; }
.field-err { display: block; font-size: 12px; color: #8c2f2f; margin-top: 5px; }
.contact-item { margin-bottom: 18px; }
.contact-item .l { font-size: 12px; color: var(--color-neutral-600); }
.contact-item .v { font-family: var(--font-heading); font-size: 24px; text-decoration: none; color: var(--color-text); display: block; }
.contact-item .v:hover { color: var(--color-accent-700); }
.hours-row { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--color-divider); padding: 8px 0; font-size: 14px; }
.hours-row:last-child { border-bottom: 0; }
.form-note { font-size: 13px; color: var(--color-neutral-600); margin-top: 14px; }
.form-error { font-size: 14px; color: #8c2f2f; border: 1px solid #8c2f2f; padding: 10px 12px; margin-bottom: 18px; }
.sent { padding: 40px 32px; text-align: center; }

/* The honeypot. Kept out of view without display:none, which the better bots
   check for, and taken out of the tab order and the accessibility tree. */
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* — footer — */
.site-footer { background: var(--color-accent-900); color: #f2f2f3; }
.site-footer a { color: rgba(242,242,243,.85); text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col span { font-size: 14px; color: rgba(242,242,243,.85); }
.foot-blurb { font-size: 14px; color: rgba(242,242,243,.7); margin: 0; }
.foot-head { font-family: var(--font-heading); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242,242,243,.55); margin-bottom: 4px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding: 20px 0 40px; border-top: 1px solid rgba(242,242,243,.22); font-size: 13px; color: rgba(242,242,243,.55); }
.foot-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(242,242,243,.12); color: #f2f2f3; font-family: var(--font-heading); font-size: 21px; margin-bottom: 16px; }
/* The logo's own lettering is dark, so it needs a light chip behind it on the
   footer's dark band — otherwise the wordmark reads as missing, not just dim. */
.foot-logo-chip { display: inline-flex; align-items: center; align-self: flex-start; background: #f2f2f3; border-radius: 6px; padding: 8px 12px; margin-bottom: 16px; }
.foot-logo { display: block; height: 28px; width: auto; }

[hidden] { display: none !important; }

/* — responsive — */
@media (max-width: 900px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .h-xl { font-size: 42px; }
  .h-lg { font-size: 38px; }
  .h-md { font-size: 28px; }
  .lede { font-size: 16px; }
  .sec { padding-top: 44px; padding-bottom: 44px; }
  .split, .grid-3, .grid-4, .grid-2, .grid-2-form { grid-template-columns: 1fr; gap: 26px; }
  .grid-2-form { gap: 16px; }
  .study-aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .srow { grid-template-columns: 1fr auto; gap: 12px; padding: 20px 4px; }
  .srow .num, .srow .arw { display: none; }
  .srow .t { font-size: 22px; }
  .burger { display: inline-flex; }
  .navlist { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-divider); padding: 8px 22px 18px; }
  .navlist.open { display: flex; }
  .navlist > * { padding: 12px 0; border-bottom: 1px solid var(--color-divider); }
  .site-header .bar { position: relative; gap: 14px; }
  .brand-name { font-size: 19px; }
  .hdr-phone { display: none; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .h-xl { font-size: 34px; }
  .h-lg { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .btn, .skip { display: none; }
}
