/* Fonts stored locally in the fonts folder (SIL Open Font License). No external requests. */
@font-face { font-family: "Sora"; font-weight: 500; font-display: swap; src: url("fonts/sora-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

/* Layout concept: an archive index. A narrow reading column, with record "index cards" that show
   the four layers of classification as real content, never as decoration. */
:root {
  --ink: #0f1119;        /* page ground, deep blue-black like the app */
  --sheet: #171a26;      /* raised surfaces: index cards, header */
  --rule: #2a2f42;       /* hairlines and borders */
  --text: #e8eaf2;       /* running text */
  --muted: #9aa1b8;      /* secondary text */
  --teal: #4fb8a8;       /* Context, links, the app's active colour */
  --gold: #d0ad52;       /* Core, the tag tree */
  --violet: #c9a6e6;     /* the logo's subtitle colour, used once per page */
  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --s-1: 0.875rem; --s0: 1.125rem; --s1: 1.375rem; --s2: 1.75rem; --s3: 2.375rem; --s4: 3.25rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--s0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.read { max-width: 40rem; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--sheet); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.75rem; }
.brand img { display: block; height: 54px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin: 0; padding: 0; list-style: none; font-family: var(--f-display); font-size: var(--s-1); }
.nav a { color: var(--muted); text-decoration: none; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--teal); }

/* Type */
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--s4); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: var(--s2); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: var(--s1); font-weight: 600; }
p { margin: 0; }
.eyebrow { font-family: var(--f-mono); font-size: var(--s-1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: var(--s1); color: var(--text); line-height: 1.5; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 1.1rem; }
.stack-lg { display: grid; gap: 2.5rem; }
section { padding-block: 3rem; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

/* Hero */
.hero { padding-block: 3.5rem 3rem; display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.hero h1 .accent { color: var(--violet); }
@media (max-width: 760px) { .hero { grid-template-columns: minmax(0, 1fr); padding-block: 2rem; } h1 { font-size: var(--s3); } }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-display); font-size: var(--s-1); font-weight: 600;
  padding: 0.8rem 1.2rem; border-radius: 8px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--teal); background: var(--teal); color: var(--ink);
}
.btn.ghost { background: transparent; color: var(--teal); }

/* Index card: one example record, with its four layers */
figure { margin: 0; }
.card {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px;
  padding: 1.25rem; display: grid; gap: 0.9rem; min-width: 0;
}
.card .note { font-size: var(--s0); }
.layer { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; align-items: baseline; border-top: 1px dashed var(--rule); padding-top: 0.7rem; }
.layer dt { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.layer dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; min-width: 0; }
.path { font-family: var(--f-mono); font-size: var(--s-1); color: var(--gold); overflow-wrap: normal; }
.path .sep { color: var(--muted); padding-inline: 0.3em; }
.chip { font-family: var(--f-mono); font-size: 0.8rem; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--text); }
.chip.c { border-color: var(--teal); color: var(--teal); }
.example-tag { font-family: var(--f-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* Lists */
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.facts li { border-top: 2px solid var(--teal); padding-top: 0.75rem; }
.facts strong { display: block; font-family: var(--f-display); font-size: var(--s0); margin-bottom: 0.25rem; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }

.steps { margin: 0; padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.layers-list { display: grid; gap: 2.25rem; }
.layer-block { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
.layer-block .num { font-family: var(--f-mono); color: var(--gold); font-size: var(--s1); line-height: 1.2; }
.layer-block.ctx .num { color: var(--teal); }

/* Funnel: each filter narrows what the previous left */
.funnel { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; font-family: var(--f-mono); font-size: var(--s-1); }
.funnel li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.8rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--sheet); font-variant-numeric: tabular-nums; }
.funnel li span:last-child { color: var(--teal); }

/* Essays: a real reading sequence, so the numbers carry meaning */
.essays { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: 46rem; }
.essays a { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); color: var(--text); text-decoration: none; }
.essays a:hover { border-color: var(--teal); }
.essays .num { font-family: var(--f-mono); color: var(--gold); font-size: var(--s1); }
.essays strong { display: block; font-family: var(--f-display); font-weight: 600; }
.essay-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--f-display); font-size: var(--s-1); }

