/* =================================================================
   Doce Arte Patchwork · Link in bio
   Paleta tirada das próprias peças da Karina (fotos do Instagram, 27/09/2026):
   linho #F5EEE2 · cacau #5A3E2B · mostarda #C8962E · sálvia #7E9A7A · rosa antigo #D9A092
   Tipografia: Fraunces (títulos) + Inter (corpo). Duas famílias, hospedadas aqui (OFL).
   Motivo: a costura pespontada (borda tracejada) nos cartões.
   Mobile first: a base é o celular; as regras de tela larga vêm por @media (min-width).
================================================================= */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2?v=4") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2?v=4") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
}

:root {
  --linen:        #F5EEE2;
  --linen-card:   #FFFBF4;
  --linen-line:   #E4D6BF;
  --cocoa:        #5A3E2B;
  --cocoa-deep:   #3E2A1C;
  --ink:          #3A2F27;
  --ink-soft:     #6B5B4E;
  --mustard:      #C8962E;
  --mustard-soft: #E9C77E;
  --gold-hero:    #F6E3B8;  /* dourado claro só para texto sobre o véu do hero */
  --mustard-ink:  #7E5A12;
  --sage-deep:    #4A6547;
  --white:        #ffffff;
  --wa:           #25D366;

  --radius:       12px;
  --radius-lg:    20px;
  --radius-pill:  999px;
  --shadow-sm:    0 2px 10px rgba(62,42,28,.08);
  --shadow:       0 10px 28px -12px rgba(62,42,28,.30), 0 4px 12px rgba(62,42,28,.06);
  --shadow-lg:    0 24px 56px -22px rgba(62,42,28,.45);
  --ring:         0 0 0 3px rgba(200,150,46,.55);
  --stitch:       1.5px dashed rgba(90,62,43,.28);

  --maxw:         600px;
  /* margem lateral: 20 px, ou mais quando o celular está deitado e o entalhe invade a tela */
  --gl: max(20px, env(safe-area-inset-left));
  --gr: max(20px, env(safe-area-inset-right));
  --ease-out:     cubic-bezier(.22,.61,.36,1);

  --ff-head: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--linen);
  scroll-behavior: smooth;
  /* tela fixa: sem "elástico" que mostra fundo branco e sem arrastar para o lado */
  overscroll-behavior: none;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--linen);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  overflow-x: clip;
  overscroll-behavior: none;
  touch-action: manipulation;   /* sem zoom de toque duplo; o zoom de pinça continua (acessibilidade) */
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius); }
ul, ol { list-style: none; padding: 0; }
h2, .role, .tagline, .sec-head p, .link-tx span, .patch-tx span, .steps strong { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Fundo ---------- */
.bg-ambient {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(900px 600px at 105% 30%, rgba(200,150,46,.12), transparent 55%),
    radial-gradient(800px 700px at -10% 70%, rgba(126,154,122,.12), transparent 55%),
    var(--linen);
}

/* ---------- Layout ---------- */
.shell {
  width: 100%; max-width: calc(var(--maxw) + var(--gl) + var(--gr)); margin: 0 auto;
  padding: 0 var(--gr) calc(112px + env(safe-area-inset-bottom)) var(--gl);
}
section { margin-top: 44px; }

/* ---------- Hero: mosaico de retalhos ao fundo ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  margin: 0 calc(-1 * var(--gr)) 0 calc(-1 * var(--gl));
  /* encosta no topo; no app instalado (tela cheia) desce o que o entalhe ocupa */
  padding: max(32px, calc(env(safe-area-inset-top) + 20px)) var(--gr) 34px var(--gl);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* véu medido: .76 é o mínimo em que o texto passa 4,5:1 mesmo sobre pano branco */
  background: linear-gradient(180deg, rgba(62,42,28,.76) 0%, rgba(62,42,28,.78) 84%, var(--linen) 100%);
}
.brandmark { display: flex; justify-content: center; margin-bottom: 14px; }
/* logo redondo, discreto: o nome já está nele, então não precisa ser grande */
.brandmark .logo {
  width: 164px; height: 164px;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.45));
}
.eyebrow {
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--mustard-soft); font-weight: 600; margin-bottom: 6px;
}
.hero .eyebrow { color: var(--gold-hero); }
.hero .role { margin: 6px auto 0; max-width: 34ch; font-size: 1rem; color: var(--white); line-height: 1.45; }
.hero .role b { color: var(--gold-hero); font-weight: 700; }
.hero .tagline {
  margin: 10px auto 0; max-width: 38ch;
  color: rgba(255,255,255,.9); font-size: .95rem; line-height: 1.55;
}

