/* Partiu Trancoso! — estilos
   Mobile primeiro (app). A partir de 900px: layout de planejamento (computador). */

:root {
  --brand: #ABC310;       /* verde do logo Partiu Trancoso */
  --brand-l: #EEF4CF;
  --on-brand: #1F2600;
  --bg: #FAFAF3;
  --bg2: #EFF1E2;
  --card: #FFFFFF;
  --ink: #1E2416;
  --muted: #5F6652;
  --line: #E3E6D2;
  --ocean: #5E6E00;       /* verde escuro para textos e botões */
  --ocean-d: #46520A;
  --sun: #7F9210;
  --sand: #F3E3C3;
  --wa: #1FA855;
  --tip-bg: #F0F5D4; --tip-ink: #3F4A06;
  --warn-bg: #FFF1DE; --warn-ink: #8A4B0A;
  --shadow: 0 1px 2px rgba(23,38,43,.06), 0 6px 20px rgba(23,38,43,.07);
  --r: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --display: "Kalam", "Comic Sans MS", cursive;
  --body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12150C; --bg2: #1A1F11; --card: #1D2314; --ink: #EEF1E6; --muted: #A6AD96; --line: #2D3520; --brand-l: #2A320F; --sun: #C8DC4A;
    --ocean: #C8DC4A; --ocean-d: #DCEB7A; --tip-bg: #262E10; --tip-ink: #DCEB7A; --warn-bg: #3A2A15; --warn-ink: #F5C98C;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12150C; --bg2: #1A1F11; --card: #1D2314; --ink: #EEF1E6; --muted: #A6AD96; --line: #2D3520; --brand-l: #2A320F; --sun: #C8DC4A;
  --ocean: #C8DC4A; --ocean-d: #DCEB7A; --tip-bg: #262E10; --tip-ink: #DCEB7A; --warn-bg: #3A2A15; --warn-ink: #F5C98C; color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: var(--on-brand); font-weight: 800; padding: 13px 20px; border-radius: 14px; min-height: 48px; transition: transform .15s, background .15s; }
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn.ghost { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.4); }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 12px; }
.btn.wide { width: 100%; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sun); }

/* ---------- estrutura ---------- */
#app { min-height: 100vh; padding-bottom: calc(84px + var(--safe-b)); }
.screen.enter { animation: enter .28s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.d-top { display: none; }

/* barra de abas */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar a .ic { width: 25px; height: 25px; }
.tabbar a.on { color: var(--ocean); }
.tabbar .fav-count { position: absolute; top: 2px; left: calc(50% + 6px); }
.fav-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E2485B; color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }

