/* Site do Fragmenta: as mesmas cores e fontes do app (Fragmenta.App/Themes/Tokens.axaml), claro e escuro */

@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
    color-scheme: light dark;
    --bg: #F6F7F9; --surface: #FFFFFF; --subtle: #ECEEF2; --subtle-hover: #E2E5EA;
    --line: #E2E5EA; --line-strong: #C9CED6; --text: #14171C; --muted: #5A6170;
    --primary: #0E7A6D; --primary-hover: #0B6459; --on-primary: #FFFFFF; --primary-soft: #E3F2EF;
    --high: #B9400B; --high-soft: #FDEBDF; --medium: #946005; --medium-soft: #FBF1D9;
    --low: #3552C8; --low-soft: #E6EBFB; --danger: #BE3530;
    --shadow: 0 1px 2px rgb(20 23 28 / .06), 0 8px 24px rgb(20 23 28 / .08);
    --shadow-lift: 0 2px 4px rgb(20 23 28 / .08), 0 16px 40px rgb(20 23 28 / .14);
    --radius: 10px;
    --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

/* A IBM Plex embutida só tem latim e cirílico: nas outras escritas, as fontes do sistema, com uma de cada escrita
   à frente (sem isso, o navegador pode cair numa caligráfica que não serve para interface). Vale para a página e
   para cada nome de idioma no seletor (elementos com o atributo lang). */
[lang="ar"] { --sans: "IBM Plex Sans", "Segoe UI", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif; font-family: var(--sans); }
[lang="he"] { --sans: "IBM Plex Sans", "Segoe UI", "Arial Hebrew", "Noto Sans Hebrew", Arial, sans-serif; font-family: var(--sans); }
[lang="hi"] { --sans: "IBM Plex Sans", "Nirmala UI", "Kohinoor Devanagari", "Noto Sans Devanagari", sans-serif; font-family: var(--sans); }
[lang="ja"] { --sans: "IBM Plex Sans", "Hiragino Sans", "Yu Gothic UI", Meiryo, "Noto Sans CJK JP", "Noto Sans JP", sans-serif; font-family: var(--sans); }
[lang="ko"] { --sans: "IBM Plex Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", sans-serif; font-family: var(--sans); }
[lang="zh-Hans"] { --sans: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; font-family: var(--sans); }

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0E1014; --surface: #171A20; --subtle: #1D2128; --subtle-hover: #262B33;
        --line: #2B3039; --line-strong: #3A404B; --text: #E7E9ED; --muted: #A0A7B3;
        --primary: #3FB8A5; --primary-hover: #5CC9B7; --on-primary: #06201C; --primary-soft: #173A35;
        --high: #F08A5D; --high-soft: #3A2318; --medium: #E2B85C; --medium-soft: #352B14;
        --low: #8DA2FF; --low-soft: #1F2747; --danger: #F0716A;
        --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
        --shadow-lift: 0 2px 4px rgb(0 0 0 / .35), 0 16px 40px rgb(0 0 0 / .45);
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
section { padding: 96px 0; scroll-margin-top: 64px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }
.lead { color: var(--muted); font-size: 18px; max-width: 60ch; }
.eyebrow { color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* Botões */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
          border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
          font: 500 15px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.button:hover { text-decoration: none; background: var(--subtle); }
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button.ghost { border-color: transparent; background: transparent; }
.button.ghost:hover { background: var(--subtle); }
.button.large { min-height: 48px; padding: 0 22px; font-size: 16px; }

/* Topo */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
       backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--primary); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

