/* ==========================================================================
   Tonalize - página de apresentação (tonalizeapp.com)
   Design plano: cores chapadas, sem sombras e sem degradês.
   Ordem do arquivo: 0 fontes, 1 variáveis, 2 base, 3 peças, 4 seções, 5 rodapé.
   ========================================================================== */

/* 0. Fontes --------------------------------------------------------------- */
/* Arquivos locais, sem pedido a terceiros. São os mesmos que o Google Fonts serve: Bricolage Grotesque
   (variável, eixos opsz e wght) e Roboto (variável), cada uma em latin e latin-ext. O latin-ext só é
   baixado se a página usar um caractere dele. Licença SIL OFL 1.1 nos arquivos OFL-*.txt da pasta. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2?v=20261206000339") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2?v=20261206000339") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/roboto-latin-ext.woff2?v=20261206000339") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2?v=20261206000339") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Variáveis ------------------------------------------------------------ */
:root {
  /* Cores do aplicativo (tema escuro) */
  --bg: #101417;            /* fundo do app */
  --bg-deep: #0B0E11;       /* rodapé */
  --surface: #161B1F;       /* faixas e painéis */
  --track: #1F2227;         /* trilho da barra de confiança */
  --tonal: #292D30;         /* botão tonal do app */
  --inactive: #2A2F33;      /* barras fora da escala */
  --bezel: #0A0D0F;         /* moldura do celular */

  --text: #E0E3E8;
  --text-strong: #FFFFFF;
  --text-muted: #C3CAD3;
  --text-soft: #A9B4C0;

  --primary: #97CCF8;       /* azul claro do app */
  --primary-hover: #C5E3FB;
  --on-primary: #0E1114;
  --on-primary-soft: #1F2A33;
  --on-pill: #0B2A45;       /* texto do botão "Detectar tom" no app */
  --step-number: #5A646E;   /* número dos passos */

  --brand: #0075FF;         /* azul do logo */
  --brand-ring: #2B8CFF;    /* anéis do palco */

  --paper: #E0E3E8;         /* painel claro (Kodar Softwares) */
  --ink: #0E1114;
  --ink-soft: #2B343C;

  /* Tipografia */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(64px, 8vw, 96px);
  --radius-panel: 28px;
  --radius-stage: 40px;
  --radius-pill: 999px;
}

/* 2. Base ----------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

[id] {
  scroll-margin-top: 24px;
}

.page {
  background: var(--bg);
  overflow-x: clip;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--on-primary);
}

/* 3. Peças ---------------------------------------------------------------- */

/* Títulos e textos */
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-strong);
}

.h1 {
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h2--large {
  font-size: clamp(30px, 3.6vw, 48px);
}

.h3 {
  font-size: 24px;
  line-height: 1.25;
}

.lead {
  font-size: clamp(18px, 1.5vw, 20px);
  color: var(--text-muted);
  text-wrap: pretty;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn svg {
  flex: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

.btn--dark {
  background: var(--bg);
  color: var(--text-strong);
}

.btn--dark:hover {
  background: #000000;
  color: var(--text-strong);
}

.btn--outline {
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 15px;
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

/* Faixas e espaçamento das seções */
.section {
  padding-block: var(--section);
}

.section--band {
  background: var(--surface);
}

.section--flush {
  padding-top: 0;
}

.section__intro {
  margin-top: 16px;
  max-width: 36em;
}

/* 4. Seções --------------------------------------------------------------- */

/* Topo */
.site-header {
  padding-block: 20px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  color: var(--text-strong);
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav {
  display: none;
  gap: 28px;
  font-size: 16px;
  font-weight: 500;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text-strong);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  .site-header .btn--small {
    display: none;
  }
}

/* Abertura */
.hero {
  padding-block: 24px var(--section);
}

.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__text .lead {
  margin-top: 24px;
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.hero__note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-soft);
}

.stage {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 40px 24px;
  border-radius: var(--radius-stage);
  background: var(--brand);
}

/* Anéis chapados atrás do celular (sem desfoque) */
.stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  border-radius: 50%;
  box-shadow:
    0 0 0 70px var(--brand-ring),
    0 0 0 140px var(--brand),
    0 0 0 210px var(--brand-ring);
}

.phone {
  position: relative;
  width: 100%;
  max-width: 260px;
  overflow: hidden;
  border: 10px solid var(--bezel);
  border-radius: 44px;
  background: var(--bg);
}

.phone img {
  width: 100%;
  height: auto;
}

@media (min-width: 960px) {
  .h1 {
    font-size: clamp(46px, 5vw, 72px);
  }

  .hero {
    padding-top: 32px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
  }

  .hero__text .lead {
    margin-top: 28px;
  }

  .hero__actions {
    margin-top: 36px;
  }

  .stage {
    padding: 48px 24px;
  }

  .phone {
    max-width: 300px;
  }
}

/* A situação */
.situation__inner {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .situation__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }
}

/* O que aparece na tela */
.tiles {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 1220px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }
}

.tile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-panel);
  background: var(--bg);
}

.tile__sample {
  display: flex;
  flex: 0 0 200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-height: 128px;
}

.tile__body {
  flex: 1 1 240px;
  min-width: 0;
}

.tile__body p {
  margin-top: 8px;
  font-size: 17px;
  color: var(--text-muted);
}

