/*
 * NailsApp · landing page
 * Página clara; as "telas" do app aparecem no tema Noite, o mesmo que as
 * clientes mais usam. Fontes iguais às do app (Montserrat + Lato).
 * Mobile primeiro: o padrão é 320–719px; telas maiores ajustam no fim.
 */

:root {
  /* página */
  --bg: #fbf3f0;
  --tint: #f6e6e1;
  --surface: #ffffff;
  --ink: #3d2723;
  --muted: #6b4f4a; /* 6.6:1 sobre --bg */
  --primary: #8b5a53;
  --primary-dark: #6f443e;
  --line: rgba(111, 68, 62, 0.16);

  /* telas do app (tema Noite) */
  --n-bg: #2a1e1c;
  --n-surface: #3a2b28;
  --n-ink: #fce4e0;
  --n-muted: #c9aea8;
  --n-primary: #e8b9b0;
  --n-on: #3a2420;
  --n-line: rgba(252, 228, 224, 0.12);
  --n-warn: #f0b860;

  --radius: 18px;
  --gutter: 20px;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface);
  font-weight: 700;
}
.skip:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------- Tipografia ---------------- */
h1,
.h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 8.5vw, 3.6rem);
  line-height: 1.08;
}
.h2 {
  font-size: clamp(1.5rem, 5.5vw, 2.25rem);
  line-height: 1.15;
}
h3 {
  font-size: clamp(1.15rem, 4.2vw, 1.4rem);
  line-height: 1.25;
}
.lead {
  font-size: clamp(1.06rem, 3.6vw, 1.2rem);
  color: var(--muted);
  max-width: 32em;
}

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.btn:active {
  filter: brightness(0.94);
}
.btn--sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.92rem;
  gap: 8px;
}
.btn--block {
  width: 100%;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--primary-dark);
}
.btn--outline {
  border-color: var(--primary);
  color: var(--primary-dark);
}
.btn--outline:hover {
  background: rgba(139, 90, 83, 0.08);
}
.btn--light {
  background: #fff;
  color: var(--primary-dark);
}
.btn--light:hover {
  background: var(--tint);
}
.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}
.ic {
  width: 20px;
  height: 20px;
  flex: none;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-row--center {
  align-items: stretch;
}

/* ---------------- Navegação ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 240, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .nav {
    background: rgba(251, 243, 240, 0.82);
    backdrop-filter: blur(10px);
  }
}
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.nav__links {
  display: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
}
.brand__mark rect {
  fill: var(--primary);
}
.brand__mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 36px 0 56px;
  overflow: hidden;
}
.hero__in {
  display: grid;
  gap: 48px;
}
.hero__text > * + * {
  margin-top: 20px;
}
.hero__text .cta-row {
  margin-top: 28px;
}
.hero__price {
  color: var(--muted);
}
.hero__price strong {
  color: var(--ink);
}
.origin {
  max-width: 30em;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------- Celular e telas do app ---------------- */
.hero__shot {
  display: flex;
  justify-content: center;
}
.phone {
  width: min(100%, 330px);
  padding: 9px;
  border-radius: 46px;
  background: #171010;
  box-shadow:
    0 40px 70px -20px rgba(61, 39, 35, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.screen {
  border-radius: 38px;
  background: var(--n-bg);
  color: var(--n-ink);
  padding: 28px 14px 16px;
  font-size: 13px;
  line-height: 1.35;
}
.s-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--n-surface);
  box-shadow: 0 0 0 2px var(--n-primary);
  color: var(--n-primary);
  font-family: var(--font-display);
  font-weight: 700;
}
.s-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--n-primary);
}
.s-sub {
  font-size: 12px;
  color: var(--n-muted);
}
.s-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
  padding: 4px;
  border-radius: 999px;
  background: var(--n-surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  color: var(--n-muted);
}
.s-seg span {
  padding: 7px 0;
  border-radius: 999px;
}
.s-seg .on {
  background: var(--n-primary);
  color: var(--n-on);
}
.s-card {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: var(--n-surface);
}
.s-card--accent {
  background: linear-gradient(135deg, #e8b9b0, #f3d2cb);
  color: var(--n-on);
}
.s-label {
  font-size: 12px;
}
.s-big {
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.02em;
}
.s-stats {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  font-size: 12px;
}
.s-stats b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
}
.s-list,
.p-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.s-list li,
.p-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: var(--n-surface);
}
.s-list p,
.p-list p {
  flex: 1;
  min-width: 0;
}
.s-list p > *,
.p-list p > * {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.s-list p > span,
.p-list p > span {
  font-size: 12px;
  color: var(--n-muted);
}
.s-list p > small {
  font-size: 11px;
  font-weight: 700;
  color: var(--n-primary);
}
.s-ini {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: rgba(252, 228, 224, 0.08);
  color: var(--n-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
}
.s-pill {
  flex: none;
  padding: 5px 10px;
  border: 2px solid rgba(232, 185, 176, 0.6);
  border-radius: 999px;
  color: var(--n-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
}
.s-pill--on {
  border-color: var(--n-primary);
  background: var(--n-primary);
  color: var(--n-on);
}

/* ---------------- Seções ---------------- */
.section {
  padding: 64px 0;
}
.section--tint {
  background: var(--tint);
}
.section__title {
  max-width: 18em;
}

/* Linhas de recurso: texto + "pedaço" da tela do app */
.row {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}
.row__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.row__text h3 {
  margin-top: 8px;
}
.row__text p:not(.row__n) {
  margin-top: 12px;
  color: var(--muted);
  max-width: 30em;
}

.panel {
  padding: 18px;
  border-radius: 24px;
  background: var(--n-bg);
  color: var(--n-ink);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 24px 50px -24px rgba(61, 39, 35, 0.5);
}
.p-label {
  font-size: 12px;
  color: var(--n-muted);
}
.p-field {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--n-line);
  border-radius: 14px;
  background: var(--n-surface);
}
.p-field span {
  color: var(--n-muted);
}
.p-warn {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 184, 96, 0.45);
  border-radius: 14px;
  background: rgba(240, 184, 96, 0.1);
}
.p-warn svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--n-warn);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.p-warn b {
  display: block;
}
.p-warn span {
  color: var(--n-muted);
  font-size: 13px;
}
.p-big {
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--n-primary);
}
.p-split {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--n-muted);
}
.p-split b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--n-ink);
}
.p-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  margin-top: 18px;
}
.p-bars span {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: rgba(232, 185, 176, 0.35);
}
.p-bars span:nth-child(1) { height: 38%; }
.p-bars span:nth-child(2) { height: 52%; }
.p-bars span:nth-child(3) { height: 47%; }
.p-bars span:nth-child(4) { height: 66%; }
.p-bars span:nth-child(5) { height: 71%; }
.p-bars span:nth-child(6) { height: 84%; }
.p-bars .on {
  background: var(--n-primary);
}
.p-months {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--n-muted);
  text-align: center;
}
.p-months span {
  flex: 1;
}
.p-list li {
  flex-wrap: wrap;
  row-gap: 6px;
}
.p-list p {
  flex-basis: calc(100% - 44px);
}
.p-tag {
  flex: none;
  margin-left: 44px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(232, 185, 176, 0.14);
  color: var(--n-primary);
  font-size: 11px;
  font-weight: 700;
}
.p-tag--late {
  background: rgba(240, 184, 96, 0.16);
  color: var(--n-warn);
}

