/* ==========================================================================
   marécarioca — design system
   Posicionamento: boutique carioca premium
   ========================================================================== */

:root {
  /* Paleta — Atlântico profundo + areia + pôr do sol carioca */
  --ink:        #0A2422;
  --tide:       #0F4340;
  --tide-2:     #14605B;
  --tide-3:     #2E8C85;
  --sand:       #FAF6EF;
  --sand-2:     #F1E8DA;
  --sand-3:     #E3D6C3;
  --coral:      #C2543C;
  --coral-2:    #A8422D;
  --sun:        #DDA13C;
  --paper:      #FFFFFF;
  --text:       #16211F;
  --muted:      #5C6B67;
  --muted-2:    #8A9793;
  --line:       #E0D8CB;
  --line-dark:  rgba(250,246,239,.16);
  --ok:         #1F7A55;
  --warn:       #B4761B;
  --bad:        #A33529;

  /* Tipografia */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Escala de espaçamento */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(10,36,34,.06), 0 2px 8px rgba(10,36,34,.04);
  --shadow-md: 0 4px 12px rgba(10,36,34,.07), 0 12px 32px rgba(10,36,34,.06);
  --shadow-lg: 0 8px 24px rgba(10,36,34,.10), 0 28px 64px rgba(10,36,34,.10);

  --maxw: 1200px;
  --maxw-prose: 68ch;
}

/* --------------------------------------------------------------- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
/* precisa de !important: .btn e .nav definem display e ganham do UA stylesheet */
[hidden] { display: none !important; }
a { color: var(--tide-2); text-decoration: none; }
a:hover { color: var(--coral); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 var(--s4);
  color: var(--ink);
  font-variation-settings: 'SOFT' 20, 'WONK' 0;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
p  { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25em; }
:focus-visible { outline: 2.5px solid var(--tide-3); outline-offset: 3px; border-radius: 3px; }

/* ------------------------------------------------------------- layout --- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s5); }
.wrap--narrow { max-width: 860px; }
.section { padding-block: clamp(var(--s8), 9vw, var(--s10)); }
.section--tight { padding-block: clamp(var(--s7), 6vw, var(--s8)); }
.section--sand { background: var(--sand-2); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--sand); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--sand); }
.section--ink a { color: var(--sun); }

.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: var(--s4); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------------------------------------------------------- tipografia --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin: 0 0 var(--s3);
}
.section--ink .eyebrow { color: var(--sun); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.55; }
.section--ink .lead { color: rgba(250,246,239,.78); }
.small { font-size: .875rem; }
.fine { font-size: .78rem; color: var(--muted-2); line-height: 1.5; }
.prose { max-width: var(--maxw-prose); }
.prose h2 { margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }

/* -------------------------------------------------------------- botões --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 14px 26px; border-radius: var(--r-full);
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  border: 1.5px solid transparent; text-align: center;
  transition: transform .12s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-2); color: #fff; }
.btn--dark { background: var(--ink); color: var(--sand); }
.btn--dark:hover { background: var(--tide); color: var(--sand); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(10,36,34,.03); }
.btn--onink { border-color: var(--line-dark); color: var(--sand); background: transparent; }
.btn--onink:hover { border-color: var(--sand); color: var(--sand); background: rgba(250,246,239,.08); }
.btn--wa { background: #25D366; color: #06281A; }
.btn--wa:hover { background: #1FBE5B; color: #06281A; }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------- cards --- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s6);
  box-shadow: var(--shadow-sm);
}
.card--flat { box-shadow: none; }
.card--ink { background: var(--tide); border-color: var(--line-dark); color: var(--sand); }
.card--ink h3 { color: var(--sand); }
.card h3 { margin-bottom: var(--s2); }
.card p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--sand-2); color: var(--tide);
}
.badge--coral { background: var(--coral); color: #fff; }
.badge--sun { background: var(--sun); color: #3D2A06; }
.badge--ok { background: #DCF0E6; color: var(--ok); }
.badge--warn { background: #FAEED6; color: var(--warn); }
.badge--bad { background: #F7E0DC; color: var(--bad); }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,246,239,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s5); height: 72px; }
.logo { display: inline-flex; align-items: baseline; gap: 1px; font-family: var(--font-display); font-size: 1.32rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo b { font-weight: 700; }
.logo span { font-weight: 300; font-style: italic; }
.logo__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); margin-left: 3px; align-self: center; }
.nav { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.nav a { color: var(--ink); font-size: .92rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--coral); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: var(--s3); margin-left: var(--s4); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; margin-left: auto; }
@media (max-width: 1000px) {
  .nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch;
         background: var(--sand); border-bottom: 1px solid var(--line); padding: var(--s5);
         gap: var(--s4); margin: 0; box-shadow: var(--shadow-md); }
  .nav[hidden] { display: none; }
  .nav__actions { margin: var(--s2) 0 0; flex-direction: column; align-items: stretch; }
  .nav-toggle { display: block; }
}
@media (min-width: 1001px) { .nav[hidden] { display: flex !important; } }

/* --------------------------------------------------------------- hero --- */
.hero { position: relative; background: var(--ink); color: var(--sand); overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(46,140,133,.42), transparent 62%),
    radial-gradient(760px 420px at 6% 106%, rgba(194,84,60,.32), transparent 66%);
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(var(--s8), 10vw, 150px); }
.hero h1 { color: var(--sand); max-width: 20ch; font-size: clamp(2.1rem, 4.1vw, 3.4rem); }
.hero .lead { max-width: 54ch; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s8); align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: var(--s7); } }