/* Trechos do letreiro, nas medidas do aplicativo */
.readout-key {
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.readout-mode {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 1.5px;
}

.readout-relative {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
}

.readout-second {
  font-size: 15px;
}

.meter {
  width: 180px;
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--track);
}

.meter span {
  display: block;
  width: 58%;
  height: 100%;
  background: var(--primary);
}

.bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 128px;
}

.bars span {
  width: 10px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
}

/* Alturas da captura real: C, C#, D, D#, E, F, F#, G, G#, A, A#, B */
.bars span:nth-child(1) { height: 25px; }
.bars span:nth-child(3) { height: 30px; }
.bars span:nth-child(5) { height: 15px; }
.bars span:nth-child(7) { height: 11px; }
.bars span:nth-child(8) { height: 120px; }
.bars span:nth-child(10) { height: 10px; }
.bars span:nth-child(12) { height: 5px; }

/* Notas fora da escala de C Maior */
.bars span:nth-child(2),
.bars span:nth-child(4),
.bars span:nth-child(7),
.bars span:nth-child(9),
.bars span:nth-child(11) {
  background: var(--inactive);
}

/* Como usar */
.steps {
  display: grid;
  gap: 40px 32px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1240px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step__art {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 96px;
}

.step__number {
  min-width: 26px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--step-number);
}

.step .h3 {
  margin-top: 16px;
  font-size: 22px;
}

.step p {
  margin-top: 8px;
  font-size: 17px;
  color: var(--text-muted);
}

.steps__tip {
  margin-top: 40px;
  max-width: 44em;
  font-size: 17px;
  color: var(--text-soft);
}

/* Controles do aplicativo usados como figura dos passos */
.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 28px;
  background: var(--primary);
  color: var(--on-pill);
  font-weight: 700;
}

.app-round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tonal);
  color: var(--text-muted);
}

.app-round--mic {
  width: 76px;
  height: 76px;
  background: var(--primary);
  color: var(--text-strong);
}

.app-readout {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.app-readout .readout-key {
  font-size: 72px;
}

/* Kodar Softwares */
.publisher__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 48px;
  padding: 28px clamp(24px, 4vw, 40px);
  border-radius: var(--radius-panel);
  background: var(--paper);
  color: var(--ink);
}

.publisher__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.publisher__logo {
  flex: none;
  width: auto;
  height: 48px;
}

.publisher__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-soft);
}

.publisher__name {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.publisher__text {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 34em;
  font-size: 17px;
  color: var(--ink-soft);
}

/* Privacidade */
.privacy__inner {
  display: grid;
  gap: 40px;
}

.privacy__text .lead {
  margin-top: 16px;
}

.privacy__text .text-link {
  margin-top: 16px;
}

.checks {
  display: grid;
  gap: 20px;
  color: var(--text-muted);
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.checks strong {
  color: var(--text-strong);
}

.check {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
}

@media (min-width: 860px) {
  .privacy__inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* O projeto */
.project__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.project__text .lead {
  margin-top: 16px;
}

.project__text .text-link {
  margin-top: 16px;
}

.evaluation {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-panel);
  background: var(--surface);
}

.evaluation > p {
  margin-top: 8px;
  font-size: 17px;
  color: var(--text-muted);
}

.evaluation__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  margin-top: 28px;
}

.evaluation__value {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
  white-space: nowrap;
}

.evaluation__label {
  margin-top: 8px;
  font-size: 16px;
  color: var(--text-muted);
}

.evaluation > .evaluation__note {
  margin-top: 28px;
  font-size: 16px;
  color: var(--text-soft);
}

@media (min-width: 960px) {
  .project__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 80px;
  }
}

/* Chamada final */
.cta__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  padding: clamp(32px, 6vw, 80px);
  border-radius: var(--radius-stage);
  background: var(--primary);
  color: var(--on-primary);
}

.cta__text {
  flex: 1 1 420px;
  min-width: 0;
}

.cta__panel .h2 {
  color: var(--on-primary);
}

.cta__text p {
  margin-top: 16px;
  max-width: 34em;
  color: var(--on-primary-soft);
}

/* 5. Rodapé --------------------------------------------------------------- */
.site-footer {
  padding-block: 48px;
  background: var(--bg-deep);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}

.site-footer__about {
  flex: 1 1 320px;
  min-width: 0;
}

/* Alvo de toque de 44 px sem mudar o desenho: a margem negativa devolve a altura extra. */
.site-footer .brand {
  min-height: 44px;
  margin-block: -6px;
  font-size: 22px;
}

.site-footer .brand img {
  width: 32px;
  height: 32px;
}

.site-footer__about p {
  margin-top: 12px;
  max-width: 34em;
  font-size: 15px;
  color: var(--text-soft);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 15px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--text-strong);
}

/* Página de erro */
.not-found {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding-block: var(--section);
  text-align: center;
}

.not-found .lead {
  margin: 16px auto 32px;
  max-width: 28em;
}

/* Telas pequenas --------------------------------------------------------- */
@media (max-width: 639px) {
  body {
    font-size: 17px;
  }

  .hero__actions .btn,
  .cta__panel .btn {
    width: 100%;
  }

  .stage {
    padding: 32px 20px;
    border-radius: 32px;
  }

  .tile__sample {
    flex-basis: 100%;
    min-height: 104px;
  }

  .step__art {
    height: 84px;
  }

  .cta__panel {
    border-radius: 32px;
  }
}
