/* ==========================================================================
   Ilda Camarneira — Línguas & Traduções · Mira
   Proposta de demonstração criada pela Tino.
   Conceito: a secretária de quem ensina e traduz — entrada de dicionário,
   correções a caneta vermelha, caderno pautado, ficha de arquivo e marcador.
   ========================================================================== */

/* ---------- Fontes (auto-alojadas, SIL Open Font License) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
/* Substitutas com métricas aproximadas, para a página não "saltar" enquanto as fontes carregam */
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 82%; ascent-override: 96%; descent-override: 26%;
}
@font-face {
  font-family: "Sans Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 97%;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F6F1E7;
  --paper-raised: #FCFAF5;
  --paper-deep: #ECE4D5;
  --ink: #182036;
  --ink-2: #3A4152;
  --muted: #5E6474;
  --rule: #D6CBB8;
  --rule-soft: #E4DBCB;
  --red: #AE3820;
  --red-on-ink: #F08A6C;
  --on-ink: #F6F1E7;
  --on-ink-2: #C9C5BA;
  --hl: 247 220 122;           /* marcador amarelo (RGB) */
  --card-blue: #C8D5E8;
  --wa: #168047;
  --wa-hover: #10683A;

  --serif: "Instrument Serif", "Serif Fallback", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", "Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 20px;
  --max: 1240px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* traço de caneta para as correções */
  --strike: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15.6C52 12.4 98 14.2 152 11.2S252 8.6 297 7.4' fill='none' stroke='%23AE3820' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
del, ins { text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgb(var(--hl) / .9); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.contact :focus-visible, .ribbon :focus-visible { outline-color: var(--red-on-ink); }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 100;
  padding: 12px 16px; border-radius: 4px;
  background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .75rem 1.3rem;
  border: 1.5px solid transparent; border-radius: 4px;
  font: 600 1rem/1.15 var(--sans); letter-spacing: .005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 1.2rem; height: 1.2rem; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #0C1224; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--on-ink); }
.btn-sm { min-height: 40px; padding: .5rem .95rem; font-size: .9375rem; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.hide-s { display: none; }
.col-b .actions { grid-template-columns: 1fr; }

/* ---------- Faixa de demonstração ---------- */
.ribbon {
  background: var(--ink); color: var(--on-ink-2);
  font-size: .78rem; line-height: 1.35;
}
.ribbon-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding-block: 5px; }
.ribbon-text { min-width: 0; }
.ribbon-text strong { color: var(--on-ink); font-weight: 600; white-space: nowrap; }
.ribbon-dot { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: rgb(var(--hl)); vertical-align: .08em; }
.r-by, .r-more, .r-long { display: none; }
.r-cap { display: none; }
.rh-country { display: none; }
.ligar-num { display: none; }
@media (max-width: 359px) {
  .r-pre { display: none; }
  .r-cap { display: inline; }
}
.ribbon-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  min-height: 32px; padding: 4px 11px;
  border: 1px solid rgb(246 241 231 / .28); border-radius: 999px;
  background: transparent; color: var(--on-ink); font-size: .78rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.ribbon-btn .i { width: 15px; height: 15px; }
.ribbon-btn:hover { border-color: rgb(246 241 231 / .6); }
.ribbon-btn[aria-pressed="true"] { background: rgb(var(--hl)); border-color: rgb(var(--hl)); color: var(--ink); }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgb(246 241 231 / .9);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-past { border-bottom-color: var(--rule); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand {
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
  text-decoration: none; line-height: 1.05;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.brand-name { font: 400 1.4rem/1 var(--serif); letter-spacing: -.005em; white-space: nowrap; }
.brand-tag { margin-top: 4px; font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
/* Com JavaScript, o nome só aparece no cabeçalho depois de passar o título principal */
.site-header.brand-auto:not(.is-past) .brand { opacity: 0; visibility: hidden; transform: translateY(6px); }
.nav { display: none; }
.header-cta { margin-left: auto; }
@media (max-width: 899px) {
  .site-header.brand-auto {
    position: fixed; left: 0; right: 0;
    transform: translateY(-105%);
    transition: transform .35s var(--ease), border-color .25s;
  }
  .site-header.brand-auto.is-past, .site-header.brand-auto:focus-within { transform: none; }
  .site-header.brand-auto:focus-within .brand { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .site-header.brand-auto { transition: none; }
}

/* ---------- Abertura ---------- */
.hero { padding: 26px 0 8px; }
.runhead {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--ink);
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.runhead-guide { display: none; font: italic 400 1rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--muted); }

.masthead {
  margin: 18px 0 0;
  font-family: var(--serif); font-weight: 400;
  /* "Camarneira" ocupa a largura toda no telemóvel */
  font-size: min(calc((100vw - 2 * var(--gutter)) * .232), 9rem);
  line-height: .84; letter-spacing: -.018em;
  color: var(--ink);
}
.mh-first, .mh-last { display: block; }
.mh-last { font-style: italic; letter-spacing: -.028em; }

.hero-grid { display: grid; gap: 40px; margin-top: 26px; }
.lead { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.lead strong { display: block; font-weight: 600; color: var(--ink); }
.hero-mail { margin-top: 16px; font-size: .95rem; color: var(--muted); }
.hero-mail a { color: var(--ink); font-weight: 500; text-decoration-color: var(--rule); text-underline-offset: 3px; overflow-wrap: anywhere; }
.hero-mail a:hover { text-decoration-color: var(--red); }

.senses { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.senses li { border-bottom: 1px solid var(--rule); }
.sense {
  display: grid; grid-template-columns: 2rem 1fr 22px; gap: 0 12px; align-items: start;
  padding: 18px 0 20px; text-decoration: none; color: inherit;
}
.sense-n { font: italic 400 1.9rem/1 var(--serif); color: var(--red); padding-top: .12em; }
.sense-body { display: flex; flex-direction: column; min-width: 0; }
.sense-term { font: 400 clamp(1.85rem, 7.4vw, 2.6rem)/1.02 var(--serif); letter-spacing: -.01em; }
.sense-for { order: -1; margin-bottom: 6px; font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--red); }
.sense-def { margin-top: 8px; font-size: .97rem; line-height: 1.5; color: var(--ink-2); }
.sense-go { width: 22px; height: 22px; margin-top: 1.55rem; color: var(--ink); transition: transform .25s var(--ease); }
.sense:hover .sense-go { transform: translateX(4px); color: var(--red); }
.sense:hover .sense-term { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; text-decoration-color: var(--red); }

/* Entrada suave (só CSS; o conteúdo fica sempre visível no fim) */
@media (prefers-reduced-motion: no-preference) {
  .masthead .mh-first, .masthead .mh-last, .hero-intro, .senses li {
    animation: rise .65s var(--ease) both;
  }
  .masthead .mh-last { animation-delay: .04s; }
  .hero-intro { animation-delay: .1s; }
  .senses li:nth-child(1) { animation-delay: .16s; }
  .senses li:nth-child(2) { animation-delay: .22s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Secções ---------- */
.section { padding: 72px 0; }
.s-trad { background: var(--paper-deep); }

.label {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 4px;
  margin: 0 0 32px; padding-bottom: 12px; border-bottom: 1px solid var(--ink);
  font: 600 .74rem/1.3 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ink);
}
.label-n { font: italic 400 1.75rem/.8 var(--serif); letter-spacing: 0; text-transform: none; color: var(--red); }
.label-for { flex-basis: 100%; font-weight: 500; letter-spacing: .12em; color: var(--muted); }

.statement {
  font: 400 clamp(2.3rem, 10.4vw, 5.25rem)/1.08 var(--serif);
  letter-spacing: -.012em;
  color: var(--ink);
}
.statement ins { display: block; font-style: italic; color: var(--red); }
.statement del {
  color: var(--muted);
  background: var(--strike) no-repeat 0 56% / 100% .46em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.statement em { font-style: italic; color: var(--red); }
.statement-md { font-size: clamp(2.1rem, 8.6vw, 4.1rem); line-height: 1.08; }

/* Correções que se escrevem ao entrar no ecrã */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal] .statement del { background-size: 0% .46em; transition: background-size .75s cubic-bezier(.7, 0, .3, 1) .15s; }
  [data-reveal] .statement ins { opacity: 0; transition: opacity .6s ease .8s; }
  [data-reveal].is-in .statement del { background-size: 100% .46em; }
  [data-reveal].is-in .statement ins { opacity: 1; }
  [data-reveal] .tick path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s cubic-bezier(.6, 0, .3, 1) 1.45s; }
  [data-reveal].is-in .tick path { stroke-dashoffset: 0; }
}

/* Caderno pautado com margem vermelha */
.notebook {
  --lh: 1.08em;
  position: relative;
  font-size: clamp(2.3rem, 10.4vw, 5.25rem);
  padding: var(--lh) 0 calc(var(--lh) - .2em) 30px;
  margin-inline: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
  padding-left: calc(var(--gutter) + 22px);
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--lh) - 1px), #CBD6E4 calc(var(--lh) - 1px) var(--lh));
  background-position: 0 -.2em;
  background-color: var(--paper-raised);
  border-block: 1px solid var(--rule-soft);
}
.notebook::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 8px);
  width: 1.5px; background: var(--red); opacity: .55;
}
.notebook .statement { font-size: 1em; line-height: var(--lh); }
.tick {
  display: inline-block; width: .82em; height: .62em; margin-left: .2em; vertical-align: -.04em;
  overflow: visible; fill: none; stroke: var(--red); stroke-width: 4.6; stroke-linecap: round; stroke-linejoin: round;
}

.cols { display: grid; gap: 48px; margin-top: 40px; }
.intro { font-size: 1.1875rem; line-height: 1.55; color: var(--ink); max-width: 36em; }

.defs { margin-top: 28px; border-top: 1px solid var(--rule); }
.defs > div { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.defs dt { font: 400 1.6rem/1.15 var(--serif); }
.def-n { display: inline-block; min-width: 2rem; font-style: italic; color: var(--red); }
.defs dd { margin-top: 6px; padding-left: 2rem; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.footnote { margin-top: 14px; font-size: .86rem; color: var(--muted); }

.mini-h { margin: 0 0 6px; font: 600 .74rem/1.3 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li {
  counter-increment: st;
  display: grid; grid-template-columns: 2rem 1fr; column-gap: 0;
  padding: 14px 0 15px; border-bottom: 1px solid var(--rule);
}
.steps li::before { content: counter(st); grid-row: span 2; font: italic 400 1.55rem/1.05 var(--serif); color: var(--red); }
.steps strong { font-weight: 600; font-size: 1.02rem; }
.steps span { color: var(--ink-2); font-size: .97rem; line-height: 1.5; }

/* ---------- Traduções ---------- */
.trad-top { display: grid; gap: 40px; }
.trad-statement { max-width: 15em; }

.align { margin: 0; }
.align-svg { width: 100%; height: auto; overflow: visible; }
.al-page { fill: var(--paper-raised); stroke: var(--rule); }
.al-label { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; fill: var(--muted); }
.al-rule { stroke: var(--rule); stroke-width: 1; }
.al-bar rect { fill: var(--ink); opacity: .16; }
.al-bar.is-hi rect { fill: var(--red); opacity: .8; }
.al-link { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: 1.1; stroke-dasharray: 1 0; }
.al-link.is-hi { stroke: var(--red); stroke-opacity: 1; stroke-width: 1.8; }
.al-dots circle { fill: var(--ink); opacity: .45; }
.al-dots circle.is-hi { fill: var(--red); opacity: 1; }
.align figcaption { margin-top: 12px; font: italic 400 1.1rem/1.35 var(--serif); color: var(--muted); }

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .align[data-reveal] .al-link { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
  .align[data-reveal] .al-dots circle { opacity: 0; transition: opacity .4s ease; }
  .align[data-reveal] .al-bar.is-hi rect { transition: opacity .5s ease .9s; opacity: .16; }
  .align.is-in .al-link { stroke-dashoffset: 0; }
  .align.is-in .al-dots circle { opacity: .45; }
  .align.is-in .al-dots circle.is-hi { opacity: 1; transition-delay: .9s; }
  .align.is-in .al-bar.is-hi rect { opacity: .8; }
  .align.is-in .al-link:nth-child(2) { transition-delay: .12s; }
  .align.is-in .al-link:nth-child(3) { transition-delay: .24s; }
  .align.is-in .al-link:nth-child(4) { transition-delay: .36s; }
  .align.is-in .al-link:nth-child(5) { transition-delay: .48s; }
}

/* ---------- A Ilda ---------- */
.ilda-grid { display: grid; gap: 48px; }
.prose { margin-top: 28px; max-width: 36em; }
.prose p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose p:first-child { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); }
.principles { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 2px; font: 400 1.5rem/1.35 var(--serif); }
.pr-n { display: inline-block; min-width: 2.2rem; font-style: italic; color: var(--red); }

/* Ficha de arquivo */
.card {
  --row: 34px;
  position: relative; max-width: 460px;
  padding: 18px 22px 16px;
  background: var(--paper-raised);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgb(24 32 54 / .06), 0 2px 4px rgb(24 32 54 / .04), 0 24px 44px -24px rgb(24 32 54 / .38);
}
.card-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 8px; border-bottom: 2px solid var(--red);
  font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.card-name { margin: 14px -22px 0; padding: 0 22px 12px; border-bottom: 1px solid var(--card-blue); font: 400 2rem/1 var(--serif); }
.card-rows { margin: 0 -22px; }
.card-rows > div { display: grid; grid-template-columns: 5.6rem 1fr; gap: 10px; align-items: baseline; padding: 7px 22px 6px; border-bottom: 1px solid var(--card-blue); }
.card-rows dt { font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-rows dd { font: italic 400 1.25rem/1.3 var(--serif); color: var(--ink); }
.card-rows a { text-decoration-color: var(--rule); text-underline-offset: 3px; }
.card-foot { margin-top: 12px; font-size: .78rem; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { padding: 72px 0 64px; background: var(--ink); color: var(--on-ink); }
.label-dark { border-bottom-color: rgb(246 241 231 / .5); color: var(--on-ink); }
.label-dark .label-n { color: var(--red-on-ink); }
.label-dark .label-for { color: var(--on-ink-2); }
.statement-quote { color: var(--on-ink); font-size: clamp(3rem, 14vw, 7.5rem); line-height: .98; }
.gq { color: var(--red-on-ink); }
.contact-text { margin-top: 22px; max-width: 30em; font-size: 1.125rem; line-height: 1.6; color: var(--on-ink-2); }
.place { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; font-size: .95rem; color: var(--on-ink-2); }
.place .i { width: 18px; height: 18px; margin-top: 2px; color: var(--red-on-ink); }
.contact-grid { display: grid; gap: 40px; }

.topic { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.topic legend { padding: 0; margin-bottom: 10px; font-size: .74rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--on-ink-2); }
.topic-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.topic label { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic label span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 6px 15px;
  border: 1px solid rgb(246 241 231 / .3); border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--on-ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.topic label:hover span { border-color: rgb(246 241 231 / .7); }
.topic input:checked + span { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.topic input:focus-visible + span { outline: 2px solid var(--red-on-ink); outline-offset: 3px; }

.channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgb(246 241 231 / .22); }
.channels li { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgb(246 241 231 / .22); }
.channel {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: 46px 1fr 22px; align-items: center; gap: 14px;
  min-height: 80px; padding: 12px 0;
  text-decoration: none; color: inherit;
}
.ch-ic {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgb(246 241 231 / .32); color: var(--on-ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.ch-ic .i { width: 21px; height: 21px; }
.ch-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.ch-txt { display: flex; flex-direction: column; min-width: 0; }
.ch-label { font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--on-ink-2); }
.ch-value { margin-top: 2px; font: 400 1.6rem/1.15 var(--serif); overflow-wrap: anywhere; }
.ch-email { font-size: 1.35rem; }
.ch-go { width: 22px; height: 22px; color: var(--on-ink-2); transition: transform .25s var(--ease), color .2s; }
.channel:hover .ch-go { transform: translateX(4px); color: var(--red-on-ink); }
.channel:hover .ch-ic:not(.ch-wa) { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.channel:hover .ch-value { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; text-decoration-color: var(--red-on-ink); }

.copy {
  display: none; flex: none;
  min-height: 34px; padding: 4px 12px;
  border: 1px solid rgb(246 241 231 / .3); border-radius: 999px;
  background: transparent; color: var(--on-ink-2); font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.copy:hover { border-color: var(--on-ink); color: var(--on-ink); }
.copy.is-done { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
@media (hover: hover) and (pointer: fine) { .copy { display: inline-flex; align-items: center; } }
.copy-status { min-height: 1.4em; margin-top: 10px; font-size: .85rem; color: var(--on-ink-2); }

.demo-note {
  margin-top: 36px; padding-top: 16px; border-top: 1px dashed rgb(246 241 231 / .25);
  font-size: .82rem; color: var(--on-ink-2);
}

/* ---------- Rodapé ---------- */
.site-footer { padding: 40px 0 112px; background: var(--paper); font-size: .9rem; color: var(--ink-2); }
.foot-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.foot-brand { font: 400 1.6rem/1.1 var(--serif); color: var(--ink); }
.foot-brand span { display: block; margin-top: 6px; font: 600 .66rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.to-top .i { width: 18px; height: 18px; }
.to-top:hover { color: var(--red); }
.foot-demo { margin-top: 18px; max-width: 58em; line-height: 1.6; }
.foot-demo a { font-weight: 600; text-underline-offset: 3px; }
.foot-list { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 12px; }
.foot-list summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
.foot-list summary::-webkit-details-marker { display: none; }
.foot-list summary::before {
  content: "+"; display: grid; place-items: center; flex: none; width: 24px; height: 24px;
  border: 1px solid var(--ink); border-radius: 50%; font: 500 1rem/1 var(--sans); color: var(--ink);
}
.foot-list[open] summary::before { content: "−"; }
.foot-list ul { margin: 6px 0 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.foot-list li::marker { color: var(--red); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--wa); color: #fff; text-decoration: none;
  font-size: .95rem; font-weight: 600;
  box-shadow: 0 2px 4px rgb(10 50 28 / .18), 0 14px 30px -10px rgb(10 50 28 / .55);
  transition: background-color .2s, transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
}
.wa-float .i { width: 27px; height: 27px; }
.wa-float:hover { background: var(--wa-hover); transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa-float-label { display: none; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(12px) scale(.96); }
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: pop .6s var(--ease) .9s both; }
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- Pontos a confirmar ---------- */
.ast { margin-left: .08em; font: 700 .72em/0 var(--sans); color: var(--red); vertical-align: super; }
.contact .ast { color: var(--red-on-ink); }
.tbc {
  border-radius: .2em; padding-inline: .1em; margin-inline: -.1em;
  background-image: linear-gradient(100deg, rgb(var(--hl) / 0) 0%, rgb(var(--hl) / .95) 1.5%, rgb(var(--hl) / .8) 60%, rgb(var(--hl) / .95) 97%, rgb(var(--hl) / 0) 100%);
  background-repeat: no-repeat; background-position: 0 60%; background-size: 0% 78%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .5s var(--ease), color .2s;
}
.show-tbc .tbc { background-size: 100% 78%; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tbc { transition: none; } }

/* ==========================================================================
   Ecrãs maiores
   ========================================================================== */
@media (min-width: 400px) {
  .r-by { display: inline; }
  .rh-country { display: inline; }
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .actions { display: flex; flex-wrap: wrap; }
  .hide-s { display: inline; }
  .ligar-num { display: inline; }
  .label-for { flex-basis: auto; margin-left: auto; }
  .notebook { padding-left: calc(var(--gutter) + 40px); }
  .notebook::before { left: calc(var(--gutter) + 14px); }
  .ch-email { font-size: 1.6rem; }
}

@media (min-width: 760px) {
  .r-more, .r-long { display: inline; }
  .r-short { display: none; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --header-h: 68px; }
  .nav { display: block; margin-left: auto; }
  .nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
  .nav a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px;
    font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--ink-2);
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px;
    background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
  .nav a:hover::after, .nav a[aria-current="true"]::after { transform: none; }
  .header-cta { margin-left: 10px; }

  .hero { padding: 34px 0 104px; }
  .runhead-guide { display: inline; }
  .masthead {
    margin-top: 26px;
    /* numa só linha, à largura da coluna */
    font-size: min(calc((100vw - 2 * var(--gutter)) * .1755), calc(var(--max) * .1755));
    line-height: .9;
  }
  .mh-first, .mh-last { display: inline; }
  .hero-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px;
    margin-top: 44px; padding-top: 0;
  }
  .hero-intro { grid-column: 1 / span 6; }
  .ligar-num { display: none; }
  .senses { grid-column: 7 / -1; }
  .lead { font-size: 1.375rem; }

  .section { padding: 120px 0; }
  .label { margin-bottom: 56px; font-size: .78rem; }
  .cols { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; margin-top: 64px; }
  .col-a { grid-column: 1 / span 6; }
  .col-b { grid-column: 8 / -1; }

  .notebook { margin-inline: 0; padding-left: 96px; padding-right: 32px; border: 1px solid var(--rule-soft); border-radius: 2px; }
  .notebook::before { left: 64px; }

  .trad-top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; }
  .trad-statement { grid-column: 1 / span 7; max-width: none; }
  .trad-statement .statement { font-size: min(4rem, 4.45vw); }
  .align { grid-column: 8 / -1; }
  .s-trad .cols { margin-top: 72px; }

  .ilda-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .ilda-text { grid-column: 1 / span 7; }
  .card { grid-column: 9 / -1; margin-top: 16px; transform: rotate(1.2deg); }

  .contact { padding: 120px 0 88px; }
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; }
  .contact-intro { grid-column: 1 / span 6; }
  .contact-box { grid-column: 8 / -1; }
  .statement-quote { text-indent: -.24em; }

  .site-footer { padding-bottom: 48px; }

  .wa-float { width: auto; height: 50px; padding: 0 20px 0 16px; right: 28px; bottom: 28px; }
  .wa-float .i { width: 23px; height: 23px; }
  .wa-float-label { display: inline; }
}

@media (min-width: 1200px) {
  .statement-quote { font-size: 8.25rem; }
  .ligar-num { display: inline; }
}
@media (min-width: 1400px) {
  .statement-quote { text-indent: -.4em; }
  .sense-term { font-size: 2.75rem; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

/* ---------- Impressão ---------- */
@media print {
  .ribbon, .site-header, .wa-float, .skip, .actions, .copy, .topic { display: none !important; }
  body { background: #fff; }
  .contact { background: #fff; color: #000; }
}
