/* =========================================================
   MAXSO — stylesheet
   Palette and shapes taken from the reference: warm cream
   background, near-black text, lime highlight, thin-outlined
   rounded cards.
   ========================================================= */

:root {
  --cream:        #F8F2E7;
  --cream-deep:   #F2EADC;
  --card:         #FFFFFF;
  --ink:          #14140F;
  --ink-soft:     #4A4A42;
  --ink-muted:    #7C7C72;
  --line:         #14140F;
  --line-soft:    #DED5C4;
  --lime:         #D6F55C;
  --lime-deep:    #C4E93F;

  --radius:       18px;
  --radius-lg:    26px;
  --radius-pill:  999px;

  --wrap:         1140px;
  --gap:          clamp(1rem, 2.2vw, 1.6rem);
  --section-y:    clamp(3.5rem, 8vw, 7rem);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.008em;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap.narrow { width: min(100% - 2.5rem, 760px); }
.center { text-align: center; }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--cream-deep); }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }

h1 {
  font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4.1rem);
  max-width: 17ch;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.85rem);
  max-width: 22ch;
  margin-bottom: 1rem;
}
.section-title.big {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
  max-width: 20ch;
  margin-inline: auto;
}
.section-title em { font-style: italic; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }

p + p { margin-top: 1rem; }

.lead {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.6;
}
.center .lead { margin-inline: auto; }

.section-intro {
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.eyebrow, .kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}
.kicker { margin-bottom: .75rem; }
.muted { color: var(--ink-muted); }

/* The lime highlighter from the reference image */
mark {
  background: linear-gradient(transparent 58%, var(--lime) 58%);
  color: inherit;
  padding: 0 .06em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--ink);
  color: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: .9rem 1.6rem;
  font-weight: 600;
  font-size: .975rem;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--lime); color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; padding-block: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .9rem;
}
.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo-mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--lime); border: 1.5px solid var(--ink);
}
.logo-text { font-weight: 800; letter-spacing: -0.04em; font-size: 1.25rem; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: var(--cream); }
.nav a.btn:hover { color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .5rem; width: 44px; height: 44px;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px; background: var(--ink);
  border-radius: 2px; margin: 4px auto; transition: transform .2s ease, opacity .2s ease;
}
.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); }

.mobile-nav {
  display: grid; gap: .25rem;
  padding: .5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line-soft);
}
/* An author-level `display` beats the UA stylesheet's [hidden] { display: none },
   so the hidden attribute has to be honoured explicitly or the menu is stuck open. */
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: .7rem 0; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mobile-nav a:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
}
@media (min-width: 861px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem); }
.hero .lead { margin-bottom: 2.25rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }

.proof-bar {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-top: 2rem; border-top: 1px solid var(--line-soft);
}
.proof-bar li { display: flex; flex-direction: column; }
.proof-bar strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.proof-bar span { font-size: .875rem; color: var(--ink-muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
}

.card-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

/* Problem cards — the "old way" column of the reference */
.section-problem { background: var(--cream-deep); }
.card-problem { background: transparent; border-color: var(--line-soft); border-style: dashed; }
.card-problem .x-mark {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  font-size: .7rem; margin-bottom: .9rem;
}
.card-problem h3 { margin-bottom: .5rem; }
.card-problem p { color: var(--ink-soft); font-size: .95rem; }

/* Solution band */
.section-solution { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* Service cards */
.card-service { position: relative; display: flex; flex-direction: column; }
.card-service .num {
  position: absolute; top: 1.4rem; right: 1.6rem;
  font-size: .8rem; font-weight: 700; color: var(--ink-muted);
}
.card-service h3 { margin-bottom: .6rem; padding-right: 2.5rem; }
.card-service p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.1rem; }
.card-service .tags { margin-top: auto; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  padding: .28rem .65rem; border-radius: var(--radius-pill);
  background: var(--cream-deep); border: 1px solid var(--line-soft);
}

/* ---------- Process ---------- */
.steps {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: 2.5rem;
}
.step {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  position: relative;
}
.step-n {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--lime); border: 1.5px solid var(--ink);
  font-weight: 700; font-size: .9rem; margin-bottom: .9rem;
}
.step h3 { margin-bottom: .45rem; }
.step p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Work ---------- */
.card-work { transition: transform .18s ease, box-shadow .18s ease; }
.card-work:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--lime); }
.work-type {
  display: inline-block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-muted); margin-bottom: .7rem;
}
.card-work h3 { margin-bottom: .5rem; }
.card-work .arrow { font-size: .85em; color: var(--ink-muted); }
.card-work p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1.35fr 1fr; align-items: start;
}
.about-grid p { color: var(--ink-soft); }
.about-grid .btn { margin-top: .75rem; }
.card-points { background: var(--card); position: sticky; top: 6rem; }
.card-points h3 { margin-bottom: 1rem; }

