/* ============================================================
   Studio Digital RA — Design Tokens
   Fonte: Atelie-Digital-RA-Especificacao.docx (seção 8)
   ============================================================ */

:root {
  /* ---- Paleta (Tabela 9) ---- */
  --ra-black:     #0A0A0A;
  --ra-ink:       #1A1A1A;
  --ra-graphite:  #3D3D3D;
  --ra-stone:     #8C8C8C;
  --ra-bone:      #F4F1EC;
  --ra-pearl:     #EAE6DE;
  --ra-gold:      #B8956A;
  --ra-gold-deep: #8C6B3F;
  --ra-line:      #D9D2C5;
  --ra-line-soft: #E6E1D6;
  --ra-wine:      #5C1A1A;
  --ra-linen:     #3D5141;

  /* ---- Tipografia (Tabela 10 + fallbacks) ---- */
  --font-display: 'Playfair Display', 'Canela Deck', 'Canela', Georgia, serif;
  --font-body:    'Inter', 'Söhne', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'GT America Mono', 'SF Mono', Menlo, monospace;

  /* ---- Motion (seção 8.7) ---- */
  --ease-ra:     cubic-bezier(0.16, 1, 0.3, 1);
  --t-micro:     120ms;
  --t-padrao:    320ms;
  --t-narrativa: 640ms;

  /* ---- Layout (seção 8.4) ---- */
  --grid-gutter: 16px;
  --grid-margin: 24px;
  --radius:      0px;

  /* ---- iPhone Stage ---- */
  --iphone-w:        393px;
  --iphone-h:        852px;
  --iphone-radius:   54px;
  --iphone-bezel:    12px;
  --iphone-shadow:   0 32px 80px rgba(10, 10, 10, 0.22),
                     0 12px 28px rgba(10, 10, 10, 0.12),
                     inset 0 0 0 1.5px rgba(255, 255, 255, 0.04);
  --iphone-frame:    #0d0d0d;
}

/* ============================================================
   Base
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ra-ink);
  background: var(--ra-pearl);
  letter-spacing: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 32px 64px;
  gap: 32px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 12%, rgba(184, 149, 106, 0.06), transparent 38%),
    radial-gradient(circle at 8% 92%, rgba(61, 81, 65, 0.04), transparent 32%),
    var(--ra-pearl);
}

button { border: 0; font: inherit; cursor: pointer; color: inherit; background: transparent; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ============================================================
   Stage label (eyebrow + título + sub) — padrão da Natura
   ============================================================ */

.stage {
  text-align: center;
  max-width: 720px;
}
.stage-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ra-stone);
  margin-bottom: 14px;
}
.stage-eyebrow .dot { color: var(--ra-gold); margin: 0 8px; }
.stage-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ra-ink);
  line-height: 1.12;
}
.stage-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--ra-graphite);
  margin-top: 12px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   iPhone frame (mockup)
   ============================================================ */

.stage-pair {
  display: flex;
  gap: 56px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
}

.iphone {
  position: relative;
  width: var(--iphone-w);
  height: var(--iphone-h);
  background: var(--iphone-frame);
  border-radius: var(--iphone-radius);
  padding: var(--iphone-bezel);
  box-shadow: var(--iphone-shadow);
  flex-shrink: 0;
}

.iphone::before {
  /* highlight superior do alumínio */
  content: '';
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 60%;
  border-radius: var(--iphone-radius) var(--iphone-radius) 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 40%);
  pointer-events: none;
}

.iphone::after {
  /* Dynamic Island */
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 36px;
  background: #000;
  border-radius: 22px;
  z-index: 30;
  pointer-events: none;
}

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--iphone-radius) - var(--iphone-bezel));
  overflow: hidden;
  background: var(--ra-bone);
  display: flex;
  flex-direction: column;
}

/* Status bar dentro da tela */
.statusbar {
  position: relative;
  z-index: 20;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ra-ink);
  letter-spacing: -0.01em;
}
.statusbar.invert { color: var(--ra-bone); }
.statusbar .right { display: flex; gap: 6px; align-items: center; }
.statusbar svg { width: 17px; height: 11px; }

/* Home indicator */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: var(--ra-ink);
  border-radius: 3px;
  z-index: 20;
  opacity: 0.85;
}
.home-indicator.invert { background: var(--ra-bone); opacity: 0.75; }

