:root {
  --teal: #2b5658;
  --teal-d: #1d3c3e;
  --teal-t: #e3ebe9;
  --bone: #f5f1ea;
  --sand: #ebe4d7;
  --card: #fffdf9;
  --ink: #1c2525;
  --muted: #6a726f;
  --line: #e2dbcd;
  --sage: #8c9a80;
  --wa: #1f9d55;
  --r: 18px;
  --shadow: 0 1px 2px rgba(28, 37, 37, .05), 0 8px 24px -12px rgba(28, 37, 37, .18);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--sand); }
body {
  margin: 0; font-family: 'Manrope', system-ui, -apple-system, sans-serif; color: var(--ink);
  background: var(--bone); max-width: 560px; margin-inline: auto; min-height: 100dvh;
  -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
.ic { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 74dvh; color: #fff; display: flex; flex-direction: column;
  justify-content: space-between; padding: max(22px, env(safe-area-inset-top)) 22px 34px;
  background: var(--teal-d); background-position: center; background-size: cover; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 26, .45) 0%, rgba(10, 25, 26, 0) 28%, rgba(10, 25, 26, .1) 50%, rgba(13, 30, 31, .82) 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero-logo { width: 150px; filter: brightness(0) invert(1); opacity: .95; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin: 0 0 8px; font-weight: 600; }
.hero h1 { font-size: 42px; line-height: 1.02; font-weight: 500; letter-spacing: -.025em; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .22);
}
.chip .ic { width: 15px; height: 15px; }