.checklist li {
  display: grid; grid-template-columns: 24px 1fr; gap: .65rem;
  padding: .6rem 0; border-top: 1px solid var(--line-soft);
  font-size: .94rem; color: var(--ink-soft);
}
.checklist li:first-child { border-top: 0; padding-top: 0; }
.checklist li::before {
  content: "✓";
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime); border: 1.5px solid var(--ink);
  font-size: .7rem; color: var(--ink); font-weight: 700;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .card-points { position: static; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 2rem; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 16px; height: 16px; flex: 0 0 16px; }
.plus::before, .plus::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease;
}
.plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0deg); }
.faq-body { padding-bottom: 1.25rem; color: var(--ink-soft); max-width: 65ch; }

/* ---------- Contact ---------- */
.section-contact { background: var(--cream); }
.contact-grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr 1.05fr; align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-direct { margin-top: 2rem; }
.contact-direct li {
  display: grid; grid-template-columns: 96px 1fr; gap: 1rem;
  padding: .8rem 0; border-top: 1px solid var(--line-soft);
  font-size: .95rem;
}
.contact-direct span { color: var(--ink-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-direct a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Form ---------- */
.card-form { background: var(--card); }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { display: block; margin-bottom: 1rem; }
.field + .field, .field-row + .field, .field-row + .field-row { margin-top: 0; }
.field label {
  display: block; font-size: .84rem; font-weight: 600;
  margin-bottom: .35rem; color: var(--ink-soft);
}
.req { color: #B4341F; }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: var(--cream);
  border: 1.5px solid var(--line-soft);
  border-radius: 12px;
  font-size: .97rem;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink); background: var(--card); outline: none;
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #B4341F; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314140F' stroke-width='1.75' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Honeypot — visually gone, still reachable by naive bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-note { font-size: .8rem; color: var(--ink-muted); margin-top: .9rem; }
.form-note a { text-decoration: underline; }

.alert {
  padding: .85rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); margin-bottom: 1.25rem;
  font-size: .93rem;
}
.alert-success { background: var(--lime); }
.alert-error   { background: #FBE3DE; border-color: #B4341F; color: #7A2214; }

/* ---------- Thank you / legal pages ---------- */
.page { padding-block: clamp(3.5rem, 8vw, 6rem); }
.page h1 { max-width: 24ch; }
.prose h2 { font-size: 1.35rem; margin-top: 2.25rem; margin-bottom: .6rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: .4rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { list-style: disc; padding-left: 1.25rem; margin: .75rem 0; }
.prose li { margin-bottom: .35rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.big-check {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--lime); border: 1.5px solid var(--ink);
  font-size: 1.75rem; margin-bottom: 1.75rem;
}
.center .big-check { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  margin-top: 0;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--lime); }
.site-footer .muted { color: #9A9A8E; }

.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  padding-bottom: 2.5rem;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: .92rem; color: #C9C9BC; margin-top: .5rem; }
.footer-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: #9A9A8E; margin-bottom: .75rem;
}
.site-footer address, .site-footer p { font-style: normal; font-size: .93rem; color: #C9C9BC; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid #2E2E27;
  font-size: .85rem;
}
