/* Active brand: Soft & Human v0.1 (PROVISIONAL).
   Exact palette: LAIZA_final.pdf, page 4. Semantic assignments, dimensions and
   fallback font are implementation choices, not final designer specifications.
   Replace this token block to restyle the app; keep component rules semantic. */
:root {
  --brand-sky: #D9E9FF;
  --brand-lime: #DBFF6B;
  --brand-sage: #9BB89F;
  --brand-charcoal: #1F2320;
  --brand-off-white: #FAFAF6;
  --page: var(--brand-off-white);
  --ink: var(--brand-charcoal);
  --muted: #526057;
  --line: #D5DED3;
  --surface: #FFFFFF;
  --surface-soft: #EDF3E9;
  --primary: var(--brand-lime);
  --primary-ink: var(--brand-charcoal);
  --secondary: var(--brand-sky);
  --focus: #31583B;
  --radius: 22px;
  --shadow: 0 10px 32px #1F232008;
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 95% 6%, #D9E9FF66, transparent 32rem), var(--page); }
header, main, footer { max-width: 1200px; margin: auto; padding: 24px 36px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; font-size: 31px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
.brand span { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.brand-mark { position: relative; display: inline-block; width: 34px; height: 35px; flex: 0 0 34px; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border-radius: 10px; }
.brand-mark::before { height: 14px; width: 33px; bottom: 0; left: 0; background: var(--brand-sky); }
.brand-mark::after { width: 14px; height: 35px; left: 0; background: var(--brand-sage); }
.badge, .eyebrow { font-size: 11px; letter-spacing: 1.5px; font-weight: 700; }
.badge { background: var(--surface-soft); color: var(--ink); padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; text-align: center; }
.hero { position: relative; overflow: hidden; padding: 40px 0 20px; }
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.hero-orbit { position: absolute; width: 215px; height: 215px; border-radius: 60% 40% 48% 52%; background: var(--brand-sage); opacity: .27; right: -30px; top: 30px; transform: rotate(-20deg); }
.hero-orbit::after { content: ""; display: block; width: 155px; height: 75px; background: var(--brand-lime); border-radius: 70px; transform: rotate(40deg) translate(-30px, 110px); }
h1 { max-width: 780px; font-size: clamp(36px, 5.5vw, 64px); line-height: 1.08; letter-spacing: -2.8px; font-weight: 650; margin: 12px 0 22px; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.6px; margin: 0 0 15px; }
p { margin: 0 0 14px; }
.intro { max-width: 650px; color: var(--muted); font-size: 17px; }
.eyebrow { color: var(--muted); margin: 0 0 12px; }
section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 22px 0; box-shadow: var(--shadow); min-width: 0; }
#customer-pages { background: var(--surface-soft); box-shadow: none; }
#customer-pages a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-weight: 600; text-decoration: none; margin: 4px 6px 0 0; }
#login { border: 0; background: var(--brand-sky); padding: 30px; }
#login label { display: block; font-size: 14px; font-weight: 650; }
#login p { margin-top: 14px; }
.grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.grid section { margin-bottom: 0; }
#balance { background: var(--surface-soft); }
#dossier-title { font-size: 30px; margin-top: 38px; }
button { font: inherit; font-size: 14px; font-weight: 650; background: var(--primary); color: var(--primary-ink); border: 1px solid transparent; border-radius: 999px; min-height: 44px; padding: 10px 19px; cursor: pointer; margin: 5px 8px 5px 0; transition: box-shadow .15s, transform .15s; max-width: 100%; }
button:hover:not(:disabled) { box-shadow: 0 3px 0 #1F232019; transform: translateY(-1px); }
button:disabled { opacity: .55; cursor: wait; }
.subtle { background: var(--surface-soft); color: var(--ink); border-color: var(--line); }
nav { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin: 24px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
nav a { padding: 8px 12px; border-radius: 999px; background: var(--surface); min-height: 44px; display: flex; align-items: center; text-decoration: none; font-size: 14px; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
textarea { display: block; width: 100%; min-height: 100px; border: 1px solid #879A89; border-radius: 14px; padding: 14px; font: inherit; margin: 12px 0; background: var(--page); color: var(--ink); resize: vertical; }
select { font: inherit; font-size: 14px; padding: 11px 34px 11px 13px; min-height: 44px; max-width: 100%; border: 1px solid #879A89; border-radius: 12px; background: var(--surface); color: var(--ink); margin: 8px 12px 8px 0; }
label { font-size: 14px; margin-right: 8px; }
article { padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
article:last-child { border-bottom: 0; padding-bottom: 0; }
article p:first-child { font-weight: 600; }
article p:not(:first-child) { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { padding: 14px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow: auto; }
dl { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; margin: 20px 0 0; }
dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
#notice:not(:empty) { border: 1px solid #879A89; border-left: 5px solid var(--brand-charcoal); padding: 15px 18px; border-radius: 12px; background: var(--surface-soft); margin: 18px 0; overflow-wrap: anywhere; }
.muted, footer, #login p { font-size: 13px; color: var(--muted); }
li { padding: 4px 0; overflow-wrap: anywhere; }
ul, ol { padding-left: 21px; }
footer { padding-top: 28px; padding-bottom: 35px; border-top: 1px solid var(--line); margin-top: 32px; }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.library-view #workspace > section:not(#document-library), .library-view #workspace > .grid { display: none; }
.review-disclaimer { border-left: 4px solid var(--brand-sage); padding: 15px 18px; border-radius: 0 12px 12px 0; background: var(--surface-soft); font-size: 13px; color: var(--muted); }
.review-disclaimer strong { color: var(--ink); }
@media (max-width: 700px) {
  header, main, footer { padding-left: 20px; padding-right: 20px; }
  header { align-items: flex-start; padding-top: 20px; padding-bottom: 20px; gap: 12px; }
  .brand { font-size: 28px; gap: 9px; }
  .brand span { display: none; }
  .badge { font-size: 9px; letter-spacing: .7px; max-width: 132px; }
  .hero { padding-top: 28px; }
  .hero-orbit { right: -100px; top: 50px; opacity: .15; }
  h1 { letter-spacing: -1.6px; font-size: 42px; }
  h2 { font-size: 21px; }
  .intro { font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  section, #login { padding: 22px; border-radius: 18px; }
  #login button, #login select { width: 100%; margin-right: 0; }
  #dossier-title { font-size: 26px; }
  nav { gap: 6px; }
  nav a { padding: 8px 10px; font-size: 13px; }
  dl { font-size: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Welcome language preference contains no account information. */
.language-picker { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-bottom:12px; }
.language-picker label { font-size:0.9rem; color:var(--muted); }
.language-picker select { width:auto; min-width:130px; }
@media(max-width:600px){.language-picker{justify-content:flex-start;flex-wrap:wrap;}}

/* Shared welcome/dossier branding; pending channel is deliberately inert. */
.brand-invitation {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted, #566052);
}
.question-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block: 1rem;
}
#whatsapp-pending {
  cursor: not-allowed;
  opacity: 0.6;
}
@media (max-width: 640px) {
  header { flex-wrap: wrap; gap: .5rem; }
  header .brand-tagline { display: block; flex-basis: 100%; }
}
