/* Meu Neném, site de "em breve". Paleta caramelo (dia e madrugada), Cormorant Garamond + DM Sans, as mesmas do app.
   Nada de recurso externo: fontes e imagens saem deste próprio site. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("fontes/CormorantGaramond_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("fontes/CormorantGaramond_500Medium_Italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("fontes/CormorantGaramond_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fontes/DMSans_400Regular.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fontes/DMSans_500Medium.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fontes/DMSans_600SemiBold.woff2") format("woff2"); }

/* Três paletas, copiadas de constants/paletas.ts do app: caramelo (padrão), rosa e azul, cada uma com dia e madrugada.
   A escolha é um grupo de radios (sem JavaScript): o :has() troca as variáveis. */
:root { color-scheme: light dark;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root {
  --bg: #F7F2EC;
  --el: #FFFFFF;
  --sel: #EFE3D6;
  --text: #2E2620;
  --text2: #6F6258;
  --accent: #9A5B33;
  --fill: #9A5B33;
  --fill-ink: #FFFFFF;
  --fill2: #E3C3A3;
  --line: #E6DACC;
  --papel: #FBF4E6;
  --outline: #978676;
  --sombra: 0 1px 2px rgba(60, 38, 20, .05), 0 12px 32px -12px rgba(110, 70, 40, .18);
}
:root:has(#p-rosa:checked) {
  --bg: #FCF5F6;
  --el: #FFFFFF;
  --sel: #F8E0E5;
  --text: #2F2428;
  --text2: #74616A;
  --accent: #AF5374;
  --fill: #E2A2B2;
  --fill-ink: #2F2428;
  --fill2: #F0CCD5;
  --line: #F0DADF;
  --papel: #FDF4F0;
  --outline: #A38290;
  --sombra: 0 1px 2px rgba(70, 30, 45, .05), 0 12px 32px -12px rgba(150, 70, 100, .18);
}
:root:has(#p-azul:checked) {
  --bg: #F3F6F9;
  --el: #FFFFFF;
  --sel: #D9E6F2;
  --text: #1F2A33;
  --text2: #5B6A77;
  --accent: #3F6C94;
  --fill: #A9CBE8;
  --fill-ink: #1F2A33;
  --fill2: #CFE1F1;
  --line: #D3DEE8;
  --papel: #F5F7F6;
  --outline: #7B8E9F;
  --sombra: 0 1px 2px rgba(20, 40, 60, .05), 0 12px 32px -12px rgba(50, 90, 130, .18);
}

/* Madrugada, como no app */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1714;
    --el: #2A221D;
    --sel: #3A3029;
    --text: #F3E9DF;
    --text2: #B5A596;
    --accent: #C98F63;
    --fill: #C98F63;
    --fill-ink: #1C1714;
    --fill2: #E3C3A3;
    --line: #3A3029;
    --papel: #261F1A;
    --outline: #8A7767;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .55);
  }
  :root:has(#p-rosa:checked) {
    --bg: #1E1619;
    --el: #2C2025;
    --sel: #3D2D33;
    --text: #F6E9EC;
    --text2: #BBA5AC;
    --accent: #E2A2B2;
    --fill: #B8798C;
    --fill-ink: #1E1619;
    --fill2: #5A3A45;
    --line: #3D2D33;
    --papel: #2A1F23;
    --outline: #8F7780;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .55);
  }
  :root:has(#p-azul:checked) {
    --bg: #12181E;
    --el: #1C252E;
    --sel: #2A3642;
    --text: #E8F0F7;
    --text2: #9FB0BF;
    --accent: #A9CBE8;
    --fill: #7598B9;
    --fill-ink: #12181E;
    --fill2: #34495C;
    --line: #2A3642;
    --papel: #1A232B;
    --outline: #6F8496;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 36px -14px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
img, svg { display: block; max-width: 100%; }

.pular { position: absolute; left: 16px; top: -64px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--fill); color: var(--fill-ink); font-weight: 600; text-decoration: none; }
.pular:focus { top: 12px; }
.so-leitor { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

.miolo { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

/* Ícones de traço fino, os mesmos do app */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
.bola { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sel); }

/* Marca */
.topo { padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.marca .ic { width: 26px; height: 26px; }
.marca span { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1; letter-spacing: .005em; }

/* Escolha a cor do enxoval: radios de verdade, escondidos só na aparência */
.cores { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; align-items: center; gap: 4px; }
.cores legend { float: left; margin-right: 8px; padding: 0; color: var(--text2); font-size: .875rem; }
.cor { position: relative; display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.cor input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cor .amostra { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--outline); transition: transform .2s ease, box-shadow .2s ease; pointer-events: none; }
.cor input:checked + .amostra { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); transform: scale(.92); }
.cor input:focus-visible + .amostra { outline: 3px solid var(--accent); outline-offset: 5px; }
.cor-caramelo { --c: #9A5B33; } .cor-rosa { --c: #E2A2B2; } .cor-azul { --c: #A9CBE8; }
@media (prefers-reduced-motion: reduce) { .cor .amostra { transition: none; } }

/* Primeira dobra */
.heroi { display: grid; gap: 28px; padding-block: 40px 56px; grid-template-areas: "texto" "selo" "arte"; }
.heroi-texto { grid-area: texto; display: grid; gap: 14px; }
.heroi h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 9.6vw, 3rem); line-height: 1.06; letter-spacing: -.005em; text-wrap: balance; }
.heroi-linha { color: var(--text2); font-size: 1.0625rem; line-height: 1.5; }
.heroi-arte { grid-area: arte; width: min(100%, 420px); margin-inline: auto; }
.heroi-arte svg { width: 100%; height: auto; }

