/* Amigure — visual editorial: marfim, ameixa e rosé, tipografia serifada e muito respiro. */

:root {
  --amg-bg: #FAF7F3;
  --amg-surface: #FFFFFF;
  --amg-tint: #F4EFF6;
  --amg-ink: #2A2230;
  --amg-ink-2: #5E5466;
  --amg-muted: #8A8190;
  --amg-line: #E8E1DA;
  --amg-primary: #6B4A8E;
  --amg-primary-hover: #573A77;
  --amg-primary-soft: #EFE7F6;
  --amg-accent: #B8506F;
  --amg-accent-soft: #F8EAEF;
  --amg-success: #4E7A5B;
  --amg-r: 16px;
  --amg-r-sm: 10px;
  --amg-shadow: 0 1px 2px rgba(42, 34, 48, .04), 0 8px 24px -12px rgba(42, 34, 48, .14);
  --amg-shadow-lg: 0 2px 4px rgba(42, 34, 48, .04), 0 24px 48px -20px rgba(42, 34, 48, .22);
  --amg-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --amg-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --amg-header: 72px;
}

/* ---------- Base ---------- */
body.amg-layout {
  margin: 0;
  background: var(--amg-bg);
  color: var(--amg-ink);
  font: 400 16px/1.6 var(--amg-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.amg-layout *, .amg-layout *::before, .amg-layout *::after { box-sizing: border-box; }
.amg-layout img { max-width: 100%; height: auto; display: block; }
.amg-layout a { color: var(--amg-primary); text-decoration: none; }
.amg-layout a:hover { color: var(--amg-primary-hover); }
.amg-layout p { margin: 0 0 1em; }
.amg-layout h1, .amg-layout h2, .amg-layout h3 {
  font-family: var(--amg-serif); font-weight: 500; color: var(--amg-ink);
  line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em;
  font-variation-settings: 'opsz' 96;
}
.amg-layout h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.amg-layout h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.amg-layout h3 { font-size: 1.2rem; font-weight: 600; font-variation-settings: 'opsz' 24; }
.amg-layout :focus-visible { outline: 2px solid var(--amg-primary); outline-offset: 2px; border-radius: 6px; }
.amg-layout .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.amg-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amg-ink); color: #fff !important; padding: 8px 14px; border-radius: 8px; }
.amg-skip:focus { left: 8px; }
.amg-ico { flex: none; }

.amg-container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.amg-narrow { max-width: 820px; }
.amg-main { min-height: 60vh; }
.amg-section { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: var(--amg-header); }
.amg-section-tint { background: var(--amg-tint); }
.amg-section-flush { padding-top: 8px; }
.amg-center { text-align: center; }
.amg-muted { color: var(--amg-ink-2); }
.amg-fine { font-size: .8rem; color: var(--amg-muted); margin: 10px 0 0; }

.amg-eyebrow {
  font: 600 .78rem/1.2 var(--amg-sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--amg-accent); margin: 0 0 14px !important;
}
.amg-label { font: 600 .75rem/1.2 var(--amg-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--amg-muted); margin: 22px 0 10px !important; }
.amg-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--amg-ink-2); max-width: 620px; }

/* ---------- Botões e links ---------- */
.amg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--amg-r-sm); border: 1px solid transparent;
  font: 600 .95rem/1 var(--amg-sans); letter-spacing: .005em; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.amg-btn-primary { background: var(--amg-primary); color: #fff !important; }
.amg-btn-primary:hover { background: var(--amg-primary-hover); }
.amg-btn-secondary { background: transparent; color: var(--amg-ink) !important; border-color: #CFC5BC; }
.amg-btn-secondary:hover { border-color: var(--amg-ink); }
.amg-btn-ghost { background: transparent; color: var(--amg-ink-2) !important; border-color: var(--amg-line); }
.amg-btn-ghost:hover { border-color: var(--amg-ink-2); color: var(--amg-ink) !important; }
.amg-btn-light { background: #fff; color: var(--amg-ink) !important; }
.amg-btn-light:hover { background: var(--amg-primary-soft); }
.amg-btn-sm { min-height: 40px; padding: 9px 16px; font-size: .88rem; }
.amg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.amg-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--amg-primary); }
.amg-link .amg-ico { transition: transform .15s; }
.amg-link:hover .amg-ico, a:hover > .amg-link .amg-ico { transform: translateX(3px); }

/* ---------- Cabeçalho ---------- */
.amg-header {
  position: sticky; top: 0; z-index: 50; height: var(--amg-header);
  background: rgba(250, 247, 243, .88); border-bottom: 1px solid var(--amg-line);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
}
.amg-header-in { display: flex; align-items: center; gap: 28px; height: 100%; width: min(1280px, 100% - 40px); }
.amg-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--amg-ink) !important; flex: none; }
.amg-brand-custom { height: 44px; width: auto; }
.amg-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--amg-accent-soft); color: var(--amg-accent); }
.amg-wordmark { font: 600 1.6rem/1 var(--amg-serif); letter-spacing: -.02em; color: var(--amg-ink); font-variation-settings: 'opsz' 48; }
.amg-wordmark em { font-style: normal; color: var(--amg-accent); }
.amg-nav { margin-left: auto; }
.amg-menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.amg-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--amg-ink-2) !important; white-space: nowrap; }
.amg-menu a:hover { color: var(--amg-ink) !important; background: rgba(42, 34, 48, .04); }
.amg-menu .current-menu-item > a, .amg-menu .current_page_item > a { color: var(--amg-ink) !important; font-weight: 600; }
.amg-menu .sub-menu { display: none; }
.amg-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--amg-line); border-radius: 10px; background: var(--amg-surface); color: var(--amg-ink); cursor: pointer; place-items: center; }
.amg-burger-close { display: none; }
.amg-nav-open .amg-burger-open { display: none; }
.amg-nav-open .amg-burger-close { display: block; }

