:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --surface-2: #efede4;
  --ink: #12352a;
  --ink-2: #44564f;
  --muted: #6f7b75;
  --line: #e2dfd3;
  --green: #0b5a3a;
  --green-dark: #083f29;
  --olive: #8e8a5c;
  --sand: #e3dcc3;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 53, 42, .05), 0 12px 32px -12px rgba(18, 53, 42, .18);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--olive);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0; }

/* ---------- topo ---------- */
.announce {
  background: var(--green-dark); color: #e8efe9; font-size: 13px; text-align: center; padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(247, 246, 241, .92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--green); }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } .nav { gap: 16px; } .brand img { height: 32px; } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px/1 var(--sans); text-decoration: none; transition: background .15s, transform .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); margin: 14px 0 18px; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-books { position: relative; aspect-ratio: 1 / .86; }
.hero-books img { position: absolute; width: 58%; filter: drop-shadow(0 24px 30px rgba(18, 53, 42, .18)); }
.hero-books img:nth-child(1) { left: 0; top: 12%; transform: rotate(-6deg); }
.hero-books img:nth-child(2) { right: 0; top: 10%; transform: rotate(6deg); }
.hero-books img:nth-child(3) { left: 21%; top: 0; z-index: 2; }
.hero-books::before {
  content: ''; position: absolute; inset: 14% 8% 0; border-radius: 50%;
  background: radial-gradient(closest-side, var(--sand), transparent); opacity: .8;
}
@media (max-width: 860px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-books { max-width: 440px; margin: 0 auto; width: 100%; }
}

/* ---------- faixa de confiança ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust ul { list-style: none; margin: 0; padding: 20px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.trust strong { display: block; color: var(--ink); font-size: 15px; }
.trust svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--surface-2); color: var(--green); }
@media (max-width: 860px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust ul { grid-template-columns: 1fr; } }

/* ---------- catálogo ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px;
  padding: 8px 14px; font: 500 14px/1 var(--sans); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .cover { background: var(--surface-2); padding: 20px 28px 0; cursor: pointer; border: 0; display: block; width: 100%; }
.card .cover img { aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px 4px 0 0; box-shadow: 0 -2px 18px rgba(18, 53, 42, .12); }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 19px; }
.card .sub { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.price { font: 600 20px/1 var(--sans); color: var(--ink); }
.price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.card .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.link-more { background: none; border: 0; padding: 0; color: var(--green); font: 600 14px var(--sans); cursor: pointer; text-align: left; }

/* ---------- como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--green); color: #fff; font: 600 16px var(--sans); margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--olive); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- modal do produto ---------- */
dialog.product {
  width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0;
  border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
dialog.product::backdrop { background: rgba(10, 30, 22, .55); backdrop-filter: blur(3px); }
.pd { display: grid; grid-template-columns: 1fr 1.1fr; }
.pd .media { background: var(--surface-2); padding: 32px; display: grid; place-items: center; }
.pd .media img { max-height: 520px; width: auto; }
.pd .info { padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.pd h2 { font-size: 30px; }
.pd .sub { color: var(--ink-2); margin: 0; }
.pd ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pd li { padding-left: 28px; position: relative; font-size: 15px; }
.pd li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5a3a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pd dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 4px 0 0; font-size: 14px; }
.pd dt { color: var(--muted); }
.pd dd { margin: 0; }
.pd .buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.pd .note { font-size: 13px; color: var(--muted); margin: 0; }
.close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--surface); box-shadow: var(--shadow); cursor: pointer; font-size: 22px; line-height: 1; color: var(--ink);
}
@media (max-width: 760px) {
  .pd { grid-template-columns: 1fr; }
  .pd .media { padding: 24px 24px 0; }
  .pd .media img { max-height: 300px; }
  .pd .info { padding: 24px 20px 24px; }
  .pd h2 { font-size: 24px; }
}

/* ---------- rodapé ---------- */
.site-footer { background: var(--green-dark); color: #cfdcd4; padding: 56px 0 32px; font-size: 14px; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { color: #fff; font: 600 13px var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot .logo-w { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.foot-addr { font-style: normal; line-height: 1.6; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ---------- páginas de texto (políticas / suporte) ---------- */
.doc { padding: 56px 0 24px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 10px 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.doc article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.doc article h2 { font-size: 22px; margin: 32px 0 10px; }
.doc article h2:first-child { margin-top: 0; }
.doc article p, .doc article li { color: var(--ink-2); }
.doc article ul { padding-left: 20px; }
@media (max-width: 640px) { .doc article { padding: 24px 20px; } }
.policy-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.policy-nav a { text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.policy-nav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 32px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card h3 { font-size: 18px; margin: 0 0 6px; }
.contact-card p { margin: 0; color: var(--ink-2); font-size: 15px; word-break: break-word; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* celular: 2 colunas, card mais enxuto */
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card .cover { padding: 12px 14px 0; }
  .card .body { padding: 12px 12px 14px; gap: 6px; }
  .card h3 { font-size: 16px; }
  .card .sub { display: none; }
  .card .row { flex-direction: column; align-items: stretch; gap: 8px; }
  .card .btn { width: 100%; }
  .price { font-size: 17px; }
}
