/* Colors and fonts */
:root {
  --ink: #101426;
  --soft: #4b5268;
  --blue: #2536c9;
  --blue-dk: #1a27a0;
  --red: #e5383b;
  --paper: #f3f5fb;
  --line: #d8dcea;
  --head: "Bricolage Grotesque", "Segoe UI", Arial, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

a { color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.ink :focus-visible, .foot :focus-visible, .svc-main :focus-visible, .who :focus-visible { outline-color: #fff; }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }

.mono { font-family: var(--mono); font-weight: 500; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { top: 16px; }

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); text-decoration: none; }

.logo span {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo b { color: var(--blue); font-weight: 800; }

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

.nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.nav a:hover { color: var(--blue); }
.nav a[aria-current="true"] { color: var(--blue); border-bottom-color: var(--blue); }

.nav .nav-btn { padding: 9px 20px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; }
.nav .nav-btn:hover { background: var(--blue-dk); color: #fff; }

.burger { display: none; padding: 10px; border: 0; background: none; cursor: pointer; }

.burger span { display: block; width: 24px; height: 3px; margin: 5px 0; border-radius: 2px; background: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.btn-main { background: var(--blue); color: #fff; }
.btn-main:hover { background: var(--blue-dk); }
.btn-line { border-color: var(--blue); color: var(--blue); }
.btn-line:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--paper); }

/* Hero */
.hero { padding: 68px 0 80px; }

.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }

.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }

.lead { max-width: 33em; margin-top: 22px; font-size: 19px; color: var(--soft); }

.lead .mono {
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--paper);
  font-size: 0.88em;
  color: var(--blue);
  white-space: nowrap;
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Address preview, styled like a new-message window */
.env {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 20, 38, 0.08);
}

.env-bar {
  padding: 11px 26px;
  background: var(--blue);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.env-in { padding: 26px; }

.env-in h2 { font-size: 1.5rem; }
.env-sub { margin: 6px 0 14px; font-size: 15.5px; color: var(--soft); }

label { display: block; margin: 14px 0 4px; font-weight: 700; font-size: 15px; }
.env-in label:first-of-type { margin-top: 0; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #a3abc4;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.hint { min-height: 1.4em; margin-top: 4px; font-size: 14px; color: #b3261e; }

.mail { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }

.m-top { display: flex; gap: 12px; align-items: center; }

.av {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.15rem;
}

.m-from { font-size: 15px; overflow-wrap: anywhere; }
.m-sub { font-size: 15px; color: var(--soft); }
.m-k { display: inline-block; min-width: 56px; font-size: 13.5px; font-weight: 700; color: var(--soft); }

.m-alias { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.m-alias .mono { display: block; margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }

.env-note { margin-top: 12px; font-size: 13.5px; color: var(--soft); }

/* Who it is for */
.who { background: var(--blue); color: #fff; }

.who-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 20px 0; }
.who-in p { font-family: var(--head); font-weight: 600; }
.who ul { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; }
.who li { font-size: 16px; color: #dfe3ff; }

/* Sections */
.sec { padding: 88px 0; }
.tint { background: var(--paper); }
.sub { max-width: 38em; margin-top: 10px; color: var(--soft); }

/* Services */
.svc { display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; margin-top: 40px; align-items: start; }

.svc-main { padding: 36px; border-radius: 14px; background: var(--blue); color: #fff; }
.svc-main h3 { margin-bottom: 14px; font-size: 1.9rem; font-weight: 800; color: #fff; }
.svc-main p { margin-bottom: 14px; color: #e3e6ff; }
.svc-main .btn { margin-top: 10px; }

.svc-list { list-style: none; border-top: 2px solid var(--ink); }
.svc-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.svc-list h3 { margin-bottom: 4px; font-size: 1.2rem; font-weight: 600; }
.svc-list p { max-width: 34em; font-size: 16px; color: var(--soft); }

/* Process */
.process { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
.process-head { position: sticky; top: 110px; }

.steps { list-style: none; counter-reset: n; border-top: 2px solid var(--ink); }

.steps li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(n);
  grid-row: 1 / 3;
  font-family: var(--head);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blue);
}

.steps h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 4px; }
.steps p { font-size: 16px; color: var(--soft); max-width: 34em; }

/* Email terms */
.ink { background: var(--ink); color: #fff; }
.ink h2, .ink h3 { color: #fff; }
.ink .sub { color: #b9c0dc; }

.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; margin-top: 44px; }

.terms > div { padding-top: 18px; border-top: 1px solid #3a4268; }

.terms dt { font-family: var(--head); font-weight: 600; font-size: 1.25rem; }

.terms code {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 9px;
  border-radius: 5px;
  background: var(--blue);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  color: #fff;
  vertical-align: 2px;
}

.terms dd { margin-top: 8px; max-width: 30em; font-size: 16px; color: #b9c0dc; }

/* FAQ */
.faq > * { max-width: 820px; }
.faq h2 { margin-bottom: 24px; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }

summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--blue);
}

details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 20px; max-width: 38em; color: var(--soft); }

/* Contact */
.contact { background: var(--paper); }
.contact-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-text p { margin-top: 12px; max-width: 30em; color: var(--soft); }

.addr {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 10px 10px 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.addr .mono { font-size: 1.05rem; word-break: break-all; }

.addr button {
  padding: 6px 14px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.addr button:hover { background: var(--blue); }

.contact-text .small { font-size: 15px; }

.form { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }

.form label { margin: 14px 0 4px; }
.form > label:first-child, .two label { margin-top: 0; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.form > .two:first-child { margin-top: 0; }

.form textarea { resize: vertical; }

fieldset { margin-top: 18px; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
legend { margin-bottom: 8px; font-weight: 700; font-size: 15px; }

.form .chk { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 15px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--blue); }

.err { min-height: 1.5em; margin: 10px 0; font-size: 15px; color: #b3261e; }
.form .btn { width: 100%; }

/* Footer */
.foot { background: #0b0f20; color: #aab2d0; font-size: 16px; }

.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding: 60px 0 48px; }

.foot .logo, .foot .logo span, .foot .logo b { color: #fff; }
.foot-brand p { margin-top: 16px; max-width: 24em; }
.foot h3 { margin-bottom: 14px; font-size: 1.05rem; font-weight: 600; color: #fff; }
.foot ul { list-style: none; }
.foot li { margin-bottom: 10px; }
.foot a { text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-col li a[href^="mailto"] { word-break: break-all; }

.foot-bottom { padding: 20px 0; border-top: 1px solid #222a4a; text-align: center; font-size: 14.5px; }

/* Laptops and tablets */
@media (max-width: 960px) {
  .hero-in, .svc, .process, .contact-in { grid-template-columns: 1fr; gap: 40px; }
  .process-head { position: static; }
  .terms { gap: 32px 36px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 0 36px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 760px) {
  body { font-size: 16px; }

  .burger { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--paper); }
  .nav a[aria-current="true"] { border-bottom-color: var(--paper); }
  .nav .nav-btn { margin-top: 12px; text-align: center; }

  .hero { padding: 40px 0 52px; }
  .lead .mono { font-size: 0.8em; }
  .btn { text-align: center; }
  .btns .btn { flex: 1 1 100%; }
  .env-bar { padding: 10px 20px; }
  .env-in { padding: 20px; }

  .sec { padding: 56px 0; }
  .svc-main { padding: 26px; }
  .steps li { grid-template-columns: 48px 1fr; }
  .steps li::before { font-size: 2.1rem; }
  .terms { grid-template-columns: 1fr; }

  .form { padding: 20px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .two > div + div { margin-top: 14px; }
  fieldset { grid-template-columns: 1fr; }
  .addr { width: 100%; justify-content: space-between; }

  .foot-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}