@media (max-width: 1100px) {
  .amg-burger { display: grid; }
  .amg-nav {
    position: fixed; inset: var(--amg-header) 0 auto 0; margin: 0;
    background: var(--amg-bg); border-bottom: 1px solid var(--amg-line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .amg-nav-open .amg-nav { visibility: visible; opacity: 1; transform: none; }
  .amg-menu { flex-direction: column; padding: 8px 20px 24px; }
  .amg-menu a { padding: 15px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--amg-line); border-radius: 0; }
}

/* ---------- Início ---------- */
.amg-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.amg-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.amg-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.05; letter-spacing: -.025em; }
.amg-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 32px 0 0; font-size: .9rem; color: var(--amg-ink-2); }
.amg-trust li { display: inline-flex; align-items: center; gap: 8px; }
.amg-trust .amg-ico { color: var(--amg-success); }
.amg-hero-media { position: relative; margin: 0; }
.amg-hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 24px; box-shadow: var(--amg-shadow-lg); }
.amg-hero-float {
  position: absolute; left: -28px; bottom: 32px; display: flex; flex-direction: column; gap: 2px;
  background: var(--amg-surface); padding: 16px 20px; border-radius: 14px; box-shadow: var(--amg-shadow-lg);
  color: var(--amg-ink) !important; min-width: 220px;
}
.amg-hero-float small { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amg-accent); }
.amg-hero-float strong { font: 500 1.2rem/1.3 var(--amg-serif); }
.amg-hero-float span { font-size: .85rem; color: var(--amg-muted); }
@media (max-width: 860px) {
  .amg-hero-grid { grid-template-columns: 1fr; }
  .amg-hero-media { order: -1; }
  .amg-hero-media img { aspect-ratio: 5/4; border-radius: 18px; }
  .amg-hero-float { left: 16px; bottom: 16px; min-width: 0; padding: 12px 16px; }
}

.amg-sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.amg-sechead h2 { margin: 0; }
.amg-sechead p:not(.amg-eyebrow) { margin: 10px 0 0; color: var(--amg-ink-2); max-width: 560px; }
.amg-sechead .amg-link { flex: none; }
@media (max-width: 640px) { .amg-sechead { flex-direction: column; align-items: flex-start; gap: 14px; } }

.amg-iconbox { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--amg-primary-soft); color: var(--amg-primary); flex: none; }
.amg-iconbox-sm { width: 40px; height: 40px; border-radius: 10px; }

.amg-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.amg-path {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--amg-r);
  background: var(--amg-surface); border: 1px solid var(--amg-line); color: var(--amg-ink) !important;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.amg-path:hover { border-color: #D5C8DF; box-shadow: var(--amg-shadow); transform: translateY(-2px); }
.amg-path h3 { margin: 22px 0 8px; }
.amg-path p { color: var(--amg-ink-2); font-size: .95rem; flex: 1; }
@media (max-width: 860px) { .amg-paths { grid-template-columns: 1fr; } }

.amg-band {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center;
  background: var(--amg-ink); color: #EDE7F0; border-radius: 24px; padding: clamp(32px, 5vw, 64px);
}
.amg-band h2 { color: #fff; }
.amg-band p { color: #BFB5C6; }
.amg-band .amg-eyebrow { color: #E6A3BA; }
.amg-band-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amg-band-tools a {
  display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #fff !important;
  transition: background .15s;
}
.amg-band-tools a:hover { background: rgba(255, 255, 255, .11); }
.amg-band-tools .amg-ico { color: #E6A3BA; margin-bottom: 10px; }
.amg-band-tools strong { font-weight: 600; font-size: .98rem; }
.amg-band-tools span { font-size: .85rem; color: #BFB5C6; }
@media (max-width: 900px) { .amg-band { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .amg-band-tools { grid-template-columns: 1fr; } }

.amg-techlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.amg-techlist a { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--amg-line); color: var(--amg-ink) !important; }
.amg-techlist a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.amg-techlist strong { font-weight: 600; }
.amg-techlist small { color: var(--amg-ink-2); font-size: .9rem; }
.amg-techlist .amg-ico { color: var(--amg-muted); transition: transform .15s, color .15s; }
.amg-techlist a:hover .amg-ico { color: var(--amg-primary); transform: translateX(3px); }
.amg-num { font: 500 .95rem/1 var(--amg-serif); color: var(--amg-accent); min-width: 26px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .amg-techlist { grid-template-columns: 1fr; } }

/* ---------- Cabeçalho das páginas ---------- */
.amg-pagehead { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); }
.amg-pagehead h1 { margin-bottom: 14px; }
.amg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--amg-muted); margin-bottom: 26px; }
.amg-crumbs a { color: var(--amg-ink-2) !important; }
.amg-crumbs a:hover { color: var(--amg-ink) !important; text-decoration: underline; }
.amg-subnav { position: sticky; top: var(--amg-header); z-index: 20; background: rgba(250, 247, 243, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--amg-line); }
.amg-subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.amg-subnav ul::-webkit-scrollbar { display: none; }
.amg-subnav a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--amg-ink-2) !important; white-space: nowrap; }
.amg-subnav a:hover { background: var(--amg-surface); color: var(--amg-ink) !important; }

/* ---------- Cards ---------- */
.amg-grid { display: grid; gap: 24px; }
.amg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.amg-grid-4 { grid-template-columns: repeat(4, 1fr); }
.amg-grid-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 1024px) { .amg-grid-4 { grid-template-columns: repeat(2, 1fr); } .amg-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .amg-grid-3, .amg-grid-4 { grid-template-columns: 1fr; } .amg-grid { gap: 16px; } }