.trustbar { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s7); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-dark); }
.trustbar__item strong { display: block; font-family: var(--font-display); font-size: 1.75rem; color: var(--sand); line-height: 1; }
.trustbar__item span { font-size: .8rem; color: rgba(250,246,239,.62); }

/* -------------------------------------------------------------- stats --- */
.stat { }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2rem,3.6vw,2.9rem); color: var(--tide-2); line-height: 1; margin-bottom: var(--s2); }
.stat span { font-size: .9rem; color: var(--muted); }
.section--ink .stat strong { color: var(--sun); }
.section--ink .stat span { color: rgba(250,246,239,.7); }

/* ------------------------------------------------------------- passos --- */
.steps { counter-reset: step; display: grid; gap: var(--s5); }
.step { position: relative; padding-left: 68px; }
.step::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--coral); width: 52px;
  border-right: 1px solid var(--line); padding-right: var(--s4);
}
.section--ink .step::before { border-color: var(--line-dark); color: var(--sun); }
.step h3 { margin-bottom: var(--s2); }
.step p { margin-bottom: 0; color: var(--muted); }
.section--ink .step p { color: rgba(250,246,239,.72); }

/* ------------------------------------------------------------- planos --- */
.plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--s5); align-items: start; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan--featured { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); position: relative; }
.plan__flag { position: absolute; top: -13px; left: var(--s6); }
.plan__name { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin: 0 0 var(--s1); }
.plan__tag { font-size: .85rem; color: var(--muted); margin: 0 0 var(--s5); min-height: 2.6em; }
.plan__rate { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--s2); }
.plan__rate b { font-family: var(--font-display); font-size: 3.1rem; line-height: .9; color: var(--tide-2); font-weight: 600; }
.plan__rate i { font-style: normal; font-size: 1.1rem; color: var(--tide-2); font-weight: 600; }
.plan__basis { font-size: .8rem; color: var(--muted-2); margin-bottom: var(--s5); }
.plan__list { list-style: none; padding: 0; margin: 0 0 var(--s6); display: grid; gap: 10px; font-size: .92rem; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list li::before { content: '✓'; color: var(--tide-3); font-weight: 700; flex: none; }
.plan__list li.off { color: var(--muted-2); }
.plan__list li.off::before { content: '–'; color: var(--sand-3); }
.plan__foot { margin-top: auto; }

/* ------------------------------------------------------------- tabela --- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { padding: 13px var(--s4); text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--sand); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; background: var(--sand); border-top: 2px solid var(--ink); }

/* -------------------------------------------------------- simulador --- */
.sim { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
@media (max-width: 900px) { .sim { grid-template-columns: 1fr; } }
.field { display: block; margin-bottom: var(--s4); }
.field > span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; font-size: .76rem; color: var(--muted-2); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s ease;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6B67' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { border-color: var(--tide-3); outline: none; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
.err { display: block; font-size: .78rem; color: var(--bad); margin-top: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: var(--r-full); background: var(--paper); font-size: .88rem; font-weight: 500; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sand); }

.result { background: var(--ink); color: var(--sand); border-radius: var(--r-lg); padding: var(--s6); }
.result__big { font-family: var(--font-display); font-size: clamp(2.2rem,4.5vw,3.2rem); color: var(--sun); line-height: 1; margin: var(--s2) 0; }
.result__label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(250,246,239,.62); }
.result table { min-width: 0; background: transparent; }
.result th, .result td { border-color: var(--line-dark); color: var(--sand); background: transparent; padding: 10px 0; }
.result th { background: transparent; color: rgba(250,246,239,.6); }
.result tr.total td { background: transparent; border-top: 1.5px solid var(--line-dark); color: var(--sun); }