/* ---------- home celular ---------- */
.m-hero { position: relative; height: calc(370px + var(--safe-t)); overflow: hidden; border-radius: 0 0 28px 28px; }
.m-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,30,36,.15) 0%, rgba(8,30,36,.05) 35%, rgba(8,30,36,.72) 100%); }
.m-hero-in { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 18px; color: #fff; }
.season { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.2); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.35); color: #fff; }
.m-hero h1 { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.05; margin: 8px 0 14px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.m-logo { width: 150px; margin: 0 0 10px; filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.m-hero h1 span { font-weight: 700; color: #DCEB7A; }
.m-search { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.95); color: #4C5A5E; border-radius: 16px; padding: 14px 16px; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.m-search .ic { color: var(--ocean); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 12px 4px; text-align: center; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.quick .q { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 35%, transparent); transition: transform .15s; }
.quick .q .ic { width: 32px; height: 32px; stroke-width: 1.8; }
.quick .q.sos-q { background: #D2463A; box-shadow: 0 4px 12px rgba(210,70,58,.3); }
.quick a:active .q { transform: scale(.92); }

.install-card { margin: 16px 16px 0; width: calc(100% - 32px); display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: var(--r); background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow); }
.install-card img { width: 46px; height: 46px; border-radius: 12px; }
.install-card div { flex: 1; display: flex; flex-direction: column; }
.install-card b { font-size: 15px; }
.install-card span { font-size: 13px; opacity: .85; line-height: 1.35; }

.m-h { font-family: var(--display); font-size: 26px; font-weight: 700; padding: 24px 16px 10px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.tile { position: relative; height: 128px; border-radius: var(--r); overflow: hidden; background: var(--c); box-shadow: var(--shadow); isolation: isolate; transition: transform .15s; }
.tile:active { transform: scale(.97); }
.tile.big { height: 170px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(20,26,4,.78) 100%); }
.tile-ic { position: absolute; top: 10px; left: 10px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.tile-ic .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.tile-t { position: absolute; left: 12px; right: 12px; bottom: 8px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.1; text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* ---------- seção ---------- */
.s-hero { position: relative; height: calc(250px + var(--safe-t)); overflow: hidden; background: var(--c); }
.s-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 35%, rgba(20,26,4,.8) 100%); }
.s-back, .s-share { position: absolute; top: calc(12px + var(--safe-t)); z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #17262B; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.s-back { left: 14px; } .s-share { right: 14px; }
.s-back.flat { position: static; background: var(--bg2); box-shadow: none; color: var(--ink); }
.s-hero-in { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; display: flex; align-items: flex-end; gap: 12px; }
.s-emoji { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.s-emoji .ic { width: 32px; height: 32px; stroke-width: 1.8; }
.s-hero h1 { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.05; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.s-layout { padding: 0 16px; }
.s-side { display: none; }
.lead { font-size: 17px; color: var(--muted); margin: 18px 0 8px; }
.para { margin: 10px 0; }
.bh { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ocean-d); margin: 28px 0 10px; scroll-margin-top: 80px; }

/* blocos */
.callout { border-radius: 16px; padding: 14px 16px; margin: 14px 0; }
.callout strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.callout p { margin: 0; }
.tip { background: var(--tip-bg); color: var(--tip-ink); }
.tip strong::before { content: "🌴 "; }
.warn { background: var(--warn-bg); color: var(--warn-ink); }
.warn strong::before { content: "⚠️ "; }

.facts { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0; }
.fact { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.fe { font-size: 22px; line-height: 1.2; }
.fact b { display: block; font-size: 14px; }
.fact span { color: var(--muted); font-size: 14px; line-height: 1.4; }

.items { display: grid; gap: 10px; margin: 12px 0; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; transition: box-shadow .2s, border-color .2s; scroll-margin-top: 80px; }
.item-main { display: flex; gap: 10px; align-items: flex-start; }
.item-txt { flex: 1; min-width: 0; }
.thumb { width: 72px; height: 72px; flex: none; border-radius: 14px; object-fit: cover; background: var(--bg2); cursor: zoom-in; }
.foot-logo { width: 130px !important; height: auto !important; border-radius: 0 !important; }
.foot { flex-wrap: wrap; }
.legal-link { order: 9; text-decoration: underline; color: var(--muted) !important; font-weight: 600 !important; }
.legal h3 { font-family: var(--display); font-size: 22px; color: var(--ocean-d); margin: 22px 0 4px; }
.legal p { margin: 0 0 8px; }
.item h4 { font-size: 17px; font-weight: 700; }
.item p { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.item .phone { font-variant-numeric: tabular-nums; color: var(--ink); opacity: .7; font-size: 13px; }
.tag { display: inline-block; vertical-align: 2px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--bg2); color: var(--muted); }
.star { color: #E2A72E; font-size: 15px; }
.from { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ocean); margin-bottom: 2px; }
.fav { width: 40px; height: 40px; margin: -6px -6px 0 0; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.fav.on { color: #E2485B; }
.fav.on .ic { fill: currentColor; }
.fav:active { transform: scale(.85); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 14px; border-radius: 12px; background: var(--bg2); font-size: 14px; font-weight: 600; }
.act .ic { width: 18px; height: 18px; }
.act-wa { background: var(--wa); color: #fff; }
.act-tel { background: var(--ocean); color: #fff; }
.contact .acts .act-wa { flex: 1 1 auto; justify-content: center; }

.go { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--c, var(--ocean)) 12%, var(--card)); color: var(--ink); font-weight: 700; border: 1px solid color-mix(in srgb, var(--c, var(--ocean)) 25%, transparent); }
.go .ic { color: var(--ocean); }
.go > span { display: flex; align-items: center; gap: 10px; }
.mini { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; flex: none; margin-right: 8px; vertical-align: middle; }
.go .mini { margin-right: 0; }
.mini .ic { width: 18px; height: 18px; color: #fff !important; }
.go.wp { background: var(--card); border-style: dashed; }

.fig { margin: 14px 0; }
.fig img { border-radius: 16px; width: 100%; }
.fig img[data-zoom] { cursor: zoom-in; }
.fig figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

.prices { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 12px 0; }
.pr { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.pr b { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ocean-d); }
.prices .note { margin: 0; padding: 10px 14px; background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; }
.note { font-size: 13px; color: var(--muted); }
.note.center { text-align: center; }

.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.pc > div { border-radius: 14px; padding: 12px; font-size: 14px; }
.pc ul { margin: 6px 0 0; padding-left: 18px; }
.pros { background: #E5F4EA; color: #1E5E36; }
.cons { background: #FBE9E6; color: #8C2F22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pros { background: #16352A; color: #9FE0B8; } :root:not([data-theme="light"]) .cons { background: #3A1D1A; color: #F2B3A9; } }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 12px; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 14px; display: grid; place-items: center; }

.routes { display: grid; gap: 10px; margin: 12px 0; }
.route { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.route-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--tip-bg); color: var(--tip-ink); white-space: nowrap; }
.route-meta { display: flex; gap: 14px; margin: 6px 0; font-weight: 700; color: var(--ocean-d); font-size: 14px; }
.route p { margin: 0; font-size: 14px; color: var(--muted); }

.sched { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.sc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.sc > b { display: block; font-size: 13px; margin-bottom: 6px; }
.sr { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 13px; color: var(--muted); }
.hr { font-weight: 700; color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; min-width: 46px; }

.compare { display: grid; gap: 10px; margin: 14px 0; }
.cmp { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.cmp-h { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 6px; }
.cmp-h span { font-size: 22px; }
.cmp ul { list-style: none; padding: 0; margin: 4px 0; font-size: 14px; }
.cmp li { padding: 3px 0 3px 22px; position: relative; }
.plus li::before { content: "+"; position: absolute; left: 4px; color: #2F8F5B; font-weight: 800; }
.minus li::before { content: "−"; position: absolute; left: 4px; color: #C2453D; font-weight: 800; }

.promo { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #F3E3C3, #F6C9A6); color: #3A2414; }
.promo h4 { font-family: var(--display); font-size: 26px; margin: 2px 0 4px; }
.promo p { margin: 0; font-size: 15px; }
.promo .kicker { color: #A2481F; }
.promo .btn { background: #3A2414; align-self: flex-start; }

.cal { display: grid; gap: 8px; margin: 14px 0; }
.ce { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.cd { min-width: 78px; text-align: center; font-weight: 800; font-size: 13px; padding: 8px 6px; border-radius: 10px; background: var(--brand); color: var(--on-brand); }
.ce b { display: block; }
.ce span { font-size: 14px; color: var(--muted); }

.tl { list-style: none; margin: 14px 0; padding: 0 0 0 18px; border-left: 3px solid var(--brand-l); }
.tl li { position: relative; padding: 0 0 18px 16px; }
.tl li::before { content: ""; position: absolute; left: -27px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg); }
.tt { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ocean); }
.tl b { font-size: 17px; }
.tl p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.sos { margin: 14px 0; padding: 14px; border-radius: 18px; background: #FBE4E1; color: #7E2419; scroll-margin-top: 80px; }
.sos > b { display: block; margin-bottom: 8px; }
.sos-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sos-row a { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; background: #fff; font-size: 13px; font-weight: 600; }
.sos-row span { font-size: 24px; font-weight: 800; color: #C8321F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sos { background: #3A1D1A; color: #F7C6BE; } :root:not([data-theme="light"]) .sos-row a { background: #2A1514; } }

.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 14px 0 6px; }
.mo { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 2px; font-size: 13px; }
.mo .bar { width: 10px; height: 38px; border-radius: 6px; background: var(--bg2); display: flex; align-items: flex-end; overflow: hidden; }
.mo .bar i { width: 100%; background: #5E6E00; border-radius: 6px; }
.mo.s1 .bar i { background: #D5E188; } .mo.s2 .bar i { background: var(--brand); }
.mo small { font-size: 10px; color: var(--muted); }
.mo em { font-style: normal; font-size: 12px; height: 16px; }
.mo em.nr { color: transparent; }

.check { display: grid; gap: 6px; margin: 12px 0; }
.ck { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.ck input { width: 22px; height: 22px; accent-color: var(--ocean); flex: none; }
.ck input:checked + span { text-decoration: line-through; color: var(--muted); }

.tabs { margin: 14px 0; }
.tab-bar { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.tab-bar::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; padding: 10px 16px; min-height: 44px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.tab.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.acc { display: grid; gap: 10px; margin: 14px 0; }
.acc-i { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; scroll-margin-top: 80px; }
.acc-i summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px; cursor: pointer; min-height: 64px; }
.acc-i summary::-webkit-details-marker { display: none; }
.acc-i summary img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.acc-i summary div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-i summary b { font-size: 17px; }
.acc-i summary span { font-size: 13px; color: var(--muted); }
.acc-n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--brand); color: var(--on-brand); flex: none; }
.acc-chev { color: var(--muted); transition: transform .2s; }
.acc-i[open] .acc-chev { transform: rotate(90deg); }
.acc-body { padding: 0 14px 10px; border-top: 1px solid var(--line); }

.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 60%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- telas simples (busca, salvos) ---------- */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: calc(12px + var(--safe-t)) 16px 12px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar h1 { font-family: var(--display); font-weight: 700; font-size: 28px; }
.pad { padding: 0 16px 20px; }
.sbox { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; }
.sbox .ic { color: var(--muted); }
.sbox input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 0; min-width: 0; }
.sugg { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.sugg b { width: 100%; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sugg button { padding: 10px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.res { display: grid; gap: 8px; margin-top: 14px; }
.rr { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.rr div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rr span:not(.rr-e) { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rr-e { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.rr-e .ic { width: 22px; height: 22px; }
.rr > .ic { color: var(--muted); }
mark { background: #E3EE9C; color: inherit; border-radius: 3px; padding: 0 1px; }
.empty { text-align: center; padding: 50px 20px; }
.empty > span { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--bg2); color: #E2485B; }
.empty > span .ic { width: 32px; height: 32px; }
.empty h3 { font-family: var(--display); font-size: 26px; margin: 14px 0 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }
.empty.small { padding: 30px 10px; }

/* ---------- rodapé ---------- */
.foot { display: flex; gap: 12px; align-items: flex-start; margin: 32px 16px 10px; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot img { width: 40px; height: 40px; border-radius: 10px; }
.foot div { display: flex; flex-direction: column; gap: 4px; }
.foot b { color: var(--ink); font-size: 15px; }
.foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--ocean); font-weight: 700; }
.foot .ic { width: 16px; height: 16px; }

/* ---------- instalar ---------- */
.instbar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(76px + var(--safe-b)); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px; background: #2A3300; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: translateY(20px); opacity: 0; transition: .3s; }
.instbar.show { transform: none; opacity: 1; }
.instbar img { width: 42px; height: 42px; border-radius: 10px; }
.instbar div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.instbar span { font-size: 12px; opacity: .8; }
.instbar .btn { background: var(--brand); }
.instbar .x { width: 32px; height: 32px; opacity: .7; }

.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-bg { position: absolute; inset: 0; background: rgba(8,20,24,.5); opacity: 0; transition: opacity .25s; }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 26px 26px 0 0; padding: 22px 20px calc(22px + var(--safe-b)); transform: translateY(100%); transition: transform .25s ease-out; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-card { transform: none; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); z-index: 2; }
.zoom img { width: 100%; border-radius: 12px; }
.inst { text-align: center; }
.inst > img { width: 76px; height: 76px; border-radius: 18px; margin: 4px auto 12px; box-shadow: var(--shadow); }
.inst h3 { font-family: var(--display); font-size: 26px; }
.inst p { color: var(--muted); }
.inst-steps { text-align: left; counter-reset: s; list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.inst-steps li { counter-increment: s; position: relative; padding: 12px 12px 12px 48px; background: var(--bg2); border-radius: 14px; }
.inst-steps li::before { content: counter(s); position: absolute; left: 12px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--ocean); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.ios-share { display: inline-block; width: 18px; height: 20px; vertical-align: -4px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007AFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 8l5-5 5 5M6 11H5v10h14V11h-1'/%3E%3C/svg%3E"); }
.ios-add { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 6px; vertical-align: -5px; }
.ios-add .ic { width: 14px; height: 14px; }

.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(92px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #2A3300; color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: .25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* modo app instalado */
.standalone .install-card { display: none; }

/* ---------- celular maior / tablet ---------- */
@media (min-width: 600px) and (max-width: 899px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .s-layout, .pad { max-width: 720px; margin: 0 auto; }
}

/* =========================================================
   COMPUTADOR — modo planejamento
   ========================================================= */
@media (min-width: 900px) {
  #app { padding-bottom: 0; }
  .tabbar, .instbar, .install-card { display: none !important; }
  .d-top { display: flex; position: sticky; top: 0; z-index: 50; align-items: center; gap: 20px; height: 68px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .d-logo { display: flex; align-items: center; flex: none; }
  .d-logo img { width: auto; height: 46px; }
  .d-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
  .d-grp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sun); margin: 0 6px 0 14px; }
  .d-nav a { padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
  .d-nav a:hover { background: var(--bg2); color: var(--ink); }
  .d-nav a.on { color: var(--on-brand); background: var(--brand); }
  .d-tools { display: flex; align-items: center; gap: 10px; }
  .d-search { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; height: 40px; }
  .d-search .ic { width: 18px; height: 18px; color: var(--muted); }
  .d-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; width: 150px; color: var(--ink); }
  .d-saved { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); }
  .d-saved:hover, .d-saved.on { background: var(--bg2); color: #E2485B; }
  .d-saved .fav-count { position: absolute; top: -2px; right: -4px; }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
  .d-hero { position: relative; height: min(78vh, 640px); min-height: 480px; overflow: hidden; }
  .d-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .d-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,26,4,.8) 0%, rgba(20,26,4,.35) 55%, transparent 100%); }
  .d-hero-in { position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); left: max(32px, calc(50% - 558px)); max-width: 560px; color: #fff; }
  .d-hero h1 { font-family: var(--display); font-weight: 700; font-size: 66px; line-height: 1.02; margin: 16px 0 14px; }
  .d-hero p { font-size: 19px; opacity: .92; margin: 0 0 26px; }
  .d-cta { display: flex; gap: 12px; }
  .sec-head { margin: 64px 0 22px; }
  .sec-head h2 { font-family: var(--display); font-weight: 700; font-size: 44px; color: var(--ocean-d); margin-top: 6px; }
  .plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .plan-c { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
  .plan-c:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .plan-n { position: absolute; top: 14px; right: 22px; font-family: var(--display); font-size: 48px; font-weight: 700; color: var(--brand-l); }
  .plan-e { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; }
  .plan-e .ic { width: 30px; height: 30px; stroke-width: 1.8; }
  .plan-c b { font-size: 20px; margin-top: 6px; }
  .plan-c p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
  .more { display: inline-flex; align-items: center; gap: 4px; color: var(--ocean); font-weight: 700; font-size: 14px; margin-top: 6px; }
  .more .ic { width: 16px; height: 16px; }
  .trip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .trip-c { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
  .trip-c:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .trip-c img { height: 190px; width: 100%; object-fit: cover; }
  .trip-c div { padding: 16px 18px 20px; }
  .trip-c b { display: flex; align-items: center; font-size: 18px; }
  .trip-c p { margin: 6px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

  .phone-card { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin: 70px 0 20px; padding: 40px 44px; border-radius: 28px; background: var(--brand); color: var(--on-brand); }
  .phone-card .kicker { color: #3F4A06; }
  .phone-card h2 { font-family: var(--display); font-weight: 700; font-size: 40px; margin: 8px 0 10px; }
  .phone-card p { opacity: .9; margin: 0 0 14px; max-width: 560px; }
  .howto { margin: 0; padding-left: 20px; opacity: .92; display: grid; gap: 6px; }
  .qr-box { background: #fff; padding: 16px; border-radius: 20px; text-align: center; color: #2A3300; }
  .qr-box #qr { width: 148px; height: 148px; }
  .qr-box #qr img, .qr-box #qr canvas { width: 148px; height: 148px; }
  .qr-box small { display: block; margin-top: 8px; font-weight: 700; }
  .foot { max-width: 1180px; margin: 40px auto 0; padding: 26px 32px 40px; }

  /* seção no computador */
  .s-hero { height: 360px; }
  .s-hero-in { left: max(32px, calc(50% - 558px)); bottom: 30px; }
  .s-hero h1 { font-size: 54px; }
  .s-emoji { width: 66px; height: 66px; border-radius: 20px; }
  .s-emoji .ic { width: 38px; height: 38px; }
  .s-back { top: 18px; left: max(32px, calc(50% - 558px)); }
  .s-share { top: 18px; right: max(32px, calc(50% - 558px)); }
  .s-layout { max-width: 1180px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
  .s-main { max-width: 760px; padding-bottom: 20px; }
  .lead { font-size: 20px; margin-top: 30px; }
  .bh { font-size: 30px; margin-top: 38px; }
  .s-side { display: block; position: sticky; top: 92px; align-self: start; padding-top: 30px; }
  .toc { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
  .toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
  .toc a { display: flex; align-items: center; padding: 7px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; }
  .toc .mini { width: 26px; height: 26px; }
  .toc a:hover { background: var(--bg2); }
  .side-qr { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
  .side-qr #qr, .side-qr #qr img, .side-qr #qr canvas { width: 84px !important; height: 84px !important; }
  .side-qr p { margin: 0; font-size: 14px; font-weight: 700; }
  .facts { grid-template-columns: 1fr 1fr; }
  .items { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: repeat(3, 1fr); }
  .months { grid-template-columns: repeat(12, 1fr); }
  .cal { grid-template-columns: 1fr 1fr; }
  .routes { grid-template-columns: repeat(3, 1fr); }
  .promo { flex-direction: row; align-items: center; justify-content: space-between; padding: 26px 28px; }
  .promo .btn { align-self: center; flex: none; }
  .tab-bar { margin: 0; padding: 4px 0 10px; top: 68px; }
  .bar { top: 68px; padding-top: 14px; max-width: 900px; margin: 0 auto; border: 0; }
  .pad { max-width: 900px; margin: 0 auto; }
  .res { grid-template-columns: 1fr 1fr; }
  .sheet-card { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 92vw); border-radius: 24px; transform: translate(-50%, -46%); opacity: 0; transition: .25s; }
  .sheet.open .sheet-card { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.zoomed .sheet-card { width: min(900px, 94vw); }
  .toast { bottom: 30px; }
  .item:hover { border-color: var(--brand); }
}
@media (min-width: 900px) {
  .d-sicon { display: none; }
  .d-grp { white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1599px) {
  .d-grp { display: none; }
  .d-top { gap: 14px; padding: 0 20px; }
  .d-nav a { padding: 8px 8px; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .d-search { display: none; }
  .d-sicon { display: grid; }
}
@media (min-width: 900px) and (max-width: 1080px) {
  .d-tools .btn { display: none; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .plan, .trip { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
