:root {
  --ink: #143148;
  --bolt: #348f2c;
  --wall: #d8dbd6;
  --paper: #f3f4f2;
  --line: rgba(20, 49, 72, 0.2);
  --display: "Pathway Extreme", "Arial Narrow", "Segoe UI", sans-serif;
  --text: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 3vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip:focus { top: 1rem; }

.top,
main,
.foot {
  width: min(76rem, 100%);
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.75rem var(--pad) 0;
}

.brand {
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  display: block;
  height: 4.25rem;
  width: auto;
}

.top nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
}

.top nav a {
  text-decoration: none;
  font-size: 1rem;
}

.top nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  max-width: 10em;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 14em;
}

h3 {
  margin: 0 0 0.3rem;
  font-size: 1.55rem;
  line-height: 1.1;
}

p { margin: 0 0 0.9rem; max-width: 38rem; }

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem var(--pad) 2.5rem;
  align-items: end;
}

.rule {
  display: block;
  width: 5.5rem;
  height: 3px;
  margin: 1rem 0 1.15rem;
  background: var(--ink);
  transform-origin: left center;
  animation: draw 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.lead { font-size: 1.25rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 0;
  font-family: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover { background: #1c4d6e; }

.top .head-cta { display: none; }

.quiet {
  font-weight: 700;
  text-underline-offset: 0.22em;
}

address {
  font-style: normal;
  margin: 0 0 0.9rem;
}

address a {
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-underline-offset: 0.18em;
}

.plate {
  margin: 0;
  border: 3px solid var(--ink);
  background: var(--paper);
}

.plate img,
.pair img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.plate img { aspect-ratio: 16 / 9; }

figcaption,
.fine,
.opt {
  font-size: 0.95rem;
  line-height: 1.4;
}

figcaption {
  margin: 0;
  padding: 0.7rem 0.85rem 0.85rem;
  max-width: none;
}

.block { padding: 1rem var(--pad) 3rem; }

.breakers {
  position: relative;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0 0 0 1.7rem;
  max-width: 40rem;
}

.breakers::before,
.breakers::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
}

.breakers::before { background: var(--line); }

.breakers::after {
  background: var(--bolt);
  transform-origin: top center;
  transform: scaleY(0);
  animation: energize linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 45%;
}

.breakers li {
  position: relative;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.breakers li::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 1.35rem;
  width: 11px;
  height: 11px;
  background: var(--ink);
  transform: translateX(-4px);
}

.breakers p { margin: 0; }

.pair {
  display: grid;
  gap: 1rem;
}

.pair figure {
  margin: 0;
  background: var(--paper);
  border: 3px solid var(--ink);
}

.pair img { aspect-ratio: 4 / 3; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 42rem;
  counter-reset: passo;
}

.steps li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.35rem 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(passo);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.steps h3 { grid-column: 2; }

.steps p {
  grid-column: 2;
  margin: 0;
}

form {
  max-width: 34rem;
  display: grid;
  gap: 0.35rem;
}

label { font-weight: 700; margin-top: 0.7rem; }

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.65rem 0.1rem;
  min-height: 3rem;
}

textarea { min-height: 6.5rem; resize: vertical; }

form .btn { margin-top: 1.1rem; justify-self: start; }

.error {
  margin: 0;
  font-weight: 700;
}

.privacy p { max-width: 40rem; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  padding: 1rem var(--pad) 2rem;
  border-top: 3px solid var(--ink);
}

.foot p { margin: 0; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  background: var(--ink);
  padding-bottom: env(safe-area-inset-bottom);
}

.dock a {
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  padding: 1rem 0.5rem;
  min-height: 3.25rem;
}

.dock a + a { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.28); }

body { padding-bottom: calc(3.4rem + env(safe-area-inset-bottom)); }

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

@keyframes energize {
  to { transform: scaleY(1); }
}

@media (min-width: 860px) {
  .top nav { display: flex; }
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
    min-height: calc(100svh - 6.5rem);
  }
  .pair { grid-template-columns: 1.15fr 0.85fr; }
  .dock { display: none; }
  body { padding-bottom: 0; }
}

@media (min-width: 1120px) {
  .top .head-cta { display: inline-flex; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rule { animation: none; }
  .breakers::after {
    animation: none;
    transform: none;
  }
}

@supports not (animation-timeline: view()) {
  .breakers::after { transform: none; }
}