/* ------------------------------------------------------------ formulário --- */
.steps-bar { display: flex; gap: var(--s2); margin-bottom: var(--s6); list-style: none; padding: 0; }
.steps-bar li { flex: 1; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); padding-top: 10px; border-top: 3px solid var(--line); font-weight: 600; }
.steps-bar li[data-state="done"] { border-color: var(--tide-3); color: var(--tide-2); }
.steps-bar li[data-state="now"] { border-color: var(--coral); color: var(--coral); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin-bottom: var(--s2); }
.form-nav { display: flex; gap: var(--s3); margin-top: var(--s6); }
.form-nav .btn { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin-bottom: var(--s4); }
.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--tide-2); }

/* ---------------------------------------------------------------- faq --- */
details.faq { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
details.faq summary { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); align-items: baseline; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--coral); font-size: 1.4rem; line-height: 1; flex: none; }
details.faq[open] summary::after { content: '–'; }
details.faq > div { padding-top: var(--s3); color: var(--muted); max-width: var(--maxw-prose); }
details.faq > div p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------- depoimentos --- */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
.quote blockquote { margin: 0 0 var(--s5); font-family: var(--font-display); font-size: 1.12rem; line-height: 1.45; color: var(--ink); }
.quote figcaption { font-size: .85rem; color: var(--muted); }
.quote figcaption b { color: var(--ink); display: block; font-size: .95rem; }

/* ------------------------------------------------------------- regiões --- */
.region-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); transition: transform .14s ease, box-shadow .14s ease; }
.region-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.region-card h3 { margin-bottom: var(--s2); }
.region-card p { color: var(--muted); font-size: .92rem; }
.region-card__rate { font-family: var(--font-display); font-size: 1.3rem; color: var(--tide-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s4); }
.tag { font-size: .74rem; padding: 3px 10px; border-radius: var(--r-full); background: var(--sand-2); color: var(--tide); }

/* ------------------------------------------------------------- footer --- */
.site-footer { background: var(--ink); color: rgba(250,246,239,.72); padding-block: var(--s8) var(--s6); font-size: .9rem; }
.site-footer a { color: rgba(250,246,239,.72); }
.site-footer a:hover { color: var(--sun); }
.site-footer h4 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(250,246,239,.45); margin: 0 0 var(--s4); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s6); }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; font-size: .8rem; color: rgba(250,246,239,.5); }