/* Library of professions */
.lib-input { font: inherit; width: 100%; max-width: 28rem; padding: 0.7rem 0.9rem; border-radius: 8px; border: 1px solid var(--rule); background: var(--sheet); color: var(--text); }
.lib-filter { font-family: var(--f-display); font-size: var(--s-1); color: var(--muted); }
.lib-list { display: grid; gap: 0.4rem; }
.lib-prof > summary { cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.lib-pname { font-family: var(--f-display); font-weight: 600; }
.lib-prof[open] > summary .lib-pname { color: var(--teal); }
.lib-prof > .lib-tree { padding-block: 0.75rem 1.25rem; }
.lib-score { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 0.05rem 0.5rem; align-self: center; white-space: nowrap; }
.lib-prof > summary .lib-score { margin-right: auto; }
.lib-tree { display: grid; gap: 0.5rem; }
.lib-name { border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); }
.lib-name summary { cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; font-family: var(--f-display); }
.lib-l1 { color: var(--gold); font-weight: 600; }
.lib-types { list-style: none; margin: 0; padding: 0 1rem 1rem; display: grid; gap: 0.75rem; }
.lib-types li { display: grid; gap: 0.35rem; }
.refs { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.todo { color: var(--violet); font-family: var(--f-mono); font-size: 0.9em; }

/* Questions */
.qa { display: grid; gap: 0.35rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.qa h3 { font-size: var(--s0); color: var(--gold); }

/* Glossary */
.glossary { margin: 0; display: grid; gap: 0.9rem; }
.gloss { display: grid; gap: 0.2rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule); }
.gloss dt { font-family: var(--f-display); font-weight: 600; color: var(--gold); }
.gloss dd { margin: 0; }

/* Placeholder pages */
.planned { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.planned li { padding: 0.8rem 1rem; border: 1px dashed var(--rule); border-radius: 8px; }
.planned li strong { font-family: var(--f-display); display: block; }

/* Listen button */
.listen { font-family: var(--f-display); font-size: var(--s-1); display: inline-flex; gap: 0.5rem; align-items: center; background: transparent; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 0.4rem 0.9rem; cursor: pointer; }
.listen[aria-pressed="true"] { color: var(--teal); border-color: var(--teal); }
.listen svg { width: 16px; height: 16px; fill: currentColor; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--sheet); margin-top: 2rem; }
.site-foot .wrap { padding-block: 2rem; display: grid; gap: 1rem; font-size: var(--s-1); color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot-links a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .funnel li { transition: background 0.2s; }
}

/* App download: button in the header and band before the footer */
.site-head .btn.dl { margin-left: auto; padding: 0.45rem 0.9rem; }
.dl-band { border-top: 1px solid var(--rule); margin-top: 2rem; }
.dl-band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-block: 1.5rem; color: var(--muted); font-size: var(--s-1); }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.site-head nav { order: 3; flex-basis: 100%; }
.site-head .btn.dl { order: 2; }

.dl-top { border-top: none; margin-top: 0; border-bottom: 1px solid var(--rule); }
.dl-top .wrap { padding-block: 1rem; }

/* Aplicação: grid of function cards */
.func-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.func-grid a { display: grid; gap: 0.35rem; height: 100%; padding: 1rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); text-decoration: none; color: var(--text); }
.func-grid a:hover { border-color: var(--teal); }
.func-grid strong { font-family: var(--f-display); color: var(--teal); }
.func-grid a { align-content: start; }

/* App screenshots, top right of the text */
.with-shots { display: grid; grid-template-columns: minmax(0, 40rem) 15rem; gap: 2.5rem; align-items: start; justify-content: start; }
.with-shots > .read, .with-shots > .shots-col { grid-column: 1; grid-row: 1; min-width: 0; }
.with-shots > .shots { grid-column: 2; grid-row: 1; padding-top: 3rem; display: grid; gap: 1.2rem; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--rule); }
.shots figcaption { font-size: .85rem; margin-top: .4rem; opacity: .8; }
.shots-note { font-size: .8rem; opacity: .65; margin: 0; }
@media (max-width: 52rem) {
  .with-shots { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .with-shots > .read, .with-shots > .shots-col { grid-row: 2; }
  .with-shots > .shots { grid-column: 1; grid-row: 1; display: flex; gap: .8rem; overflow-x: auto; padding: 1.5rem 0 .5rem; scroll-snap-type: x mandatory; }
  .with-shots > .shots figure { flex: 0 0 9.5rem; scroll-snap-align: start; }
  .with-shots > .shots .shots-note { display: none; }
}
.shot-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.2rem; }
.shot-gallery figure { margin: 0; }
.shot-gallery img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--rule); }
.shot-gallery figcaption { font-size: .85rem; margin-top: .4rem; opacity: .8; }

