/*
  Nhienze Cardápio · site principal
  Mapa de climas:
    hero: Esplendor (noite quente, aurora âmbar/rubi)
    como funciona: Editorial (papel, tinta, números gigantes)
    pedido: Orgânico (areia, terracota, oliva, granulação)
    cores: Radiante (creme, coral, magenta em mesh)
    endereço: Oceânico (abissal para turquesa)
    planos: Elegante (marinho, dourado, marfim)
    dúvidas: Editorial claro
    CTA final: Radiante âmbar
  Fio condutor: âmbar Nhienze #F5A623 + Fraunces (títulos) / DM Sans (texto)
*/

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --amber: #F5A623;
  --amber-deep: #B86E00;
  --night: #140B0A;
  --ruby: #B3123E;
  --plum: #4A1F3D;
  --paper: #F7F3EA;
  --ink: #1A1A1A;
  --sand: #E9DCC4;
  --terra: #A9501F;
  --olive: #5C6B2E;
  --coffee: #3B2A20;
  --cream: #FFF6EC;
  --coral: #FF6B4A;
  --magenta: #E4387A;
  --abyss: #03142B;
  --petrol: #0A4D68;
  --teal: #05BFDB;
  --navy: #0E1A2B;
  --gold: #C9A227;
  --ivory: #F4EFE6;
  --green: #126B3A;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.1rem, 1.5rem + 3vw, 4rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.6vw, 5.4rem);
  --pad: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: var(--step-0); line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 2 * var(--pad)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--night); padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
