/* ============================================================
   HEJ / AI Receptionist
   Palette drawn from the brand logo: terracotta + peach + cream
   ============================================================ */

:root {
  --terracotta: #b5472b;
  --terracotta-deep: #93361f;
  --peach: #eba57c;
  --peach-soft: #f6d9c3;
  --cream: #faf5ee;
  --sand: #f2e7da;
  --ink: #2a1a10;
  --ink-soft: #6b5546;
  --white: #fffdfa;
  --radius: 20px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "DM Mono", "SF Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a { color: inherit; text-decoration: none; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .float, .waveform span, .pulse-dot { animation: none !important; }
}

/* ---------- layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.section { padding: 120px 0; position: relative; }
.section--dark { background: var(--terracotta); color: var(--cream); }
.section--sand { background: var(--sand); }

.section__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.75;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section__title em {
  font-style: italic;
  font-weight: 380;
  color: var(--terracotta);
}
.section--dark .section__title em { color: var(--peach); }
.section__title--center { text-align: center; }

.section__sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 24px;
}
.section--dark .section__sub { color: var(--peach-soft); }
.section__sub--center { margin-left: auto; margin-right: auto; text-align: center; }

.section__kicker {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.35;
  max-width: 720px;
  margin-top: 72px;
}
.section__kicker em { color: var(--peach); font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: 0 8px 24px rgba(181, 71, 43, 0.28);
}
.btn--primary:hover { background: var(--terracotta-deep); box-shadow: 0 14px 32px rgba(181, 71, 43, 0.36); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: rgba(42, 26, 16, 0.06); }

.btn--light { background: var(--cream); color: var(--terracotta); }
.btn--light:hover { background: var(--white); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18); }

.btn--outline-light { border-color: var(--peach-soft); color: var(--cream); }
.btn--outline-light:hover { background: var(--cream); color: var(--terracotta); border-color: var(--cream); }

.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--xl { padding: 20px 38px; font-size: 1.1rem; }

.btn__arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn__icon { width: 20px; height: 20px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 32px;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}
.nav.is-scrolled {
  background: rgba(250, 245, 238, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(42, 26, 16, 0.08);
  padding: 12px 32px;
}

.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo { width: 38px; height: 38px; color: var(--terracotta); }
.nav__logo svg { width: 100%; height: 100%; }
.nav__logo img, .call-card__avatar img, .cta__logo img, .modal__side-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav__word {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav__links { display: flex; gap: 28px; font-size: 0.95rem; font-weight: 500; }
.nav__links a { position: relative; opacity: 0.8; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__actions { display: flex; align-items: center; gap: 10px; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions .btn--ghost { display: none; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 24px 80px;
  position: relative;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(235, 165, 124, 0.28), transparent 65%),
    radial-gradient(700px 500px at 5% 90%, rgba(181, 71, 43, 0.1), transparent 60%),
    var(--cream);
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  padding: 8px 16px;
  border: 1px solid rgba(42, 26, 16, 0.18);
  border-radius: 999px;
  margin-bottom: 28px;
  background: rgba(255, 253, 250, 0.6);
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}
.pulse-dot--green { background: #3f9e63; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(181, 71, 43, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(181, 71, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(181, 71, 43, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero__title em { font-style: italic; color: var(--terracotta); font-weight: 380; }

.hero__sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }

.hero__note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* call card */
.hero__visual { position: relative; }

.call-card {
  background: var(--white);
  border: 1px solid rgba(42, 26, 16, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(42, 26, 16, 0.14);
  overflow: hidden;
}

.call-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(42, 26, 16, 0.07);
}
.call-card__avatar {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--terracotta);
  color: var(--peach);
  display: grid;
  place-items: center;
  padding: 7px;
  flex-shrink: 0;
}
.call-card__name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.call-card__status {
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}

.waveform { display: flex; align-items: center; gap: 3.5px; margin-left: auto; height: 26px; }
.waveform span {
  width: 4px;
  border-radius: 4px;
  background: var(--terracotta);
  animation: wave 1.1s ease-in-out infinite;
}
.waveform span:nth-child(1) { animation-delay: 0s; }
.waveform span:nth-child(2) { animation-delay: 0.15s; }
.waveform span:nth-child(3) { animation-delay: 0.3s; }
.waveform span:nth-child(4) { animation-delay: 0.45s; }
.waveform span:nth-child(5) { animation-delay: 0.6s; }
@keyframes wave {
  0%, 100% { height: 6px; }
  50% { height: 24px; }
}

.call-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 285px;
}

.msg {
  max-width: 85%;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: msg-in 0.5s var(--ease-out) forwards;
}
@keyframes msg-in { to { opacity: 1; transform: translateY(0) scale(1); } }

.msg--caller {
  align-self: flex-start;
  background: var(--sand);
  border-bottom-left-radius: 4px;
}
.msg--allo {
  align-self: flex-end;
  background: var(--terracotta);
  color: var(--cream);
  border-bottom-right-radius: 4px;
}

.msg--typing { display: inline-flex; gap: 5px; align-items: center; padding: 15px 18px; }
.msg--typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  animation: blink 1.2s infinite;
}
.msg--typing i:nth-child(2) { animation-delay: 0.2s; }
.msg--typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.call-card__foot {
  display: flex;
  gap: 10px;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(42, 26, 16, 0.07);
}
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
}
.chip--green { background: #e3f2e8; color: #2c7a4b; }

.float { animation: float 5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 130px; }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--peach);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-block;
  animation: marquee 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
}
.stat {
  border: 1px solid rgba(250, 245, 238, 0.22);
  border-radius: var(--radius);
  padding: 40px 32px;
  background: rgba(250, 245, 238, 0.05);
  transition: transform 0.45s var(--ease-out), background 0.3s, border-color 0.3s;
}
.stat:hover {
  transform: translateY(-6px);
  background: rgba(250, 245, 238, 0.1);
  border-color: rgba(250, 245, 238, 0.4);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6vw, 5rem);
  font-weight: 450;
  line-height: 1;
  color: var(--peach);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: 0.6em; }
