:root {
  --desk: #f5f7f6;
  --desk-2: #e8eeec;
  --paper: #ffffff;
  --ink: #1c232b;
  --ink-soft: #4a5560;
  --muted: #7d8893;
  --teal: #0d6e6e;
  --teal-soft: rgba(13, 110, 110, 0.12);
  --amber: #c9862d;
  --amber-soft: rgba(201, 134, 45, 0.14);
  --line: #d5ddd9;
  --shadow: 0 18px 42px rgba(28, 35, 43, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1080px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--desk);
  color: var(--ink);
  line-height: 1.65;
}

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

address {
  font-style: normal;
  color: var(--ink-soft);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245, 247, 246, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--teal);
}

.nav {
  display: flex;
  gap: 1.3rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a.active {
  color: var(--teal);
}

.header__end {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav--mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav--mobile.open {
  display: flex;
}

.nav--mobile a {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav--mobile a.active,
.nav--mobile a:hover {
  background: var(--teal-soft);
  color: var(--teal);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 22px rgba(13, 110, 110, 0.28);
}

.btn--line {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--lg {
  padding: 0.85rem 1.4rem;
  font-size: 0.98rem;
}

/* Hero */
.hero-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  border-bottom: 1px solid var(--line);
}

.hero-forms__copy {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(13, 110, 110, 0.06), transparent 50%),
    var(--desk);
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-forms__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 3.45rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 13ch;
  margin-bottom: 1.1rem;
}

.hero-forms__copy h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero__text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.45rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.note-line {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 34rem;
  border-left: 3px solid var(--amber);
  padding-left: 0.85rem;
}

.hero-forms__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 70% 25%, var(--amber-soft), transparent 40%),
    radial-gradient(circle at 25% 75%, var(--teal-soft), transparent 42%),
    var(--desk-2);
  overflow: hidden;
}

.form-stack {
  position: relative;
  width: min(100%, 340px);
  height: 390px;
}

.form-card {
  position: absolute;
  inset: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem;
  transition: transform 0.4s ease;
}

.form-card--back {
  transform: translate(18px, 18px) rotate(3deg);
  opacity: 0.55;
  animation: stack-sway 5s ease-in-out infinite;
}

.form-card--mid {
  transform: translate(9px, 9px) rotate(1.2deg);
  opacity: 0.8;
  animation: stack-sway 5s ease-in-out infinite 0.2s;
}

.form-card--front {
  transform: none;
  animation: form-in 0.75s ease both;
}

@keyframes form-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stack-sway {
  0%,
  100% {
    transform: translate(18px, 18px) rotate(3deg);
  }
  50% {
    transform: translate(20px, 14px) rotate(3.6deg);
  }
}

.form-card--mid {
  animation-name: stack-sway-mid;
}

@keyframes stack-sway-mid {
  0%,
  100% {
    transform: translate(9px, 9px) rotate(1.2deg);
  }
  50% {
    transform: translate(11px, 6px) rotate(1.8deg);
  }
}

.form-card__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.9rem;
}

.form-card__tab--amber {
  color: #8a5a12;
  background: var(--amber-soft);
}

.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.form-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}

.form-line span {
  color: var(--muted);
}

.form-line strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
}

.form-status {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.form-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--teal {
  background: var(--teal);
  color: #fff;
}

.section--teal .eyebrow {
  color: #9fe0d8;
}

.section--teal .section-title,
.section--teal .tile h3 {
  color: #fff;
}

.section--teal .section-desc,
.section--teal .tile p {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--ink-soft);
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* Tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tile {
  background: var(--desk);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}

.section--teal .tile {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.tile__code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--amber);
  margin-bottom: 0.65rem;
}

.section--teal .tile__code {
  color: #ffd59a;
}

.tile h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.tile p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Checklist */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.check-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.check-item__mark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.check-item h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.check-item p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.step {
  padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step__n {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--teal);
  margin-bottom: 0.65rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Features */
.feat-list {
  display: grid;
  gap: 0.65rem;
}

.feat-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--desk);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.feat-row__id {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
}

.feat-row h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.feat-row p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: center;
}

.list {
  list-style: none;
  margin-top: 1rem;
}

.list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--ink-soft);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.panel-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.panel-row strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
}

/* CTA */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.7rem 1.9rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.cta-band .btn--line {
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}

/* Page hero */
.page-hero {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 16ch;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 38rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.4rem;
}

.info-stack {
  display: grid;
  gap: 0.7rem;
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.15rem;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.info-card a,
.info-card p,
.info-card address {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.form-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--desk);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--teal-soft);
  border-color: var(--teal);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

/* Legal */
.legal {
  max-width: 720px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.7rem 0 0.5rem;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}

.legal ul {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.legal a {
  color: var(--teal);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0 1.25rem;
}

.footer .logo {
  color: #fff;
}

.footer .logo span {
  color: #7fd4cb;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__note {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  max-width: 30ch;
}

.footer__col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.footer__links {
  display: flex;
  gap: 1rem;
}

/* Cookie */
.cookie-pill {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.35s ease;
}

.cookie-pill.show {
  opacity: 1;
  transform: none;
}

.cookie-pill p {
  flex: 1 1 220px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.cookie-pill a {
  color: var(--teal);
  text-decoration: underline;
}

.cookie-pill__btns {
  display: flex;
  gap: 0.45rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal--left {
  transform: translateX(-18px);
}

.reveal--right {
  transform: translateX(18px);
}

.reveal--up {
  transform: translateY(16px);
}

.reveal.on {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .nav,
  .header__end .btn--line {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero-forms {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-forms__copy h1 {
    max-width: none;
  }

  .form-stack {
    height: 360px;
  }

  .tile-grid,
  .check-grid,
  .steps,
  .split,
  .contact-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .feat-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .cta-band {
    padding: 1.3rem;
  }
}