/* Pricing cards on the download page (temporary model, 22 Oct 2026) */
.plans-sec { max-width: 64rem; }
.plans-note { font-size: var(--s-1); color: var(--gold); margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1.25rem; align-items: start; }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 1.4rem; display: grid; gap: 0.75rem; }
.plan-pop { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.plan h3 { margin: 0; font-family: var(--f-display); font-size: var(--s1); }
.plan-badge { justify-self: start; margin: 0; font-family: var(--f-display); font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 5px; background: rgba(79,184,168,0.18); color: var(--teal); }
.plan-badge-free { background: rgba(208,173,82,0.18); color: var(--gold); }
.plan-toggle { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: var(--s-1); color: var(--muted); }
.sw { width: 2.1rem; height: 1.15rem; border-radius: 1rem; background: var(--rule); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 0.15rem; left: 0.15rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--muted); }
.sw.on { background: var(--teal); } .sw.on::after { left: 1.1rem; background: var(--ink); }
.plan-price { margin: 0.2rem 0 0; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.plan-price .amt { font-family: var(--f-display); font-size: var(--s3); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: var(--s-1); color: var(--muted); }
.plan-sub { margin: 0; font-size: var(--s-1); color: var(--muted); min-height: 1.3em; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--ink); border: 1px solid var(--rule); border-radius: 9px; padding: 0.25rem; gap: 0.25rem; }
.seg button, .seg span { font: 600 var(--s-1) var(--f-display); color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 0.5rem 0; cursor: pointer; text-align: center; }
.seg .on { background: var(--sheet); color: var(--text); box-shadow: 0 0 0 1px var(--rule); }
.seg-off span { cursor: default; }
.plan-btn { justify-content: center; width: 100%; box-sizing: border-box; }
.plan-small { margin: -0.25rem 0 0; text-align: center; font-size: 0.8rem; color: var(--muted); }
.plan-list { list-style: none; margin: 0.3rem 0 0; padding: 0.8rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.45rem; font-size: var(--s-1); }
.plan-list li { padding-left: 1.4rem; position: relative; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

.contact-form{display:grid;gap:.9rem;max-width:34rem;margin-top:.5rem}
.contact-form label{display:grid;gap:.35rem;color:var(--muted);font-size:var(--s-1)}
.contact-form input,.contact-form select,.contact-form textarea{font:inherit;font-size:1rem;color:var(--text);background:var(--sheet);border:1px solid var(--rule);border-radius:.5rem;padding:.6rem .75rem;width:100%;box-sizing:border-box}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:2px solid var(--teal);outline-offset:1px}
.contact-form .btn{justify-self:start;border:0;cursor:pointer}
.contact-note{font-size:var(--s-1);margin:0}
.dl-text a.dl-contact{display:block;margin-top:.3rem;color:var(--text);font-weight:700;text-decoration:none}
.contact-form label,.contact-form input,.contact-form select,.contact-form textarea{min-width:0;max-width:100%}
.contact-form{width:100%}
.contact-form label{display:flex;flex-direction:column;align-items:stretch;text-align:left}