.stat__label { font-size: 1.02rem; color: var(--peach-soft); max-width: 260px; }

@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr; }
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}
.feature {
  background: var(--white);
  border: 1px solid rgba(42, 26, 16, 0.08);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(42, 26, 16, 0.1);
  border-color: rgba(181, 71, 43, 0.35);
}
.feature__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--terracotta);
  letter-spacing: 0.1em;
  margin-bottom: 44px;
}
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature p { color: var(--ink-soft); font-size: 0.98rem; }

.feature--accent {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.feature--accent p { color: var(--peach-soft); }
.feature--accent:hover { box-shadow: 0 22px 48px rgba(181, 71, 43, 0.35); }
.feature__big {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 450;
  color: var(--cream) !important;
  line-height: 1;
}

@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid rgba(42, 26, 16, 0.07);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.step:hover { transform: translateY(-8px); box-shadow: 0 22px 48px rgba(42, 26, 16, 0.1); }
.step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.step:hover::before { transform: scaleX(1); }

.step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 350;
  color: var(--peach);
  line-height: 1;
  margin-bottom: 20px;
}
.step__when {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.step p { color: var(--ink-soft); font-size: 0.98rem; }

@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; margin-top: 56px; border-radius: var(--radius); }
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid rgba(42, 26, 16, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 18px 22px;
  text-align: center;
  border-bottom: 1px solid rgba(42, 26, 16, 0.07);
  font-size: 0.97rem;
}
.compare th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--sand);
  font-weight: 500;
}
.compare th:first-child, .compare td:first-child {
  text-align: left;
  font-weight: 500;
}
.compare tr:last-child td { border-bottom: none; }
.compare tbody tr { transition: background 0.2s; }
.compare tbody tr:hover { background: rgba(242, 231, 218, 0.5); }

.compare__tag {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 11px;
  margin-right: 8px;
}
.compare__tag--allo { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }

.compare .compare__allo { background: rgba(235, 165, 124, 0.16); }
.compare th.compare__allo, .compare th:last-child { color: var(--terracotta); }
.compare td.yes { color: #2c7a4b; font-weight: 700; }
.compare td.no { color: rgba(42, 26, 16, 0.28); }
.compare td.yes.compare__allo { color: var(--terracotta); font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.faqs { margin-top: 56px; display: flex; flex-direction: column; gap: 12px; }
.faqitem {
  background: var(--white);
  border: 1px solid rgba(42, 26, 16, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.35s;
}
.faqitem[open] { border-color: rgba(181, 71, 43, 0.4); box-shadow: 0 12px 32px rgba(42, 26, 16, 0.07); }
.faqitem summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faqitem summary::-webkit-details-marker { display: none; }
.faqitem__icon {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--terracotta);
  transition: transform 0.35s var(--ease-out);
  flex-shrink: 0;
}
.faqitem[open] .faqitem__icon { transform: rotate(45deg); }
.faqitem p {
  padding: 0 26px 24px;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- final CTA ---------- */
.cta { overflow: hidden; }
.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta__logo {
  width: 88px;
  height: 88px;
  color: var(--peach);
  margin-bottom: 32px;
}
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.cta__note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--peach-soft);
  margin-top: 28px;
  letter-spacing: 0.05em;
}

/* ---------- book-a-demo modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 16, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s;
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--white);
  border-radius: 26px;
  overflow: auto;
  box-shadow: 0 40px 100px rgba(42, 26, 16, 0.35);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(42, 26, 16, 0.08);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s var(--ease-out);
}
.modal__close:hover { background: rgba(42, 26, 16, 0.16); transform: rotate(90deg); }

.modal__side {
  background: var(--terracotta);
  color: var(--cream);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}
.modal__side-logo { width: 56px; height: 56px; color: var(--peach); margin-bottom: 28px; }
.modal__side-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.modal__side-sub { color: var(--peach-soft); font-size: 0.98rem; margin-bottom: 28px; }
.modal__side-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.modal__side-list li {
  font-size: 0.93rem;
  color: var(--peach-soft);
  padding-left: 26px;
  position: relative;
}
.modal__side-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--peach);
  font-weight: 700;
}

.modal__main { padding: 44px 40px; }
.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.req { color: var(--terracotta); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid rgba(42, 26, 16, 0.14);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(107, 85, 70, 0.55); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(181, 71, 43, 0.12);
}
.field input.is-invalid { border-color: #c0392b; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form__error {
  color: #c0392b;
  font-size: 0.9rem;
  margin: -6px 0 14px;
}
.form__submit { width: 100%; justify-content: center; margin-top: 6px; }
.form__submit[disabled] { opacity: 0.65; cursor: wait; transform: none !important; }
.form__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 14px;
  letter-spacing: 0.03em;
}

.form-success[hidden], #demo-form[hidden] { display: none; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 40px 0;
  animation: msg-in 0.5s var(--ease-out);
}
.form-success__icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #e3f2e8;
  color: #2c7a4b;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
}
.form-success p { color: var(--ink-soft); max-width: 380px; }

body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .modal { padding: 12px; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__side { display: none; }
  .modal__main { padding: 36px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer .nav__logo { color: var(--peach); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.92rem; }
.footer__links a { opacity: 0.75; transition: opacity 0.2s; }
.footer__links a:hover { opacity: 1; }
.footer__copy { font-family: var(--font-mono); font-size: 12.5px; opacity: 0.55; }
