:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #63706a;
  --line: #dde5de;
  --paper: #f7f4ec;
  --white: #fffdf7;
  --sage: #7f9b7a;
  --leaf: #244a35;
  --tomato: #c8563e;
  --gold: #d5a642;
  --shadow: 0 24px 70px rgba(24, 32, 29, .14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 236, .92);
  border-bottom: 1px solid rgba(36, 74, 53, .12);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.section-heading,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--leaf);
  color: var(--white);
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav {
  gap: clamp(12px, 2vw, 28px);
  font-size: .95rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 9px 14px;
  border: 1px solid var(--leaf);
  border-radius: 8px;
}

.hero {
  min-height: 86vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 88px) 64px;
  background: #111;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 20, 16, .86), rgba(11, 20, 16, .5) 48%, rgba(11, 20, 16, .08)),
    url("/assets/ristometrica-hero.jpg") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  max-width: 830px;
  color: var(--white);
}

.eyebrow,
.section-kicker,
.article-meta {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: .88;
  letter-spacing: 0;
}

h2 {
  max-width: 850px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 680px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: var(--tomato);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 253, 247, .5);
  color: var(--white);
}

.intro,
.services,
.method,
.blog-preview,
.newsletter-band,
.tool-section,
.lead-magnet,
.checklist-section,
.contact {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 6vw, 88px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .8fr);
  gap: clamp(32px, 7vw, 92px);
  background: var(--white);
}

.intro p:last-child,
.method-copy p,
.contact p {
  color: var(--muted);
  font-size: 1.1rem;
}

.services {
  background: var(--paper);
}

.service-grid,
.article-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.service-card,
.article-row article {
  min-height: 260px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-number {
  display: block;
  margin-bottom: 48px;
  color: var(--tomato);
  font-weight: 900;
}

.service-card p,
.article-row p {
  color: var(--muted);
}

.method {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(300px, .8fr);
  gap: clamp(40px, 8vw, 100px);
  background: var(--leaf);
  color: var(--white);
}

.method-copy p {
  color: rgba(255, 253, 247, .76);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.steps li {
  counter-increment: method;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 253, 247, .22);
}

.steps li::before {
  content: counter(method, decimal-leading-zero);
  color: var(--gold);
  font-weight: 900;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  color: rgba(255, 253, 247, .68);
}

.blog-preview {
  background: var(--white);
}

.newsletter-band,
.tool-section,
.lead-magnet,
.checklist-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, .9fr);
  gap: clamp(36px, 7vw, 90px);
}

.newsletter-band,
.lead-magnet {
  background: var(--leaf);
  color: var(--white);
}

.newsletter-band p,
.lead-magnet p {
  color: rgba(255, 253, 247, .76);
  font-size: 1.1rem;
}

.newsletter-form,
.calculator,
.signup-panel {
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.newsletter-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.newsletter-form.compact {
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 700;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.tool-section {
  background: var(--paper);
}

.tool-section.standalone {
  min-height: 72vh;
  align-items: center;
}

.tool-copy p {
  color: var(--muted);
  font-size: 1.1rem;
}

.text-link {
  color: var(--tomato);
  font-weight: 900;
  text-underline-offset: 5px;
}

.calculator-output {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--leaf);
}

.calculator-output[data-tone="warn"] {
  color: var(--tomato);
}

.calculator-output strong,
.calculator-output span {
  display: block;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: center;
}

.button.ghost {
  border-color: rgba(255, 253, 247, .5);
  color: var(--white);
}

.checklist-section {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  background: var(--white);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: checklist;
}

.checklist li {
  counter-increment: checklist;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.checklist li::before {
  content: counter(checklist, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--tomato);
  font-weight: 900;
}

.checklist strong,
.checklist span {
  display: block;
}

.checklist span {
  margin-top: 8px;
  color: var(--muted);
}

.signup-panel {
  position: sticky;
  top: 96px;
}

.section-heading {
  justify-content: space-between;
  gap: 24px;
}

.section-heading a {
  color: var(--tomato);
  font-weight: 800;
}

.article-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-row article {
  min-height: 220px;
  background: var(--paper);
}

.article-row a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.page-title {
  max-width: 960px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.article-page {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(82px, 11vw, 150px) clamp(20px, 6vw, 44px);
}

.article-page .lead {
  color: var(--leaf);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  line-height: 1.28;
}

.article-page p:not(.section-kicker):not(.lead) {
  color: var(--muted);
  font-size: 1.12rem;
}

.article-page h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.legal-page h2 {
  color: var(--leaf);
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(320px, 1fr);
  gap: clamp(36px, 7vw, 90px);
  padding: clamp(72px, 10vw, 130px) clamp(20px, 6vw, 88px);
  background: var(--white);
}

.detail-section > div > p {
  color: var(--muted);
  font-size: 1.1rem;
}

.detail-grid {
  display: grid;
  gap: 16px;
}

.detail-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.detail-grid p {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(320px, .9fr);
  gap: clamp(36px, 7vw, 90px);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-full,
.contact-form .button,
.newsletter-form .button,
.form-status {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: var(--leaf);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.contact-form .button,
.newsletter-form .button {
  justify-self: start;
}

.contact-form .button:disabled,
.newsletter-form .button:disabled {
  cursor: wait;
  opacity: .7;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status[data-tone="success"] {
  color: var(--leaf);
}

.form-status[data-tone="error"] {
  color: var(--tomato);
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--leaf);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .intro,
  .method,
  .detail-section,
  .contact,
  .contact-form,
  .newsletter-band,
  .newsletter-form,
  .tool-section,
  .lead-magnet,
  .checklist-section,
  .checklist,
  .service-grid,
  .article-row {
    grid-template-columns: 1fr;
  }

  .signup-panel {
    position: static;
  }

  .service-card {
    min-height: auto;
  }

  .service-number {
    margin-bottom: 28px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 78vh;
    padding-top: 90px;
  }

  h1 {
    font-size: 3.9rem;
  }

  .page-title {
    font-size: 3rem;
  }

  .button {
    width: 100%;
  }

  .site-footer,
  .lead-actions,
  .footer-links,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
