Files
inbraille/public/style.css
T
Lucas RayanandClaude Opus 5.5 07aaf8e1a7
CI / Trivy (dependências, segredos e configuração) (push) Successful in 1m2s
CI / Testes e imagem Docker (linux/arm64) (push) Successful in 4m24s
Release / Plano (reaproveitar a imagem?) (push) Successful in 5s
Release / ci (push) Skipped
Release / Publica a imagem (linux/arm64) (push) Successful in 18s
Release / Cria a release no Gitea (push) Successful in 4s
feat: novo site e interface; tradução Braille no navegador (1.4.0)
Interface reescrita (design próprio, tema claro/escuro, a11y WCAG 2.2 AA),
seções do site e artigo IDEIA @ CSBC 2025. Tradutor portado para JS com
paridade 100% contra o Python; sem Tailwind nem axios.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 19:51:53 -03:00

867 lines
47 KiB
CSS

/* InBraille — "papel gofrado". Sem dependência de Tailwind. */
@font-face {
font-family: "InBraille Braille";
src: url("/public/fonts/NotoSansSymbols2-Braille.woff2") format("woff2");
unicode-range: U+2800-28FF;
font-display: block;
}
:root {
--font-sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif, "PingFang SC", "Noto Sans SC", "Microsoft YaHei";
--font-mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
--font-braille: "InBraille Braille", "Noto Sans Symbols 2", sans-serif;
--paper: #EEF1F6; --surface: #FFFFFF; --surface-2: #F6F8FB; --ink: #13213A; --ink-2: #44506A;
--line: #C9D1DF; --accent: #1F4FD8; --accent-ink: #FFFFFF; --accent-soft: #E3EAFE;
--dot: #F2A93B; --dot-ink: #5A3A00; --success: #13724A; --warning-bg: #FFF4DC; --warning-ink: #6B4300;
--danger: #B42318; --info-bg: #E8EFFE; --info-ink: #1A3A9C; --focus: #1F4FD8;
--success-ink: #FFFFFF;
--header-bg: rgb(238 241 246 / .78);
--space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
--radius-s: 8px; --radius-m: 14px; --radius-l: 22px; --radius-pill: 999px;
--shadow-1: 0 1px 2px rgb(19 33 58 / .08);
--shadow-2: 0 6px 24px -8px rgb(19 33 58 / .18);
--emboss: inset 0 1px 0 rgb(255 255 255 / .7), 0 1px 2px rgb(19 33 58 / .25);
--ease: cubic-bezier(.2, .7, .2, 1); --dur-1: 120ms; --dur-2: 220ms; --dur-3: 420ms;
--fs-0: .875rem; --fs-1: 1rem; --fs-2: 1.125rem; --fs-3: 1.375rem;
--fs-4: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
--fs-hero: clamp(2.5rem, 1.6rem + 4vw, 5rem);
--fs-braille: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
--header-h: 64px;
--section-pad: clamp(64px, 8vw, 112px);
--gutter: 24px;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--paper: #0D1320; --surface: #151E30; --surface-2: #1B263B; --ink: #E9EDF5; --ink-2: #AEB8CC; --line: #33415C;
--accent: #8FA9FF; --accent-ink: #0D1320; --accent-soft: #1E2B4D; --dot: #F5B54F; --dot-ink: #F5B54F;
--success: #5FD39A; --success-ink: #0D1320; --warning-bg: #3A2A0A; --warning-ink: #FFD58A; --danger: #FF8A80;
--info-bg: #17244A; --info-ink: #C3D2FF; --focus: #8FA9FF;
--header-bg: rgb(13 19 32 / .78);
--emboss: inset 0 1px 0 rgb(255 255 255 / .35), 0 1px 2px rgb(0 0 0 / .6);
--shadow-1: 0 1px 2px rgb(0 0 0 / .4);
--shadow-2: 0 10px 30px -10px rgb(0 0 0 / .6);
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--paper: #0D1320; --surface: #151E30; --surface-2: #1B263B; --ink: #E9EDF5; --ink-2: #AEB8CC; --line: #33415C;
--accent: #8FA9FF; --accent-ink: #0D1320; --accent-soft: #1E2B4D; --dot: #F5B54F; --dot-ink: #F5B54F;
--success: #5FD39A; --success-ink: #0D1320; --warning-bg: #3A2A0A; --warning-ink: #FFD58A; --danger: #FF8A80;
--info-bg: #17244A; --info-ink: #C3D2FF; --focus: #8FA9FF;
--header-bg: rgb(13 19 32 / .78);
--emboss: inset 0 1px 0 rgb(255 255 255 / .35), 0 1px 2px rgb(0 0 0 / .6);
--shadow-1: 0 1px 2px rgb(0 0 0 / .4);
--shadow-2: 0 10px 30px -10px rgb(0 0 0 / .6);
color-scheme: dark;
}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: var(--font-sans);
font-size: 1.0625rem;
line-height: 1.6;
text-align: left;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; font-weight: 800; text-wrap: balance; }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); font-weight: 600; }
p { margin: 0 0 var(--space-4); }
p, li, dd { max-width: 68ch; text-wrap: pretty; }
img, svg, canvas { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
i.fas, i.fa, i[class*="fa-"] { flex: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Utilitárias usadas pelo JS */
.hidden { display: none !important; }
.opacity-50 { opacity: .5; }
.pointer-events-none { pointer-events: none; }
.rotate-180 { transform: rotate(180deg); }
.sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.fade-in { animation: fade-in var(--dur-3) var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.input-attention { animation: attention 1.1s var(--ease) 2; }
@keyframes attention {
0%, 100% { border-color: var(--ink-2); box-shadow: 0 0 0 0 transparent; }
50% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
}
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
/* ---------- Cela Braille (assinatura) ---------- */
.cell {
--d: 8px; --g: 4px;
display: inline-grid;
grid-template-columns: repeat(2, var(--d));
grid-template-rows: repeat(3, var(--d));
gap: var(--g);
flex: none;
vertical-align: middle;
}
.cell__dot {
width: var(--d); height: var(--d);
border-radius: 50%;
border: 1.5px solid var(--line);
background: transparent;
transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.cell__dot.is-on {
border-color: transparent;
background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--dot) 60%, #fff) 0 18%, var(--dot) 62%);
box-shadow: var(--emboss);
}
/* DOM: pontos na ordem de grade 1,4 / 2,5 / 3,6 (linha a linha) */
.brand .cell { --d: 9px; --g: 3px; }
.tab[aria-selected="true"] .cell .cell__dot:nth-child(2n+1),
.tab.tab-active .cell .cell__dot:nth-child(2n+1) {
border-color: transparent;
background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--dot) 60%, #fff) 0 18%, var(--dot) 62%);
box-shadow: var(--emboss);
}
.stage-empty .cell__dot { border-color: var(--ink-2); opacity: .55; }
.stage-empty .cell { --d: 14px; --g: 6px; }
/* ---------- Skip link ---------- */
.skip-link {
position: fixed; top: 8px; left: 8px; z-index: 200;
padding: var(--space-3) var(--space-5);
background: var(--accent); color: var(--accent-ink);
border-radius: var(--radius-pill); font-weight: 600; text-decoration: none;
transform: translateY(-200%);
transition: transform var(--dur-2) var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; }
/* ---------- Header ---------- */
.site-header {
position: sticky; top: 0; z-index: 100;
min-height: var(--header-h);
background: var(--header-bg);
-webkit-backdrop-filter: saturate(160%) blur(16px);
backdrop-filter: saturate(160%) blur(16px);
border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header__inner {
display: flex; align-items: center; gap: var(--space-5);
width: 100%; max-width: 1200px; min-height: var(--header-h); margin-inline: auto; padding-inline: var(--gutter);
}
.brand {
display: inline-flex; align-items: center; gap: var(--space-3);
min-height: 44px; color: var(--ink); text-decoration: none; flex: none;
}
.brand__name { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; flex: none; }
.site-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-1); flex-wrap: nowrap; }
.site-nav li { max-width: none; }
.site-nav a {
display: inline-flex; align-items: center; min-height: 44px;
padding: 0 var(--space-3);
color: var(--ink-2); font-size: var(--fs-0); font-weight: 600; text-decoration: none;
border-radius: var(--radius-pill);
white-space: nowrap;
transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.site-nav a:hover { color: var(--ink); background: var(--accent-soft); }
.site-nav a[aria-current="true"], .site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
#nav_toggle { display: none; }
.header-cta { display: inline-flex; min-height: 40px; padding: 0 var(--space-4); font-size: var(--fs-0); margin-right: var(--space-2); }
.icon-btn {
display: inline-grid; place-items: center;
min-width: 44px; min-height: 44px; padding: 0;
background: transparent; color: var(--ink);
border: 1.5px solid transparent; border-radius: var(--radius-pill);
transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); border-color: var(--line); }
.icon-btn[aria-pressed="true"], .icon-btn[aria-expanded="true"] { background: var(--accent-soft); }
/* Menu de idioma */
.lang-menu { position: relative; }
.lang-menu summary {
list-style: none; display: inline-flex; align-items: center; gap: var(--space-2);
min-height: 44px; padding: 0 var(--space-4);
border: 1.5px solid var(--line); border-radius: var(--radius-pill);
background: var(--surface); color: var(--ink); font-size: var(--fs-0); font-weight: 600;
cursor: pointer; user-select: none;
transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--ink-2); }
.lang-caret { font-size: .7em; transition: transform var(--dur-2) var(--ease); }
.lang-menu[open] .lang-caret { transform: rotate(180deg); }
.lang-menu__list {
position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
min-width: 11rem; padding: var(--space-2);
display: flex; flex-direction: column; gap: 2px;
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
box-shadow: var(--shadow-2);
animation: fade-in var(--dur-2) var(--ease) both;
}
.lang-menu__list button {
display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
width: 100%; min-height: 44px; padding: 0 var(--space-4);
background: transparent; border: 0; border-radius: var(--radius-s);
text-align: left; color: var(--ink); font-weight: 600;
}
.lang-menu__list button:hover { background: var(--accent-soft); }
.lang-menu__list button[aria-current="true"] { background: var(--accent-soft); color: var(--accent); }
.lang-menu__list button[aria-current="true"]::after { content: "\2713"; }
/* ---------- Botões ---------- */
.btn {
--btn-bg: var(--surface); --btn-ink: var(--ink); --btn-bd: var(--ink-2);
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
min-height: 48px; padding: 0 var(--space-5);
background: var(--btn-bg); color: var(--btn-ink);
border: 2px solid var(--btn-bd); border-radius: var(--radius-pill);
font-weight: 600; font-size: var(--fs-1); line-height: 1.2; text-decoration: none; text-align: center;
transition: transform var(--dur-1) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--primary, .btn--convert { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-bd: var(--accent); }
.btn--secondary { --btn-bg: var(--surface); --btn-bd: var(--ink-2); }
.btn--secondary:hover { --btn-bg: var(--accent-soft); --btn-bd: var(--accent); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-ink: var(--ink-2); padding: 0 var(--space-4); min-height: 44px; }
.btn--ghost:hover { --btn-bg: var(--accent-soft); --btn-ink: var(--ink); box-shadow: none; }
.btn--success { --btn-bg: var(--success); --btn-ink: var(--success-ink); --btn-bd: var(--success); }
.btn--lg { min-height: 56px; padding: 0 var(--space-6); font-size: var(--fs-2); }
.btn[disabled], .btn:disabled { cursor: not-allowed; opacity: .6; transform: none; box-shadow: none; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.btn--convert { font-weight: 800; }
/* Cela do botão Gerar STL */
#stl_button .cell { --d: 8px; --g: 4px; }
#stl_button .cell__dot { border-color: color-mix(in srgb, var(--accent-ink) 55%, transparent); }
#stl_button .cell__dot.is-on, #stl_button:not([aria-busy="true"]) .cell__dot:nth-child(2n+1) {
border-color: transparent; background: var(--dot); box-shadow: var(--emboss);
}
#stl_button[aria-busy="true"] .cell__dot {
background: var(--dot); border-color: transparent;
animation: dot-pulse 960ms var(--ease) infinite;
}
#stl_button[aria-busy="true"] .cell__dot:nth-child(1) { animation-delay: 0ms; }
#stl_button[aria-busy="true"] .cell__dot:nth-child(2) { animation-delay: 80ms; }
#stl_button[aria-busy="true"] .cell__dot:nth-child(3) { animation-delay: 160ms; }
#stl_button[aria-busy="true"] .cell__dot:nth-child(4) { animation-delay: 240ms; }
#stl_button[aria-busy="true"] .cell__dot:nth-child(5) { animation-delay: 320ms; }
#stl_button[aria-busy="true"] .cell__dot:nth-child(6) { animation-delay: 400ms; }
@keyframes dot-pulse { 0%, 100% { opacity: .2; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.1); } }
/* ---------- Seções e eyebrow ---------- */
section { scroll-margin-top: var(--header-h); }
.section--alt { background: var(--surface); }
.eyebrow {
display: block; margin: 0 0 var(--space-3);
font-family: var(--font-mono); font-size: var(--fs-0); font-weight: 500;
text-transform: uppercase; letter-spacing: .12em; color: var(--accent);
}
main > section { padding-block: var(--section-pad); }
.container > h2 { margin-bottom: var(--space-5); max-width: 24ch; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); letter-spacing: -.025em; }
.section-lede { font-size: var(--fs-2); color: var(--ink-2); }
/* Reveal: só com .js e sem redução de movimento */
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(16px); }
.js .reveal { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .js .reveal:not(.is-visible) { opacity: 1; transform: none; } }
/* ---------- Hero ---------- */
.hero {
position: relative; overflow: hidden;
background:
radial-gradient(52rem 30rem at 88% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
radial-gradient(40rem 24rem at 0% 100%, color-mix(in srgb, var(--dot) 10%, transparent), transparent 70%),
var(--paper);
}
main > section.hero { padding-top: clamp(32px, 4vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero__inner {
display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.hero .eyebrow { margin: 0; display: inline-flex; align-items: center; gap: var(--space-3); }
.hero .eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); box-shadow: var(--emboss); }
.hero h1 { font-size: clamp(3rem, 1.2rem + 6.4vw, 6.5rem); font-weight: 800; letter-spacing: -.045em; line-height: .96; max-width: 9ch; }
.hero .lede { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); color: var(--ink-2); max-width: 36ch; margin: 0; line-height: 1.45; }
.hero__cta, .hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero__cta .btn { min-height: 56px; padding: 0 var(--space-6); font-size: var(--fs-2); }
/* Placa tátil do hero */
.hero-ribbon {
position: relative; justify-self: center; width: 100%; max-width: 460px;
display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px) clamp(12px, 2vw, 24px);
padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 48px) clamp(24px, 4vw, 44px);
background: linear-gradient(155deg, color-mix(in srgb, var(--surface) 92%, #fff) 0%, var(--surface) 55%, var(--surface-2) 100%);
border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 28px;
box-shadow: inset 0 1px 0 rgb(255 255 255 / .8), inset 0 -2px 6px rgb(19 33 58 / .06), 0 2px 4px rgb(19 33 58 / .06), 0 40px 80px -30px rgb(19 33 58 / .35);
transform: rotate(-2.5deg);
}
.hero-ribbon::after {
content: ""; position: absolute; top: 18px; right: 18px; width: 10px; height: 10px; border-radius: 50%;
background: var(--paper); box-shadow: inset 0 1px 2px rgb(19 33 58 / .35), 0 1px 0 rgb(255 255 255 / .6);
}
.hero-ribbon__cells { display: contents; }
.hero-ribbon .cell { --d: clamp(14px, 2.2vw, 22px); --g: clamp(7px, 1vw, 12px); justify-self: center; }
.hero-ribbon .cell__dot { border: 0; background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: inset 0 2px 3px rgb(19 33 58 / .22), 0 1px 0 rgb(255 255 255 / .7); }
.hero-ribbon .cell__dot.is-on {
background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--dot) 45%, #fff) 0 16%, var(--dot) 58%, color-mix(in srgb, var(--dot) 78%, #7a4a00) 100%);
box-shadow: 0 3px 6px rgb(90 58 0 / .38), 0 1px 1px rgb(90 58 0 / .5), inset 0 1px 1px rgb(255 255 255 / .55);
animation: ribbon-in 700ms var(--ease) both;
}
.hero-ribbon .cell:nth-child(1) .cell__dot { animation-delay: 0ms; }
.hero-ribbon .cell:nth-child(2) .cell__dot { animation-delay: 70ms; }
.hero-ribbon .cell:nth-child(3) .cell__dot { animation-delay: 140ms; }
.hero-ribbon .cell:nth-child(4) .cell__dot { animation-delay: 210ms; }
.hero-ribbon .cell:nth-child(5) .cell__dot { animation-delay: 280ms; }
.hero-ribbon .cell:nth-child(6) .cell__dot { animation-delay: 350ms; }
.hero-ribbon .cell:nth-child(7) .cell__dot { animation-delay: 420ms; }
.hero-ribbon .cell:nth-child(8) .cell__dot { animation-delay: 490ms; }
.hero-ribbon .cell:nth-child(9) .cell__dot { animation-delay: 560ms; }
.hero-ribbon .cell:nth-child(10) .cell__dot { animation-delay: 630ms; }
.hero-ribbon .cell:nth-child(11) .cell__dot { animation-delay: 700ms; }
@keyframes ribbon-in {
from { opacity: 0; transform: scale(.3); }
to { opacity: 1; transform: none; }
}
.hero-ribbon__caption {
grid-column: 1 / -1; margin-top: var(--space-2); padding-top: var(--space-4);
border-top: 1px solid var(--line);
font-family: var(--font-mono); font-size: var(--fs-0); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2);
}
.hero__facts {
list-style: none; margin: var(--space-3) 0 0; padding: 0;
display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
}
.hero__facts li { max-width: none; display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-0); font-weight: 600; color: var(--ink-2); }
.hero__facts li i { display: none; }
.hero__facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); box-shadow: var(--emboss); flex: none; }
/* ---------- Conversor ---------- */
.converter { background: var(--paper); }
main > section.converter { padding-top: var(--space-5); padding-bottom: clamp(48px, 5vw, 72px); }
.converter > h2 { margin-bottom: var(--space-3); }
.converter .lede { color: var(--ink-2); font-size: var(--fs-2); max-width: 56ch; margin-bottom: var(--space-5); }
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-5); }
.mode-tabs {
display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr));
gap: var(--space-1); padding: var(--space-1);
background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.tab {
display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
min-height: 48px; padding: 0 var(--space-5);
background: transparent; color: var(--ink-2);
border: 0; border-radius: var(--radius-pill); font-weight: 600;
transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab-active {
background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1.5px var(--ink-2);
}
/* Alfabeto: segmented control */
.alphabet { margin: 0; padding: 0; border: 0; min-width: 0; }
.alphabet legend { padding: 0; margin-bottom: var(--space-2); font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.alphabet__options {
display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-1); padding: var(--space-1);
background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.alphabet__option { position: relative; display: block; }
.alphabet input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.alphabet label {
display: flex; align-items: center; justify-content: center;
min-height: 48px; padding: 0 var(--space-5); white-space: nowrap;
background: transparent; color: var(--ink-2);
border-radius: var(--radius-pill);
font-weight: 600; cursor: pointer; user-select: none;
transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.alphabet label:hover { color: var(--ink); }
.alphabet label:has(+ *), .alphabet input:checked + label { }
.alphabet input:checked + label { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.alphabet__option:has(input:focus-visible) label { outline: 3px solid var(--focus); outline-offset: 2px; }
.alphabet input:focus-visible { outline: none; }
.alphabet input:disabled + label { opacity: .5; cursor: not-allowed; }
/* Avisos */
.notice {
display: flex; gap: var(--space-3); align-items: flex-start;
margin: 0 0 var(--space-5); padding: var(--space-4) var(--space-5);
border-radius: var(--radius-m); border: 1px solid transparent;
font-size: var(--fs-1); line-height: 1.5;
}
.notice > i { margin-top: .25em; }
.notice p { margin: 0 0 var(--space-2); }
.notice p:last-child { margin-bottom: 0; }
.notice--info { background: var(--info-bg); color: var(--info-ink); border-color: color-mix(in srgb, var(--info-ink) 25%, transparent); }
.notice--warning { background: var(--warning-bg); color: var(--warning-ink); border-color: color-mix(in srgb, var(--warning-ink) 30%, transparent); }
/* Workbench */
.workbench {
display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
gap: var(--space-5); align-items: stretch;
padding: var(--space-5);
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
box-shadow: var(--shadow-2);
}
.pane { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.pane > label { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--fs-1); color: var(--ink); }
.pane > label i { color: var(--ink-2); }
textarea, .braille-text {
width: 100%; min-height: 12rem; padding: var(--space-4);
background: var(--surface); color: var(--ink);
border: 2px solid var(--ink-2); border-radius: var(--radius-m);
font-family: var(--font-sans); font-size: var(--fs-2); line-height: 1.6;
resize: vertical;
transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.pane textarea { flex: 1; }
textarea::placeholder { color: var(--ink-2); opacity: .8; }
textarea:hover { border-color: var(--ink); }
textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea[readonly] { background: var(--surface-2); }
.braille-text, #output_text.braille-text, #input_text.braille-text {
font-family: var(--font-braille); font-size: var(--fs-braille); letter-spacing: .08em; line-height: 1.5;
}
.pane__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.counter { font-family: var(--font-mono); font-size: var(--fs-0); color: var(--ink-2); }
.hint { margin: 0; font-size: var(--fs-0); color: var(--ink-2); max-width: none; }
.btn--convert {
align-self: center; flex-direction: column; gap: var(--space-2);
width: 88px; min-height: 88px; padding: var(--space-3) var(--space-2);
border-radius: 50%; font-size: var(--fs-0); line-height: 1.15;
}
.btn--convert i { font-size: 1.5rem; }
/* ---------- Exportar ---------- */
.export { background: var(--surface); border-top: 1px solid var(--line); }
.export > h2 { margin-bottom: var(--space-6); }
.export__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-6); align-items: start; }
.export__settings { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.export__stage { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.before-print { margin: 0; display: block; }
.before-print summary { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; font-weight: 800; min-height: 32px; list-style: none; }
.before-print summary::-webkit-details-marker { display: none; }
.before-print summary::before { content: "\25B8"; transition: transform var(--dur-2) var(--ease); }
.before-print[open] summary::before { transform: rotate(90deg); }
.before-print p { margin-top: var(--space-3); }
.options { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface-2); overflow: hidden; }
.options__toggle {
display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 56px; padding: 0 var(--space-5);
background: transparent; border: 0; text-align: left; font-weight: 600; color: var(--ink);
}
.options__toggle:hover { background: var(--accent-soft); }
.options__toggle > span { flex: 1; }
.options__toggle .fa-chevron-down { transition: transform var(--dur-2) var(--ease); }
.options__toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.options__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3);
align-items: start; padding: 0 var(--space-4) var(--space-4); }
.options__body:not(.hidden) { padding-top: var(--space-1); }
.option-card {
display: grid; gap: var(--space-2); padding: var(--space-4);
background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
transition: opacity var(--dur-2) var(--ease);
}
.option-card[aria-disabled="true"] { opacity: .5; }
.option-card label { font-weight: 600; }
.option-card p { margin: 0; font-size: var(--fs-0); color: var(--ink-2); max-width: none; }
.option-card input[type="number"], .option-card select {
width: 100%; min-height: 44px; padding: 0 var(--space-3);
background: var(--surface); color: var(--ink);
border: 2px solid var(--ink-2); border-radius: var(--radius-s);
}
.option-card input:focus-visible, .option-card select:focus-visible { border-color: var(--accent); }
.option-card input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: var(--fs-0); font-weight: 600; }
/* Switch (checkbox role=switch) */
input[type="checkbox"][role="switch"] {
appearance: none; -webkit-appearance: none; flex: none;
position: relative; width: 52px; height: 30px; margin: 0;
background: var(--surface-2); border: 2px solid var(--ink-2); border-radius: var(--radius-pill);
cursor: pointer; transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
input[type="checkbox"][role="switch"]::after {
content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
background: var(--ink-2); transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
input[type="checkbox"][role="switch"]:checked { background: var(--accent); border-color: var(--accent); }
input[type="checkbox"][role="switch"]:checked::after { transform: translateX(22px); background: var(--accent-ink); }
input[type="checkbox"][role="switch"]:disabled { opacity: .5; cursor: not-allowed; }
.option-card--wide { grid-column: 1 / -1; }
.option-card__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.option-card__row label { flex: 1; min-width: 0; }
/* Palco */
.stage { position: relative; display: flex; flex-direction: column; gap: var(--space-3); }
.stage > h3 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-2); font-weight: 600; }
.stage__canvas {
position: relative; width: 100%; height: 420px; overflow: hidden;
background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
box-shadow: inset 0 2px 8px rgb(19 33 58 / .08);
touch-action: pan-y;
}
.stage__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
#stl_preview.is-loading .stage__canvas { opacity: .55; }
#stl_preview.is-loading::after {
content: ""; position: absolute; inset: 0; border-radius: var(--radius-l); pointer-events: none;
background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 14%, transparent) 50%, transparent 70%);
background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.is-loading { cursor: progress; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.stage-empty {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4);
min-height: 420px; padding: var(--space-6); text-align: center;
background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius-l);
color: var(--ink-2);
}
.stage-empty p { margin: 0; max-width: 32ch; }
.stage__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.stage__actions .btn { flex: 1 1 14rem; }
/* ---------- Como funciona ---------- */
.steps { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); counter-reset: step; }
.steps > li {
position: relative; counter-increment: step; max-width: none;
display: flex; flex-direction: column; gap: var(--space-3);
padding: var(--space-6) var(--space-5) var(--space-5);
background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l);
box-shadow: var(--shadow-1);
}
.steps > li::before {
content: counter(step, decimal-leading-zero);
font-family: var(--font-mono); font-size: var(--fs-0); letter-spacing: .1em; color: var(--accent);
position: absolute; top: var(--space-5); right: var(--space-5);
}
.steps .cell { --d: 12px; --g: 6px; margin-bottom: var(--space-2); }
.steps h3 { font-size: var(--fs-3); }
.steps p { margin: 0; color: var(--ink-2); }
/* ---------- Impressão 3D ---------- */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }
.specs > div {
padding: var(--space-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m);
display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-2);
}
.specs dt { font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.specs dd { margin: 0; font-size: var(--fs-3); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.tips, .print-tips { padding: var(--space-5) var(--space-6); background: var(--accent-soft); border-radius: var(--radius-l); }
.tips h3, .print-tips h3 { font-size: var(--fs-2); margin-bottom: var(--space-3); }
#impressao-3d ul { margin: 0; padding-left: 1.25em; }
.prose { font-size: var(--fs-2); color: var(--ink-2); max-width: 60ch; }
#impressao-3d li { margin-bottom: var(--space-2); }
#impressao-3d li::marker { color: var(--accent); }
/* ---------- Privacidade (invertida) ---------- */
.privacy, main > section.privacy { background: var(--ink); color: var(--paper); }
.privacy .eyebrow { color: var(--dot); }
.privacy h2 { color: var(--paper); }
.privacy p { color: color-mix(in srgb, var(--paper) 88%, transparent); font-size: var(--fs-2); }
.privacy a { color: inherit; }
.privacy :focus-visible { outline-color: var(--dot); }
.privacy__icon, .privacy .fa-lock {
display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: var(--space-5);
border-radius: 50%; background: color-mix(in srgb, var(--paper) 12%, transparent); color: var(--dot); font-size: 1.5rem;
}
/* ---------- Artigo ---------- */
.paper { background: var(--paper); }
.paper__card, .paper > article, .paper > div.paper__body {
margin-top: var(--space-5); padding: var(--space-6);
background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
border-radius: var(--radius-m); box-shadow: var(--shadow-1); min-width: 0;
}
.paper__title { display: block; font-size: var(--fs-3); font-weight: 800; line-height: 1.25; margin-bottom: var(--space-3); }
.paper__authors, .paper__venue { display: block; color: var(--ink-2); margin-bottom: var(--space-2); }
.paper__doi { font-family: var(--font-mono); font-size: var(--fs-0); }
.paper__summary { margin-top: var(--space-4); }
.paper__lang-note, #paper_lang_note {
display: inline-flex; align-items: center; margin: var(--space-2) 0 0; padding: 2px var(--space-3);
background: var(--accent-soft); color: var(--info-ink); border-radius: var(--radius-pill); font-size: var(--fs-0); font-weight: 600;
}
.paper__lang-note:empty, #paper_lang_note:empty { display: none; }
.paper__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0; }
.paper__actions .btn { min-height: 48px; }
.paper__actions a.btn { text-decoration: none; }
dl.paper__meta {
display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-3) var(--space-5);
margin: var(--space-5) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--line);
}
dl.paper__meta > div { min-width: 0; }
dl.paper__meta dt { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 2px; }
dl.paper__meta dd { margin: 0; font-weight: 600; max-width: none; overflow-wrap: anywhere; }
/* Abas de citação BibTeX / ABNT */
.paper [role="tablist"] {
display: inline-flex; gap: var(--space-1); padding: var(--space-1); margin: var(--space-5) 0 var(--space-3);
background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-pill); max-width: 100%;
}
.paper [role="tablist"] [role="tab"] {
display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--space-5);
background: transparent; color: var(--ink-2); border: 0; border-radius: var(--radius-pill);
font-family: var(--font-mono); font-size: var(--fs-0); font-weight: 500; letter-spacing: .06em;
transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease);
}
.paper [role="tablist"] [role="tab"]:hover { color: var(--ink); }
.paper [role="tablist"] [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.paper [role="tabpanel"] { min-width: 0; }
.paper__cite { margin: 0; min-width: 0; }
.paper figure { margin: var(--space-3) 0 0; min-width: 0; max-width: 100%; }
.paper figcaption, #bibtex_label, #abnt_label {
font-family: var(--font-mono); font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: var(--space-2);
}
.paper pre {
margin: 0; padding: var(--space-4); max-width: 100%;
overflow-x: auto; -webkit-overflow-scrolling: touch;
background: var(--surface-2); color: var(--ink);
border: 1px solid var(--line); border-radius: var(--radius-s);
font-family: var(--font-mono); font-size: .875rem; line-height: 1.6; tab-size: 2; white-space: pre;
}
.paper #abnt_block { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto; }
.paper code { font-family: inherit; }
.paper .btn[id^="copy_"] { margin-top: var(--space-3); }
/* ---------- Sobre ---------- */
#sobre .about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-6); }
.about__block { padding: var(--space-6); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); min-width: 0; }
.about__block > :last-child { margin-bottom: 0; }
#sobre h3 { margin: 0 0 var(--space-3); font-size: var(--fs-3); }
.link-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.link-list li { max-width: none; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
/* ---------- FAQ ---------- */
#faq details { max-width: 68ch; border-bottom: 1px solid var(--line); }
#faq details:first-of-type { border-top: 1px solid var(--line); }
#faq summary {
display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
min-height: 56px; padding: var(--space-3) 0; cursor: pointer; list-style: none;
font-size: var(--fs-2); font-weight: 600;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px;
border: 1.5px solid var(--ink-2); border-radius: 50%; font-weight: 400; font-size: 1.25rem; line-height: 1;
transition: background var(--dur-2) var(--ease);
}
#faq details[open] summary::after { content: "\2212"; background: var(--accent-soft); }
#faq summary:hover { color: var(--accent); }
#faq details > :not(summary) { color: var(--ink-2); }
#faq details > :last-child { margin-bottom: var(--space-5); }
#faq details[open] > :not(summary) { animation: fade-in var(--dur-2) var(--ease) both; }
/* ---------- Footer ---------- */
.site-footer {
padding: var(--space-7) 0 var(--space-5);
background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2);
}
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-6); }
.site-footer .brand { margin-bottom: var(--space-3); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); }
.site-footer__bottom p { margin: 0; }
.site-footer__badge { display: inline-block; margin-top: var(--space-3); min-height: 0 !important; }
.site-footer__badge img { display: block; height: auto; max-width: 180px; }
.site-footer h2, .site-footer h3 { font-family: var(--font-mono); font-size: var(--fs-0); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { max-width: none; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.site-footer p { max-width: 36ch; }
.site-footer__bottom {
margin: var(--space-6) 0 0; padding-top: var(--space-5); border-top: 1px solid var(--line);
font-size: var(--fs-0); max-width: none;
}
/* ---------- Toasts ---------- */
#toast-container {
position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 300;
display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-end;
width: min(26rem, calc(100vw - 32px)); pointer-events: none;
}
.toast {
position: relative; display: flex; align-items: flex-start; gap: var(--space-3);
width: 100%; padding: var(--space-4) var(--space-5);
background: var(--surface); color: var(--ink);
border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius-m);
box-shadow: var(--shadow-2); pointer-events: auto;
opacity: 0; transform: translateY(8px);
transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
overflow-wrap: anywhere;
}
.toast.show { opacity: 1; transform: none; }
.toast > i { margin-top: .2em; }
.toast > span { flex: 1; min-width: 0; }
.toast button {
flex: none; min-width: 44px; min-height: 44px; margin: -12px -16px -12px 0;
background: transparent; border: 0; border-radius: var(--radius-pill); color: var(--ink-2); font-size: 1.25rem; line-height: 1;
}
.toast button:hover { background: var(--accent-soft); color: var(--ink); }
.toast-info { border-left-color: var(--accent); }
.toast-info > i { color: var(--accent); }
.toast-success { border-left-color: var(--success); }
.toast-success > i { color: var(--success); }
.toast-warning { border-left-color: var(--dot); background: var(--warning-bg); color: var(--warning-ink); }
.toast-warning button { color: var(--warning-ink); }
.toast-error { border-left-color: var(--danger); }
.toast-error > i { color: var(--danger); }
/* ---------- Responsivo ---------- */
@media (max-width: 1179px) {
.header-cta { display: none; }
.site-nav a { padding: 0 var(--space-2); }
}
@media (max-width: 1099px) {
#current-lang-label { display: none; }
.lang-menu summary { padding: 0 var(--space-3); }
}
@media (max-width: 1023px) {
.hero__inner { grid-template-columns: 1fr; }
.hero h1 { max-width: 12ch; }
.hero-ribbon { justify-self: start; max-width: 420px; }
.export__grid { grid-template-columns: 1fr; }
.export__stage { position: static; }
.workbench { grid-template-columns: 1fr 1fr; }
.workbench .btn--convert {
grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 56px; border-radius: var(--radius-pill);
flex-direction: row; font-size: var(--fs-1); gap: var(--space-3);
}
.workbench .btn--convert i { font-size: 1.125rem; }
.site-footer__grid { grid-template-columns: 1fr 1fr; }
.site-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
#nav_toggle { display: inline-grid; margin-left: auto; }
.site-header__actions { margin-left: 0; }
.site-nav {
position: absolute; top: 100%; left: 0; right: 0; margin: 0;
background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
padding: var(--space-3) var(--gutter) var(--space-5);
display: none;
}
.nav-open .site-nav, .site-nav.nav-open { display: block; animation: fade-in var(--dur-2) var(--ease) both; }
.site-nav ul { flex-direction: column; }
.site-nav a { width: 100%; font-size: var(--fs-1); padding: 0 var(--space-4); border-radius: var(--radius-s); }
.site-header__inner { gap: var(--space-2); }
.site-header__actions { gap: var(--space-1); }
.steps { grid-template-columns: 1fr; }
#sobre .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
:root { --gutter: 16px; --section-pad: 56px; }
body { font-size: 1rem; }
.brand__name { font-size: 1.125rem; }
.hero h1 { max-width: none; font-size: clamp(2.75rem, 14vw, 4rem); }
.hero__cta .btn, .hero__actions .btn { flex: 1 1 100%; }
.hero-ribbon { justify-self: stretch; max-width: none; padding: 24px 16px 18px; gap: 18px 6px; grid-template-columns: repeat(6, 1fr); transform: rotate(-1.5deg); }
.hero-ribbon .cell { --d: 11px; --g: 6px; }
.mode-tabs, .alphabet__options { display: grid; width: 100%; }
.controls { flex-direction: column; align-items: stretch; }
.tab { padding: 0 var(--space-3); font-size: var(--fs-0); }
.workbench { grid-template-columns: 1fr; padding: var(--space-4); gap: var(--space-4); border-radius: var(--radius-m); }
.workbench .btn--convert { grid-column: auto; grid-row: auto; }
.stage__canvas { height: 280px; }
.stage-empty { min-height: 280px; padding: var(--space-5); }
.stage__actions .btn, #stl_button, #download_stl_button { width: 100%; flex-basis: 100%; min-height: 48px; }
.paper__card, .paper > article, .paper > div.paper__body { padding: var(--space-4); }
.paper__actions .btn { flex: 1 1 100%; }
.paper [role="tablist"] { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
dl.paper__meta { grid-template-columns: 1fr 1fr; }
.site-footer__grid { grid-template-columns: 1fr; }
#toast-container { left: 16px; right: 16px; bottom: 16px; width: auto; align-items: stretch; }
.specs { grid-template-columns: 1fr; }
.about__block, .tips { padding: var(--space-5) var(--space-4); }
}
@media (max-width: 479px) {
.options__body { grid-template-columns: 1fr; }
.alphabet__options { grid-auto-flow: row; border-radius: var(--radius-m); }
.alphabet label { justify-content: flex-start; }
}
/* ---------- Preferências do usuário ---------- */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: .01ms !important; animation-iteration-count: 1 !important;
transition-duration: .01ms !important; scroll-behavior: auto !important;
}
/* Cela de carregamento estática, com todos os pontos acesos */
#stl_button[aria-busy="true"] .cell__dot { opacity: 1; transform: none; background: var(--dot); }
.hero-ribbon .cell__dot.is-on { animation: none; opacity: 1; }
#stl_preview.is-loading::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
.site-header { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
.site-header { background: Canvas; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid CanvasText; }
.btn, .tab, .icon-btn, .lang-menu summary, textarea, .option-card, .options, .workbench, .notice, .toast,
.stage__canvas, .stage-empty, .steps > li, .specs > div, .paper__card, .paper pre, .alphabet label, .hero-ribbon,
.paper [role="tablist"] {
border: 2px solid CanvasText;
}
.btn--primary, .btn--convert, .btn--success { background: ButtonFace; color: ButtonText; }
.tab[aria-selected="true"], .tab-active, .alphabet input:checked + label, .alphabet label:has(input:checked),
.paper [role="tablist"] [role="tab"][aria-selected="true"] {
background: Highlight; color: HighlightText; border-color: Highlight; forced-color-adjust: none;
}
.cell__dot { border: 2px solid CanvasText; forced-color-adjust: none; }
.cell__dot.is-on, .tab[aria-selected="true"] .cell .cell__dot:nth-child(2n+1), #stl_button:not([aria-busy="true"]) .cell__dot:nth-child(2n+1) {
background: Highlight; border-color: Highlight; box-shadow: none;
}
input[type="checkbox"][role="switch"] { border-color: CanvasText; background: Canvas; }
input[type="checkbox"][role="switch"]::after { background: CanvasText; }
input[type="checkbox"][role="switch"]:checked { background: Highlight; border-color: Highlight; }
input[type="checkbox"][role="switch"]:checked::after { background: HighlightText; }
.privacy, main > section.privacy { background: Canvas; color: CanvasText; border-block: 2px solid CanvasText; }
.privacy h2, .privacy p { color: CanvasText; }
.skip-link { background: Highlight; color: HighlightText; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid Highlight; }
.hero__facts li::before { background: Highlight; }
[aria-disabled="true"], .btn[disabled] { color: GrayText; border-color: GrayText; opacity: 1; }
}
@media print {
.site-header, .skip-link, #toast-container, .hero-ribbon { display: none !important; }
body { background: #fff; color: #000; }
.js .reveal { opacity: 1; transform: none; }
}