/* ---------- Selos ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.badge {
  background: rgba(255,251,244,.94); border: var(--stitch);
  color: var(--cocoa-deep); font-size: .8rem; font-weight: 600; line-height: 1.2;
  padding: 7px 13px; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}

/* ---------- Botões ---------- */
.cta-wrap { margin-top: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; min-height: 56px; padding: 16px 22px; border: none; border-radius: var(--radius);
  font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; line-height: 1.2;
  transition: transform .18s var(--ease-out), box-shadow .22s var(--ease-out);
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa {
  color: #08311c;
  background: linear-gradient(135deg, #3ee07e 0%, var(--wa) 55%, #1bb555 100%);
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.55), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-wa:active { transform: scale(.985); }
.btn-sub { display: block; text-align: center; margin-top: 10px; color: var(--ink-soft); font-size: .84rem; line-height: 1.45; }
.btn-sub b { color: var(--cocoa); }

/* ---------- Cartões de link, com pesponto ---------- */
.links { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.link-card {
  position: relative;
  display: flex; align-items: center; gap: 14px; min-height: 72px;
  background: var(--linen-card); border: 1px solid var(--linen-line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease-out), box-shadow .22s var(--ease-out), border-color .18s var(--ease-out);
}
.link-card::before {
  content: ""; position: absolute; inset: 5px; border: var(--stitch);
  border-radius: 8px; pointer-events: none;
}
.link-card:active { transform: scale(.985); }
.link-ic {
  width: 44px; height: 44px; flex: none; border-radius: 10px; display: grid; place-items: center;
  background: rgba(200,150,46,.16); color: var(--cocoa);
}
.link-ic svg { width: 22px; height: 22px; }
.link-tx { flex: 1; min-width: 0; }
.link-tx strong { display: block; color: var(--cocoa-deep); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.link-tx span { display: block; color: var(--ink-soft); font-size: .84rem; line-height: 1.4; margin-top: 2px; }
.link-card .chev { color: var(--mustard-ink); flex: none; transition: transform .18s var(--ease-out); }
.link-card-natal .link-ic { background: rgba(217,160,146,.28); color: #8C3B2C; }

/* ---------- Título de seção ---------- */
.sec-head { text-align: center; margin-bottom: 18px; }
.sec-head .eyebrow { display: block; color: var(--mustard-ink); }
.sec-head h2 {
  font-family: var(--ff-head); font-weight: 700; color: var(--cocoa-deep);
  font-size: clamp(1.6rem, 6vw, 2rem); line-height: 1.1;
}
.sec-head p { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }

/* ---------- Peças: colcha de retalhos ---------- */
.quilt { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.patch {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 1 / 1;
  background: var(--cocoa); box-shadow: var(--shadow);
  transition: transform .18s var(--ease-out), box-shadow .22s var(--ease-out);
}
.patch:active { transform: scale(.985); }
.patch-wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.patch img { width: 100%; height: 100%; object-fit: cover; }
.patch::after {
  content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(255,251,244,.55);
  border-radius: 8px; pointer-events: none;
}
.patch-tx {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px; color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,.35);
  /* medido: no card pequeno o título fica na metade da altura; ali o véu precisa de ~78%
     para o branco passar 4,5:1 mesmo sobre tecido branco */
  background: linear-gradient(180deg, rgba(46,31,20,0) 0%, rgba(46,31,20,.35) 25%, rgba(46,31,20,.78) 50%, rgba(46,31,20,.92) 100%);
}
.patch-wide .patch-tx {
  background: linear-gradient(180deg, rgba(46,31,20,0) 25%, rgba(46,31,20,.45) 45%, rgba(46,31,20,.8) 62%, rgba(46,31,20,.92) 100%);
}
.patch-plain .patch-tx { background: linear-gradient(180deg, rgba(46,31,20,0) 20%, rgba(46,31,20,.55) 100%); }
.patch-tx strong { font-family: var(--ff-head); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.patch-wide .patch-tx strong { font-size: 1.45rem; }
.patch-tx span { font-size: .8rem; line-height: 1.35; margin-top: 3px; color: rgba(255,255,255,.9); }
.patch-tx em {
  display: inline-flex; align-items: center; gap: 4px;
  font-style: normal; font-size: .78rem; font-weight: 700; margin-top: 8px; color: var(--mustard-soft);
}
.patch-tx em svg { width: 14px; height: 14px; flex: none; }
/* Aromáticas não tem foto boa ainda: vira um retalho xadrez em sálvia */
.patch-plain {
  background:
    repeating-conic-gradient(from 45deg, var(--sage-deep) 0 25%, #5B7A57 0 50%) 0 0 / 34px 34px;
}
/* celular muito estreito (Galaxy Fold fechado, 280 px): uma coluna */
@media (max-width: 340px){
  :root { --gl: max(16px, env(safe-area-inset-left)); --gr: max(16px, env(safe-area-inset-right)); }
  .quilt { grid-template-columns: minmax(0,1fr); }
  .patch, .patch-wide { aspect-ratio: 4 / 3; }
  .badge { font-size: .75rem; padding: 6px 11px; }
  .btn { font-size: .875rem; gap: 7px; padding: 14px 10px; white-space: nowrap; }
}

/* ---------- Como encomendar ---------- */
.steps { counter-reset: passo; display: flex; flex-direction: column; gap: 10px; }
.steps li {
  counter-increment: passo; position: relative;
  display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start;
  background: var(--linen-card); border: 1px solid var(--linen-line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(passo); grid-row: span 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--ff-head); font-weight: 700; font-size: 1.2rem;
  color: var(--cocoa-deep); background: rgba(200,150,46,.2);
  outline: 1.5px dashed var(--mustard-ink); outline-offset: -5px;
}
.steps strong { color: var(--cocoa-deep); font-size: 1rem; line-height: 1.3; padding-top: 2px; }
.steps span { color: var(--ink-soft); font-size: .88rem; line-height: 1.5; margin-top: 3px; }

/* ---------- Sobre ---------- */
.about {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--cocoa) 0%, var(--cocoa-deep) 100%);
  border-radius: var(--radius-lg); color: var(--linen);
  box-shadow: var(--shadow-lg);
}
.about-body { position: relative; padding: 30px 22px 28px; }
.about-body::before {
  content: ""; position: absolute; inset: 10px;
  border: 1.5px dashed rgba(233,199,126,.35); border-radius: 12px; pointer-events: none;
}
.about-portrait {
  width: 148px; height: 148px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden;
  outline: 2px dashed var(--mustard-soft); outline-offset: 5px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.5);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .kicker {
  display: block; margin-bottom: 6px; text-align: center;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mustard-soft);
}
.about h2 { font-family: var(--ff-head); font-weight: 700; font-size: 1.7rem; line-height: 1.15; color: var(--white); text-align: center; }
.about p { margin-top: 12px; color: rgba(245,238,226,.92); font-size: .95rem; line-height: 1.6; }
.about strong { color: var(--white); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; }
.chip {
  font-size: .78rem; font-weight: 600; color: var(--linen); line-height: 1.3;
  background: rgba(245,238,226,.10); border: 1px solid rgba(245,238,226,.26);
  padding: 6px 12px; border-radius: var(--radius-pill);
}

/* ---------- Rodapé ---------- */
.foot { text-align: center; margin-top: 44px; }
.foot-social { display: flex; justify-content: center; gap: 12px; margin: 0 0 16px; }
.foot-social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--linen-card); border: 1px solid var(--linen-line); color: var(--cocoa);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease-out), background-color .18s var(--ease-out), color .18s var(--ease-out);
}
.foot-social a:active { transform: scale(.94); }
.foot-social svg { width: 19px; height: 19px; }
.foot small { display: block; color: var(--ink-soft); font-size: .8rem; line-height: 1.7; text-wrap: balance; }
.foot .name { color: var(--cocoa-deep); font-weight: 600; font-family: var(--ff-head); }

/* ---------- CTA fixo no celular ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px var(--gr) calc(12px + env(safe-area-inset-bottom)) var(--gl);
  background: linear-gradient(to top, var(--linen) 60%, rgba(245,238,226,0));
  display: flex; justify-content: center;
  transform: translateY(120%);
  transition: transform .26s var(--ease-out);
  pointer-events: none;
}
.sticky-cta.show { transform: translateY(0); pointer-events: auto; }
.sticky-cta .btn { max-width: var(--maxw); }

/* ---------- Mouse (o toque não tem hover; sem isso o efeito "gruda" no celular) ---------- */
@media (hover: hover) and (pointer: fine){
  .btn-wa:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -10px rgba(37,211,102,.6); }
  .link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--mustard); }
  .link-card:hover .chev { transform: translateX(3px); }
  .patch:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .foot-social a:hover { transform: translateY(-2px); background: var(--cocoa); color: var(--mustard-soft); }
}

/* ---------- Tela larga (computador e tablet; celular deitado é largo mas baixo e fica no layout de celular) ---------- */
@media (min-width: 640px) and (min-height: 520px){
  .shell { padding-bottom: 64px; }
  .hero { margin: 20px 0 0; border-radius: var(--radius-lg); padding: 36px 32px 34px; }
  .sticky-cta { display: none; }
}

/* ---------- Revelar ao rolar (só o que está abaixo da dobra; o JS marca com .pre) ---------- */
.pre { opacity: 0; transform: translateY(14px); }
.pre.in { opacity: 1; transform: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }

@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  .pre { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .link-card, .patch, .foot-social a, .sticky-cta { transition: none !important; }
}

.nw { white-space: nowrap; }

/* escondido na tela, presente para busca e leitor de tela */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
