/* =========================================================
   Anamnese Digital · LS Academy
   Paleta: marfim, verde-petróleo e champanhe
   ========================================================= */
:root {
  --bg: #F7F3EC;
  --bg-2: #EEE7DB;
  --surface: rgba(255, 255, 255, .74);
  --surface-solid: #FFFFFF;
  --ink: #16252A;
  --ink-2: #36474C;
  --muted: #6B7A7E;
  --petrol: #0E3E49;
  --petrol-2: #17566A;
  --petrol-08: rgba(14, 62, 73, .07);
  --petrol-14: rgba(14, 62, 73, .14);
  --deep: #082A33;
  --sage: #8FB0B3;
  --gold: #A8854F;
  --gold-2: #D6BB96;
  --gold-3: #BE9B64;
  --gold-soft: #F3EADC;
  --line: rgba(14, 62, 73, .12);
  --danger: #A33A31;
  --danger-soft: #FBEDEA;
  --wa: #1DA851;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(29, 35, 33, .04), 0 2px 8px -2px rgba(14, 62, 73, .08);
  --shadow: 0 1px 2px rgba(29, 35, 33, .04), 0 18px 48px -18px rgba(14, 62, 73, .22);
  --shadow-lg: 0 2px 4px rgba(29, 35, 33, .04), 0 30px 70px -24px rgba(14, 62, 73, .32);
  --brand: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- fundo ambiente ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(201, 168, 119, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(143, 176, 179, .20), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.ambient span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: drift 26s ease-in-out infinite alternate; }
.ambient span:nth-child(1) { width: 420px; height: 420px; background: #CFE0E0; top: 8%; left: -120px; }
.ambient span:nth-child(2) { width: 360px; height: 360px; background: #EAD9BD; top: 40%; right: -140px; animation-delay: -8s; }
.ambient span:nth-child(3) { width: 300px; height: 300px; background: #DDE8E7; bottom: -120px; left: 30%; animation-delay: -16s; }
@keyframes drift { to { transform: translate3d(40px, -30px, 0) scale(1.08); } }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(20px, env(safe-area-inset-left)) 14px max(20px, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(246, 242, 236, .92), rgba(246, 242, 236, .66));
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 54px; height: auto; display: block; filter: drop-shadow(0 2px 6px rgba(168, 133, 79, .25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; padding-left: 12px; border-left: 1px solid rgba(168, 133, 79, .35); }
.brand-text strong { font-family: var(--brand); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--petrol); }
.brand-text small { font-size: 11.5px; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.topbar-tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(168, 133, 79, .3); background: rgba(255, 255, 255, .5); }

main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 20px 64px; outline: none; }

/* ---------- tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; margin: 0; color: var(--petrol); }
h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 350; }
.lead { font-size: clamp(16px, 2vw, 18px); color: var(--ink-2); max-width: 600px; }

/* ---------- home ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 10px 0 30px; padding: clamp(34px, 7vw, 76px) clamp(24px, 6vw, 72px);
  border-radius: 34px; color: #EAF1F1;
  background:
    radial-gradient(700px 360px at 92% 8%, rgba(214, 187, 150, .12), transparent 62%),
    radial-gradient(600px 400px at 0% 100%, rgba(23, 86, 106, .55), transparent 65%),
    linear-gradient(150deg, #11495A 0%, var(--petrol) 45%, var(--deep) 100%);
  box-shadow: 0 40px 80px -40px rgba(8, 42, 51, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(214, 187, 150, .35) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(500px 300px at 85% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(500px 300px at 85% 20%, #000, transparent 70%);
}
.hero-logo { position: absolute; right: clamp(-60px, -2vw, 0px); top: 50%; width: min(46%, 470px); transform: translateY(-50%); opacity: .16; z-index: -1; pointer-events: none; }
.hero-brand { display: flex; width: fit-content; align-items: center; gap: 14px; margin-bottom: clamp(26px, 5vw, 40px); }
.hero-brand img { width: 64px; height: auto; }
.hero-brand span { font-family: var(--brand); font-weight: 500; font-size: 15px; letter-spacing: .22em; color: var(--gold-2); text-transform: uppercase; line-height: 1.3; }
.hero-brand small { display: block; font-family: var(--sans); letter-spacing: .04em; text-transform: none; font-size: 12.5px; color: rgba(234, 241, 241, .65); font-weight: 500; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: 1.04; margin: 16px 0 18px; color: #F7F3EC; max-width: 720px; }
.hero h1 em { background: linear-gradient(180deg, #E7D3B3, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(234, 241, 241, .82); }
.hero .lead strong { color: var(--gold-2); }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: rgba(234, 241, 241, .9);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(214, 187, 150, .25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-points .ic { color: var(--gold-2); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.form-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--r-lg); text-decoration: none;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
  overflow: hidden; isolation: isolate;
}
.form-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(500px 220px at 100% 0%, rgba(201, 168, 119, .18), transparent 70%);
}
.form-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(176, 141, 92, .35); }
.form-card:hover::after { opacity: 1; }
.fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fc-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  color: var(--gold-2); font-size: 22px;
  background: linear-gradient(145deg, var(--petrol-2), var(--deep));
  box-shadow: 0 10px 24px -10px rgba(14, 62, 73, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.fc-tag { font-size: 11.5px; font-weight: 600; color: var(--petrol-2); padding: 6px 11px; border-radius: 999px; background: var(--petrol-08); }
.form-card h3 { font-size: 26px; line-height: 1.15; }
.form-card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.fc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fc-go {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--petrol); transition: all .45s var(--ease);
}
.form-card:hover .fc-go { background: var(--petrol); color: #fff; border-color: var(--petrol); transform: translateX(3px); }

/* ---------- área do profissional ---------- */
.pro { margin-top: 34px; }
.pro details { border-radius: var(--r-lg); background: rgba(255, 255, 255, .5); border: 1px dashed rgba(14, 62, 73, .2); transition: background .3s; }
.pro details[open] { background: var(--surface); border-style: solid; border-color: rgba(255, 255, 255, .8); box-shadow: var(--shadow); }
.pro summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; }
.pro summary::-webkit-details-marker { display: none; }
.pro summary strong { display: block; font-weight: 600; }
.pro summary small { color: var(--muted); font-size: 13.5px; }
.pro-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.pro-chev { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease); }
.pro details[open] .pro-chev { transform: rotate(90deg); }
.pro-body { padding: 4px 22px 22px; }
.pro-body .btn-block { margin-top: 18px; }
.link-out { display: flex; gap: 8px; }
.link-out input { flex: 1; font-size: 13.5px; color: var(--ink-2); background: var(--petrol-08); }

.site-foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; color: var(--muted); }
.site-foot span { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- formulário ---------- */
.form-shell { max-width: 840px; margin: 0 auto; }
.form-head { padding: 18px 0 22px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 18px; transition: color .2s, gap .3s var(--ease); }
.back-link:hover { color: var(--petrol); gap: 9px; }
.form-head .eyebrow { display: flex; margin-bottom: 8px; }
.form-head h2 { font-size: clamp(28px, 4.6vw, 42px); line-height: 1.1; }
.for-prof { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.for-prof strong { color: var(--petrol); }

.stepper {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; margin: 0 -2px;
  scroll-snap-type: x proximity;
}
.stepper::-webkit-scrollbar { display: none; }
.st {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .35s var(--ease); scroll-snap-align: center;
}
.st:disabled { cursor: default; opacity: .55; }
.st-n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .7); transition: all .35s var(--ease);
}
.st-n .ic { width: 13px; height: 13px; stroke-width: 2.5; }
.st.is-done { color: var(--petrol-2); }
.st.is-done .st-n { background: var(--gold-soft); border-color: transparent; color: var(--gold); }
.st.is-done:hover { background: rgba(255, 255, 255, .6); }
.st.is-active { color: var(--petrol); background: var(--surface-solid); border-color: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); }
.st.is-active .st-n { background: var(--petrol); border-color: var(--petrol); color: #fff; }

.progress { height: 3px; border-radius: 3px; background: var(--petrol-08); overflow: hidden; margin: 4px 0 22px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--petrol-2), var(--gold-2)); transition: width .7s var(--ease); }