.amg-card { background: var(--amg-surface); border: 1px solid var(--amg-line); border-radius: var(--amg-r); }
.amg-rcard, .amg-mcard { display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.amg-rcard[hidden] { display: none; }
.amg-rcard > a { display: flex; flex-direction: column; height: 100%; color: var(--amg-ink) !important; }
.amg-rcard:hover, .amg-mcard:hover { box-shadow: var(--amg-shadow); border-color: #DCD3CB; }
.amg-rcard:hover { transform: translateY(-3px); }
.amg-media { aspect-ratio: 4/3; overflow: hidden; border-radius: calc(var(--amg-r) - 1px) calc(var(--amg-r) - 1px) 0 0; background: var(--amg-tint); }
.amg-mcard .amg-media { aspect-ratio: 16/10; }
.amg-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.amg-rcard:hover .amg-media img { transform: scale(1.03); }
.amg-thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; color: #A792BB; background: linear-gradient(145deg, #F5EFF8, #EFE6F4); }
.amg-cardbody { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.amg-cat { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amg-accent); margin: 0 0 6px !important; }
.amg-cardbody h3 { margin: 0 0 8px; font-size: 1.15rem; }
.amg-cardbody > p:not(.amg-cat) { color: var(--amg-ink-2); font-size: .9rem; margin-bottom: 14px; }
.amg-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: auto 0 0; padding: 0; font-size: .85rem; color: var(--amg-muted); }
.amg-meta li { display: inline-flex; align-items: center; gap: 6px; }
.amg-mcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--amg-line); }
.amg-price { font-size: .85rem; font-weight: 600; color: var(--amg-ink-2); }
.amg-price-lg { font-size: 1rem; margin: 18px 0 12px !important; }
.amg-empty { padding: 48px 24px; text-align: center; color: var(--amg-muted); background: var(--amg-surface); border: 1px dashed var(--amg-line); border-radius: var(--amg-r); }

/* Comprar (menu de lojas) */
.amg-buy { position: relative; }
.amg-buy > summary { list-style: none; }
.amg-buy > summary::-webkit-details-marker { display: none; }
.amg-btn-buy { min-height: 38px; padding: 8px 12px 8px 14px; font-size: .85rem; background: var(--amg-ink); color: #fff !important; gap: 6px; }
.amg-btn-buy:hover { background: #000; }
.amg-buy[open] > summary .amg-ico:last-child { transform: rotate(180deg); }
.amg-buy-menu {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; min-width: 210px;
  background: var(--amg-surface); border: 1px solid var(--amg-line); border-radius: 12px; box-shadow: var(--amg-shadow-lg); padding: 6px;
}
.amg-buy-menu p { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amg-muted); margin: 6px 10px 4px !important; }
.amg-buy-menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--amg-ink) !important; }
.amg-buy-menu a:hover { background: var(--amg-tint); }
.amg-buy-menu a .amg-ico { margin-left: auto; color: var(--amg-muted); }
.amg-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.amg-dot-shopee { background: #EE4D2D; }
.amg-dot-amazon { background: #FF9900; }
.amg-dot-ml { background: #FFE600; box-shadow: inset 0 0 0 1px #E3CC00; }
.amg-inline-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; margin: 18px 0; background: var(--amg-surface); border: 1px solid var(--amg-line); border-radius: 12px; font-weight: 500; }
.amg-inline-buy .amg-buy { margin-left: auto; }

/* Filtros */
.amg-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 24px; scrollbar-width: none; }
.amg-filters::-webkit-scrollbar { display: none; }
.amg-filters button {
  flex: none; border: 1px solid var(--amg-line); background: var(--amg-surface); color: var(--amg-ink-2);
  padding: 9px 18px; border-radius: 999px; font: 500 .9rem var(--amg-sans); cursor: pointer; transition: all .15s;
}
.amg-filters button:hover { border-color: var(--amg-ink-2); color: var(--amg-ink); }
.amg-filters button.is-active { background: var(--amg-ink); border-color: var(--amg-ink); color: #fff; }

/* Listas */
.amg-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.amg-checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--amg-ink-2); font-size: .95rem; }
.amg-checklist .amg-ico { color: var(--amg-success); margin-top: 2px; }
.amg-numlist { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.amg-numlist li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; color: var(--amg-ink-2); }
.amg-numlist li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--amg-primary-soft); color: var(--amg-primary); font: 600 .8rem/26px var(--amg-sans); text-align: center; }
.amg-tipline { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0 !important; padding: 12px 14px; border-radius: 10px; background: var(--amg-accent-soft); color: #7D3550; font-size: .9rem; list-style: none; }
.amg-tipline .amg-ico { margin-top: 1px; }

.amg-facts { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 24px 0 0; border: 1px solid var(--amg-line); border-radius: 12px; background: var(--amg-surface); }
.amg-facts li { flex: 1 1 0; min-width: 110px; display: flex; gap: 10px; align-items: center; padding: 14px 16px; }
.amg-facts li + li { border-left: 1px solid var(--amg-line); }
.amg-facts .amg-ico { color: var(--amg-primary); }
.amg-facts span { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.amg-facts small { font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--amg-muted); }

/* ---------- Comece aqui ---------- */
.amg-steps-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.amg-steps-list::before { content: ''; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 1px; background: var(--amg-line); }
.amg-steps-list li { position: relative; display: flex; gap: 28px; padding: 0 0 40px; }
.amg-steps-list li:last-child { padding-bottom: 0; }
.amg-step-num { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--amg-surface); border: 1px solid var(--amg-line); font: 500 1.15rem var(--amg-serif); color: var(--amg-primary); }
.amg-steps-list h3 { margin: 10px 0 6px; font-size: 1.3rem; }
.amg-steps-list p { color: var(--amg-ink-2); max-width: 600px; margin-bottom: 10px; }

