.account-menu a{display:flex;align-items:center;gap:12px;padding:12px}.account-menu a:hover{background:#f0f7ff}.account-menu form{margin:0}.account-menu form button{width:100%}.desktop-nav [aria-current="page"]{color:var(--ink);text-decoration:underline;text-underline-offset:16px}.website-notice{padding:14px 18px;background:#e8f3ff;border:1px solid #bfd7ff;border-radius:8px;color:#203e68;margin:16px 0}.website-error{background:#fff2f2;border-color:#efb7bd;color:#9b2430}.website-notice ul{margin:0;padding-left:20px}.website-notice p{margin:0}.skip-link:focus{z-index:100}.auth-page .back-to-site svg{width:20px;height:20px}.dashboard-page .account-menu a{font-size:14px}.dashboard-page .account-trigger{font-size:14px}.legal-section h2{font-size:22px;line-height:1.35}.legal-section p{font-size:16px}@media(max-width:700px){.account-trigger{max-width:170px}.account-trigger strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.mobile-nav form{margin:0}.mobile-nav form button{padding:12px 20px;width:100%;text-align:left}.mobile-nav [aria-current="page"]{color:var(--blue);font-weight:600}

/* Let desktop layouts use the screen while keeping a shared, comfortable gutter. */
@media (min-width:1200px) {
  :root { --website-content-width:min(92%,2240px); }
  .container,
  .bim-container,
  .plans-container,
  .nav-wrap,
  .dashboard-header .dashboard-header-inner {
    width:var(--website-content-width);
  }
  .plans-compare-container { width:min(92%,1920px); }
  .plans-faq-container { width:min(92%,1280px); }
}

/* Let long Community titles wrap within their column. */
.community-bims h2 em,
.community-own h2 em { white-space:normal; }

/* Keep the account menu accessible beside the logo on narrow phones. */
@media (max-width:700px) {
  .site-header .account { min-width:0; }
  .site-header .account-trigger { min-width:0;max-width:100%;min-height:44px;padding-inline:0; }
  .site-header .account-trigger strong { min-width:0; }
  .site-header .account-trigger > span,
  .site-header .menu-toggle { flex-shrink:0; }
}
@media (max-width:370px) {
  .dashboard-header .brand-image-dark { width:110px; }
  .community-hero h1 { font-size:clamp(42px,13vw,46px); }
}

/* Balanced page composition; the approved outer gutters remain unchanged. */
:root {
  --section-media-height:clamp(480px,calc(100svh - 200px),840px);
  --composition-gap:clamp(32px,3.4vw,88px);
}

@media (min-width:1001px) {
  .hero-grid {
    grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);
    gap:var(--composition-gap);
    min-height:0;
    padding-block:clamp(32px,4.5svh,64px);
  }
  .hero-copy { padding:0; }
  .hero-copy h1 {
    font-size:clamp(54px,min(4.5vw,8.4svh),108px);
    line-height:1.04;
    margin-bottom:24px;
  }
  .hero-description { max-width:640px;font-size:clamp(18px,1.2vw,23px);line-height:1.45; }
  .hero-buttons { flex-direction:row;max-width:640px; }
  .hero-buttons .button { width:auto;max-width:none;min-width:0;font-size:16px; }
  .hero-benefits { flex-wrap:wrap;gap:16px;margin-block:26px 22px; }
  .hero-benefits>span+span { padding-left:16px; }
  .hero-visual.has-asset {
    align-self:center;
    min-height:0;
    aspect-ratio:3/2;
    width:100%;
    margin:0;
  }
  .hero-visual .source-image {
    width:100%;height:auto;max-height:none;left:0;top:0;transform:none;
  }

  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) { padding-block:clamp(44px,5.5svh,76px); }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) > .container {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:auto auto auto 1fr;
    grid-template-areas:"label media" "title media" "intro media" "features media";
    column-gap:var(--composition-gap);
    row-gap:18px;
    align-items:start;
  }
  .section:is(#biblioteca,#comunidade) > .container {
    grid-template-areas:"media label" "media title" "media intro" "media features";
  }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .section-heading,
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature-layout { display:contents; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .eyebrow { grid-area:label;margin:0; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .section-heading h2 {
    grid-area:title;
    font-size:clamp(36px,3.05vw,64px);
    line-height:1.07;
    text-wrap:balance;
  }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .section-heading > p {
    grid-area:intro;padding:0;margin:0;max-width:58ch;
    font-size:clamp(17px,1.12vw,23px);line-height:1.45;
  }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature-list {
    grid-area:features;align-self:start;min-width:0;padding:0;
  }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature {
    padding-block:18px;
    grid-template-columns:48px minmax(0,1fr);
    gap:20px;
  }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature-icon { width:46px;height:46px;font-size:17px; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature h3 { margin:0 0 5px;font-size:clamp(19px,1.15vw,24px); }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature p { max-width:60ch;font-size:clamp(16px,1vw,20px); }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature-list > .button { width:auto;max-width:100%;margin-top:18px; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature-list > .fine-print { margin-block:10px 0; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .product-visual {
    grid-area:media;width:min(100%,var(--section-media-height));
    justify-self:center;align-self:center;
  }
  #na-pratica .demo-video-wrap {
    grid-area:media;width:100%;max-width:calc(var(--section-media-height) * 1.42222);
    align-self:center;justify-self:center;
  }
  .section:has(> .container > .center-heading) { padding-block:48px; }
  .section .center-heading { margin-bottom:28px; }
  .section .center-heading .eyebrow { margin-bottom:18px; }
  .section .center-heading h2 { font-size:clamp(34px,3vw,52px); }
  .section .center-heading > p { font-size:20px;margin-top:16px; }
  .step-card { padding:24px; }
  .step-icon { width:86px;height:86px;margin-bottom:18px; }
  .step-icon svg { width:46px;height:46px; }
  .step-card h3 { font-size:24px;margin-bottom:10px; }
  .step-card p { max-width:40ch;margin-inline:auto;font-size:18px; }
  .center-cta { margin-top:26px; }
  .plan-cost { min-height:72px; }
  .plan-tag { min-height:18px; }
  .plan-card h3 { margin-block:5px 12px;padding-bottom:10px; }
  .billing-controls { margin-block:18px; }
  .closing { padding-block:64px; }
}

@media (min-width:701px) and (max-width:1000px) {
  .hero-grid { grid-template-columns:minmax(0,1fr);gap:32px;min-height:0;padding-block:36px; }
  .hero-copy { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 28px;max-width:none;padding:0; }
  .hero-copy .hero-eyebrow { grid-column:1/-1;margin:0 0 4px; }
  .hero-copy h1 { grid-column:1;grid-row:2/5;font-size:clamp(42px,5.6vw,54px);line-height:1.06;margin:0; }
  .hero-description { grid-column:2;grid-row:2;margin:0;font-size:16px; }
  .hero-buttons { grid-column:2;grid-row:3;flex-direction:row;flex-wrap:wrap;margin:0;gap:10px; }
  .hero-buttons .button { width:100%;max-width:none;min-height:46px;font-size:15px;padding:12px 16px; }
  .hero-copy > .fine-print { grid-column:2;grid-row:4;margin:0; }
  .hero-benefits { grid-column:1/-1;flex-wrap:wrap;margin:10px 0 0; }
  .hero-copy .download-line { grid-column:1/-1;margin:0; }
  .hero-visual.has-asset { width:min(100%,640px);margin:0 auto;align-self:center;aspect-ratio:3/2;min-height:0; }
  .hero-visual .source-image { width:100%;height:auto;max-height:none;left:0;top:0;transform:none; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) { padding-block:44px; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .section-heading { gap:24px;margin-bottom:28px; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature-layout,
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature-layout.reverse { grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:center; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature { padding-block:16px;gap:16px; }
}

@media (max-width:700px) {
  .hero-grid { gap:28px; }
  .hero-visual.has-asset { aspect-ratio:3/2; }
  .hero-visual .source-image { width:100%;height:auto;left:0;top:0;transform:none; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) { padding-block:40px; }
  .section:is(#na-pratica,#biblioteca,#equipes,#comunidade) .feature-layout { gap:26px; }
}

.library-page .bim-copy h1,
.library-page .bim-copy h2,
.community-page .bim-copy h1,
.community-page .bim-copy h2,
.library-page .bim-faq-aside h2,
.community-page .bim-faq-aside h2,
.library-page .bim-copy h1 em,
.library-page .bim-copy h2 em,
.community-page .bim-copy h1 em,
.community-page .bim-copy h2 em,
.library-page .bim-faq-aside h2 em,
.community-page .bim-faq-aside h2 em {
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 1000px) {
  .library-page,
  .community-page {
    /* 720px em janela de 1000px de altura; 850px a partir de 1181px. */
    --bim-art-size: min(850px, 72vh);
    --bim-layout-gap: clamp(32px, 3.2vw, 72px);
  }

  .library-page .bim-section,
  .community-page .bim-section {
    padding-block: clamp(48px, 5.5vh, 72px);
  }

  .library-page .bim-hero,
  .community-page .community-hero {
    padding-block: 28px 42px;
  }

  /* Substitui proporções como .83fr / 1.45fr que produziam imagens de 1396px. */
  .library-page .bim-layout,
  .community-page .bim-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--bim-layout-gap);
    align-items: center;
  }

  /* A largura excedente fica do lado externo da arte, sem ampliar o vão central. */
  .library-page .bim-layout > .bim-visual,
  .community-page .bim-layout > .bim-visual,
  .community-page .bim-layout > .community-example-figure,
  .community-page .bim-layout > .community-collection-figure {
    width: min(100%, var(--bim-art-size));
    max-width: none;
    margin: 0 auto 0 0;
    align-self: center;
  }

  .library-page .bim-media-first > .bim-visual,
  .community-page .bim-media-first > .bim-visual {
    margin-left: auto;
    margin-right: 0;
  }

  /* As figuras precisam ser limitadas junto com a arte e a legenda. */
  .community-page .community-example-figure .bim-visual,
  .community-page .community-collection-figure .bim-visual {
    width: 100%;
    margin: 0;
  }

  .community-page .community-example-figure figcaption,
  .community-page .community-collection-figure figcaption {
    margin: 16px 0 0;
  }

  /* Hero Biblioteca é 4:3, não quadrado; elimina o aumento antigo de 174%. */
  .library-page .bim-hero .bim-visual-1 {
    width: min(100%, calc(var(--bim-art-size) * 1.333333));
    aspect-ratio: 1448 / 1086;
    min-height: 0;
    height: auto;
    align-self: center;
  }

  .library-page .bim-hero-layout {
    grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  }

  .library-page .bim-hero .bim-visual-1 img {
    width: 100%;
    height: auto;
    max-height: none;
    left: 0;
    top: 0;
    transform: none;
  }

  /* O vídeo conserva sua proporção e controles; não recebe altura fixa/crop. */
  .library-page .bim-revit .bim-visual-4 {
    width: min(100%, calc(var(--bim-art-size) * 1.517647));
  }

  /*
   * Download mantém a composição em 90%, ancorada à esquerda.
   * Limitar só a imagem deixaria uma coluna vazia ao lado: limita-se a coluna.
   * O recuo antigo de -13% pode colidir quando a coluna textual fica maior.
   * Recuo limitado a 64px, sem os antigos 2% de extravasamento à direita.
   */
  .library-page .bim-download-layout {
    grid-template-columns:
      minmax(0, min(52%, calc(var(--bim-art-size) * 1.111111)))
      minmax(0, 1fr);
  }

  .library-page .bim-download .bim-visual-6 {
    width: 90%;
    max-width: var(--bim-art-size);
    margin-left: 0;
    margin-right: auto;
  }

  .library-page .bim-download h2 {
    width: calc(100% + min(8%, 64px));
    margin-left: calc(-1 * min(8%, 64px));
  }

  .library-page .bim-download .bim-eyebrow {
    margin-left: calc(-1 * min(8%, 64px));
  }

  .library-page .bim-copy h1,
  .community-page .bim-copy h1 {
    font-size: clamp(48px, 4.7vw, 76px);
    line-height: 1.02;
  }

  .library-page .bim-copy h2,
  .community-page .bim-copy h2,
  .library-page .bim-faq-aside h2,
  .community-page .bim-faq-aside h2 {
    font-size: clamp(43px, 4.3vw, 70px);
    line-height: 1.04;
    margin-bottom: 24px;
  }

  .library-page .bim-description,
  .community-page .bim-description {
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.45;
    max-width: 58ch;
    margin-bottom: 24px;
  }

  .library-page .bim-eyebrow,
  .community-page .bim-eyebrow {
    margin-bottom: 24px;
  }

  .library-page .bim-features,
  .community-page .bim-features {
    gap: 22px;
    margin-block: 24px 28px;
  }

  .community-page .community-features > li {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 20px;
  }

  .community-page .community-features > li > span {
    width: 64px;
    height: 64px;
  }

  .community-page .community-numbered .community-step {
    font-size: 26px;
  }

  .community-page .community-features h3 {
    font-size: 21px;
  }

  .community-page .community-features p {
    font-size: 18px;
    line-height: 1.42;
  }

  .library-page .bim-copy .bim-cta,
  .community-page .bim-copy .bim-cta,
  .library-page .bim-hero-buttons {
    max-width: 620px;
  }

  .library-page .bim-faq-layout,
  .community-page .bim-faq-layout {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: var(--bim-layout-gap);
  }

  .library-page .bim-closing h2,
  .community-page .bim-closing h2 {
    font-size: clamp(56px, 5.3vw, 86px);
  }
}

/* Tablet em paisagem curto: preserva as duas colunas e reduz espaçamento vertical. */
@media (min-width: 1000px) and (max-height: 850px) {
  .library-page .bim-section,
  .community-page .bim-section {
    padding-block: 38px;
  }

  .library-page .bim-copy h1,
  .community-page .bim-copy h1 {
    font-size: clamp(46px, 4.5vw, 66px);
  }

  .library-page .bim-copy h2,
  .community-page .bim-copy h2 {
    font-size: clamp(41px, 4.1vw, 60px);
  }
}

/* Tablet estreito: evita colunas de 300px com blocos de texto muito altos. */
@media (min-width: 701px) and (max-width: 999px) {
  .library-page .bim-layout,
  .community-page .bim-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }

  .library-page .bim-layout > .bim-copy,
  .community-page .bim-layout > .bim-copy {
    width: 100%;
    order: 0;
  }

  .library-page .bim-layout > .bim-visual,
  .community-page .bim-layout > .bim-visual,
  .community-page .bim-layout > .community-example-figure,
  .community-page .bim-layout > .community-collection-figure {
    width: min(100%, 560px);
    max-width: none;
    margin: 0 auto;
    order: 1;
  }

  .library-page .bim-hero .bim-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 28px;
  }
  .library-page .bim-hero .bim-eyebrow { grid-column: 1 / -1; margin: 0 0 4px; }
  .library-page .bim-hero h1 { grid-column: 1; grid-row: 2 / 5; font-size: clamp(36px, 4.7vw, 46px); margin: 0; }
  .library-page .bim-hero .bim-description { grid-column: 2; grid-row: 2; margin: 0; }
  .library-page .bim-hero-buttons { grid-column: 2; grid-row: 3; margin: 0; max-width: none; }
  .library-page .bim-hero-buttons .button { width: 100%; min-height: 46px; padding: 12px 16px; }
  .library-page .bim-hero .bim-free-note { grid-column: 2; grid-row: 4; margin: 0; }
  .library-page .bim-hero .bim-benefits { grid-column: 1 / -1; margin: 10px 0 0; }
  .community-page .community-hero .community-included { grid-column: 2; grid-row: 3; margin: 0; }
  .community-page .community-hero .bim-cta { grid-column: 2; grid-row: 4; margin: 0; }
  .community-page .community-hero .community-text-link,
  .community-page .community-hero .community-plan-note { grid-column: 1 / -1; margin: 0; }

  .library-page .bim-hero .bim-visual-1 {
    aspect-ratio: 1448 / 1086;
    min-height: 0;
    height: auto;
  }

  .library-page .bim-hero .bim-visual-1 img {
    width: 100%;
    height: auto;
    max-height: none;
    left: 0;
    top: 0;
    transform: none;
  }

  .library-page .bim-download .bim-visual-6 {
    width: 90%;
    max-width: 560px;
    margin-left: 0;
    margin-right: auto;
  }

  .library-page .bim-download h2 {
    width: auto;
    margin-left: 0;
  }

  .library-page .bim-download .bim-eyebrow {
    margin-left: 0;
  }
}

/* Até 700px, conservar o layout mobile atual; só a quebra segura dos títulos muda. */

/* Supporting pages: remove obsolete reserved space, preserving reading widths. */
@media (min-width:581px) {
  .plans-page .plans-offers { padding-block:32px 48px; }
  .plans-page .plans-offers .plans-heading { margin-bottom:24px; }
  .plans-page .plans-billing { margin-block:22px 24px; }
  .plans-page .plan-group-label { margin-bottom:16px; }
  .plans-page .plan-group { display:grid;grid-template-rows:auto 1fr; }
  .plans-page .offering-grid { height:auto; }
  .plans-page .offering-card { padding:22px;min-height:0; }
  .plans-page .offering-description { min-height:0;margin-bottom:16px; }
  .plans-page .offering-price-block { min-height:76px;padding-bottom:16px;margin-bottom:16px; }
  .plans-page .plans-offers[data-current-period=anual] .offering-price-block { min-height:104px; }
  .plans-page .offering-limit { min-height:2.5em;margin-bottom:16px; }
  .plans-page .offering-intro { margin-bottom:8px; }
  .plans-page .offering-features { min-height:0; }
  .plans-page .offering-features ul { gap:9px;margin-bottom:18px; }
  .plans-page .offering-card .button { min-height:48px;white-space:normal; }
  .plans-page .plans-help { padding-block:64px; }
  .plans-page .plans-help h2 { font-size:clamp(46px,4.2vw,64px);margin-bottom:24px; }
  .plans-page .plans-help p { font-size:clamp(20px,1.7vw,24px);margin-bottom:28px; }
  .plans-page .plans-help .button { font-size:21px;min-height:60px;padding:16px 28px;gap:16px; }
}
@media (min-width:761px) {
  .plans-page .plans-section:not(.plans-offers):not(.plans-help) { padding-block:48px; }
  .plans-page .plans-faq-list { gap:12px; }
  .plans-page .plans-faq-list summary { font-size:21px;padding-block:17px; }
  .plans-page .plans-faq-list details > p { font-size:18px;line-height:1.5; }
}
.auth-page .auth-hero { padding-top:24px;margin-bottom:24px; }
.auth-page .auth-hero h1 { font-size:clamp(34px,3.7vw,52px); }
.help-page .help-main { padding-top:40px; }
.help-page .help-hero { margin-bottom:30px; }
.help-page .help-columns { align-items:start; }
@media (max-width:600px) {
  .auth-page .auth-hero { padding-top:12px;margin-bottom:22px; }
  .auth-page .auth-hero h1 { font-size:clamp(31px,7.6vw,42px); }
}
@media (min-width:701px) {
  .site-footer { padding:56px 0 30px; }
  .footer-main { padding-bottom:36px;gap:clamp(32px,4vw,72px); }
}