/* Abertura */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Quadro de exemplo */
.board-mock { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mock-bar strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.segmented { margin-inline-start: auto; display: flex; background: var(--subtle); border-radius: 7px; padding: 3px; font-size: 12px; color: var(--muted); }
.segmented span { padding: 3px 10px; border-radius: 5px; white-space: nowrap; }
.segmented .on { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; background: var(--bg); }
.column { background: var(--subtle); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.column-title { font-size: 13px; font-weight: 600; padding: 2px 4px 4px; display: flex; align-items: center; gap: 6px; }
.count { font: 12px var(--mono); color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.card p { font-weight: 500; line-height: 1.35; }
.card.lifted { box-shadow: var(--shadow-lift); transform: rotate(-1.5deg) translateY(-2px); border-color: var(--line-strong); }
.card.done p { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.card-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); min-height: 22px; }
.late { color: var(--danger); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.chip.high { background: var(--high-soft); color: var(--high); }
.chip.medium { background: var(--medium-soft); color: var(--medium); }
.chip.low { background: var(--low-soft); color: var(--low); }
.chip.tag { background: var(--subtle); color: var(--muted); }
.chip.outline { border: 1px solid var(--line-strong); color: var(--muted); }
.chip.verified { background: var(--primary-soft); color: var(--primary); }
.chip .icon { width: 12px; height: 12px; stroke-width: 2; }
.progress { height: 4px; border-radius: 4px; background: var(--subtle); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--primary); }
.avatars { display: flex; }
.avatars i, .avatar { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 600 11px var(--sans);
                      font-style: normal; color: #fff; border: 2px solid var(--surface); margin-inline-start: -6px; }
.avatars i:first-child { margin-inline-start: 0; }
.a1 { background: #0E7A6D; } .a2 { background: #3552C8; } .a3 { background: #B9400B; } .a4 { background: #7A4FB8; }

/* Faixas alternadas */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 56px; }

/* Recursos */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 40px 32px; }
.feature h3 { margin: 14px 0 6px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.feature-icon .icon { width: 20px; height: 20px; }

/* Texto ao lado de uma figura */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.split.reverse > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--primary); margin-top: 5px; stroke-width: 2; }

/* Linha do tempo de exemplo */
.timeline-mock { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; overflow: hidden; }
.tl-head { display: grid; grid-template-columns: repeat(4, 1fr); margin-inline-start: 38%; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tl-rows { display: grid; gap: 4px; padding-top: 10px;
           background: linear-gradient(to right, transparent calc(38% - 1px), var(--line) 0, var(--line) 38%, transparent 0); }
.tl-row { position: relative; display: grid; grid-template-columns: 38% 1fr; align-items: center; min-height: 36px; }
.tl-label { font-size: 13px; padding-inline-end: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { grid-column: 2; height: 20px; border-radius: 5px; background: var(--primary); opacity: .9;
       margin-inline-start: calc(var(--from) * 1%); width: calc((var(--to) - var(--from)) * 1%); }
.bar.done { background: var(--line-strong); }
.bar.high { background: var(--high); }
.bar.medium { background: var(--medium); }
.milestone { grid-column: 2; width: 14px; height: 14px; background: var(--text); transform: rotate(45deg); border-radius: 2px;
             margin-inline-start: calc(var(--at) * 1%); }

/* Empresa de exemplo */
.company-mock { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.company-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.people { list-style: none; margin: 0; padding: 8px; }
.people li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; }
.people li:hover { background: var(--subtle); }
.people .avatar { width: 34px; height: 34px; font-size: 14px; margin: 0; border: 0; }
.people span:not(.chip) { display: flex; flex-direction: column; font-weight: 500; font-size: 14px; flex: 1; min-width: 0; }
.people small { color: var(--muted); font-weight: 400; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }

/* Plataformas */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.platform { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.platform .icon { width: 24px; height: 24px; color: var(--muted); }
.platform span { display: flex; flex-direction: column; line-height: 1.3; }
.platform small { color: var(--muted); font-size: 13px; }
a.platform:hover { text-decoration: none; border-color: var(--primary); }
.platform.featured { border-color: var(--primary); background: var(--primary-soft); }
.platform.featured .icon, .platform.featured small { color: var(--primary); }
.platform.soon { opacity: .7; }
.platform .icon.brand { fill: currentColor; stroke: none; }
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
/* Os PNGs do Google Play vêm recortados, sem a margem transparente (que varia por idioma): mesma altura do da Apple */
.store-badges img { display: block; height: 58px; width: auto; }
.note.center { text-align: center; }

/* Preços */
.billing-toggle { display: inline-flex; background: var(--subtle); border-radius: 10px; padding: 4px; margin-top: 10px; }
.billing-toggle button { font: 500 14px var(--sans); color: var(--muted); background: none; border: 0; border-radius: 7px; padding: 8px 16px; cursor: pointer; min-height: 36px; }
.billing-toggle button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.save { color: var(--primary); font-weight: 600; margin-inline-start: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.plan.featured { border: 2px solid var(--primary); background: var(--surface); box-shadow: var(--shadow-lift); }
.plan .badge { position: absolute; top: -13px; inset-inline-start: 28px; background: var(--primary); color: var(--on-primary); font-size: 12.5px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan-for { color: var(--muted); font-size: 15px; margin-top: 6px; min-height: 48px; }
.price-was { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--primary); }
.price-was s { color: var(--muted); font-weight: 400; margin-inline-end: 6px; }
.price-was + .price { margin-top: 2px; }
.plans[data-interval="monthly"] .yearly-only { display: none; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.price span { color: var(--muted); font-size: 15px; }
.price-note { color: var(--muted); font-size: 13.5px; margin: 4px 0 22px; min-height: 22px; }
.plan-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 15px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .icon { color: var(--primary); margin-top: 4px; stroke-width: 2; }
.plan-list .off { color: var(--muted); }
.plan-list .off .icon { color: var(--muted); }
.fine-print { color: var(--muted); font-size: 13.5px; text-align: center; max-width: 70ch; margin: 32px auto 0; }

/* Perguntas */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font: 20px/1 var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* Fechamento */
.closing { padding-top: 0; }
.closing-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.closing-box .button { margin-top: 14px; }
.closing-box { padding-block: 64px; background: var(--primary-soft); border-radius: 20px; max-width: 1112px; }

/* Rodapé */
.foot { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--surface); }
.foot-row { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.foot-brand { display: grid; gap: 8px; margin-inline-end: auto; }
.foot-brand p { font-size: 14px; }
.foot-social { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.foot-social:hover { color: var(--primary); }
.foot-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.foot-links a { color: var(--muted); }
.foot-legal { margin-top: 32px; font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; }
.foot-legal a { color: var(--muted); }

/* Política de privacidade e termos */
.legal-page { padding-top: 56px; }
.legal-page h1 { font-size: clamp(30px, 4vw, 42px); }
.legal-meta { margin-top: 10px; font-size: 14px; }
.legal-notice { margin-top: 24px; padding: 12px 16px; border-radius: var(--radius); background: var(--primary-soft); font-size: 14.5px; }
.legal { margin-top: 32px; font-size: 16px; line-height: 1.7; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
.legal .todo { background: var(--high-soft); color: var(--high); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.languages { position: relative; }
.languages summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; min-height: 40px; border-radius: 8px; }
.languages summary:hover, .languages[open] summary { background: var(--subtle); }
.languages summary::-webkit-details-marker { display: none; }
.languages .chevron { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.languages[open] .chevron { transform: rotate(180deg); }
.flag { display: block; width: 24px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); object-fit: cover; flex: none; }
.languages ul { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; list-style: none; margin: 0; padding: 6px; z-index: 20;
                background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift);
                display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px; font-size: 14px; }
.languages a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); min-height: 40px; }
.languages a:hover { background: var(--subtle); text-decoration: none; }
.languages a[aria-current="true"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* Larguras menores */
@media (max-width: 980px) {
    .nav { display: none; }
    .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .split.reverse > :first-child { order: 0; }
    .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 0 auto; }
    .plan-for { min-height: 0; }
}
@media (max-width: 640px) {
    section { padding: 64px 0; }
    .wrap { padding: 0 16px; }
    .hero { padding: 40px 0 64px; }
    .hide-small { display: none; }
    .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 8px; }
    .mock-bar .dots { display: none; }
    .card.lifted { transform: none; }
    .lead { font-size: 16px; }
    .tl-label { font-size: 12px; }
    .section-head { margin-bottom: 40px; }
    .closing-box { border-radius: 0; }
    .languages ul { position: fixed; top: 64px; inset-inline: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Páginas de recurso (Kanban, Calendário, Linha do tempo, Trello) ---- */
.page-notice { margin-top: 24px; }
.feature-page .hero { position: relative; }
.feature-page .hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1; pointer-events: none;
    background: radial-gradient(55% 55% at 72% 38%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
                radial-gradient(40% 45% at 15% 85%, color-mix(in srgb, var(--low) 10%, transparent), transparent 70%); }
.hero-grid.wide { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.tilt { transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transition: transform .6s ease; position: relative; }
.tilt:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.float-badge { position: absolute; top: -14px; inset-inline-end: -10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lift); font-size: 13.5px; font-weight: 600; color: var(--primary);
    animation: float 5s ease-in-out infinite; }
.float-badge .icon { stroke-width: 2.2; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Revelar ao rolar (só com JS; sem ele, tudo aparece) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Letreiro */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; background: var(--surface);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0; width: max-content; animation: marquee 36s linear infinite; }
.marquee li { display: flex; align-items: center; gap: 10px; font-weight: 500; white-space: nowrap; color: var(--muted); font-size: 15px; }
.marquee li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.marquee:hover ul { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Carrossel das visões */
.carousel { position: relative; }
.carousel-track { position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 8px 9% 24px; scroll-padding-inline: 9%; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 82%; scroll-snap-align: center; display: grid; gap: 18px; transition: opacity .4s, transform .4s; opacity: .45; transform: scale(.96); }
.carousel-slide.is-active { opacity: 1; transform: none; }
.carousel-slide > figure { width: 100%; }
.carousel-caption { text-align: center; font-size: 18px; }
.carousel-nav { display: flex; justify-content: center; align-items: center; gap: 18px; }
.carousel-btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.carousel-btn .icon { width: 18px; height: 18px; stroke-width: 2; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 6px; background: var(--line-strong); cursor: pointer; transition: width .25s, background .25s; }
.carousel-dots button[aria-current="true"] { width: 30px; background: var(--primary); }

/* Calendário de exemplo */
.calendar-mock { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.cal-head > span:first-child::first-letter { text-transform: uppercase; }
.cal-head .segmented { margin: 0; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 8px 0; font: 600 11px var(--sans); color: var(--muted); text-align: center; letter-spacing: .04em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 8px; background: var(--bg); }
.cal-day { min-height: 70px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px; display: flex; flex-direction: column; gap: 3px; font: 12px var(--mono); color: var(--muted); min-width: 0; }
.cal-day.weekend { background: var(--subtle); }
.cal-day.other { opacity: .4; }
.cal-day.today { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cal-day.today > span { color: var(--primary); font-weight: 600; }
.cal-task { font: 500 11px/1.4 var(--sans); font-style: normal; padding: 2px 6px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-task.high { background: var(--high-soft); color: var(--high); }
.cal-task.medium { background: var(--medium-soft); color: var(--medium); }
.cal-task.low { background: var(--low-soft); color: var(--low); }
.cal-task.late { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.cal-task.done { background: var(--subtle); color: var(--muted); text-decoration: line-through; }
.cal-count { display: none; }

/* Lista de exemplo */
.list-mock { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); overflow: hidden; font-size: 13px; }
.list-mock table { width: 100%; border-collapse: collapse; }
.list-mock th { text-align: start; font: 600 11px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.list-mock td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.list-mock tr:last-child td { border-bottom: 0; }
.list-mock .title { font-weight: 500; width: 100%; white-space: normal; }
.list-mock .done .title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.list-mock .mono { font-size: 12px; }
.checkbox { display: inline-block; width: 16px; height: 16px; border: 1.5px solid var(--line-strong); border-radius: 4px; vertical-align: -3px; margin-inline-end: 10px; }
.checkbox.on { background: var(--primary); border-color: var(--primary); }

/* Painel de exemplo */
.dash-mock { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 16px; display: grid; gap: 14px; }
.dash-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.dash-tile strong { font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.dash-tile small { color: var(--muted); font-size: 12px; }
.dash-tile.late strong { color: var(--danger); }
.dash-chart { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.dash-chart p { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.dash-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 96px; }
.dash-bars span { display: block; background: var(--primary); border-radius: 4px 4px 0 0; height: calc(var(--h) * 1%); opacity: .85; }
.dash-bars span:last-child { background: var(--primary-soft); border: 1px dashed var(--primary); opacity: 1; }

/* Linha do tempo: subtarefa e seta de bloqueio */
.tl-rows { position: relative; }
.tl-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tl-links line { stroke: var(--high); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tl-links circle { fill: var(--high); }
.tl-row.sub .tl-label { padding-inline-start: 18px; color: var(--muted); font-size: 12px; }
.tl-row.sub .bar { height: 12px; opacity: .55; }

/* Detalhe de um cartão (exemplo) */
.detail-mock { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 22px; display: grid; gap: 18px; font-size: 13.5px; }
.detail-mock h4 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.field { display: grid; gap: 3px; }
.field small { color: var(--muted); font: 600 10.5px var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.field span { font-weight: 500; display: flex; align-items: center; gap: 6px; }
.field .avatar { width: 20px; height: 20px; font-size: 10px; margin: 0; border: 0; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.checklist li { display: flex; gap: 8px; align-items: center; }
.checklist li.on { color: var(--muted); text-decoration: line-through; }
.comment { display: flex; gap: 10px; padding: 12px; background: var(--subtle); border-radius: 10px; }
.comment .avatar { width: 26px; height: 26px; font-size: 11px; margin: 0; border: 0; flex: none; }
.comment p { line-height: 1.45; }
.comment b { color: var(--primary); font-weight: 500; }
.comment small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

/* Regras de automação (exemplo) */
.rules { display: grid; gap: 12px; }
.rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.rule:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.rule .when { color: var(--primary); font-weight: 600; }
.rule .arrow { color: var(--muted); }
.rule .chip { font-size: 12.5px; }

/* Avisos (exemplo) */
.notices { display: grid; gap: 10px; }
.notice-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 13.5px; }
.notice-card .feature-icon { width: 34px; height: 34px; flex: none; }
.notice-card strong { display: block; }
.notice-card small { color: var(--muted); font-size: 12.5px; }

/* Passos (migração do Trello) */
.steps { display: grid; gap: 64px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.step:nth-child(even) > :first-child { order: 2; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 600 16px var(--sans); margin-bottom: 14px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step > div > p { color: var(--muted); }

/* Menu do Trello e tela de importação (exemplos) */
.menu-mock, .import-mock { margin: 0 auto; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); overflow: hidden; font-size: 13.5px; }
.menu-mock .menu-title, .import-mock .menu-title { padding: 12px 16px; font-weight: 600; border-bottom: 1px solid var(--line); text-align: center; }
.menu-mock ul { list-style: none; margin: 0; padding: 6px; }
.menu-mock li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; }
.menu-mock li .icon { color: var(--muted); }
.menu-mock li.on { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.menu-mock li.on .icon { color: var(--primary); }
.import-mock .body { padding: 14px; display: grid; gap: 12px; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; font: 12.5px var(--mono); }
.file .icon { color: var(--primary); }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.summary div { background: var(--subtle); border-radius: 8px; padding: 8px 10px; display: grid; }
.summary strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.summary small { color: var(--muted); font-size: 11.5px; }
.warning { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--medium); background: var(--medium-soft); padding: 8px 10px; border-radius: 8px; }
.import-mock .button { width: 100%; }

/* O que vem junto (Trello → Fragmenta) */
.mapping { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.mapping li { display: grid; grid-template-columns: 1fr auto 1.3fr; gap: 10px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.mapping .from { color: var(--muted); }
.mapping .to { font-weight: 500; }
.mapping .arrow { color: var(--primary); stroke-width: 2; }
.mapping li.no .to { color: var(--muted); font-weight: 400; }
.mapping li.no .arrow { color: var(--line-strong); }

/* Tabela comparativa */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--bg); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.compare thead th.us { color: var(--primary); }
.compare td:first-child { font-weight: 500; }
.compare .yes { color: var(--primary); font-weight: 500; }
.compare .no { color: var(--muted); }
.compare .icon { stroke-width: 2; vertical-align: -2px; margin-inline-end: 6px; }
.compare-note { color: var(--muted); font-size: 13.5px; margin-top: 16px; }

/* Cards de link para as páginas de recurso */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.link-card { display: grid; align-content: start; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.link-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--primary); }
.link-card h3 { display: flex; align-items: center; gap: 10px; }
.link-card .feature-icon { width: 34px; height: 34px; }
.link-card .feature-icon .icon { width: 18px; height: 18px; }
.link-card p { color: var(--muted); font-size: 14.5px; }
.link-card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 500; font-size: 14px; margin-top: 4px; }
.link-card .more .icon { stroke-width: 2; transition: transform .2s; }
.link-card:hover .more .icon { transform: translateX(3px); }
.related { margin-top: 40px; text-align: center; }
.related-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.related-links a { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font-weight: 500; font-size: 14.5px; }
.related-links a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-weight: 500; }
.more-link .icon { stroke-width: 2; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; }
    .marquee ul { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
    .marquee { mask-image: none; -webkit-mask-image: none; }
    .float-badge { animation: none; }
    .tilt { transform: none; }
}
@media (max-width: 980px) {
    .hero-grid.wide { grid-template-columns: minmax(0, 1fr); }
    .tilt { transform: none; }
    .step { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .step:nth-child(even) > :first-child { order: 0; }
    .carousel-slide { flex-basis: 100%; }
    .carousel-track { padding-inline: 0; scroll-padding-inline: 0; }
}
@media (max-width: 640px) {
    .cal-day { min-height: 46px; }
    .cal-task { display: none; }
    .cal-count { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font: 600 11px var(--sans); }
    .dash-tiles { grid-template-columns: repeat(2, 1fr); }
    .fields { grid-template-columns: 1fr; }
    .list-mock th:nth-child(3), .list-mock td:nth-child(3) { display: none; }
    .steps { gap: 48px; }
    .step h3 { font-size: 21px; }
}