.amg-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .amg-split { grid-template-columns: 1fr; } }
.amg-rowtable { overflow: hidden; }
.amg-rowtable table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.amg-rowtable th { text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amg-muted); padding: 14px 20px; background: #FCFAF8; border-bottom: 1px solid var(--amg-line); }
.amg-rowtable td { padding: 13px 20px; border-bottom: 1px solid var(--amg-line); color: var(--amg-ink-2); }
.amg-rowtable tr:last-child td { border-bottom: 0; }
.amg-rowtable td:first-child { font-weight: 600; color: var(--amg-ink); white-space: nowrap; }
.amg-rowtable td:last-child, .amg-rowtable th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.amg-rowtable td:last-child { color: var(--amg-primary); font-weight: 600; }

.amg-anatomy { max-width: 820px; margin: 0 auto 24px; padding: clamp(24px, 4vw, 44px); text-align: center; }
.amg-anatomy-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font: 500 clamp(1.4rem, 3.4vw, 2rem)/1.2 var(--amg-serif); margin-bottom: 32px !important; }
.amg-anatomy-line span { position: relative; padding: 8px 14px 10px; border-radius: 10px; background: var(--amg-tint); }
.amg-anatomy-line span::after { content: attr(data-n); position: absolute; top: -9px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--amg-accent); color: #fff; font: 600 .7rem/20px var(--amg-sans); }
.amg-anatomy-legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; text-align: left; counter-reset: a; }
.amg-anatomy-legend li { counter-increment: a; display: flex; align-items: baseline; gap: 10px; color: var(--amg-ink-2); font-size: .95rem; }
.amg-anatomy-legend li::before { content: counter(a); color: var(--amg-accent); font-weight: 600; font-size: .8rem; }
.amg-anatomy-legend code { font: 600 .9rem ui-monospace, Menlo, Consolas, monospace; color: var(--amg-ink); }
@media (max-width: 600px) { .amg-anatomy-legend { grid-template-columns: 1fr; } }