/* Conteúdo da tela */
.canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.canvas.dark { background: var(--ra-black); color: var(--ra-bone); }

/* ============================================================
   Componentes-âncora (Tabela 11)
   ============================================================ */

/* Botão primário */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 28px;
  background: var(--ra-black);
  color: var(--ra-bone);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-ra), background var(--t-padrao) var(--ease-ra);
}
.btn:hover { background: var(--ra-ink); }
.btn:active { transform: scale(0.985); }

.btn-secondary {
  background: transparent;
  color: var(--ra-black);
  border: 1px solid var(--ra-black);
}
.btn-secondary:hover { background: var(--ra-ink); color: var(--ra-bone); }

.btn-gold {
  background: var(--ra-gold);
  color: var(--ra-black);
}
.btn-gold:hover { background: var(--ra-gold-deep); color: var(--ra-bone); }

.btn-block { width: 100%; }

/* Eyebrow / micro label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ra-stone);
}

.eyebrow-gold { color: var(--ra-gold-deep); }

/* Headlines mobile (escala da seção 8.3) */
.h-display { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; color: var(--ra-ink); }
.h-1       { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.18; letter-spacing: -0.018em; color: var(--ra-ink); }
.h-2       { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.25; letter-spacing: -0.012em; color: var(--ra-ink); }
.h-3       { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.3; color: var(--ra-ink); }
.body      { font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.55; color: var(--ra-graphite); }
.body-sm   { font-family: var(--font-body); font-weight: 400; font-size: 13px; line-height: 1.55; color: var(--ra-graphite); }
.mono      { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ra-graphite); }
.mono-sm   { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ra-stone); }

/* Divisor */
.rule { height: 1px; background: var(--ra-line); border: 0; width: 100%; }
.rule-dark { background: rgba(244, 241, 236, 0.12); }

/* Concierge Pill (componente-âncora) */
.concierge-pill {
  position: absolute;
  bottom: 110px;
  right: 18px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: var(--ra-black);
  color: var(--ra-bone);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 18px 36px rgba(10, 10, 10, 0.28);
}
.concierge-pill .dot {
  width: 6px; height: 6px; background: var(--ra-gold); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(184, 149, 106, 0.22);
}

/* Card de peça */
.card-peca {
  display: flex;
  flex-direction: column;
  background: var(--ra-bone);
  border-radius: 0;
  border-top: 1px solid var(--ra-line);
  padding: 14px 0 18px;
}
.card-peca .img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--ra-pearl);
  border: 1px solid var(--ra-line);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.card-peca .nome {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--ra-ink);
  line-height: 1.25;
}
.card-peca .sku {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--ra-stone);
  text-transform: uppercase;
  margin-top: 4px;
}
.card-peca .preco {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ra-ink);
  margin-top: 8px;
}

/* Tag de coleção (micro) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--ra-line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ra-graphite);
  background: transparent;
}
.tag-gold {
  border-color: var(--ra-gold);
  color: var(--ra-gold-deep);
}
.tag-solid {
  background: var(--ra-ink);
  border-color: var(--ra-ink);
  color: var(--ra-bone);
}

/* App bar inferior (tab bar) */
.tabbar {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 24px 28px;
  background: var(--ra-bone);
  border-top: 1px solid var(--ra-line);
  z-index: 10;
}
.tabbar.dark {
  background: var(--ra-black);
  border-top: 1px solid rgba(244, 241, 236, 0.08);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ra-stone);
}
.tab.active { color: var(--ra-ink); }
.tabbar.dark .tab { color: rgba(244, 241, 236, 0.5); }
.tabbar.dark .tab.active { color: var(--ra-bone); }
.tab .label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* App bar superior */
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 22px 18px;
  flex-shrink: 0;
}
.appbar-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ra-ink);
}
.canvas.dark .icon-btn { color: var(--ra-bone); }

/* Scrim de fotografia editorial (gradiente sutil sobre placeholders) */
.edit-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,0.32) 100%);
  pointer-events: none;
}

/* ============================================================
   Utilitários
   ============================================================ */

.text-center { text-align: center; }
.flex { display: flex; }
.col { flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.muted { color: var(--ra-stone); }
.upper { text-transform: uppercase; letter-spacing: 0.18em; }
