/* ==========================================================================
   Jowad Mustafa — Technology Consulting
   Hand-rolled design system. No framework, no build step.
   ========================================================================== */

:root {
  /* surface */
  --ink: #0a0d0c;
  --ink-2: #0d1110;
  --panel: #111615;
  --panel-2: #151b19;
  --line: #232b28;
  --line-soft: #1a211f;

  /* type */
  --text: #e9efec;
  --muted: #98a5a0;
  --faint: #85928d;

  /* accent — actions only */
  --accent: #26a99b;
  --accent-ink: #031a18;
  --accent-dim: #25a596;

  /* type stacks */
  --display: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* measure */
  --page: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 3px;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.03;
  margin: 0;
  text-wrap: balance;
}

h3, h4 {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

p { margin: 0; }

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  font: 600 13px/1 var(--mono);
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 12, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--panel);
}

.brand__name {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand__name span {
  display: block;
  font: 400 10.5px/1.4 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font: 500 13px/1 var(--body);
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
  padding: 8px 0;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font: 500 13px/1 var(--body);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.header-cta:hover { border-color: var(--accent-dim); background: var(--panel-2); }
.header-cta__dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}

/* --------------------------------------------------------------- hero */

.hero {
  padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-dim);
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  letter-spacing: -0.042em;
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--muted);
}

.hero__lede {
  margin-top: 26px;
  max-width: 54ch;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--radius);
  font: 600 14px/1 var(--body);
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--primary:hover { background: #33bda9; border-color: #33bda9; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--faint); background: var(--panel); }

.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.hero__aside {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  gap: 18px;
}

.fact dt {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 7px;
}
.fact dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
}

/* --------------------------------------------------------------- sections */

.section {
  padding: clamp(72px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--line-soft);
}
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section__num {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 20px;
  display: block;
}

.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -0.035em;
}

.section__note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 46ch;
}

/* --------------------------------------------------------------- problem cards */

.problems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.problem {
  background: var(--ink-2);
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s var(--ease);
  min-height: 100%;
}
.problem:hover { background: var(--panel); }

.problem__num {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--faint);
}

.problem h3 {
  font-size: 1.06rem;
  letter-spacing: -0.018em;
  line-height: 1.3;
  font-weight: 600;
}

.problem p {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted);
  margin-top: 2px;
}

/* full problem list (problems page) */

.problem-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.problem-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 48px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.problem-row__num {
  font: 500 12px/1.6 var(--mono);
  color: var(--faint);
  letter-spacing: 0.1em;
}

.problem-row h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.32rem);
  letter-spacing: -0.022em;
  line-height: 1.3;
  margin-bottom: 10px;
}

.problem-row p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 46ch;
}

.signals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.signals li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--faint);
}
.signals li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 1px;
  background: var(--accent-dim);
}

.signals__label {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
  display: block;
}

/* --------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  counter-reset: step;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  position: relative;
}

.step__num {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.step h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  font-weight: 600;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* --------------------------------------------------------------- cta band */

.cta-band {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.032em;
  max-width: 18ch;
}

.cta-band p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 12px;
  max-width: 44ch;
}

/* --------------------------------------------------------------- prose (about/privacy) */

.prose {
  max-width: 62ch;
}
.prose p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
  margin-bottom: 22px;
}
.prose p strong { color: var(--text); font-weight: 600; }
.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 48px 0 18px;
  letter-spacing: -0.03em;
}
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 22px; padding-left: 20px; color: var(--muted); }
.prose li { margin-bottom: 9px; line-height: 1.7; }

.pullquote {
  border-left: 2px solid var(--accent-dim);
  padding: 4px 0 4px 24px;
  margin: 34px 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* --------------------------------------------------------------- form */

.intake {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.field .req { color: var(--accent); margin-left: 4px; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: 400 15px/1.5 var(--body);
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2398a5a0' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:hover,
.field textarea:hover,
.field select:hover { border-color: #2c3532; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-dim);
  background: var(--ink-2);
}

.field textarea { resize: vertical; min-height: 132px; line-height: 1.6; }

.field__hint {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 7px;
  line-height: 1.5;
}

.field__error {
  font-size: 12.5px;
  color: #fca5a5;
  margin-top: 7px;
  line-height: 1.5;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #b04a4a; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  border: 1px solid #7f3a3a;
  background: #241413;
  color: #ffd9d6;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.form-alert[hidden] { display: none; }

.form-legal {
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.6;
  margin-top: 18px;
}
.form-legal a { color: var(--muted); }

.btn--submit { width: 100%; margin-top: 6px; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* success panel */

.success {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 44px);
}
.success[hidden] { display: none; }

.success__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(38, 169, 155, 0.14);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  font-size: 18px;
}

.success h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 14px; }
.success p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }

.success__ref {
  display: inline-block;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.1em;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--ink);
  margin-top: 6px;
}

/* aside on intake page */

.side-card {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 34px;
}
.side-card:first-child { margin-top: 0; }

.side-card h3 {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.side-card ol,
.side-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  display: grid;
  gap: 9px;
}

.side-card li::marker { color: var(--accent-dim); }

.side-card p { color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* --------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  padding: clamp(44px, 6vw, 64px) 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}

.footer__brand p {
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 34ch;
}

.footer__col h3 {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.footer__col a,
.footer__col span {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.16s var(--ease);
  overflow-wrap: anywhere;
}
.footer__col a:hover { color: var(--text); }

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------- utilities */

[hidden] { display: none !important; }

.opt {
  text-transform: none;
  letter-spacing: 0;
  color: var(--faint);
  font-weight: 400;
}

.link-plain {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.16s var(--ease);
}
.link-plain:hover { border-color: var(--accent-dim); }

.mt-16 { margin-top: 16px; }

.footer__base a { color: inherit; text-decoration: none; }
.footer__base a:hover { color: var(--text); }

/* --------------------------------------------------------------- page head */

.page-head {
  padding: clamp(56px, 9vw, 104px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line-soft);
}

.page-head h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  letter-spacing: -0.04em;
  max-width: 20ch;
}

.page-head p {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  line-height: 1.65;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__aside { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section__head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .intake { grid-template-columns: 1fr; }
  .problem-row { grid-template-columns: 44px minmax(0, 1fr); }
  .problem-row__signals { grid-column: 2; margin-top: 4px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { height: 62px; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }
  .nav.is-open a:last-child { border-bottom: 0; }

  .steps { grid-template-columns: 1fr; gap: 28px; }
  .cta-band__inner { align-items: flex-start; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  .problems { grid-template-columns: 1fr; }
  .hero__aside { grid-template-columns: 1fr; gap: 16px; }
  .hero__aside .fact { border-top: 1px solid var(--line-soft); padding-top: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

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