.contact-box{border-top:1px solid var(--rule);margin-top:2rem}
.contact-box .wrap{padding-block:1.25rem}
.contact-details{border:1px solid var(--rule);border-radius:12px;background:var(--sheet);padding:.9rem 1.1rem;max-width:40rem}
.contact-details summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1fr auto;gap:.2rem 1rem;align-items:center}
.contact-details summary::-webkit-details-marker{display:none}
.contact-title{font-family:var(--f-display);font-weight:600;font-size:var(--s0);color:var(--text)}
.contact-intro{grid-column:1;color:var(--muted);font-size:var(--s-1)}
.contact-toggle{grid-column:2;grid-row:1 / span 2;background:var(--teal);color:#0f1119;font-weight:700;border-radius:8px;padding:.45rem .9rem;font-size:var(--s-1)}
.contact-details[open] .contact-toggle{background:transparent;color:var(--muted);border:1px solid var(--rule)}
.contact-details[open] .contact-toggle::after{content:", fechar"}
.contact-details .contact-form{display:flex;flex-direction:column;gap:.35rem;margin-top:.8rem;max-width:none}
.contact-details .contact-form label{display:block;margin-top:.6rem;color:var(--muted);font-size:var(--s-1)}
.contact-details .contact-form .btn{margin-top:1rem;align-self:flex-start}
.author-head{display:flex;align-items:center;gap:1.1rem;margin-bottom:.5rem}
.author-head h1{margin:0}
.author-photo{width:110px;height:110px;border-radius:50%;object-fit:cover;border:1px solid var(--rule);flex:0 0 auto}
.author-sign{font-style:italic;color:var(--muted);margin-top:1.5rem}
@media (max-width:30rem){.author-photo{width:84px;height:84px}}

.rgpd-head{display:flex;align-items:center;gap:1.2rem}
.rgpd-head h1{margin:0}
.rgpd-badge{flex:0 0 auto;width:96px;height:96px}
.rgpd-note{font-size:var(--s-1);margin-top:.4rem}
@media (max-width:30rem){.rgpd-head{flex-direction:column;align-items:flex-start;gap:.8rem}.rgpd-badge{width:72px;height:72px}}
.area{margin-top:1.6rem}
.area h3{margin:0 0 .2rem}
.area-more{font-size:var(--s-1);font-weight:400}
.area-intro{color:var(--muted)}
.feat-list{padding-left:2.2rem;margin:.3rem 0}
.feat-list li{margin:.35rem 0}
.feat-list li::marker{color:var(--teal);font-family:var(--f-mono);font-size:.85em}

.area-index{list-style:none;padding:0;margin:1rem 0 1.5rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:.5rem}
.area-index a{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;padding:.6rem .8rem;border:1px solid var(--rule);border-radius:10px;background:var(--sheet);color:var(--text);text-decoration:none;font-weight:600}
.area-index a:hover{border-color:var(--teal)}
.area-range{font-family:var(--f-mono);font-size:.78rem;color:var(--muted);font-weight:400;white-space:nowrap}
.area{scroll-margin-top:11rem}
#o-que-faz{scroll-margin-top:11rem}
.area-links{display:flex;gap:1.2rem;margin:.1rem 0 .5rem;font-size:var(--s-1)}
.area-top{color:var(--muted)}

.seg button{position:relative}
.seg .seg-tag{position:absolute;top:-.8rem;left:50%;transform:translateX(-50%);font:700 .62rem/1.5 var(--f-body);background:var(--gold);color:#0f1119;padding:0 .4rem;border-radius:6px;white-space:nowrap;pointer-events:none;cursor:default}
.plan-pop .seg{margin-top:1rem}

.launch-tag{display:block;width:fit-content;align-self:flex-start;justify-self:start;margin:.6rem 0 -.2rem;padding:.2rem .7rem;border-radius:999px;font:700 var(--s-1)/1.4 var(--f-display);color:var(--violet);background:rgba(201,166,230,.12);border:1px solid rgba(201,166,230,.55);letter-spacing:.01em}

.skip-link{position:absolute;left:1rem;top:-3rem;z-index:100;background:var(--teal);color:#0f1119;font-weight:700;padding:.5rem .9rem;border-radius:8px;text-decoration:none;transition:top .15s}
.skip-link:focus{top:.6rem}
main:focus{outline:none}
.crumbs{margin:1.2rem 0 -.6rem}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.3rem;font-size:var(--s-1);color:var(--muted)}
.crumbs li+li::before{content:"›";margin-right:.3rem;color:var(--rule)}
.crumbs a{color:var(--muted)}
.crumbs [aria-current]{color:var(--text)}
.crumbs-wrap{max-width:none}
.listen-stop{margin-left:.5rem}
.listen[hidden]{display:none}
.listen{vertical-align:middle}
.listen-dock{position:fixed;right:1rem;bottom:1rem;z-index:50;display:flex;gap:.4rem;background:var(--sheet);border:1px solid var(--teal);border-radius:999px;padding:.35rem;box-shadow:0 6px 24px rgba(0,0,0,.45)}
.listen-dock[hidden]{display:none}
.listen-dock button{font:600 var(--s-1) var(--f-display);border:0;border-radius:999px;padding:.55rem 1rem;cursor:pointer}
.listen-dock-main{background:var(--teal);color:#0f1119}
.listen-dock-stop{background:transparent;color:var(--muted)}
@media (max-width:52rem){.nav{gap:.2rem 1.1rem}.nav a{display:inline-block;padding:.55rem 0}}

/* 27 Oct: short vision texts list, hero line, quote */
.hero-line { font-weight: 600; color: var(--text); margin: 0; }
.text-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; max-width: 46rem; }
.text-list a { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0.8rem; align-items: start; padding: 0.9rem 1rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); color: var(--text); text-decoration: none; }
.text-list a:hover { border-color: var(--teal); }
.text-list .doc-icon { color: var(--teal); margin-top: 0.1rem; }
.text-list strong { display: block; }
.text-list .muted { display: block; font-size: var(--s-1); margin-top: 0.2rem; }
.quote { margin: 0; padding: 0.8rem 1rem; border-left: 3px solid var(--teal); background: var(--sheet); border-radius: 0 8px 8px 0; }
.quote p { margin: 0; font-size: 1.1rem; font-weight: 600; }
.quote cite { display: block; margin-top: 0.4rem; font-style: normal; color: var(--muted); font-size: var(--s-1); }

/* 27 Oct: layers of the future page */
.stack-layers { list-style: none; margin: 0.5rem 0; padding: 0; display: grid; gap: 0.4rem; max-width: 46rem; }
.stack-layers li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.8rem; align-items: start; padding: 0.8rem 1rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--sheet); }
.stack-layers .sl-n { font-family: var(--f-mono); color: var(--muted); }
.stack-layers strong { display: block; }
.stack-layers .muted { display: block; font-size: var(--s-1); margin-top: 0.2rem; }
.stack-layers .sl-person { border-color: var(--teal); }
.stack-layers .sl-person .sl-n { color: var(--teal); }
.stack-layers .sl-future { border-style: dashed; }