/* O selo "Em breve" */
.selo-breve { grid-area: selo; position: relative; display: grid; gap: 14px; padding: 22px 22px 18px; border-radius: 28px; background: var(--el); border: 1px solid var(--line); box-shadow: var(--sombra); overflow: hidden; }
.selo-breve::before { content: ""; position: absolute; right: -46px; top: -46px; width: 150px; height: 150px; border-radius: 50%; background: var(--sel); opacity: .75; }
.selo-breve > * { position: relative; }
.pilula { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px; border-radius: 999px; background: var(--fill); color: var(--fill-ink); font-weight: 600; font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; }
.pilula .ic { width: 17px; height: 17px; color: inherit; }
.selo-frase { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.875rem; line-height: 1.1; }
.selo-lojas { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text2); font-size: .9375rem; line-height: 1.35; }

/* As seis funções */
.funcoes { padding-bottom: 56px; }
.grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cartao { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 10px; border-radius: 20px; background: var(--el); border: 1px solid var(--line); font-weight: 600; font-size: .875rem; line-height: 1.25; }

/* O essencial é grátis */
.promessa { display: grid; gap: 18px; justify-items: center; text-align: center; padding-bottom: 56px; }
.promessa-arte { width: min(72%, 280px); }
.promessa h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.75rem, 7.4vw, 2.25rem); line-height: 1.1; color: var(--accent); text-wrap: balance; }
.selos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.selos li { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); font-weight: 500; font-size: .875rem; }
.selos .ic { width: 20px; height: 20px; }

/* Aconchego */
.aconchego { padding-bottom: 56px; }
.faixa { display: grid; gap: 18px; padding: 26px 22px; border-radius: 28px; background: var(--sel); }
.faixa h2 { text-wrap: balance; font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.1; }
.faixa ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.faixa li { display: flex; align-items: center; gap: 12px; font-size: 1rem; line-height: 1.35; }
.faixa .bola { background: var(--el); }

/* Contato */
.contato { display: grid; justify-items: center; gap: 6px; text-align: center; padding-bottom: 56px; }
.contato .bola { width: 48px; height: 48px; margin-bottom: 6px; }
.contato .ic { width: 24px; height: 24px; }
.contato p { color: var(--text2); }
.contato a { font-family: var(--serif); font-weight: 600; font-size: 1.625rem; line-height: 1.2; text-underline-offset: 5px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }

/* Rodapé */
.rodape { border-top: 1px solid var(--line); padding-block: 28px 40px; text-align: center; color: var(--text2); font-size: .8125rem; line-height: 1.6; }
.rodape p + p { margin-top: 4px; }

