:root {
    --ink: #1a1710;
    --ink-2: #3d3a30;
    --ink-3: #7a7669;
    --ink-4: #b8b4a6;
    --parchment: #fafafa;
    --parchment-2: #f2efe6;
    --parchment-3: #e8e4d8;
    --gold: #c8961e;
    --gold-light: #f0c84a;
    --gold-dim: #0DABF4;
    --gold-dim-text: #0DABF4;
    --red: #9e2b2b;
    --blue: #1d3d6e;
    --staff: #2a2620;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: #fafafa;
    color: var(--ink);
  }

  /* ── NOISE TEXTURE ── */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
  }







  /* ── FEATURE ROWS ── */
  .features-rows {
    display: flex;
    flex-direction: column;
    gap: 200px;
    margin-top: 80px;
  }

  .feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .feature-row.reverse {
    direction: rtl;
  }

  .feature-row.reverse > * {
    direction: ltr;
  }

  .feature-row-text .feature-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0DABF4;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .feature-row-text .feature-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: #0DABF4;
  }

  .feature-row-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 300;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
  }

  .feature-row-text h3 em {
    font-style: italic;
    color: var(--gold-dim);
  }

  .feature-row-text p {
    font-size: 16px;
    font-weight: 300;
    color: var(--ink-3);
    line-height: 1.75;
    margin-bottom: 24px;
  }

  .feature-row-text .feature-tag {
    display: inline-block;
    font-size: 11px;
    color: #0DABF4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(13,171,244,0.3);
    padding-bottom: 2px;
  }

  .feature-row-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tablet-mockup {
    width: 100%;
    max-width: 360px;
    filter: drop-shadow(0 32px 64px rgba(26,23,16,0.15));
  }

  .tablet-mockup svg {
    width: 100%;
    height: auto;
  }

  .app-preview .tablet-mockup { max-width: 100%; }

  /* ── TABLET COM TELA (vídeo ou imagem) ──
     O elemento .tablet-screen é sobreposto à área de tela do SVG. Os insets são a posição
     exata do rect branco do molde (39.57 / 36.57 / 1239.47 / 1952.48 num
     viewBox de 1280 × 1990), convertidos para porcentagem. */
  .tablet-mockup--video {
    position: relative;
  }

  /* O SVG é inline por padrão, então o navegador reserva o espaço de
     descendente da linha abaixo dele (~5px a 480px de largura). Isso estica
     a caixa e joga o vídeo, que é posicionado em %, para baixo — deixando a
     borda inferior mais fina que a superior. `block` zera esse espaço. */
  .tablet-mockup--video svg {
    display: block;
  }

  .tablet-mockup--video .tablet-screen {
    position: absolute;
    left: 3.0914%;
    top: 1.8377%;
    width: 93.7422%;
    height: 96.2769%;
    display: block;
    object-fit: cover;
    border-radius: 4.098% / 2.567%;
    background: #fff;
    z-index: 1;
  }

  @media (max-width: 900px) {
    .feature-row {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    .feature-row.reverse { direction: ltr; }
    .features-rows { gap: 60px; }
  }


  /* ── FEATURE ROW REVEAL (mobile) ──
     Uses the same single .fade-in/.visible mechanism as the rest of the
     site, so it can't get stuck hidden on very small viewports. */



  .device-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
  }

  .device-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1.5px solid rgba(26,23,16,0.15);
    border-radius: 100px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-2);
    background: #fff;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    user-select: none;
  }

  .device-option:hover {
    border-color: #0DABF4;
    color: #0DABF4;
  }

  .device-option.selected {
    border-color: #0DABF4;
    background: rgba(13,171,244,0.06);
    color: #0DABF4;
    font-weight: 500;
  }

  .device-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.3;
    transition: opacity 0.2s, background 0.2s;
    flex-shrink: 0;
  }

  .device-option.selected .device-check {
    opacity: 1;
    background: #0DABF4;
    border-color: #0DABF4;
    color: #fff;
  }

  @media (max-width: 600px) {
    .device-selector { gap: 10px; }
    .device-option { padding: 10px 20px; font-size: 13px; }
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }

  .nav-pill {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 100px;
    padding: 10px 72px;
    margin: 0 auto;
    transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  }

  .nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-logo .clef {
    font-size: 28px;
    color: #0DABF4;
    line-height: 1;
  }

  /* O logo aparece e some instantaneamente sobre a seção escura — sem transição.
     Ver updateLogoVisibility() em assets/js/home.js. */
  .nav-logo {
    transition: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
  }

  .pill-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-2);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    border-radius: 100px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
  }
  .pill-link:hover { background: rgba(26,23,16,0.06); color: var(--ink); }
  .pill-link.active { color: #0DABF4; font-weight: 500; }

  .nav-cta {
    padding: 9px 22px;
    background: #0DABF4 !important;
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.2s !important;
  }
  .nav-cta:hover { background: #0a9add !important; color: #fff !important; }

  /* ── HERO ── */
  .hero {
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* ATENÇÃO: a <section class="hero"> nunca é fechada no HTML, então o resto da
       página inteira fica dentro dela. Por isso este padding-bottom não é espaço do
       hero — é o espaço entre o footer e a base do documento. Mantido em 80px. */
    padding: 180px 48px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  /* Staff lines decoration */
  .staff-lines {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.045;
  }
  .staff-lines line {
    stroke: var(--staff);
    stroke-width: 0.5;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid #0DABF4;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 36px;
    background: #222222;
    animation: fadeUp 0.6s ease both;
  }

  .hero h1 {
    font-family: 'Cormorant Garamond', serif;
    /* O teto de 100px é ditado pelo idioma mais longo (francês): acima disso a
       segunda frase quebra e o título vira 3 ou 4 linhas em vez de 2. Mantido
       igual em todos os idiomas para o título ter o mesmo peso em qualquer um. */
    font-size: clamp(52px, 8vw, 100px);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -0.01em;
    color: var(--ink);
    max-width: 1100px;
    margin-bottom: 28px;
    animation: fadeUp 0.7s ease 0.1s both;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--gold-dim);
  }

  .hero-sub {
    font-size: 18px;
    font-weight: 300;
    color: var(--ink-3);
    max-width: 820px;
    line-height: 1.7;
    margin: 0 auto 52px;
    text-align: center;
    animation: fadeUp 0.7s ease 0.2s both;
  }

  .hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 80px;
    animation: fadeUp 0.7s ease 0.3s both;
  }

  .btn-primary {
    padding: 14px 32px;
    background: #0DABF4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-primary:hover { background: #0a9add; transform: translateY(-1px); }

  .btn-secondary {
    padding: 14px 28px;
    background: transparent;
    color: var(--ink-2);
    border: 1px solid var(--parchment-3);
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-secondary:hover { border-color: var(--ink-4); color: var(--ink); transform: translateY(-1px); }

  /* ── APP PREVIEW ── */
  /* O hero usa o mesmo mockup das linhas de recurso. 460px de largura dão a
     mesma altura que a imagem anterior tinha (≈715px), então o bloco não cresce. */
  .app-preview {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    animation: mockupEntry 1.1s cubic-bezier(0.23, 1, 0.32, 1) 0.5s both, mockupFloat 6s ease-in-out 1.8s infinite;
  }

  .app-preview.scroll-reveal {
    animation: none;
    opacity: 0;
    transform: perspective(1200px) rotateX(8deg) translateY(40px) scale(0.97);
    transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .app-preview.scroll-reveal.revealed {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translateY(0px) scale(1);
    animation: mockupFloat 6s ease-in-out 1s infinite;
  }

  .app-window {
    background: var(--ink);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 40px 120px rgba(26,23,16,0.35), 0 4px 20px rgba(26,23,16,0.2);
  }

  .app-titlebar {
    background: #252219;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .titlebar-dots {
    display: flex;
    gap: 7px;
  }

  .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
  }
  .dot-r { background: #ff5f57; }
  .dot-y { background: #febc2e; }
  .dot-g { background: #28c840; }

  .titlebar-name {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.06em;
    margin-left: 8px;
  }

  .app-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    height: 480px;
  }

  /* Sidebar */
  .app-sidebar {
    background: #201e18;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 16px 0;
    overflow: hidden;
  }

  .sidebar-section {
    margin-bottom: 8px;
  }

  .sidebar-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    padding: 8px 18px 4px;
  }

  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .sidebar-item:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.8); }
  .sidebar-item.active { background: rgba(13,171,244,0.1); color: #0DABF4; }

  .sidebar-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
  }

  .sidebar-folder {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 18px 6px 30px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
  }
  .sidebar-folder:hover { color: rgba(255,255,255,0.65); }

  .sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 8px 18px;
  }

  /* Main content area */
  .app-main {
    background: #1a1812;
    display: flex;
    flex-direction: column;
  }

  .app-toolbar {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .tool-group {
    display: flex;
    gap: 2px;
  }

  .tool-btn {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .tool-btn:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.08); }
  .tool-btn.active { background: rgba(13,171,244,0.12); color: #0DABF4; border-color: rgba(13,171,244,0.25); }

  .toolbar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.08);
    margin: 0 4px;
  }

  .toolbar-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

  .view-select {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border-radius: 5px;
    padding: 2px;
  }

  .view-btn {
    padding: 5px 10px;
    border-radius: 3px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.03em;
    font-family: 'DM Sans', sans-serif;
  }
  .view-btn.active { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }

  /* Score canvas */
  .score-canvas {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #1a1812;
    position: relative;
  }

  .score-page {
    background: #f9f7f0;
    border-radius: 3px;
    width: 100%;
    max-width: 580px;
    padding: 40px 48px;
    box-shadow: 0 2px 40px rgba(0,0,0,0.5);
    position: relative;
  }

  .score-title-area {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(26,23,16,0.12);
  }

  .score-piece {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: #1a1710;
    letter-spacing: 0.03em;
  }

  .score-composer {
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    font-style: italic;
    color: #7a7669;
    margin-top: 3px;
  }

  /* Staff notation (SVG inside page) */
  .staff-svg {
    width: 100%;
  }

  /* Annotations */
  .annotation-bubble {
    position: absolute;
    top: 22px;
    right: -12px;
    background: rgba(200,150,30,0.9);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  /* ── FEATURES SECTION ── */
  section { position: relative; z-index: 1; }

  .section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
  }

  .features-section {
    padding: 240px 48px 120px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .features-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 80px;
  }

  .features-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(52px, 8vw, 120px);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -0.01em;
    color: var(--ink);
    max-width: 900px;
    margin: 0 auto 28px;
  }

  .features-header h2 em { font-style: italic; color: var(--gold-dim); }

  .features-header p {
    font-size: 18px;
    font-weight: 300;
    color: var(--ink-3);
    max-width: 820px;
    line-height: 1.7;
    margin: 0 auto 52px;
    text-align: center;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
  }

  .feature-card {
    background: var(--parchment-2);
    padding: 36px 32px;
    position: relative;
    transition: background 0.2s;
  }
  .feature-card:hover { background: var(--parchment-3); }

  .feature-card:first-child { border-radius: 8px 0 0 0; }
  .feature-card:nth-child(3) { border-radius: 0 8px 0 0; }
  .feature-card:nth-child(4) { border-radius: 0 0 0 8px; }
  .feature-card:last-child { border-radius: 0 0 8px 0; }

  .feature-icon {
    width: 40px; height: 40px;
    border-radius: 6px;
    background: rgba(200,150,30,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 18px;
  }

  .feature-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: 0.01em;
  }

  .feature-card p {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-3);
    line-height: 1.7;
  }

  .feature-tag {
    display: inline-block;
    margin-top: 16px;
    font-size: 11px;
    color: var(--gold-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(200,150,30,0.3);
    padding-bottom: 2px;
  }

  /* ── WORKFLOW SECTION ── */
  .workflow-section {
    background: var(--ink);
    padding: 120px 48px;
    color: var(--parchment);
    box-shadow: 0 0 0 100vmax var(--ink);
    clip-path: inset(0 -100vmax);
    margin-bottom: 80px;
  }

  .workflow-inner {
    width: 100%;
  }

  .workflow-section .section-label {
    color: rgba(13,171,244,0.8);
  }

  .workflow-section .section-label::before {
    background: rgba(200,150,30,0.5);
  }

  .workflow-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 80px;
    max-width: 600px;
  }
  .workflow-section h2 em { font-style: italic; color: #0DABF4; }

  .workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .workflow-step {
    padding: 40px 32px;
    border-right: 1px solid rgba(255,255,255,0.06);
    position: relative;
  }
  .workflow-step:last-child { border-right: none; }

  .step-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    font-weight: 300;
    color: rgba(13,171,244,0.65);
    line-height: 1;
    margin-bottom: 20px;
  }

  .workflow-step h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--parchment);
    margin-bottom: 12px;
  }

  .workflow-step p {
    font-size: 13px;
    font-weight: 300;
    color: rgba(250,248,243,0.5);
    line-height: 1.7;
  }

  /* ── SHARE SECTION ── */
  .folder-row.indent-1 { padding-left: 28px; }
  .row-icon { font-size: 14px; opacity: 0.8; }
  /* ── CTA SECTION ── */
  .cta-section {
    padding: 140px 48px 280px;
    text-align: center;
  }

  .cta-inner {
    max-width: 680px;
    margin: 0 auto;
  }

  .cta-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 300;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: 28px;
  }
  .cta-section h2 em { font-style: italic; color: var(--gold-dim); }

  .cta-section p {
    font-size: 17px;
    font-weight: 300;
    color: var(--ink-3);
    margin-bottom: 52px;
    line-height: 1.7;
  }

  .email-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
  }

  .email-input {
    flex: 1;
    padding: 13px 18px;
    border: 1px solid var(--parchment-3);
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    background: white;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
  }
  .email-input:focus { border-color: #0DABF4; }
  .email-input::placeholder { color: var(--ink-4); }

  /* ── FOOTER ── */
  footer {
    background: #ffffff;
    padding: 64px 48px 40px;
    display: block;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 -8px 40px rgba(26,23,16,0.06);
    box-sizing: border-box;
  }

  .footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .footer-logo .clef { color: #0DABF4; }

  .footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
  }

  .footer-links a {
    font-size: 13px;
    font-weight: 300;
    color: rgba(26,23,16,0.45);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--ink); }

  .footer-copy {
    font-size: 12px;
    color: rgba(26,23,16,0.3);
    letter-spacing: 0.02em;
  }

  /* ── ANIMATIONS ── */

  @keyframes mockupEntry {
    0% {
      opacity: 0;
      transform: perspective(1200px) rotateX(18deg) translateY(60px) scale(0.94);
      filter: blur(8px);
    }
    60% {
      filter: blur(0px);
    }
    100% {
      opacity: 1;
      transform: perspective(1200px) rotateX(0deg) translateY(0px) scale(1);
      filter: blur(0px);
    }
  }

  @keyframes mockupFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }

  /* Stave lines for section decoration */
  .stave-deco {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.04;
    pointer-events: none;
  }

  /* ── RESPONSIVE ── */

  /* ── MOBILE HEADER ── */
  .mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 12px 24px;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s, backdrop-filter 0.3s;
    min-height: 56px;
  }

  .mobile-header.scrolled {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .mobile-header a {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: visible;
    line-height: 0;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(250,250,250,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .mobile-menu.open { display: flex; }

  .mobile-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
  }

  .mobile-menu a:hover { color: #0DABF4; }

  .mobile-menu .mobile-cta {
    margin-top: 16px;
    padding: 14px 40px;
    background: #0DABF4;
    color: #fff;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }

  @media (max-width: 1024px) {
    nav { display: none !important; }
    .mobile-header { display: flex; }
  }

  @media (max-width: 1024px) and (min-width: 601px) {
    .mobile-header { padding: 14px 24px; }
    .mobile-header .mobile-logo { height: 32px; }
    .mobile-menu a { font-size: 44px; }
  }

  /* ══════════════════════════════════════════════════════════════════════
     SELETOR DE IDIOMA
     Aparece na nav do desktop (canto direito, espelhando o logo à esquerda)
     e dentro do .mobile-header abaixo de 1024px, ao lado do hambúrguer.
     ══════════════════════════════════════════════════════════════════════ */

  .lang-switch {
    position: relative;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  }

  .lang-switch__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid rgba(26,23,16,0.1);
    border-radius: 100px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(26,23,16,0.7);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
  }

  .lang-switch__toggle:hover {
    color: #0DABF4;
    border-color: rgba(13,171,244,0.35);
    background: rgba(255,255,255,0.9);
  }

  .lang-switch__toggle:focus-visible {
    outline: 2px solid #0DABF4;
    outline-offset: 2px;
  }

  .lang-switch__globe {
    width: 15px;
    height: 15px;
    flex: none;
    display: block;
  }

  .lang-switch__caret {
    width: 9px;
    height: 9px;
    flex: none;
    opacity: 0.5;
    transition: transform 0.2s;
  }

  .lang-switch.is-open .lang-switch__caret { transform: rotate(180deg); }

  .lang-switch__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid rgba(26,23,16,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(26,23,16,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 200;
  }

  .lang-switch.is-open .lang-switch__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .lang-switch__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: none;
    color: rgba(26,23,16,0.75);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }

  .lang-switch__option:hover { background: rgba(26,23,16,0.04); color: #1A1710; }
  .lang-switch__option.is-active { color: #0DABF4; }

  .lang-switch__code {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    opacity: 0.55;
    min-width: 22px;
  }

  .lang-switch__option.is-active .lang-switch__code { opacity: 1; }

  /* Na nav do desktop: canto direito, espelhando o logo */
  nav .lang-switch {
    position: absolute;
    right: 48px;
  }

  /* No header mobile: agrupado com o hambúrguer */
  .mobile-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  @media (max-width: 1024px) {
    .mobile-header .lang-switch__toggle {
      padding: 7px 10px;
      background: rgba(26,23,16,0.03);
    }
  }

  @media (max-width: 600px) {
    .mobile-header .lang-switch__toggle { padding: 6px 9px; gap: 5px; }
    .mobile-header .lang-switch__globe { width: 14px; height: 14px; }
    .lang-switch__menu { min-width: 156px; }
    .lang-switch__option { font-size: 13px; padding: 8px 9px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .lang-switch__menu, .lang-switch__caret { transition: none; }
  }

  /* ══════════════════════════════════════════════════════════════════════
     SELOS DAS LOJAS (hero)
     O link de cada loja está em assets/js/stores.js. Vazio = estado "em breve".
     ══════════════════════════════════════════════════════════════════════ */

  .store-badges {
    padding-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .store-badge {
    position: relative;
    display: inline-flex;
    height: 56px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
  }

  .store-badge__art {
    height: 100%;
    width: auto;
    display: block;
    border-radius: inherit;
  }

  .store-badge:not(.is-soon):hover { transform: translateY(-2px); }
  .store-badge:not(.is-soon):active { transform: translateY(0); }

  .store-badge:focus-visible {
    outline: 2px solid #0DABF4;
    outline-offset: 3px;
  }

  /* ── estado "em breve" ── */
  .store-badge.is-soon { cursor: default; }
  /* O selo oficial não pode ser alterado (nem cinza, nem transparência) — as
     diretrizes do Google e da Apple proíbem. O estado "em breve" é comunicado
     só pela etiqueta ao lado. */

  /* A etiqueta fica ABAIXO do selo, nunca por cima: as diretrizes das duas lojas
     não permitem sobrepor nada à arte do botão. */
  .store-badge__soon {
    display: none;
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 9px;
    border-radius: 100px;
    background: #0DABF4;
    color: #fff;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(13,171,244,0.35);
    pointer-events: none;
  }

  .store-badge.is-soon .store-badge__soon { display: block; }

  /* ── aviso ao clicar num selo ainda indisponível ── */
  .store-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 12px);
    z-index: 300;
    max-width: calc(100vw - 40px);
    padding: 12px 20px;
    border-radius: 100px;
    background: #1A1710;
    color: #fff;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(26,23,16,0.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .store-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  @media (max-width: 600px) {
    .store-badges { gap: 10px; }
    .store-badge { height: 46px; }
    .store-badge__soon { font-size: 9px; padding: 2px 7px; top: calc(100% + 7px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .store-badge, .store-toast { transition: none; }
  }

  /* ── TABLET (max 1024px) ── */
  @media (max-width: 1024px) {
    nav { padding: 16px 24px; justify-content: center; }
    .nav-logo { position: static !important; }
    .nav-pill { display: none; }
    .hero { padding: 120px 24px 80px; }
    /* 10vw estourava a linha entre ~650 e ~800px de largura, levando o título a
       3 linhas nessa faixa. */
    .hero h1 { font-size: clamp(40px, 7.6vw, 72px); }
    .hero-sub { font-size: 16px; }
    .app-preview { max-width: 312px; margin: 0 auto; }
    .features-section { padding: 80px 24px 60px; }
    .features-header { grid-template-columns: 1fr; }
    .features-header h2 { font-size: clamp(36px, 8vw, 56px); }
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse { direction: ltr; }
    .feature-row-text { order: 1; }
    .feature-row-visual { order: 2; }
    .tablet-mockup { max-width: 312px; }   /* mesmo tamanho do mockup do hero */
    .features-rows { gap: 80px; margin-top: 60px; }
    .workflow-steps { grid-template-columns: 1fr 1fr; }
    /* ── MOBILE (max 600px) ── */
  @media (max-width: 600px) {
    nav { padding: 14px 20px; }
    .nav-logo svg, .nav-logo img { height: 32px !important; }
    .nav-pill { display: none; }

    /* Hero */
    .hero { padding: 200px 20px 80px; }
    /* 80px deixava o título com 5 a 6 linhas no celular. Este tamanho o mantém
       entre 3 e 4 linhas nos cinco idiomas. */
    .hero h1 { font-size: clamp(34px, 11vw, 50px); max-width: 100%; }
    .hero-sub { font-size: 15px; width: 100%; margin-bottom: 36px; }
    /* Os selos das lojas não seguem a regra antiga dos botões: ficam lado a lado,
       centralizados, e quebram para a linha de baixo só se não couberem. */
    .hero-actions.store-badges {
      flex-direction: row;
      flex-wrap: wrap;
      width: auto;
      gap: 10px;
      align-items: center;
      justify-content: center;
    }
    .app-preview { max-width: 100%; padding: 0 16px; }

    /* Features */
    /* 16px em vez de 20 para o mockup poder alcançar a largura do hero — ver a conta
       em .tablet-mockup logo abaixo. */
    .features-section { padding: 60px 16px; }
    .features-header h2 { font-size: clamp(32px, 10vw, 48px); }
    .features-header p { font-size: 15px; }
    .feature-row { gap: 32px; }
    .feature-row-text { order: 1; }
    .feature-row-visual { order: 2; }
    .tablet-mockup {
      /* Mesma largura do mockup do hero. Lá ela sai de 100vw menos 20px do padding do
         hero e 16px do padding do .app-preview, de cada lado — daí os 72px — com teto
         de 520px vindo do max-width inline da <img>. A conta é feita contra a viewport
         porque a seção de recursos fica dentro do hero e acumula um padding a mais,
         então uma porcentagem do container daria um valor diferente. */
      max-width: min(520px, calc(100vw - 72px));
    }
    .features-rows { gap: 64px; margin-top: 48px; }
    .feature-row-text h3 { font-size: clamp(26px, 8vw, 40px); }
    .feature-row-text p { font-size: 15px; }

    /* Workflow */
    .workflow-section { padding: 60px 24px !important; margin: 0 0 56px !important; box-shadow: 0 0 0 100vmax var(--ink) !important; clip-path: inset(0 -100vmax) !important; }
    .workflow-inner h2 { font-size: clamp(32px, 9vw, 48px); }
    .workflow-steps { grid-template-columns: 1fr; gap: 0; }
    .workflow-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); padding: 32px 20px; }
    .workflow-step:last-child { border-bottom: none; }
    .step-number { font-size: 36px; }

    /* Modes */
      /* Share */
      /* CTA */
    .cta-section { padding: 60px 20px; }
    .cta-section h2 { font-size: clamp(32px, 9vw, 52px); }
    .email-form { flex-direction: column; gap: 10px; }
    .email-input, .email-form .btn-primary { width: 100%; }
    .email-form .btn-primary { justify-content: center; text-align: center; }

    /* Footer */
    footer { padding: 48px 20px 32px; }
    footer > div { gap: 36px; }
    footer > div > div:first-child { flex-direction: column; align-items: flex-start; gap: 32px; }
    footer > div > div:first-child > div:last-child { flex-direction: column; gap: 24px; width: 100%; }
    footer > div > div:last-child { flex-direction: column; gap: 12px; }

    /* Misc */
    .section-label { font-size: 10px; }
  }