/* ---------- Materiais ---------- */
.amg-catblock { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.amg-catinfo { position: sticky; top: calc(var(--amg-header) + 76px); }
.amg-catinfo h2 { margin: 20px 0 10px; font-size: 1.7rem; }
.amg-catinfo > p:not(.amg-label) { color: var(--amg-ink-2); }
@media (max-width: 900px) { .amg-catblock { grid-template-columns: 1fr; } .amg-catinfo { position: static; } }

/* ---------- Sanfonas ---------- */
.amg-accordion { display: grid; gap: 12px; }
.amg-accordion-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
@media (max-width: 860px) { .amg-accordion-grid { grid-template-columns: 1fr; } }
.amg-acc { background: var(--amg-surface); border: 1px solid var(--amg-line); border-radius: 14px; scroll-margin-top: calc(var(--amg-header) + 16px); transition: border-color .15s, box-shadow .15s; }
.amg-acc[open] { border-color: #D8CDE2; box-shadow: var(--amg-shadow); }
.amg-acc > summary { display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.amg-acc > summary::-webkit-details-marker { display: none; }
.amg-acc > summary > .amg-ico { margin-left: auto; color: var(--amg-muted); transition: transform .2s; }
.amg-acc[open] > summary > .amg-ico { transform: rotate(180deg); }
.amg-acc-title { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.amg-acc-title strong { font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.amg-acc-title small { color: var(--amg-ink-2); font-size: .9rem; }
.amg-chip-sm { font-style: normal; font: 600 .72rem/1 var(--amg-sans); padding: 4px 8px; border-radius: 6px; background: var(--amg-primary-soft); color: var(--amg-primary); }
.amg-acc-body { padding: 0 22px 22px; border-top: 1px solid var(--amg-line); }
.amg-acc-body > p:not(.amg-label) { color: var(--amg-ink-2); }

.amg-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 40px; padding: 24px 28px; border-radius: var(--amg-r); background: var(--amg-tint); }
.amg-callout div { display: flex; flex-direction: column; }
.amg-callout span { color: var(--amg-ink-2); font-size: .95rem; }

/* ---------- Vender ---------- */
.amg-cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.amg-infocard { padding: clamp(24px, 3.5vw, 36px); scroll-margin-top: calc(var(--amg-header) + 16px); }
.amg-infocard h2 { font-size: 1.5rem; margin: 22px 0 10px; }
.amg-infocard > p { color: var(--amg-ink-2); }
.amg-infocard .amg-checklist { margin-bottom: 22px; }
@media (max-width: 760px) { .amg-cards-2 { grid-template-columns: 1fr; } }

/* ---------- Texto corrido ---------- */
.amg-prose { max-width: 720px; font-size: 1.05rem; color: var(--amg-ink-2); padding-bottom: 72px; }
.amg-prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.amg-prose a { text-decoration: underline; text-underline-offset: 3px; }
.amg-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 28px; }
.amg-contact-card { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--amg-line); border-radius: 14px; background: var(--amg-surface); color: var(--amg-ink) !important; text-decoration: none !important; font-weight: 600; }
.amg-contact-card .amg-ico { color: var(--amg-primary); }
.amg-contact-card span { display: flex; flex-direction: column; }
.amg-contact-card small { font-weight: 500; color: var(--amg-muted); font-size: .8rem; }

/* ---------- Receita ---------- */
.amg-recipe-head { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 64px); }
.amg-recipe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.amg-recipe-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 1; background: var(--amg-tint); box-shadow: var(--amg-shadow-lg); }
.amg-recipe-photo img { width: 100%; height: 100%; object-fit: cover; }
.amg-recipe-intro .amg-crumbs { margin-bottom: 20px; }
.amg-recipe-intro .amg-prose { padding-bottom: 0; }
@media (max-width: 860px) {
  .amg-recipe-grid { grid-template-columns: 1fr; }
  .amg-recipe-photo { aspect-ratio: 4/3; border-radius: 18px; }
}
.amg-recipe-body { display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: 80px; }
.amg-recipe-side { position: sticky; top: calc(var(--amg-header) + 20px); display: grid; gap: 16px; }
@media (max-width: 960px) { .amg-recipe-body { grid-template-columns: 1fr; } .amg-recipe-side { position: static; } }
.amg-side { padding: 22px; }
.amg-side h2 { font-size: 1.25rem; margin-bottom: 12px; scroll-margin-top: calc(var(--amg-header) + 24px); }
.amg-matlist { list-style: none; margin: 0; padding: 0; }
.amg-matlist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--amg-line); font-size: .9rem; color: var(--amg-ink-2); }
.amg-matlist li:last-child { border-bottom: 0; }
.amg-matlist .amg-btn-buy { min-height: 34px; padding: 6px 10px; font-size: .8rem; }
.amg-abbr { margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.amg-abbr div { display: flex; gap: 10px; }
.amg-abbr dt { font-weight: 600; color: var(--amg-primary); min-width: 44px; }
.amg-abbr dd { margin: 0; color: var(--amg-ink-2); }

.amg-stepsbox { scroll-margin-top: var(--amg-header); }
.amg-stepshead { position: sticky; top: var(--amg-header); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 16px 0; background: var(--amg-bg); border-bottom: 1px solid var(--amg-line); margin-bottom: 8px; }
.amg-stepshead h2 { margin: 0; font-size: 1.6rem; }
.amg-progress { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 320px; }
.amg-progress-txt { font-size: .82rem; color: var(--amg-muted); white-space: nowrap; }
.amg-progress-txt b { color: var(--amg-ink); font-weight: 600; }
.amg-progress-bar { flex: 1; height: 6px; background: var(--amg-line); border-radius: 99px; overflow: hidden; }
.amg-progress-bar span { display: block; height: 100%; width: 0; background: var(--amg-primary); border-radius: 99px; transition: width .3s; }
.amg-part { font-size: 1.15rem !important; margin: 32px 0 10px !important; }
.amg-rows { list-style: none; padding: 0; margin: 0; border: 1px solid var(--amg-line); border-radius: 14px; background: var(--amg-surface); overflow: hidden; }
.amg-rows > li + li { border-top: 1px solid var(--amg-line); }
.amg-rows .amg-tipline { margin: 0 !important; border-radius: 0; }
.amg-row label { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; transition: background .15s; }
.amg-row label:hover { background: #FCFAF8; }
.amg-row input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid #C9BFB6; border-radius: 6px; display: grid; place-items: center; cursor: pointer; background: #fff; transition: all .15s; }
.amg-row input:checked { background: var(--amg-primary); border-color: var(--amg-primary); }
.amg-row input:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.amg-row-lbl { flex: none; min-width: 64px; font-weight: 600; font-size: .85rem; color: var(--amg-ink); font-variant-numeric: tabular-nums; }
.amg-row-lbl:empty { display: none; }
.amg-row-txt { color: var(--amg-ink-2); font-size: .95rem; }
.amg-row.is-done label { background: #FBF9F7; }
.amg-row.is-done .amg-row-lbl, .amg-row.is-done .amg-row-txt { color: var(--amg-muted); text-decoration: line-through; text-decoration-color: #CFC5BC; }
.amg-row.is-next label { background: var(--amg-primary-soft); box-shadow: inset 3px 0 0 var(--amg-primary); }
.amg-stepsfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.amg-stepsfoot .amg-fine { margin: 0; }
.amg-recipe-notes { padding: 32px 0 0; }

/* ---------- Ferramentas ---------- */
.amg-toolnav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.amg-toolnav a { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--amg-line); border-radius: 14px; background: var(--amg-surface); color: var(--amg-ink) !important; font-size: .9rem; transition: border-color .15s, box-shadow .15s; }
.amg-toolnav a:hover { border-color: #D5C8DF; box-shadow: var(--amg-shadow); }
.amg-toolnav .amg-ico { color: var(--amg-primary); }
.amg-toolnav strong { font-weight: 600; line-height: 1.3; }
@media (max-width: 900px) { .amg-toolnav { grid-template-columns: repeat(2, 1fr); } }
.amg-toolblock { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.amg-toolinfo h2 { margin: 20px 0 8px; font-size: 1.7rem; }
.amg-toolinfo p { color: var(--amg-ink-2); }
@media (max-width: 900px) { .amg-toolblock { grid-template-columns: 1fr; gap: 20px; } }

.amg-tool { background: var(--amg-surface); border: 1px solid var(--amg-line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--amg-shadow); }
.amg-tool fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.amg-tool legend { font: 600 .75rem/1 var(--amg-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--amg-muted); margin-bottom: 12px; padding: 0; }
.amg-tool h3 { font-size: 1.2rem; }
.amg-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.amg-tool label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .85rem; color: var(--amg-ink-2); }
.amg-tool input[type=number], .amg-tool input[type=search], .amg-tool select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #DDD4CC; border-radius: 10px;
  font: 500 1rem var(--amg-sans); color: var(--amg-ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.amg-tool input:focus, .amg-tool select:focus { outline: none; border-color: var(--amg-primary); box-shadow: 0 0 0 3px var(--amg-primary-soft); }
.amg-tool label.amg-check { flex-direction: row; align-items: center; gap: 10px; margin-top: 12px; font-size: .9rem; }
.amg-tool label.amg-check input { width: 18px; height: 18px; accent-color: var(--amg-primary); }
.amg-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin-top: 8px; background: var(--amg-line); border: 1px solid var(--amg-line); border-radius: 12px; overflow: hidden; }
.amg-result > div { background: #FCFAF8; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.amg-result small { font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--amg-muted); }
.amg-result b { font: 500 1.35rem/1.1 var(--amg-serif); color: var(--amg-ink); font-variant-numeric: tabular-nums; }
.amg-result .amg-result-main { background: var(--amg-ink); }
.amg-result .amg-result-main small { color: #BFB5C6; }
.amg-result .amg-result-main b { color: #fff; font-size: 1.7rem; }
.amg-tool .amg-note { font-size: .85rem; color: var(--amg-muted); margin: 14px 0 0; }
.amg-scale { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--amg-line); }

/* Contador */
.amg-counter-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 20px; }
.amg-counter-top label { flex: 1; min-width: 180px; }
.amg-counter-labels { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amg-muted); margin-bottom: 8px; }
.amg-counter-main { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.amg-counter-big {
  border: 0; border-radius: 16px; cursor: pointer; min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--amg-ink); color: #fff; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .08s, background .15s; user-select: none;
}
.amg-counter-big:hover { background: #1E1823; }
.amg-counter-big:active { transform: scale(.98); }
.amg-counter-big b { font: 500 clamp(4rem, 14vw, 6rem)/1 var(--amg-serif); font-variant-numeric: tabular-nums; }
.amg-counter-big small { font-size: .8rem; color: #BFB5C6; }
.amg-counter-alt { background: var(--amg-primary-soft); color: var(--amg-primary); }
.amg-counter-alt:hover { background: #E6DAF1; }
.amg-counter-alt b { font-size: clamp(3rem, 9vw, 4.2rem); }
.amg-counter-alt small { color: var(--amg-primary); opacity: .8; }
.amg-counter-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.amg-pop b { animation: amg-pop .22s ease; }
@keyframes amg-pop { 50% { transform: scale(1.08); } }

/* Tabelas */
.amg-table-wrap { overflow-x: auto; margin: 16px 0 0; border: 1px solid var(--amg-line); border-radius: 12px; }
.amg-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.amg-table th { text-align: left; padding: 12px 16px; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amg-muted); background: #FCFAF8; border-bottom: 1px solid var(--amg-line); white-space: nowrap; }
.amg-table td { padding: 12px 16px; border-top: 1px solid var(--amg-line); vertical-align: top; color: var(--amg-ink-2); }
.amg-table tbody tr:first-child td { border-top: 0; }
.amg-table td b { display: block; color: var(--amg-ink); font-weight: 600; }
.amg-table td small { color: var(--amg-muted); }
.amg-table tr[hidden] { display: none; }

/* ---------- Rodapé ---------- */
.amg-footer { background: var(--amg-ink); color: #BFB5C6; padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); }
.amg-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.amg-footer .amg-wordmark { color: #fff; }
.amg-footer .amg-wordmark em { color: #E6A3BA; }
.amg-footer-brand p { margin: 16px 0 20px; max-width: 280px; font-size: .92rem; }
.amg-social { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-size: .9rem; font-weight: 500; }
.amg-footer-title { color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: 14px !important; }
.amg-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.amg-footer ul a { color: #BFB5C6 !important; font-size: .9rem; }
.amg-footer ul a:hover { color: #fff !important; }
.amg-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: #8F8596; }
.amg-footer-bottom p { margin: 0; }
@media (max-width: 860px) { .amg-footer-grid { grid-template-columns: 1fr 1fr; } .amg-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .amg-footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); } }

/* ---------- Barra de app (celular) ---------- */
.amg-tabbar { display: none; }
@media (max-width: 1100px) {
  .amg-tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--amg-line);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .amg-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: .7rem; font-weight: 500; color: var(--amg-ink-2) !important; }
  .amg-tabbar a:active { color: var(--amg-primary) !important; }
}

/* Convite para instalar */
.amg-install {
  position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 70;
  max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  background: var(--amg-surface); border: 1px solid var(--amg-line); border-radius: 16px; padding: 12px 12px 12px 14px; box-shadow: var(--amg-shadow-lg);
}
.amg-install[hidden] { display: none; }
.amg-install img { border-radius: 10px; }
.amg-install p { margin: 0; flex: 1; font-size: .9rem; line-height: 1.35; }
.amg-install p small { display: block; color: var(--amg-muted); font-size: .8rem; }
.amg-install-x { border: 0; background: none; color: var(--amg-muted); cursor: pointer; padding: 6px; display: grid; }
@media (min-width: 1101px) { .amg-install { bottom: 24px; right: 24px; left: auto; } }

@media (prefers-reduced-motion: reduce) {
  .amg-layout * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html:has(body.amg-layout) { scroll-behavior: smooth; }

/* Itens de grade não podem ficar mais largos que a tela (a tabela de agulha empurrava a página para o lado). */
.amg-toolblock > *, .amg-catblock > *, .amg-split > *, .amg-recipe-body > *, .amg-hero-grid > *, .amg-recipe-grid > * { min-width: 0; }
.amg-layout { overflow-x: clip; }

/* ---------- Carrosséis no celular: arraste para o lado em vez de rolar uma lista enorme ---------- */
@media (max-width: 760px) {
  .amg-paths, .amg-grid-3, .amg-grid-4, .amg-grid-auto, .amg-cards-2, .amg-toolnav, .amg-band-tools {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
    margin-inline: -20px; padding: 4px 20px 6px; scrollbar-width: none;
  }
  .amg-paths::-webkit-scrollbar, .amg-grid-3::-webkit-scrollbar, .amg-grid-4::-webkit-scrollbar, .amg-grid-auto::-webkit-scrollbar,
  .amg-cards-2::-webkit-scrollbar, .amg-toolnav::-webkit-scrollbar, .amg-band-tools::-webkit-scrollbar { display: none; }
  .amg-paths > *, .amg-grid-3 > *, .amg-grid-4 > *, .amg-grid-auto > *, .amg-cards-2 > * { flex: 0 0 84%; scroll-snap-align: start; }
  .amg-toolnav > * { flex: 0 0 44%; scroll-snap-align: start; }
  .amg-band-tools { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .amg-band-tools > * { flex: 0 0 78%; scroll-snap-align: start; }
  .amg-mcard .amg-media { aspect-ratio: 16/10; }
  .amg-grid { gap: 12px; }

  /* Pontinhos que mostram em qual card você está */
  .amg-dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; }
  .amg-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: #D6CCD9; cursor: pointer; transition: width .2s, background .2s; }
  .amg-dots button.is-active { width: 20px; background: var(--amg-primary); }
  .amg-band .amg-dots button { background: rgba(255, 255, 255, .25); }
  .amg-band .amg-dots button.is-active { background: #E6A3BA; }

  /* Leitura mais leve no celular */
  .amg-section { padding: 44px 0; }
  .amg-sechead { margin-bottom: 20px; }
  .amg-pagehead { padding: 28px 0 20px; }
  .amg-crumbs { margin-bottom: 14px; }
  .amg-steps-list li { gap: 18px; padding-bottom: 28px; }
}
@media (min-width: 761px) { .amg-dots { display: none; } }
/* No celular o menu de lojas abre como uma folha no rodapé (não fica cortado dentro do carrossel). */
@media (max-width: 760px) {
  .amg-buy-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); min-width: 0; z-index: 80; padding: 10px; }
  .amg-buy-menu a { padding: 14px 12px; font-size: 1rem; }
}

/* Comece aqui: tudo na mesma página */
.amg-mt { margin-top: 24px; }
.amg-minisiglas { max-width: 820px; margin: 0 auto; padding: 22px 26px; }
.amg-minisiglas .amg-label { margin-top: 0 !important; }
.amg-abbr-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.amg-abbr-grid small { color: var(--amg-muted); }
@media (max-width: 600px) { .amg-abbr-grid { grid-template-columns: 1fr; } }
#bolinha .amg-tool, .amg-flow-panel .amg-split .amg-tool { box-shadow: none; }

/* ---------- Abas que trocam no lugar (Comece aqui, Ferramentas, Materiais) ---------- */
.amg-flow-nav { position: sticky; top: var(--amg-header); z-index: 20; background: rgba(250, 247, 243, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--amg-line); }
.amg-flow-chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.amg-flow-chips::-webkit-scrollbar { display: none; }
.amg-flow-chips button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px;
  border: 1px solid var(--amg-line); border-radius: 999px; background: var(--amg-surface); color: var(--amg-ink-2);
  font: 500 .92rem var(--amg-sans); cursor: pointer; transition: background .15s, color .15s, border-color .15s; -webkit-tap-highlight-color: transparent;
}
.amg-flow-chips button[aria-selected=true] { background: var(--amg-ink); border-color: var(--amg-ink); color: #fff; }
.amg-flow-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 600; background: var(--amg-tint); color: var(--amg-primary); }
.amg-flow-chips button[aria-selected=true] .amg-flow-n { background: rgba(255, 255, 255, .18); color: #fff; }
.amg-flow-bar { height: 3px; background: var(--amg-line); }
.amg-flow-bar span { display: block; height: 100%; background: var(--amg-primary); transition: width .3s ease; }
.amg-flow-panels { overflow: hidden; touch-action: pan-y; }
.amg-flow-panel { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.amg-flow-panel[hidden] { display: none; }
.amg-flow-panel.amg-in-next { animation: amg-in-next .28s ease; }
.amg-flow-panel.amg-in-prev { animation: amg-in-prev .28s ease; }
@keyframes amg-in-next { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes amg-in-prev { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.amg-flow-head { margin-bottom: 24px; }
.amg-flow-head h2 { margin-bottom: 8px; }
.amg-flow-head .amg-lead { margin: 0; }
.amg-flow-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--amg-line); }
.amg-flow-foot .amg-btn-primary { margin-left: auto; }
.amg-flow-hint { margin: 12px 0 0; text-align: center; font-size: .8rem; color: var(--amg-muted); }
@media (min-width: 761px) { .amg-flow-hint { display: none; } }
.amg-flow .amg-catinfo { top: calc(var(--amg-header) + 90px); }
@media (max-width: 760px) {
  .amg-flow-foot .amg-btn { flex: 1; min-height: 50px; white-space: normal; text-align: center; line-height: 1.25; }
  .amg-flow-foot .amg-btn-ghost { flex: 0 0 auto; }
  .amg-flow-panel { padding-top: 24px; }
  .amg-flow .amg-toolinfo .amg-iconbox, .amg-flow .amg-catinfo .amg-iconbox { display: none; }
  .amg-flow .amg-toolinfo h2, .amg-flow .amg-catinfo h2 { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .amg-flow-panel.amg-in-next, .amg-flow-panel.amg-in-prev { animation: none; } }

/* ---------- Cabeçalho colorido ---------- */
.amg-header { background: linear-gradient(115deg, #3A2850 0%, #5B3F7C 55%, #7A4F8E 100%); border-bottom: 0; box-shadow: 0 6px 20px -12px rgba(42, 20, 60, .6); }
.amg-wordmark { color: #fff; }
.amg-wordmark em { color: #F5B5CB; }
.amg-mark { background: rgba(255, 255, 255, .14); color: #F5B5CB; }
.amg-brand { color: #fff !important; }
.amg-burger { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }
@media (min-width: 1101px) {
  .amg-menu a { color: rgba(255, 255, 255, .82) !important; }
  .amg-menu a:hover { color: #fff !important; background: rgba(255, 255, 255, .1); }
  .amg-menu .current-menu-item > a, .amg-menu .current_page_item > a { color: #fff !important; background: rgba(255, 255, 255, .16); }
}
@media (max-width: 1100px) {
  .amg-nav { background: #fff; }
  .amg-menu a { color: var(--amg-ink) !important; }
  .amg-menu .current-menu-item > a, .amg-menu .current_page_item > a { color: var(--amg-primary) !important; }
}
/* A barra das abas logo abaixo do cabeçalho */
.amg-flow-nav { border-top: 0; }
.amg-footer .amg-wordmark { color: #fff; }

/* ---------- Títulos de página curtos ---------- */
.amg-pagehead { padding: clamp(24px, 4vw, 48px) 0 clamp(16px, 2.5vw, 28px); }
.amg-pagehead h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }
.amg-pagehead .amg-lead { margin: 10px 0 0; font-size: 1.05rem; }
.amg-flow-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.amg-flow-head .amg-lead { font-size: 1rem; }
@media (max-width: 760px) {
  .amg-pagehead { padding: 18px 0 14px; }
  .amg-pagehead h1 { font-size: 1.75rem; }
  .amg-pagehead .amg-lead { display: none; }
  .amg-flow-head { margin-bottom: 18px; }
  .amg-flow-head .amg-lead { font-size: .95rem; line-height: 1.5; }
  .amg-facts li { min-width: 0; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; }
  .amg-facts span { font-size: .85rem; }
}

/* ---------- Barra de baixo com 6 atalhos ---------- */
@media (max-width: 1100px) {
  .amg-tabbar { grid-template-columns: repeat(6, 1fr); padding-inline: 2px; }
  .amg-tabbar a { font-size: .64rem; gap: 2px; padding: 6px 0; letter-spacing: -.01em; }
  .amg-tabbar a .amg-ico { width: 21px; height: 21px; }
  .amg-tabbar a.is-active { color: var(--amg-primary) !important; font-weight: 600; }
  .amg-tabbar a.is-active .amg-ico { stroke-width: 2; }
}