/* Tag order (organize.html#ordem): where, modes, the two measures, the mix, the three clocks, the defaults */
.ord-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .ord-grid { grid-template-columns: minmax(0, 1fr); } }
.ord-card { background: var(--sheet); border: 1px solid var(--rule); border-top: 3px solid var(--muted); border-radius: 10px; padding: 1rem 1.1rem; display: grid; gap: 0.45rem; align-content: start; min-width: 0; }
.ord-card h4 { margin: 0; font-family: var(--f-display); font-size: var(--s0); }
.ord-card p, .ord-card ul { margin: 0; font-size: var(--s-1); }
.ord-card ul { padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.ord-card .kicker { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ord-core { border-top-color: var(--gold); } .ord-core .kicker { color: var(--gold); }
.ord-search { border-top-color: #e48bb6; } .ord-search .kicker { color: #e48bb6; }
.ord-manual { border-top-color: var(--muted); }
.ord-auto { border-top-color: var(--teal); } .ord-auto .kicker { color: var(--teal); }
.ord-mix { display: grid; gap: 0.8rem; }
.ord-mix .row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.8rem; align-items: center; font-family: var(--f-mono); font-size: var(--s-1); }
.ord-bar { display: flex; height: 2rem; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); font-size: 0.78rem; }
.ord-bar span { display: flex; align-items: center; justify-content: center; color: #0f1119; font-weight: 700; white-space: nowrap; overflow: hidden; }
.ord-bar .have { background: var(--gold); }
.ord-bar .click { background: var(--teal); }
.ord-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: var(--s-1); color: var(--muted); }
.ord-legend i { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; margin-right: 0.35rem; vertical-align: -1px; }
.ord-clocks { display: grid; gap: 0.9rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .ord-clocks { grid-template-columns: minmax(0, 1fr); } }
.ord-clocks .big { font-family: var(--f-display); font-size: var(--s2); color: var(--teal); line-height: 1.1; }
.ord-defaults { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.ord-defaults li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.9rem; border-top: 1px solid var(--rule); font-size: var(--s-1); background: var(--sheet); }
.ord-defaults li:first-child { border-top: 0; }
.ord-defaults b { font-family: var(--f-mono); font-weight: 600; color: var(--teal); text-align: right; }
.ord-bold { color: #5aa0ff; font-weight: 700; }

/* System map on aplicacao.html#sistemas: each card is a link to where that system is explained */
a.sys-link { color: var(--text); text-decoration: none; }
a.sys-link:hover, a.sys-link:focus-visible { border-color: var(--teal); }
a.sys-link h4::after { content: " \2192"; color: var(--teal); }
.sys-funs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sys-funs a.chip { text-decoration: none; padding: 0.35rem 0.8rem; }
.sys-funs a.chip:hover { border-color: var(--teal); color: var(--teal); }
/* Anchored sections stop below the sticky header */
#core, #classificacoes, #context, #automaticas, #funil, #ordem, #origens, #sistemas, #mrs, #ligar-cards, #assuntos, #origem-trails, #como-foram-feitas, #dados, #tres-nomes, #mais-longe, #caso-real { scroll-margin-top: 11rem; }

/* Page images (3 Nov 2026): one per main page, the pages under it use the same one. 256 px on the computer, 128 px on the phone. */
.page-art{margin-top:1.6rem}
.page-art img{display:block;width:auto;height:auto;max-height:256px;max-width:min(100%,360px)}
.contact-wrap{display:flex;align-items:center;gap:1rem}
.contact-wrap .contact-details{flex:1;min-width:0}
.contact-art{flex:none;width:56px;height:auto}
/* 4 Nov 2026 19:58: the wide Profissoes image a little larger, it looked smaller than the others */
.page-art img[src*="profissoes"]{max-width:min(100%,440px)}
.page-art img[src*="retrato-e-brasao"]{max-width:min(100%,532px)}
@media (max-width:760px){.page-art{margin-top:1.1rem}.page-art img{max-height:128px;max-width:min(100%,200px)}.contact-art{width:44px}}
/* Own image of each profession in the list (3 Nov 2026); empty slot keeps the names aligned. */
.lib-pname{display:inline-flex;align-items:center;gap:.6rem}
.lib-icon{display:inline-block;flex:none;width:36px;height:36px;object-fit:contain}

/* 3 Nov 2026, a pedido do Luis: no telemovel o menu de cima ocupava um terco do ecra. Fica numa so linha,
   que desliza para o lado (o ultimo item aparece cortado para mostrar que ha mais), e o logotipo mais pequeno. */
@media (max-width:52rem){
  .site-head .wrap{padding-block:.45rem;gap:.25rem 1rem}
  .brand img{height:40px}
  .site-head nav{position:relative;margin-inline:-16px;min-width:0;flex-basis:auto;width:calc(100% + 32px)}
  .nav{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:0 1.1rem;padding-inline:16px;
       -webkit-mask-image:linear-gradient(to right,#000 85%,transparent);mask-image:linear-gradient(to right,#000 85%,transparent)}
  .nav::-webkit-scrollbar{display:none}
  .nav li{flex:none}
  .nav a{padding:.4rem 0}
}

/* 3 Nov 2026: em browsers com margem de topo (por exemplo dentro do Facebook) o cabecalho fixo era empurrado para baixo
   e tapava o botao Download no topo da pagina. A pagina passa a comecar abaixo dessa margem. */
body{padding-top:env(safe-area-inset-top,0px)}

/* 3 Nov 2026, a pedido do Luis: logotipo maior, para as letras Personal Context Engine se lerem melhor. */
.brand img{height:68px}
@media (max-width:52rem){.brand img{height:64px}}
@media (max-width:760px){.page-art img[src*="profissoes"]{max-width:min(100%,250px)}}
@media (max-width:760px){.page-art img[src*="retrato-e-brasao"]{max-width:min(100%,266px)}}
/* 5 Nov 2026: AI Sheet real tests page */
.teste{border-top:1px solid var(--rule);padding-top:1.2rem}
.resposta{border:1px solid var(--rule);border-radius:10px;background:var(--sheet);margin:1rem 0 .5rem}
.resposta>summary{cursor:pointer;padding:.7rem 1rem;font-family:var(--f-display);font-weight:600;list-style:none}
.resposta>summary::-webkit-details-marker{display:none}
.resposta>summary::after{content:" +";color:var(--teal)}
.resposta[open]>summary::after{content:" \2212"}
.resp-n{display:inline-block;min-width:1.6rem;height:1.6rem;line-height:1.6rem;text-align:center;border-radius:50%;background:var(--rule);color:var(--text);font-size:var(--s-1);margin-right:.4rem}
.resposta-texto{padding:0 1rem 1rem;font-size:var(--s-1);color:var(--text);overflow-x:auto}
.resposta-texto h1,.resposta-texto h2,.resposta-texto h3{font-size:var(--s0);margin:1rem 0 .4rem}
.resposta-texto table{border-collapse:collapse;margin:.6rem 0;min-width:60%}
.resposta-texto th,.resposta-texto td{border:1px solid var(--rule);padding:.3rem .6rem;text-align:left}
.analise{border-left:4px solid var(--teal);background:rgba(79,184,168,.10);border-radius:0 10px 10px 0;padding:.7rem 1rem;margin:.4rem 0 1.4rem}
.analise p{margin:.2rem 0}
.analise-titulo{font-family:var(--f-display);font-weight:600;color:var(--teal)}
.conclusao{border:1px solid var(--gold);border-radius:10px;padding:.7rem 1rem;color:var(--text)}

