/* Landing page do DoisContos (F-047). Cores do app (frontend/src/styles.css). Mobile-first. */
:root {
  --bg: #f7f5f2;
  --alt: #efebe5;
  --surface: #ffffff;
  --text: #1d1f24;
  --muted: #5d6576;
  --border: #e6e1da;
  --primary: #0f766e;
  --primary-dark: #0b5f58;
  --mint-bg: #dcf2e8; --mint: #23805d;
  --sky-bg: #dcebfa; --sky: #2f6fb3;
  --lilac-bg: #e9e3fa; --lilac: #6a4fc4;
  --peach-bg: #fde4d4; --peach: #b9561f;
  --rose-bg: #fadde4; --rose: #b03e59;
  --butter-bg: #f8eec4; --butter: #826406;
  --aqua-bg: #d7f0f1; --aqua: #1f7882;
  --sand-bg: #ece8e2; --sand: #66615b;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 8px 24px rgb(16 24 40 / 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
b { font-weight: 700; }
.c { color: var(--primary); }
.sprite { display: none; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: #cfc8bf; }
.btn-sm { min-height: 40px; padding: 8px 16px; border-radius: 11px; font-size: .95rem; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: #ecf7f4; }
.btn-outline-light { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.ctas { display: flex; flex-direction: column; gap: 12px; }
.ctas.center { align-items: stretch; }

/* Barra do topo */
.topbar { position: sticky; top: 0; z-index: 10; background: rgb(247 245 242 / .88);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.2rem; margin-right: auto; }
.brand img { border-radius: 10px; }
.topnav { display: none; gap: 28px; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.topnav a:hover { color: var(--text); }

/* Abertura */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-in { display: grid; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--mint-bg); color: var(--primary);
  font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 99px; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; margin: 18px 0 16px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; margin-bottom: 26px; }
.fine { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.hero-art { position: relative; min-height: 420px; }
.hero-browser { position: absolute; left: 16%; right: -40%; top: 26px; }
.hero-phone { position: absolute; left: 0; top: 0; width: 46%; max-width: 230px; }

/* Molduras */
.phone { margin: 0; background: #1b1e24; border-radius: 34px; padding: 7px;
  box-shadow: 0 18px 40px rgb(16 24 40 / .22), inset 0 0 0 1.5px #3a3f48; }
.phone img { border-radius: 28px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--border); }
.browser .bar { height: 30px; background: #ebe7e1; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #f08f83; }
.browser .bar i:nth-child(2) { background: #f3c565; }
.browser .bar i:nth-child(3) { background: #7cc78d; }
.browser .bar span { margin: 0 auto; background: #fff; border-radius: 8px; padding: 2px 18px; font-size: .72rem;
  color: var(--muted); transform: translateX(-20px); }
.browser img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }

/* Seções */
.section { padding: 64px 0; }
.section-alt { background: var(--alt); }
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Vantagens */
.grid4 { display: grid; gap: 16px; }
.adv { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.adv h3 { font-size: 1.12rem; margin: 14px 0 6px; }
.adv p { color: var(--muted); font-size: .97rem; }
.tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; }
.t-mint { background: var(--mint-bg); color: var(--mint); }
.t-sky { background: var(--sky-bg); color: var(--sky); }
.t-butter { background: var(--butter-bg); color: var(--butter); }
.t-lilac { background: var(--lilac-bg); color: var(--lilac); }
.t-rose { background: var(--rose-bg); color: var(--rose); }
.t-aqua { background: var(--aqua-bg); color: var(--aqua); }
.t-peach { background: var(--peach-bg); color: var(--peach); }
.t-sand { background: var(--sand-bg); color: var(--sand); }

/* Por dentro */
.feature { display: grid; gap: 28px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid #ddd6cd; }
.shots { position: relative; display: flex; justify-content: center; padding-right: 22%; min-height: 0; }
.shots .phone { width: 62%; max-width: 270px; position: relative; z-index: 2; }
.shots .phone.back { position: absolute; z-index: 1; width: 52%; max-width: 230px; right: 8%; top: 12%; opacity: .97; }
.ftext h3 { font-size: clamp(1.5rem, 4.6vw, 2rem); font-weight: 800; margin: 12px 0 10px; }
.ftext p { color: var(--muted); }
.tag { display: inline-block; font-weight: 700; font-size: .82rem; padding: 4px 12px; border-radius: 99px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 36px 4px 8px;
  margin-top: 12px; border-top: 1px solid #ddd6cd; }
.gallery figure { margin: 0; flex: 0 0 auto; width: 170px; scroll-snap-align: start; }
.gallery .phone { border-radius: 24px; padding: 5px; box-shadow: 0 10px 24px rgb(16 24 40 / .18), inset 0 0 0 1.5px #3a3f48; }
.gallery .phone img { border-radius: 20px; }
.gallery figcaption { text-align: center; margin-top: 10px; font-size: .9rem; color: var(--muted); font-weight: 600; }

.browser.big { max-width: 1040px; margin: 0 auto; }

/* Como começar */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.steps .phone { width: 220px; margin-bottom: 22px; }
.steps h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 8px; }
.steps h3 span { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .95rem;
  display: grid; place-items: center; }
.steps p { color: var(--muted); max-width: 22em; }
.privacy { margin-top: 48px; display: flex; gap: 14px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; color: var(--muted); }
.privacy .ic { color: var(--primary); font-size: 1.4rem; margin-top: 1px; }
.privacy b { color: var(--text); }

/* Chamada final */
.final { background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 72px 0; }
.final-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final-logo { border-radius: 20px; box-shadow: 0 10px 30px rgb(0 0 0 / .2); margin-bottom: 22px; }
.final h2 { font-size: clamp(1.8rem, 5.5vw, 2.6rem); font-weight: 800; max-width: 16em; }
.final p { margin: 12px 0 28px; color: #cdeae4; font-size: 1.08rem; max-width: 34em; }
.final .ctas { width: 100%; max-width: 380px; }
.enter-link { margin-top: 22px; display: inline-flex; gap: 8px; align-items: center; color: #e6f5f1; font-weight: 600;
  text-decoration: none; }
.enter-link:hover { text-decoration: underline; }

.foot { padding: 26px 0; font-size: .88rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Tablet */
@media (min-width: 640px) {
  .ctas { flex-direction: row; flex-wrap: wrap; }
  .ctas.center { justify-content: center; }
  .final .ctas { max-width: none; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps .phone { width: 100%; max-width: 230px; }
  .hero-art { min-height: 520px; }
  .gallery { justify-content: center; }
}

/* Computador */
@media (min-width: 960px) {
  body { font-size: 18px; }
  .topnav { display: flex; }
  .hero { padding: 64px 0 88px; }
  .hero-in { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; }
  .hero-art { min-height: 560px; }
  .hero-browser { left: 14%; right: -34%; top: 50px; }
  .hero-phone { width: 40%; max-width: 250px; }
  .grid4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 96px 0; }
  .section-head { margin-bottom: 52px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px 0; }
  .feature.reverse .shots { order: 2; }
  .gallery figure { width: 180px; }
}