/* ---------- Home ---------- */
.home { padding: 0 16px calc(40px + var(--safe-b)); margin-top: -18px; position: relative; z-index: 2; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.welcome { padding: 22px 22px 20px; }
.welcome p { margin: 0; color: #3b4544; font-size: 15.5px; }
.welcome .sign { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.welcome .sign::before { content: ''; width: 18px; height: 1px; background: var(--sage); }

.weather { display: flex; align-items: stretch; gap: 10px; margin-top: 12px; }
.weather .now { flex: 1.2; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.weather .now .t { font-size: 30px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.weather .now small, .weather .sunset small { display: block; font-size: 12px; color: var(--muted); }
.weather .now .ic { width: 30px; height: 30px; color: var(--teal); }
.weather .sunset { flex: 1; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.weather .sunset b { font-size: 18px; font-weight: 600; }
.weather .sunset .ic { color: #c27c4a; }

.h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 30px 4px 12px; }

.quick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.q { padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 14px; min-height: 118px; position: relative; }
.q .qi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-t); color: var(--teal); }
.q b { font-size: 15px; font-weight: 700; display: block; }
.q small { font-size: 12.5px; color: var(--muted); display: block; margin-top: 2px; overflow-wrap: anywhere; }
.q.dark { background: var(--teal); color: #fff; }
.q.dark .qi { background: rgba(255, 255, 255, .14); color: #fff; }
.q.dark small { color: rgba(255, 255, 255, .75); }
.q .lock { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; color: var(--muted); }

.tip { margin-top: 12px; padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; background: #f0e6d8; box-shadow: none; }
.tip .ic { color: #b06a3b; margin-top: 2px; }
.tip p { margin: 0; font-size: 14.5px; }
.tip b { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8a5a36; margin-bottom: 3px; }

.status { margin-top: 12px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-size: 14.5px; }
.status .ic { color: var(--teal); }

.cats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cat { position: relative; border-radius: var(--r); overflow: hidden; min-height: 132px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; box-shadow: var(--shadow); background: var(--card); }
.cat.photo { color: #fff; background: var(--teal-d); background-position: center; background-size: cover; min-height: 168px; }
.cat.photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(12, 28, 29, .78)); }
.cat > * { position: relative; z-index: 1; }
.cat .ci { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-t); color: var(--teal); }
.cat.photo .ci { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cat b { font-size: 16px; font-weight: 700; line-height: 1.2; }
.cat small { font-size: 12px; opacity: .75; }
.cat.wide { grid-column: span 2; min-height: 190px; }

.services { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.services::-webkit-scrollbar { display: none; }
.svc { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.svc .ic { width: 17px; height: 17px; color: var(--wa); }

.foot { margin-top: 34px; text-align: center; font-size: 13px; color: var(--muted); padding: 0 12px; }
.foot img { width: 120px; margin: 0 auto 14px; opacity: .85; }
.foot .links { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.foot .links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13px; }
.foot .links .ic { width: 16px; height: 16px; }

/* ---------- Seção ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 12px 12px; background: rgba(245, 241, 234, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar.over { position: absolute; left: 0; right: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; max-width: 560px; margin: auto; }
.round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); }
.topbar.over .round { background: rgba(255, 255, 255, .9); }
.topbar .ttl { font-weight: 700; font-size: 16px; }
.sec-hero { height: 42dvh; min-height: 260px; position: relative; background: var(--teal-d); background-position: center; background-size: cover; display: flex; align-items: flex-end; padding: 0 22px 34px; color: #fff; }
.sec-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 35%, rgba(12, 28, 29, .75)); }
.sec-hero h1 { position: relative; z-index: 1; margin: 0; font-size: 36px; font-weight: 500; letter-spacing: -.025em; line-height: 1.05; }
.sec-title { padding: 70px 22px 6px; }
.sec-title .ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-t); color: var(--teal); margin-bottom: 14px; }
.sec-title h1 { margin: 0; font-size: 34px; font-weight: 500; letter-spacing: -.025em; line-height: 1.05; }
.sec-body { padding: 0 16px calc(110px + var(--safe-b)); position: relative; z-index: 2; }
.sec-hero + .sec-body .intro { margin-top: 20px; }
.intro { font-size: 16px; color: #3b4544; margin: 14px 6px 18px; }

.items { display: flex; flex-direction: column; gap: 10px; }
.item { overflow: hidden; }
.item .pic { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.item .in { padding: 16px 18px 16px; }
.item .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.item h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.badge { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--teal-t); color: var(--teal); }
.item p { margin: 6px 0 0; color: #424c4b; font-size: 15px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.act { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; text-decoration: none; background: var(--bone); border: 1px solid var(--line); }
.act .ic { width: 16px; height: 16px; }
.act.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.act.pri { background: var(--teal); border-color: var(--teal); color: #fff; }

.check { display: flex; gap: 14px; align-items: center; padding: 16px 18px; text-align: left; width: 100%; }
.check .box { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; background: var(--bone); transition: .15s; }
.check .box .ic { width: 16px; height: 16px; opacity: 0; color: #fff; }
.check.on .box { background: var(--teal); border-color: var(--teal); }
.check.on .box .ic { opacity: 1; }
.check.on span { text-decoration: line-through; color: var(--muted); }
.progress { height: 6px; border-radius: 9px; background: var(--line); overflow: hidden; margin: 0 6px 16px; }
.progress i { display: block; height: 100%; background: var(--teal); transition: width .25s; }
.done-card { margin-top: 14px; padding: 20px; text-align: center; }
.done-card p { margin: 0 0 14px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery button { border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.gallery button:nth-child(5n+1) { grid-column: span 2; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.fab { position: fixed; z-index: 30; right: max(16px, calc(50% - 280px + 16px)); bottom: calc(18px + var(--safe-b)); display: inline-flex; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 99px; background: var(--wa); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 10px 28px -8px rgba(31, 157, 85, .6); }

/* ---------- Sheet / lightbox / toast ---------- */
.veil { position: fixed; inset: 0; background: rgba(15, 25, 25, .45); z-index: 50; opacity: 0; transition: opacity .2s; }
.veil.on { opacity: 1; }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; max-width: 560px; margin: auto; background: var(--card); border-radius: 26px 26px 0 0; padding: 10px 22px calc(26px + var(--safe-b)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.sheet.on { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 18px; }
.sheet h2 { margin: 0 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.sheet h2 .ic { color: var(--teal); }
.sheet .sub { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.field { background: var(--bone); border-radius: 14px; padding: 12px 14px 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.field small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.field b { font-size: 20px; font-weight: 700; letter-spacing: .01em; word-break: break-all; }
.field.big b { font-size: 40px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.copy { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 99px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.copy .ic { width: 15px; height: 15px; }
.note { font-size: 14px; color: #424c4b; background: var(--teal-t); border-radius: 14px; padding: 12px 14px; margin-top: 6px; }
.sheet .act { margin-top: 8px; }

.lightbox { position: fixed; inset: 0; z-index: 60; background: #0b1414; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-height: 100dvh; width: 100%; object-fit: contain; }
.lightbox .round { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .nav.l { left: 10px; } .lightbox .nav.r { right: 10px; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; opacity: 0; transition: .2s; z-index: 70; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }

.loading { min-height: 100dvh; display: grid; place-items: center; }
.loading img { width: 140px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.demo-bar { background: #b06a3b; color: #fff; font-size: 12px; text-align: center; padding: 6px; font-weight: 600; }

/* ---------- Tábua de marés ---------- */
.tide { margin-top: 10px; padding: 16px 16px 14px; }
.tide .thead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tide .thead .ic { width: 28px; height: 28px; color: var(--teal); }
.tide .thead b { display: block; font-size: 15px; }
.tide .thead small { display: block; font-size: 12.5px; color: var(--muted); }
.tcurve { width: 100%; height: 46px; display: block; }
.tcurve .fill { fill: var(--teal-t); }
.tcurve .line { fill: none; stroke: var(--teal); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.tcurve .mid { stroke: var(--line); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.tcurve .now { fill: #c27c4a; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.tlab { display: flex; justify-content: space-around; font-size: 11px; color: var(--muted); margin: 2px 0 10px; }
.tcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.tcol { background: var(--bone); border-radius: 12px; padding: 10px 12px; }
.tcol > small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.tev { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 3px 0; }
.tev i { font-style: normal; font-size: 10px; width: 12px; }
.tev.hi i { color: var(--teal); } .tev.lo i { color: #c27c4a; }
.tev span { flex: 1; color: #424c4b; }
.tev b { font-variant-numeric: tabular-nums; font-weight: 700; }
.tev.past { opacity: .4; }
.tnote { margin: 10px 2px 0; font-size: 12px; color: var(--muted); }
