:root {
  --text: #141414;
  --muted: #5c5c5c;
  --line: #d4d4d4;
  --primary: #111111;
  --primary-deep: #000000;
  --signal: #ff3b1f;
  --signal-deep: #d92b12;
  --signal-soft: #ffe8e3;
  --stone: #f2f2f0;
  --paper: #ffffff;
  --ink: #0a0a0a;
  --display: "Syne", "Arial Black", sans-serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
  --radius: 0;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

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

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--stone);
  background-image:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(0, 0, 0, 0.015) 18px,
      rgba(0, 0, 0, 0.015) 19px
    );
  line-height: 1.55;
  padding-bottom: env(safe-area-inset-bottom);
}

a { color: var(--signal-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-transform: uppercase;
  min-width: 0;
}

.brand:hover { color: var(--ink); }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-logo { width: 34px; height: 34px; flex-shrink: 0; }

.hero {
  position: relative;
  overflow: hidden;
  color: #f5f5f5;
  padding: 80px 0 72px;
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 66%, rgba(255, 59, 31, 0.18) 66% 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.04) 79px,
      rgba(255, 255, 255, 0.04) 80px
    );
  pointer-events: none;
  animation: stripePulse 6s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: var(--signal);
  transform-origin: left center;
  animation: barGrow 1s var(--ease) both;
}

@keyframes stripePulse {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes flashIn {
  from { opacity: 0; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.hero-copy {
  animation: slideUp 0.75s var(--ease) both;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.95;
  animation: flashIn 0.9s var(--ease) both;
}

.hero-brand img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 18px;
  font-size: clamp(30px, 6.2vw, 50px);
  line-height: 0.98;
  color: #fff;
  overflow-wrap: anywhere;
  max-width: 14ch;
}

h2 {
  font-size: clamp(26px, 5vw, 36px);
  margin: 0 0 24px;
  color: var(--ink);
}

h3 {
  font-size: 20px;
  margin: 10px 0 8px;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 8px 10px;
  background: var(--signal);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

.lead {
  color: #c8c8c8;
  font-size: 18px;
  max-width: 36em;
  text-transform: none;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  color: #ececec;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.checklist li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 12px;
  height: 12px;
  background: var(--signal);
}

.note {
  color: #9a9a9a;
  font-size: 13px;
  margin-top: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 8px 8px 0 var(--ink);
}

.form-card {
  color: var(--text);
  background: var(--paper);
  scroll-margin-top: 84px;
  animation: slideUp 0.85s var(--ease) 0.1s both;
  box-shadow: 10px 10px 0 var(--signal);
}

.form-card h2 {
  font-size: clamp(22px, 4.8vw, 28px);
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.05;
}

.form-card p {
  color: var(--muted);
  text-transform: none;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
}

label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

input:not([type="checkbox"]), select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid #bdbdbd;
  border-radius: 0;
  font-size: 16px;
  font-family: var(--sans);
  background: #fafafa;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23111111' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fafafa;
  padding-right: 36px;
}

textarea { min-height: 120px; resize: vertical; }

input:not([type="checkbox"]):focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--signal);
}