/* "E também" */
.more .h2 {
  margin-bottom: 28px;
}
.checks {
  display: grid;
  gap: 18px;
}
.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
}
.checks b {
  color: var(--ink);
}
.inline-link {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  /* área de toque maior sem mudar o texto de lugar */
  padding: 10px 0;
  margin: -10px 0;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}

/* ---------------- Preço ---------------- */
.price {
  display: grid;
  gap: 36px;
}
.price__text > p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 32em;
}
.steps {
  counter-reset: passo;
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.steps li {
  counter-increment: passo;
  position: relative;
  padding-left: 44px;
  color: var(--muted);
}
.steps li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}
.steps b {
  color: var(--ink);
}
.price__card {
  align-self: start;
  padding: 28px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 24px 50px -30px rgba(61, 39, 35, 0.35);
}
.price__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 14vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price__cur,
.price__per {
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--muted);
}
.price__note {
  margin: 14px 0 24px;
  color: var(--muted);
}
.price__demo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ---------------- Dúvidas ---------------- */
.faq {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.faq details {
  border-radius: 16px;
  background: var(--surface);
}
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 52px 14px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(45deg);
}
.faq details[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}
.faq details p {
  padding: 0 18px 18px;
  color: var(--muted);
}

/* ---------------- CTA final e rodapé ---------------- */
.final {
  padding: 64px 0;
  background: var(--primary-dark);
  color: #fff;
}
.final .h2 {
  color: #fff;
}
.final p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
}
.final .cta-row {
  margin-top: 28px;
}
.foot {
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  background: #4f302b;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}
.brand--foot {
  color: #fff;
}
.brand--foot .brand__mark rect {
  fill: #fff;
}
.brand--foot .brand__mark path {
  stroke: #4f302b;
}

/* ================= Telas pequenas (até 359px) ================= */
@media (max-width: 359px) {
  :root {
    --gutter: 16px;
  }
  .btn {
    padding: 0 18px;
  }
  .screen {
    padding-inline: 10px;
  }
  .s-list li {
    padding: 8px;
    gap: 8px;
  }
  .s-ini {
    display: none;
  }
  .p-tag {
    margin-left: 0;
  }
  .p-list p {
    flex-basis: 100%;
  }
}

/* ================= A partir de 560px ================= */
@media (min-width: 560px) {
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cta-row--center {
    justify-content: center;
  }
  .final__in {
    text-align: center;
  }
  .final .h2 {
    margin-inline: auto;
    max-width: 16em;
  }
}

/* ================= A partir de 768px ================= */
@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
  .nav__links {
    display: flex;
    gap: 4px;
    margin-left: auto;
    margin-right: 8px;
  }
  .nav__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
  }
  .nav__links a:hover {
    color: var(--ink);
    background: rgba(139, 90, 83, 0.08);
  }
  .section {
    padding: 88px 0;
  }
  .row {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    margin-top: 72px;
  }
  .row--flip .row__text {
    order: 2;
  }
  .checks {
    grid-template-columns: 1fr 1fr;
    gap: 22px 40px;
  }
  .price {
    grid-template-columns: 1fr 360px;
    align-items: start;
    gap: 56px;
  }
  .faq-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
  }
  .faq {
    margin-top: 0;
  }
  .final {
    padding: 88px 0;
  }
}

/* ================= A partir de 1024px ================= */
@media (min-width: 1024px) {
  .hero {
    padding: 72px 0 96px;
  }
  .hero__in {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 64px;
  }
  .hero__shot {
    justify-content: flex-end;
  }
  .panel {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