/* ------------------------------------------------------------- whatsapp --- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #06281A; font-weight: 600; font-size: .9rem; padding: 12px 18px;
  border-radius: var(--r-full); box-shadow: var(--shadow-lg); }
.wa-float:hover { background: #1FBE5B; color: #06281A; }
@media (max-width: 620px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ============================================================ PAINEL === */
.app { min-height: 100vh; background: var(--sand-2); }
.app-bar { background: var(--ink); color: var(--sand); }
.app-bar__inner { display: flex; align-items: center; gap: var(--s4); height: 64px; }
.app-bar .logo, .app-bar .logo b, .app-bar .logo span { color: var(--sand); }
.app-bar__right { margin-left: auto; display: flex; align-items: center; gap: var(--s4); font-size: .88rem; }
.app-bar__user { color: rgba(250,246,239,.72); }
.prop-switch {
  appearance: none;
  background-color: rgba(250,246,239,.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FAF6EF' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--line-dark); color: var(--sand);
  border-radius: var(--r-sm); padding: 8px 34px 8px 12px;
  font-size: .88rem; max-width: 300px;
}
.prop-switch option { color: var(--text); }

.tabs { display: flex; gap: var(--s5); overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--sand); padding-inline: var(--s5); }
.tabs__inner { display: flex; gap: var(--s5); width: 100%; max-width: var(--maxw); margin-inline: auto; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 2px; font-size: .9rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--coral); font-weight: 600; }
.panel[hidden] { display: none; }

.kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--s4); }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.kpi__label { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.kpi__value { font-family: var(--font-display); font-size: 1.85rem; line-height: 1; color: var(--ink); }
.kpi__delta { font-size: .8rem; margin-top: 6px; }
.kpi__delta.up { color: var(--ok); } .kpi__delta.down { color: var(--bad); }

.cal { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.cal__dow { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); text-align: center; padding-bottom: 6px; font-weight: 600; }
.cal__day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .82rem;
  border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); color: var(--text); font-variant-numeric: tabular-nums; }
.cal__day--out { visibility: hidden; }
.cal__day--booked { background: var(--tide-2); border-color: var(--tide-2); color: #fff; font-weight: 600; }
.cal__day--owner { background: var(--sun); border-color: var(--sun); color: #3D2A06; font-weight: 600; }
.cal__day--blocked { background: var(--sand-3); border-color: var(--sand-3); color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; gap: var(--s4); font-size: .8rem; color: var(--muted); margin-top: var(--s4); }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.cal-months { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s5); }
@media (max-width: 900px) { .cal-months { grid-template-columns: 1fr; } }
.cal-month h4 { font-family: var(--font-display); font-size: 1rem; margin: 0 0 var(--s3); color: var(--ink); }
.cal-month h4::first-letter { text-transform: uppercase; }

.bar { height: 8px; background: var(--sand-2); border-radius: var(--r-full); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--tide-3); border-radius: var(--r-full); }
.bar > i.me { background: var(--coral); }

.empty { text-align: center; padding: var(--s8) var(--s5); color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--sand-3); border-top-color: var(--tide-2); border-radius: 50%; animation: spin .7s linear infinite; margin: var(--s7) auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { padding: var(--s4) var(--s5); border-radius: var(--r-md); font-size: .9rem; margin-bottom: var(--s5); border: 1px solid; }
.notice--info { background: #E8F1F0; border-color: #BBD8D5; color: var(--tide); }
.notice--ok { background: #DCF0E6; border-color: #B4DDC7; color: var(--ok); }
.notice--bad { background: #F7E0DC; border-color: #E8BCB4; color: var(--bad); }
.notice--demo { background: #FAEED6; border-color: #E7D3A4; color: var(--warn); }

.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: var(--s5); position: relative; overflow: hidden; }
.login-page::after { content:''; position: absolute; inset: 0; background: radial-gradient(900px 480px at 80% -10%, rgba(46,140,133,.4), transparent 62%), radial-gradient(700px 400px at 5% 105%, rgba(194,84,60,.3), transparent 66%); }
.login-card { position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--sand); border-radius: var(--r-xl); padding: var(--s7); box-shadow: var(--shadow-lg); }

@media print { .site-header, .site-footer, .wa-float, .tabs, .form-nav { display: none !important; } body { background: #fff; } }