.step-card {
  padding: clamp(22px, 4.5vw, 44px);
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.step-card.enter { animation: rise .6s var(--ease) both; }
.step-card.enter-r { animation: slideR .55s var(--ease) both; }
.step-card.enter-l { animation: slideL .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(28px); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-28px); } }

.step-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.step-icon {
  width: 50px; height: 50px; border-radius: 15px; flex: none; display: grid; place-items: center; font-size: 21px;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(176, 141, 92, .2);
}
.step-head small { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.step-head h3 { font-size: clamp(25px, 3.6vw, 32px); line-height: 1.15; margin: 2px 0 4px; }
.step-head p { margin: 0; color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 18px; }
.w-full { grid-column: span 6; }
.w-half { grid-column: span 3; }
.w-third { grid-column: span 2; }

.field { min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend, .field > .label {
  display: block; margin-bottom: 9px; padding: 0;
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35;
}
.req { color: var(--gold); margin-left: 3px; }
.multi { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: var(--petrol-08); vertical-align: 1px; }
.hint { display: block; margin-top: 7px; font-size: 12.5px; color: var(--muted); }

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], textarea, select {
  width: 100%; min-height: 52px; padding: 13px 16px;
  border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  font-size: 16px; line-height: 1.4;
  transition: border-color .2s, box-shadow .25s, background .2s;
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: #A3AAA7; }
input:hover, textarea:hover, select:hover { border-color: rgba(14, 62, 73, .24); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--petrol-2); background: #fff; box-shadow: 0 0 0 4px rgba(23, 86, 106, .12); }
textarea { min-height: 112px; resize: vertical; }
input[type=date], input[type=time] { min-width: 0; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
.input-wrap { position: relative; }
.input-wrap.has-unit input { padding-right: 48px; }
.unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13.5px; font-weight: 600; color: var(--muted); pointer-events: none; }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 0;
  min-height: 44px; padding: 10px 17px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-align: left;
  transition: background .25s, border-color .25s, color .25s, transform .2s var(--ease), box-shadow .25s, gap .25s var(--ease), padding .25s var(--ease);
}
.chip:hover { border-color: rgba(14, 62, 73, .3); transform: translateY(-1px); }
.chip:active { transform: scale(.97); }
.chip-mark { width: 0; overflow: hidden; display: inline-grid; place-items: center; transition: width .25s var(--ease); }
.chip-mark .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.chip[aria-checked=true] { background: var(--petrol); border-color: var(--petrol); color: #fff; box-shadow: 0 8px 20px -10px rgba(14, 62, 73, .7); gap: 7px; padding-left: 13px; }
.chip[aria-checked=true] .chip-mark { width: 16px; color: var(--gold-2); }

.chips-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.chips-cards .chip { border-radius: var(--r); padding: 14px 16px; align-items: flex-start; min-height: 0; }
.chips-cards .chip[aria-checked=true] { padding-left: 12px; }
.cc { display: flex; flex-direction: column; gap: 2px; }
.cc strong { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.1; }
.cc small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.chip[aria-checked=true] .cc small { color: rgba(255, 255, 255, .78); }
.chips-cards .chip-mark { margin-top: 4px; }

/* escala de dor */
.scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.sc {
  --h: calc(150 - var(--i) * 150);
  aspect-ratio: 1; max-height: 52px; border-radius: 13px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92); font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  position: relative; transition: all .25s var(--ease);
}
.sc::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 5px; height: 3px; border-radius: 3px; background: hsl(var(--h) 45% 52%); opacity: .55; transition: opacity .2s; }
.sc:hover { transform: translateY(-2px); border-color: hsl(var(--h) 40% 55% / .6); }
.sc[aria-checked=true] { background: hsl(var(--h) 42% 44%); border-color: transparent; color: #fff; transform: scale(1.08); box-shadow: 0 10px 22px -10px hsl(var(--h) 50% 35% / .9); }
.sc[aria-checked=true]::after { opacity: 0; }
.scale-legend { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); font-weight: 500; }
.scale-read { font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--petrol); }