.kicker { font: 700 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.2rem; color: var(--amber-deep); }
.kicker--gold { color: var(--gold); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; font: 700 .98rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--lg { min-height: 56px; padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--amber { background: var(--amber); color: var(--night); box-shadow: 0 8px 30px -8px rgba(245, 166, 35, .7); }
.btn--amber:hover { background: #ffb948; }
.btn--line { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--line:hover { border-color: var(--amber); }
.btn--ghost { border-color: currentColor; }
.btn--navy { background: var(--navy); color: var(--ivory); }
.btn--navy:hover { background: #1a2d47; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #dbb43a; }
.btn--ink { background: var(--night); color: var(--cream); }
.btn--ink:hover { background: #000; }

/* Topo */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--pad); background: var(--night); color: #fff; }
.topbar--over { position: absolute; inset: 0 0 auto; background: transparent; z-index: 5; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 600 1.15rem/1 var(--serif); }
.brand em { font-style: italic; font-weight: 400; color: var(--amber); }
.brand__mark { width: 28px; height: 28px; fill: var(--amber); }
.topbar__nav { display: flex; align-items: center; gap: 1.25rem; font-size: .95rem; }
.topbar__nav a:not(.btn) { text-decoration: none; opacity: .85; }
.topbar__nav a:not(.btn):hover { opacity: 1; color: var(--amber); }
.topbar__nav .btn { min-height: 42px; padding: .6rem 1.1rem; font-size: .9rem; }
@media (max-width: 760px) { .topbar__nav a[href^="#"] { display: none; } .topbar__nav { gap: .8rem; } }

.flashes { width: min(720px, 100% - 2 * var(--pad)); margin: 1rem auto 0; }
.flash { padding: .9rem 1.1rem; border-radius: 12px; margin: 0 0 .5rem; font-weight: 500; border-left: 4px solid; }
.flash--success { background: #e8f3ec; border-color: var(--green); color: #0d4a28; }
.flash--error { background: #fbe9ec; border-color: var(--ruby); color: #7a0c2a; }
.flash--info { background: #fff4df; border-color: var(--amber); color: #6a4300; }
.flash__code { font: 700 1.4rem ui-monospace, Menlo, monospace; letter-spacing: .2em; margin-left: .3rem; }
.page-home .flashes { position: absolute; top: 5rem; left: 0; right: 0; z-index: 6; }

/* HERO · Esplendor */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--night); padding: calc(var(--section) + 3rem) var(--pad) var(--section); }
.hero__aurora { position: absolute; inset: -20%; background:
  radial-gradient(40% 50% at 78% 38%, rgba(245, 166, 35, .55), transparent 60%),
  radial-gradient(35% 45% at 62% 80%, rgba(179, 18, 62, .55), transparent 65%),
  radial-gradient(45% 50% at 10% 10%, rgba(91, 42, 134, .45), transparent 60%),
  radial-gradient(30% 30% at 95% 95%, rgba(179, 18, 62, .35), transparent 70%);
  filter: blur(30px); }
.hero__aurora::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .07; mix-blend-mode: overlay; }
@media (prefers-reduced-motion: no-preference) { .hero__aurora { animation: drift 18s ease-in-out infinite alternate; } }
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.05); } }
.hero__inner { position: relative; width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero .eyebrow { color: var(--amber); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-size: var(--step-4); font-weight: 400; line-height: 1.02; margin-bottom: .5em; }
.hero h1 span { display: block; font-weight: 700; font-style: italic; color: var(--amber); }
.hero__lead { font-size: var(--step-1); max-width: 34ch; color: rgba(255, 255, 255, .86); line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1rem; }
.hero__fine { font-size: .9rem; color: rgba(255, 255, 255, .65); }
@media (max-width: 880px) { .hero__inner { grid-template-columns: 1fr; } .phone { margin-inline: auto; } }

/* Celular ilustrativo */
.phone { width: min(320px, 82vw); aspect-ratio: 9 / 16; border-radius: 42px; padding: 12px; background: linear-gradient(145deg, #2b2220, #0b0606); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 120px -20px rgba(245, 166, 35, .45); transform: rotate(3deg); margin-bottom: -2rem; }
.phone__screen { height: 100%; border-radius: 32px; overflow: hidden; background: #fbf8f3; color: #1c1412; position: relative; font-size: .78rem; line-height: 1.35; }
.mock-head { display: flex; gap: .7rem; align-items: center; padding: 1.4rem 1rem 1rem; background: #1c1412; color: #fff; }
.mock-head strong { font: 600 1rem/1.1 var(--serif); display: block; }
.mock-head small { color: #e8c58a; }
.mock-logo { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #B3123E; font: 700 .85rem var(--serif); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; margin-right: 2px; }
.mock-chips { display: flex; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid #eadfd2; }
.mock-chips span { padding: .25rem .65rem; border-radius: 99px; background: #f1e8dc; font-weight: 500; }
.mock-chips .on { background: #B3123E; color: #fff; }
.mock-item { display: grid; grid-template-columns: 54px 1fr auto; gap: .6rem; align-items: center; padding: .7rem 1rem; border-bottom: 1px solid #f0e7da; }
.mock-item strong { display: block; font: 600 .9rem var(--serif); }
.mock-item small { display: block; color: #6b5d52; }
.mock-item b { color: #8f0e31; }
.mock-img { width: 54px; height: 54px; border-radius: 10px; }
.mock-img--a { background: radial-gradient(circle at 40% 40%, #e7b46a, #b5651d 55%, #6b2d0c); }
.mock-img--b { background: radial-gradient(circle at 50% 35%, #7a4a2a, #3b1d0e 60%, #1e0c05); }
.mock-img--c { background: radial-gradient(circle at 50% 40%, #fff6b0, #e8d44d 55%, #9bb52b); }
.mock-add { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #B3123E; color: #fff; font-weight: 700; }
.mock-cart { position: absolute; left: .8rem; right: .8rem; bottom: .9rem; display: flex; justify-content: space-between; align-items: center; padding: .75rem .9rem; border-radius: 16px; background: #1c1412; color: #fff; font-weight: 700; }
.mock-cart span { background: var(--amber); color: #1c1412; padding: .35rem .7rem; border-radius: 99px; }

/* COMO FUNCIONA · Editorial */
.steps { background: var(--paper); padding: var(--section) 0; position: relative; }
.steps__head { max-width: 760px; }
.steps__head h2 { font-weight: 400; }
.steps__list { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem 2rem; }
.steps__list li { grid-column: span 4; border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.steps__list li:nth-child(2) { margin-top: 4rem; }
.steps__list li:nth-child(3) { margin-top: 8rem; }
.steps__num { display: block; font: italic 400 clamp(4rem, 9vw, 7.5rem)/.9 var(--serif); color: transparent; -webkit-text-stroke: 1.5px var(--amber-deep); margin-bottom: .8rem; }
.steps__list p { color: #3d3a35; }
@media (max-width: 860px) { .steps__list li { grid-column: 1 / -1; margin-top: 0 !important; } }

/* PEDIDO · Orgânico */
.order { position: relative; background: var(--sand); color: var(--coffee); padding: var(--section) 0; clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%); margin: -3vw 0; }
.order::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .08; pointer-events: none; }
.order__grid { position: relative; display: grid; grid-template-columns: 1fr minmax(280px, 400px); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.order .kicker { color: var(--terra); }
.order h2 { color: var(--coffee); }
.order__privacy { display: flex; gap: .8rem; padding: 1rem 1.2rem; background: rgba(92, 107, 46, .14); border-left: 4px solid var(--olive); border-radius: 0 14px 14px 0; font-weight: 500; }
.order__privacy svg { flex: 0 0 22px; width: 22px; fill: var(--olive); }
.chat { margin: 0; background: #efe7dc; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(59, 42, 32, .5); transform: rotate(-2deg); }
.chat__bar { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: #1f5c4a; color: #fff; font-weight: 700; }
.chat__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ruby); font: 700 .8rem var(--serif); }
.chat__body { padding: 1.4rem 1rem 1rem; background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .5), transparent 60%), #e6dccd; }
.bubble { position: relative; margin: 0 0 0 auto; max-width: 92%; background: #d9fdd3; color: #111b21; padding: .8rem 1rem 1.4rem; border-radius: 14px 4px 14px 14px; font-size: .95rem; line-height: 1.5; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.bubble__time { position: absolute; right: .7rem; bottom: .35rem; font-size: .72rem; color: #4a7a5e; }
.chat figcaption { font-size: .8rem; padding: .6rem 1rem .9rem; background: #e6dccd; color: #6b5a4b; }
@media (max-width: 860px) { .order__grid { grid-template-columns: 1fr; } }

/* CORES · Radiante */
.colors { position: relative; padding: calc(var(--section) + 3vw) 0 var(--section); background:
  radial-gradient(at 12% 20%, rgba(255, 107, 74, .32) 0, transparent 45%),
  radial-gradient(at 88% 12%, rgba(228, 56, 122, .25) 0, transparent 45%),
  radial-gradient(at 70% 90%, rgba(255, 182, 39, .35) 0, transparent 50%),
  var(--cream); }
.colors__grid { display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.colors .kicker { color: #b23a1d; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-top: 1.6rem; }
.swatch { display: flex; align-items: center; gap: 0; min-height: 52px; padding: .5rem .8rem; border: 2px solid rgba(26, 26, 26, .12); background: rgba(255, 255, 255, .7); border-radius: 14px; cursor: pointer; font: 500 .85rem var(--sans); color: var(--ink); text-align: left; transition: border-color .2s, transform .15s; }
.swatch span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; margin-right: -6px; }
.swatch em { font-style: normal; margin-left: 14px; }
.swatch[aria-checked="true"] { border-color: var(--ink); transform: translateY(-2px); }
.preview { border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -30px rgba(120, 30, 40, .45); transition: box-shadow .3s; }
.preview__head { padding: 1.6rem 1.4rem; background: var(--s); color: var(--st); transition: background-color .4s, color .4s; }
.preview__head strong { display: block; font: 600 1.35rem var(--serif); }
.preview__head small { opacity: .8; }
.preview__body { padding: 1.2rem 1.4rem 1.5rem; }
.preview__cat { font: 700 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--p); margin: 0 0 .6rem; transition: color .4s; }
.preview__item { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: start; padding: .8rem 0; border-bottom: 1px solid #eee; }
.preview__item strong { display: block; font: 600 1rem var(--serif); }
.preview__item small { color: #666; font-size: .85rem; }
.preview__n { font: italic 600 1.6rem/1 var(--serif); color: var(--a); transition: color .4s; }
.preview__btn { display: block; margin-top: 1.1rem; text-align: center; padding: .85rem; border-radius: 999px; background: var(--p); color: var(--pt); font-weight: 700; transition: background-color .4s, color .4s; }
@media (max-width: 860px) { .colors__grid { grid-template-columns: 1fr; } }

/* ENDEREÇO · Oceânico */
.address { color: #e0fbfc; padding: var(--section) 0; background: linear-gradient(180deg, var(--abyss) 0%, #062a4d 55%, var(--petrol) 100%); position: relative; }
.address::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; background: var(--navy); clip-path: path("M0,40 C240,0 480,60 720,30 C960,0 1200,50 1440,20 L1440,60 L0,60 Z"); }
.address .kicker { color: var(--teal); }
.address h2 { max-width: 20ch; color: #fff; }
.address__lead { max-width: 52ch; color: #b9e6ee; }
.urls { list-style: none; padding: 0; margin: 2.5rem 0 1rem; display: grid; gap: .8rem; }
.urls li { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid rgba(5, 191, 219, .35); border-radius: 14px; background: rgba(3, 20, 43, .45); }
.urls code { font: 500 clamp(.95rem, .8rem + .8vw, 1.35rem) ui-monospace, "SFMono-Regular", Menlo, monospace; color: #fff; word-break: break-all; }
.urls b { color: var(--teal); font-weight: 700; }
.urls__tag { font: 700 .7rem var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: .35rem .6rem; border-radius: 6px; background: rgba(5, 191, 219, .18); color: var(--teal); }
.urls__premium { border-color: rgba(245, 166, 35, .5) !important; }
.urls__premium .urls__tag { background: rgba(245, 166, 35, .18); color: var(--amber); }
.urls__premium b { color: var(--amber); }

/* PLANOS · Elegante */
.plans { background: var(--navy); color: var(--ivory); padding: var(--section) 0; position: relative; }
.plans::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 0%, rgba(201, 162, 39, .12), transparent 70%); pointer-events: none; }
.plans__head { text-align: center; max-width: 820px; margin: 0 auto 3.5rem; position: relative; }
.plans__head h2 { font-weight: 400; }
.plans__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 2rem 1.6rem; border-radius: 4px; background: var(--ivory); color: var(--navy); border-top: 3px solid var(--gold); }
.plan h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.plan__pitch { color: #4b5566; min-height: 3em; }
.plan__price { font: 600 2.6rem/1 var(--serif); margin: .6rem 0 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(14, 26, 43, .15); }
.plan__price span { font-size: 1.1rem; margin-left: .1rem; }
.plan__price small { font: 400 .95rem var(--sans); color: #4b5566; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.plan li { position: relative; padding: .45rem 0 .45rem 1.6rem; font-size: .95rem; line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 0; top: .9rem; width: .8rem; height: 1px; background: var(--gold); }
.plan--premium { background: linear-gradient(170deg, #13243a, #0b1522); color: var(--ivory); border: 1px solid rgba(201, 162, 39, .35); border-top-width: 3px; }
.plan--featured { position: relative; border-top: 5px solid #1f6f6b; box-shadow: 0 30px 70px -30px rgba(31, 111, 107, .75), 0 0 0 1px rgba(31, 111, 107, .35); transform: translateY(-14px); }
.plan__ribbon { position: absolute; top: -1px; right: 1.4rem; transform: translateY(-100%); margin: 0; padding: .35rem .8rem; background: #1f6f6b; color: #f4efe6; font: 700 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; border-radius: 4px 4px 0 0; }
.plan__perk { background: rgba(31, 111, 107, .09); border-radius: 4px; padding-right: .6rem !important; }
.plan__perk em { display: block; font: 700 .7rem/1.2 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #1f6f6b; margin-bottom: .15rem; }
.plan--premium .plan__pitch, .plan--premium .plan__price small { color: #b9c2cf; }
.plan--premium .plan__price { border-color: rgba(201, 162, 39, .3); color: var(--gold); }
.plans__note { position: relative; text-align: center; margin: 2rem auto 0; max-width: 60ch; color: #b9c2cf; font-size: .92rem; }
@media (max-width: 920px) { .plans__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 2.4rem; } .plan--featured { order: -1; transform: none; } }

/* DÚVIDAS · Editorial claro */
.faq { background: var(--paper); padding: var(--section) 0; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); }
.faq h2 { font-weight: 400; font-style: italic; font-size: var(--step-2); }
.faq details { border-bottom: 1px solid rgba(26, 26, 26, .2); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font: 600 1.1rem/1.35 var(--serif); position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 1rem; font: 400 1.6rem var(--sans); color: var(--amber-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #3d3a35; padding-right: 2rem; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* CTA FINAL · Radiante âmbar */
.final { padding: var(--section) 0; background:
  radial-gradient(at 20% 30%, #ffcf6e 0, transparent 50%),
  radial-gradient(at 85% 70%, #ff8a4a 0, transparent 55%),
  var(--amber); color: var(--night); text-align: center; }
.final h2 { font-size: var(--step-4); font-weight: 700; max-width: 16ch; margin-inline: auto; }
.final p { font-size: var(--step-1); max-width: 40ch; margin: 0 auto 2rem; }

/* Rodapé */
.footer { background: #0f0b0a; color: #cfc6bd; padding: 3.5rem var(--pad) 2rem; font-size: .95rem; }
.footer__grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.footer__brand { font: 600 1.3rem var(--serif); color: #fff; }
.footer__brand em { color: var(--amber); font-weight: 400; }
.footer nav { display: grid; gap: .5rem; justify-items: start; }
.footer nav a { text-decoration: none; padding: .25rem 0; }
.footer nav a:hover { color: var(--amber); }
.footer a { color: #fff; }
.footer__note { width: min(1180px, 100%); margin: 2.5rem auto 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: #8d847b; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }

/* Páginas internas: cadastro, login, legais, 404 */
.page-inner { background:
  radial-gradient(50% 40% at 100% 0%, rgba(245, 166, 35, .18), transparent 70%),
  radial-gradient(40% 40% at 0% 100%, rgba(179, 18, 62, .1), transparent 70%), var(--paper); }
.auth { width: min(640px, 100% - 2 * var(--pad)); margin: 3rem auto 5rem; }
.auth--narrow { width: min(440px, 100% - 2 * var(--pad)); }
.auth h1 { font-size: var(--step-3); font-weight: 400; }
.auth h1 em { color: var(--amber-deep); }
.auth__lead { color: #4a453e; }
.card { background: #fff; border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 60px -30px rgba(60, 30, 10, .35); }
.field { margin-bottom: 1.3rem; }
.field label, .legend { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; }
.field small { display: block; color: #6b655c; font-size: .84rem; margin-top: .35rem; }
.field .err { color: #a00f35; font-weight: 500; }
.input, select.input { width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1.5px solid #d6cfc4; border-radius: 12px; background: #fffdf9; font: 400 1rem var(--sans); color: var(--ink); }
.input:focus { border-color: var(--amber-deep); outline: 3px solid rgba(245, 166, 35, .35); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: #a00f35; }
.input--code { font: 600 2rem/1 ui-monospace, Menlo, monospace; letter-spacing: .5em; text-align: center; }
.row { display: grid; grid-template-columns: 140px 1fr; gap: .6rem; }
.slug { display: flex; align-items: stretch; border: 1.5px solid #d6cfc4; border-radius: 12px; overflow: hidden; background: #fffdf9; }
.slug span { display: flex; align-items: center; padding: 0 .8rem; background: #f3ece1; color: #6b655c; font-size: .85rem; white-space: nowrap; }
.slug input { border: 0; border-radius: 0; min-height: 48px; flex: 1; min-width: 0; }
.slug-status { font-weight: 500; }
.slug-status.ok { color: var(--green); }
.slug-status.no { color: #a00f35; }
.palettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.pal { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 54px; padding: .6rem .8rem; border: 2px solid #e4ddd2; border-radius: 14px; cursor: pointer; background: #fffdf9; font-size: .88rem; }
.pal input { position: absolute; opacity: 0; }
.pal:has(input:checked) { border-color: var(--ink); background: #fff; }
.pal:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.pal .dots { display: flex; }
.pal .dots i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; margin-right: -6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.custom-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .8rem; }
.custom-colors label { font-weight: 500; font-size: .82rem; }
.color-pair { display: flex; gap: .4rem; align-items: center; }
.color-pair input[type="color"] { width: 46px; height: 46px; padding: 0; border: 1.5px solid #d6cfc4; border-radius: 10px; background: none; cursor: pointer; flex: 0 0 46px; }
.color-pair .input { min-height: 46px; padding: .5rem; font-family: ui-monospace, Menlo, monospace; font-size: .9rem; }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.plan-pick label { display: block; position: relative; padding: .8rem; border: 2px solid #e4ddd2; border-radius: 14px; cursor: pointer; text-align: center; background: #fffdf9; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick label:has(input:checked) { border-color: var(--navy); background: #fff; }
.plan-pick label:has(input:focus-visible) { outline: 3px solid var(--amber); }
.plan-pick strong { display: block; font-family: var(--serif); }
.plan-pick small { color: #6b655c; }
.plan-pick__tag { display: block; margin-top: .35rem; font: 700 .68rem/1 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: #1f6f6b; }
.plan-pick label:has(.plan-pick__tag) { border-color: #1f6f6b; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin-top: .15rem; flex: 0 0 22px; accent-color: var(--navy); }
.hp { position: absolute; left: -5000px; }
.auth .btn { width: 100%; }
.auth__alt { text-align: center; margin-top: 1.4rem; font-size: .95rem; }
.auth__alt a { color: var(--amber-deep); font-weight: 700; }
.inline-form { display: inline; }
.link-btn { background: none; border: 0; padding: .5rem 0; font: 700 .95rem var(--sans); color: var(--amber-deep); text-decoration: underline; cursor: pointer; min-height: 44px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } .custom-colors { grid-template-columns: 1fr; } .plan-pick { grid-template-columns: 1fr; } }

.legal { width: min(760px, 100% - 2 * var(--pad)); margin: 3rem auto 5rem; }
.legal h1 { font-size: var(--step-3); font-weight: 400; }
.legal h2 { font-size: var(--step-1); margin-top: 2.2rem; }
.legal .meta { color: #6b655c; font-size: .9rem; }
.fill { background: #fff1c9; padding: 0 .3rem; border-radius: 4px; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem var(--pad); }
.notfound strong { display: block; font: italic 400 clamp(6rem, 22vw, 14rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 2px var(--amber-deep); }
.notfound h1 { font-size: var(--step-2); }
.notfound .actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.5rem; }

/* Ajustes de especificidade e mobile */
[hidden] { display: none !important; }
.field .pal, .field .check { display: flex; }
.field .pal { margin: 0; font-weight: 500; }
.palettes { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
.btn { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 1rem; } .brand__mark { width: 24px; height: 24px; } .topbar { padding-inline: 1rem; } }