/* Ilustrações em SVG: as mesmas do carrossel A do app, trocando de cor sozinhas com o tema */
.fSel { fill: var(--sel); } .fEl { fill: var(--el); } .fFill { fill: var(--fill); } .fFill2 { fill: var(--fill2); }
.fLine { fill: var(--line); } .fAcc { fill: var(--accent); } .fInk { fill: var(--text); } .fPapel { fill: var(--papel); }
.sLine { stroke: var(--line); } .sAcc { stroke: var(--accent); } .sInk { stroke: var(--text); } .sFill { stroke: var(--fill); } .sFill2 { stroke: var(--fill2); }

/* Página 404 */
.nao-achou { grid-template-areas: "texto" "arte"; padding-block: 48px 72px; }
.voltar { margin-top: 10px; }
.voltar a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; border-radius: 999px; background: var(--fill); color: var(--fill-ink); font-weight: 600; text-decoration: none; }

/* Entrada suave */
@media (prefers-reduced-motion: no-preference) {
  .heroi-texto, .selo-breve, .heroi-arte { animation: sobe .8s cubic-bezier(.2, .7, .2, 1) both; }
  .selo-breve { animation-delay: .12s; }
  .heroi-arte { animation-delay: .22s; }
  @keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Telas maiores: o layout próprio do computador */
@media (max-width: 719px) {
  .cores legend { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (min-width: 720px) {
  .miolo { padding-inline: 40px; }
  .grade { gap: 14px; }
  .faixa { padding: 34px; }
  .faixa ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .faixa li { align-items: flex-start; flex-direction: column; gap: 14px; font-size: 1.0625rem; }
  .faixa .bola { width: 46px; height: 46px; }
}

@media (min-width: 960px) {
  .miolo { padding-inline: 56px; }
  .topo { padding-top: 40px; }
  .marca .ic { width: 30px; height: 30px; }
  .marca span { font-size: 2rem; }

  .heroi { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "texto arte" "selo arte"; align-content: center; align-items: center; column-gap: 72px; row-gap: 36px; padding-block: 72px 96px; }
  .heroi-texto { align-self: end; gap: 20px; }
  .selo-breve { align-self: start; max-width: 500px; }
  .selo-lojas { font-size: 1rem; }
  .heroi h1 { font-size: clamp(3.5rem, 5.2vw, 4.75rem); line-height: 1.02; }
  .heroi-linha { font-size: 1.375rem; }
  .heroi-arte { width: 100%; max-width: 520px; margin-inline: 0 auto; }
  .nao-achou { grid-template-areas: "texto arte"; padding-block: 72px 96px; }
  .nao-achou .heroi-texto { align-self: center; }

  .funcoes { padding-bottom: 96px; }
  .grade { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .cartao { gap: 18px; min-height: 112px; padding: 24px 28px; border-radius: 28px; font-size: 1.25rem; box-shadow: var(--sombra); }
  .cartao .bola { width: 60px; height: 60px; }
  .cartao .ic { width: 28px; height: 28px; }

  .promessa { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); justify-items: start; text-align: left; align-items: center; column-gap: 80px; row-gap: 22px; padding-bottom: 96px; grid-template-areas: "arte titulo" "arte selos"; }
  .promessa-arte { grid-area: arte; width: 100%; max-width: 380px; justify-self: center; }
  .promessa h2 { grid-area: titulo; align-self: end; font-size: clamp(2.75rem, 4.2vw, 3.75rem); }
  .promessa .selos { grid-area: selos; align-self: start; justify-content: flex-start; gap: 12px; }
  .selos li { padding: 9px 18px 9px 14px; border-radius: 999px; background: var(--el); border: 1px solid var(--line); font-size: 1rem; }

  .aconchego { padding-bottom: 96px; }
  .faixa { grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr); align-items: center; column-gap: 56px; padding: 44px 56px; border-radius: 36px; }
  .faixa h2 { font-size: 2.25rem; }
  .contato { padding-bottom: 96px; }
  .contato a { font-size: 2.25rem; }
  .rodape { font-size: .875rem; padding-block: 32px 48px; }
}

@media (min-width: 1280px) {
  .heroi h1 { font-size: 5rem; }
}

@media (forced-colors: active) {
  .cor .amostra { border-color: CanvasText; }
  .cor input:checked + .amostra { outline: 2px solid Highlight; outline-offset: 3px; }
  .pilula, .selo-breve, .cartao, .faixa { border: 1px solid CanvasText; }
}