.checkbox {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.checkbox input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.checkbox .check-mark {
  grid-column: 1;
  grid-row: 1;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.checkbox .check-mark::after {
  content: "";
  width: 7px;
  height: 13px;
  margin-top: -2px;
  border: solid transparent;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checkbox input[type="checkbox"]:checked + .check-mark {
  background: var(--signal);
  border-color: var(--ink);
}

.checkbox input[type="checkbox"]:checked + .check-mark::after {
  border-color: #fff;
}

.checkbox input[type="checkbox"]:focus-visible + .check-mark {
  box-shadow: 0 0 0 3px rgba(255, 59, 31, 0.35);
}

.checkbox span:last-child { min-width: 0; }
.form-card .btn { width: 100%; text-align: center; }

.btn {
  border: 2px solid var(--ink);
  background: var(--signal);
  color: #fff;
  border-radius: 0;
  padding: 14px 18px;
  min-height: 48px;
  font-weight: 800;
  font-size: 15px;
  font-family: var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  cursor: pointer;
  text-align: center;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s var(--ease), box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: var(--signal-deep);
  color: #fff;
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-small {
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: none;
  flex-shrink: 0;
}

.btn-small:hover {
  background: var(--signal);
  border-color: var(--ink);
  color: #fff;
  transform: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.hp { display: none !important; }

.section {
  padding: 72px 0;
  background: transparent;
}

.section.alt {
  background: var(--paper);
  border-block: 3px solid var(--ink);
}

.section h2 {
  display: inline-block;
  border-bottom: 6px solid var(--signal);
  padding-bottom: 6px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-3 .card {
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.grid-3 .card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--signal);
}

.grid-3 .card p {
  color: var(--muted);
  text-transform: none;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
}

.num {
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  background: var(--signal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
}

.faq details {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: background 0.2s ease;
}

.faq details[open] {
  background: var(--signal-soft);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  list-style: none;
  padding: 4px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: 17px;
}

.faq summary::-webkit-details-marker { display: none; }
.faq p {
  color: var(--muted);
  margin: 10px 0 0;
  text-transform: none;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0;
}

.footer {
  background: var(--ink);
  color: #b8b8b8;
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom));
  border-top: 8px solid var(--signal);
  position: relative;
}

.footer h2 {
  color: #fff;
  border-bottom: 0;
  padding-bottom: 0;
}

.footer a {
  color: var(--signal);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.footer a:hover { color: #fff; text-decoration: underline; }
.wa-footer { font-weight: 700; }

.wa-float {
  position: fixed;
  z-index: 91;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(76px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  min-width: 56px;
  padding: 0 18px;
  background: #25d366;
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.wa-float:hover { color: #fff; background: #1ebe5d; text-decoration: none; }
.wa-float svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}
.wa-float span { white-space: nowrap; }

body:has(#chatBox.open) .wa-float {
  visibility: hidden;
  pointer-events: none;
}

.chat-widget {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-toggle {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--signal);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}

.chat-box {
  display: none;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  margin-bottom: 10px;
}

.chat-box.open { display: flex; flex-direction: column; }

.chat-head {
  background: var(--ink);
  color: #fff;
  padding: 14px 44px 14px 16px;
  display: grid;
  gap: 2px;
  position: relative;
  border-bottom: 4px solid var(--signal);
}

.chat-head strong {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.chat-head span {
  font-size: 12px;
  opacity: .9;
  color: #c8c8c8;
  text-transform: none;
  font-family: var(--sans);
  letter-spacing: 0;
}

.chat-close {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.chat-body {
  background: #f0f0ee;
  max-height: 290px;
  overflow-y: auto;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}

.msg {
  border-radius: 0;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 8px;
  border: 1px solid var(--line);
}

.msg.bot { background: #fff; color: var(--text); }
.msg.user {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  margin-left: auto;
  max-width: 88%;
}

.chat-input-wrap {
  padding: 10px;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-input-wrap input { min-height: 48px; }

.chat-input-wrap button {
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--signal);
  color: #fff;
  padding: 10px 14px;
  min-height: 48px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-options {
  padding: 10px;
  border-top: 2px solid var(--ink);
  display: grid;
  gap: 8px;
}

.chat-options button {
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  padding: 12px;
  min-height: 48px;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 15px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.chat-options button:hover {
  background: var(--signal-soft);
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .hero-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 40px; }
  .section { padding: 44px 0; }
  body { padding-bottom: 150px; }
  h1 { max-width: none; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 24px); }
  .topbar-inner {
    flex-wrap: wrap;
    padding: 10px 0 12px;
  }
  .brand { font-size: 16px; gap: 8px; }
  .brand-logo { width: 28px; height: 28px; }
  .btn-small {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  .hero-brand { font-size: 26px; }
  .hero-brand img { width: 40px; height: 40px; }
  .eyebrow { letter-spacing: 0.1em; font-size: 10px; }
  .lead { font-size: 16px; }
  .card, .form-card { padding: 18px 16px; box-shadow: 6px 6px 0 var(--ink); }
  .form-card { scroll-margin-top: 120px; box-shadow: 6px 6px 0 var(--signal); }
  .checkbox { font-size: 14px; }
  .faq details { padding-right: 72px; }
  .footer { padding: 36px 0 120px; }
  .wa-float {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 56px;
    width: auto;
    border-radius: 0;
    font-size: 16px;
    padding: 0 20px;
    gap: 10px;
  }
  .wa-float svg { width: 30px; height: 30px; }
  .chat-widget {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .chat-widget:has(.chat-box.open) {
    inset: 0;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    padding: env(safe-area-inset-top) 0 0;
    background: rgba(0, 0, 0, 0.55);
    align-items: stretch;
  }
  .chat-widget:has(.chat-box.open) .chat-toggle { display: none; }
  .chat-box {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    box-shadow: none;
    height: min(100dvh, 100%);
  }
  .chat-box.open {
    height: 100%;
    max-height: 100dvh;
  }
  .chat-body { flex: 1; max-height: none; }
}

@media (max-width: 400px) {
  .container { width: calc(100% - 20px); }
  h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