/* sim / não */
.yn { padding: 16px 0; border-bottom: 1px solid var(--line); margin-top: -22px; }
.note + .yn { margin-top: -8px; }
.yn-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--ink); }
.tag-warn { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--danger); background: var(--danger-soft); vertical-align: 1px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--petrol-08); flex: none; }
.seg-b { min-width: 58px; height: 36px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .25s var(--ease); }
.seg-b:hover { color: var(--ink); }
.seg-b[aria-checked=true] { background: #fff; color: var(--petrol); box-shadow: var(--shadow-sm); }
.yn-warn.is-yes .seg-b[data-v=Sim][aria-checked=true] { background: var(--danger); color: #fff; }
.yn.is-yes .yn-q > span { font-weight: 600; }
.yn-obs { margin-top: 12px; }
.yn-obs input { min-height: 46px; font-size: 15px; }

/* nota, subtítulo, calculado, aceite */
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r); background: rgba(241, 231, 214, .55); border: 1px solid rgba(176, 141, 92, .22); font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.note .ic { color: var(--gold); margin-top: 2px; font-size: 18px; }
.note-warn { background: rgba(251, 237, 234, .7); border-color: rgba(163, 58, 49, .18); }
.note-warn .ic { color: var(--danger); }
.note strong { color: var(--ink); }
.subhead { font-size: 20px; font-style: italic; color: var(--petrol); display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.subhead::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.computed { display: flex; align-items: center; min-height: 52px; padding: 12px 16px; border-radius: var(--r); background: var(--petrol-08); font-family: var(--serif); font-size: 18px; color: var(--petrol); }
.computed.is-empty { font-family: var(--sans); font-size: 13.5px; color: var(--muted); font-style: italic; }
.agree { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(255, 255, 255, .9); cursor: pointer; font-weight: 600; transition: border-color .2s, background .2s; flex-wrap: wrap; }
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree-box { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid rgba(14, 62, 73, .3); display: grid; place-items: center; color: transparent; flex: none; transition: all .25s var(--ease); }
.agree-box .ic { width: 15px; height: 15px; stroke-width: 2.8; }
.agree > span:last-of-type { flex: 1; min-width: 0; }
.agree input:checked + .agree-box { background: var(--petrol); border-color: var(--petrol); color: var(--gold-2); }
.agree:has(input:checked) { border-color: rgba(14, 62, 73, .35); background: #fff; }
.agree input:focus-visible + .agree-box { outline: 2px solid var(--gold); outline-offset: 3px; }
.agree .err { flex-basis: 100%; margin-left: 38px; }

/* erros */
.err { font-size: 12.5px; font-weight: 600; color: var(--danger); min-height: 0; }
.err:not(:empty) { margin-top: 7px; }
.invalid input, .invalid textarea { border-color: rgba(163, 58, 49, .55); background: #FFFBFA; }
.invalid .chip, .invalid .sc { border-color: rgba(163, 58, 49, .4); }
.agree.invalid { border-color: rgba(163, 58, 49, .55); }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.pop { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* barra de navegação */
.nav-bar {
  position: sticky; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 18px; padding: 10px; border-radius: 22px;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.save-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.save-hint i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.save-hint.pulse i { animation: ping .9s var(--ease); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(157, 179, 166, .9); } 100% { box-shadow: 0 0 0 10px rgba(157, 179, 166, 0); } }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 16px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: linear-gradient(160deg, var(--petrol-2), var(--petrol)); color: #fff; box-shadow: 0 12px 26px -12px rgba(14, 62, 73, .8), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary .ic { color: var(--gold-2); transition: transform .3s var(--ease); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 16px 32px -12px rgba(14, 62, 73, .85), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover:not(:disabled) .ic { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, .8); border-color: rgba(14, 62, 73, .25); color: var(--petrol); }
.btn-sm { min-height: 44px; padding: 10px 14px; font-size: 14px; border-radius: 13px; }
.btn-lg { min-height: 58px; font-size: 16px; border-radius: 18px; }
.btn-block { display: flex; width: 100%; }
.btn-wa { background: linear-gradient(160deg, #23B65A, #128C4A); color: #fff; box-shadow: 0 14px 30px -14px rgba(18, 140, 74, .9), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-wa .ic { width: 1.3em; height: 1.3em; }
.btn-wa:hover { box-shadow: 0 18px 36px -14px rgba(18, 140, 74, .95), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading span { opacity: .7; }

/* ---------- conclusão ---------- */
.done { max-width: 600px; margin: 0 auto; text-align: center; padding: clamp(28px, 7vw, 64px) 0 20px; display: flex; flex-direction: column; align-items: center; }
.done-badge { width: 96px; height: 96px; margin-bottom: 24px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #fff, var(--gold-soft)); box-shadow: 0 20px 50px -20px rgba(176, 141, 92, .8), inset 0 0 0 1px rgba(176, 141, 92, .3); animation: rise .7s var(--ease) both; }
.done-badge svg { width: 70px; height: 70px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done-badge .ring { stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 227; stroke-dashoffset: 227; animation: draw 1s .15s var(--ease) forwards; opacity: .6; }
.done-badge .tick { stroke: var(--petrol); stroke-width: 3.4; stroke-dasharray: 50; stroke-dashoffset: 50; animation: draw .6s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-size: clamp(38px, 6vw, 54px); margin: 12px 0 12px; line-height: 1.08; }
.done .lead { margin: 0 auto; }
.done > * { animation: rise .7s var(--ease) both; }
.done > *:nth-child(2) { animation-delay: .1s; } .done > *:nth-child(3) { animation-delay: .18s; } .done > *:nth-child(4) { animation-delay: .26s; }
.done > *:nth-child(5) { animation-delay: .34s; } .done > *:nth-child(6) { animation-delay: .42s; } .done > *:nth-child(7) { animation-delay: .5s; }
.file-pill { display: inline-flex; align-items: center; gap: 9px; margin: 24px 0 26px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); max-width: 100%; }
.file-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pill .ic { color: var(--gold); }
.done-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px; }
.done-hint { display: none; gap: 10px; align-items: flex-start; text-align: left; max-width: 460px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: rgba(255, 255, 255, .6); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.done-hint.show { display: flex; }
.done-hint .ic { color: var(--gold); margin-top: 2px; }
.done-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 28px; }
.link-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 4px; background: none; border: 0; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s; }
.link-btn:hover { color: var(--petrol); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(96px, calc(env(safe-area-inset-bottom) + 90px)); z-index: 50;
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px;
  background: var(--petrol); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .4s var(--ease);
}
.toast .ic { color: var(--gold-2); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- entrada ---------- */
.reveal { animation: rise .8s var(--ease) both; }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .18s; } .d4 { animation-delay: .24s; } .d5 { animation-delay: .3s; }

.noscript { text-align: center; padding: 40px 20px; }

/* ---------- responsivo ---------- */
@media (max-width: 720px) {
  .topbar-tag { display: none; }
  .hero { border-radius: 26px; }
  .hero-logo { width: 70%; right: -22%; top: 18%; opacity: .1; }
  .w-half, .w-third { grid-column: span 6; }
  .grid { gap: 20px 14px; }
  .step-card { border-radius: 24px; }
  .step-head { gap: 13px; padding-bottom: 20px; margin-bottom: 22px; }
  .step-icon { width: 44px; height: 44px; border-radius: 13px; font-size: 19px; }
  .st:not(.is-active) .st-l { display: none; }
  .st:not(.is-active) { padding: 6px; }
  .yn-q { flex-direction: column; align-items: stretch; gap: 10px; }
  .seg { align-self: flex-start; }
  .scale { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sc { max-height: none; }
  .nav-bar .save-hint { display: none; }
  .nav-bar .btn { flex: 1; }
  .nav-bar .btn-ghost { flex: 0 0 auto; }
  .nav-bar .btn-ghost span { display: none; }
  .site-foot { flex-direction: column; }
}
@media (max-width: 420px) {
  main { padding: 4px 14px 48px; }
  .topbar { padding: 12px 14px; }
  .chip { font-size: 14px; padding: 9px 14px; }
  .hero h1 { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
