/* ============================================================
   rafaellazo.com
   Brand tokens: deep teal #0E4C5A, DM Sans, single gold accent
   ============================================================ */

:root {
  --deep:  #0E4C5A;
  --abyss: #072E37;
  --ink:   #14201F;
  --muted: #55686B;
  --paper: #FCFCFA;
  --shell: #EDF1F0;
  --rule:  #D6DEDC;
  --sun:   #E8A33D;

  --wrap: 1040px;
  --pad: 24px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 16px; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--deep); }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 24px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.narrow p { max-width: 62ch; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 24px;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
}

.fine { font-size: 0.9rem; color: var(--muted); }

.spaced { margin-top: 32px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Skip link --- */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--deep);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 10;
}
.skip:focus { left: 16px; }

/* --- Header --- */
.site-head {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.head-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}
.head-link:hover { color: var(--deep); }

.wordmark { text-decoration: none; display: block; }
.wordmark-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--deep);
  line-height: 1.2;
}
.wordmark-desc {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 2px;
}
.wordmark-light .wordmark-name { color: var(--paper); }
.wordmark-light .wordmark-desc { color: rgba(252,252,250,0.6); }

/* --- Sections --- */
.section { padding: 96px 0; }
.section-tight { padding-top: 0; }
.band {
  background: var(--shell);
  padding: 96px 0;
  border-block: 1px solid var(--rule);
}

/* --- Hero --- */
.hero { padding: 88px 0 96px; }

.compare { margin-bottom: 48px; }

.compare-row { margin-bottom: 28px; }
.compare-row:last-child { margin-bottom: 0; }

.compare-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}

.compare-line {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.compare-before {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.compare-after { color: var(--ink); max-width: 24ch; }

.compare-after .mark {
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  box-shadow: inset 0 -0.14em 0 var(--sun);
}

.hero-copy { margin-bottom: 40px; }
.hero-copy .lead { margin-bottom: 16px; }

/* --- Buttons --- */
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--deep);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 4px;
  transition: background 150ms ease;
}
.btn:hover { background: var(--abyss); }

.btn-block { display: block; text-align: center; }

.btn-text {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 150ms ease, border-color 150ms ease;
}
.btn-text:hover { color: var(--deep); border-color: var(--deep); }

/* --- Problem grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.cell p { color: var(--muted); margin: 0; }

/* --- Service --- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.includes {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  max-width: 60ch;
}
.includes li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  color: var(--muted);
}
.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--rule);
}

.price-card {
  background: var(--shell);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px;
  position: sticky;
  top: 32px;
}
.price {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--sun);
  margin: 0 0 8px;
}
.price-cur {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.price-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.price-card .fine { margin-bottom: 24px; }

/* --- Footer --- */
.site-foot {
  background: var(--abyss);
  color: var(--paper);
  padding: 64px 0 48px;
}
.foot-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.foot-col a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(252,252,250,0.28);
  padding-bottom: 1px;
}
.foot-col a:hover { border-color: var(--paper); }
.foot-col p { margin: 12px 0 0; font-size: 0.92rem; color: rgba(252,252,250,0.72); }
.fine-light { font-size: 0.82rem !important; }

/* --- Terms page --- */
.doc { padding: 64px 0 96px; }
.doc h2 { font-size: 1.15rem; margin: 40px 0 12px; }
.doc h2:first-of-type { margin-top: 32px; }
.doc .updated { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 40px;
}
.back:hover { color: var(--deep); }

/* --- Focus --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Entrance --- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 500ms cubic-bezier(.2,.7,.3,1) forwards;
}
.reveal-1 { animation-delay: 60ms; }
.reveal-2 { animation-delay: 160ms; }
.reveal-3 { animation-delay: 300ms; }
.reveal-4 { animation-delay: 440ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; gap: 40px; }
  .price-card { position: static; }
  .foot-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section, .band { padding: 64px 0; }
  .section-tight { padding-top: 0; }
  .hero { padding: 56px 0 64px; }
  .grid { grid-template-columns: 1fr; gap: 32px; }
  .compare-line { max-width: none; }
  .compare-after { max-width: none; }
  .actions { gap: 18px; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
