:root {
  /* The Loyly palette (os projects/loyly/theme), as on / */
  --mist: #f4f2ed;
  --stone: #e2e3de;
  --ink: #171c1a;
  --ink-soft: #4a524e;
  --ink-faint: #8f9793;
  --hat-fill: #e4e4df;
  --serif: "Instrument Serif", Georgia, serif;
  --display: "Syne", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Titles in Inter: Syne is for the wordmark only. */
h1,
h2,
h3 {
  font-family: var(--sans);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.35rem; }

p { margin: 0 0 1rem; }

a { color: inherit; }

.estreito {
  max-width: 46rem;
  margin: 0 auto;
}

/* Buttons */
.botao {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--mist);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.botao:hover { background: var(--ink-soft); }
.botao:active { transform: translateY(1px); }

.botao--pequeno {
  margin: 0;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

.botao--claro {
  background: var(--mist);
  color: var(--ink);
}

.botao--claro:hover {
  background: #fff;
}

/* Header */
.topo {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  background: rgba(244, 242, 237, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 28, 26, 0.08);
}

/* The cut logo: the box ends 0.70em down a 0.82 line, so the bottom edge takes the y legs,
   as in loyly-shop's footer .rodape__marca (brand/logo/). */
.topo__marca {
  display: inline-block;
  height: 0.7em;
  margin-block: 0.15em;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.06em;
  text-decoration: none;
  line-height: 0.82;
  clip-path: inset(-0.5em -0.5em 0 -0.5em);
}

/* Opening */
.abertura {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) clamp(2rem, 5vw, 4rem);
}

.abertura__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  color: var(--ink-soft);
}

.abertura__texto > p:not(.abertura__lead) {
  color: var(--ink-soft);
  max-width: 34rem;
}

.abertura__gorro {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--stone);
}

.abertura__gorro img,
.produto__foto img {
  display: block;
  width: 100%;
  height: auto;
}

.produto__foto {
  max-width: 34rem;
  margin: 2rem auto;
}

/* Sections */
.secao {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
}

.secao p { color: var(--ink-soft); }

.secao--clara {
  background: #fbfaf7;
  max-width: none;
}

/* Comparison */
.tabela {
  margin-top: 2rem;
  border-top: 1px solid rgba(23, 28, 26, 0.14);
}

.tabela__linha {
  display: grid;
  grid-template-columns: 1fr 5rem 5rem;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(23, 28, 26, 0.14);
}

.tabela__linha--cabecalho {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tabela__linha > span:not(:first-child) { text-align: center; }

.sim::before,
.nao::before {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
}

.sim::before { content: "✓"; background: var(--ink); color: var(--mist); }
.nao::before { content: "✕"; background: transparent; color: var(--ink-faint); border: 1px solid rgba(23, 28, 26, 0.2); }

/* Footer: the same as loja.loyly.com.br (loyly-shop src/styles.css); keep the two in step.
   Four columns, then the wordmark across the whole width, cut by the page's bottom edge. */
.rodape { margin-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid rgba(23, 28, 26, 0.14); overflow: hidden; background: var(--mist); }
.rodape__colunas {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  padding: 2.5rem var(--gutter) 0; font-size: 0.8125rem; color: var(--ink-soft);
}
.rodape__colunas p { margin: 0 0 0.35rem; }
.rodape__colunas ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.rodape__colunas a { color: inherit; text-decoration: none; }
.rodape__colunas a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rodape .rotulo {
  display: block; margin: 0 0 0.6rem;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.rodape__marca {
  display: block; padding: 0 var(--gutter); margin: 2rem 0 -0.12em;
  font-family: "Syne", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 800;
  letter-spacing: -0.06em; line-height: 0.82;
  font-size: 31vw; text-align: center; text-decoration: none; color: var(--ink);
}
@media (max-width: 900px) {
  .rodape__colunas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.uso {
  padding-left: 1rem;
  border-left: 2px solid var(--ink);
}

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

  .abertura__gorro {
    width: 100%;
    margin: 0 auto;
  }

  .tabela__linha {
    grid-template-columns: 1fr 3.5rem 3.5rem;
  }

  .tabela__linha--cabecalho { font-size: 0.7rem; letter-spacing: 0.04em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
