*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

:root {
  --gold-300: #E1B96A;
  --gold-400: #C9A04A;
  --gold-500: #B88A35;
  --gold-600: #9A7028;
  --gold-rgb: 201, 160, 74;
  --bg: #FDFCF8;
  --bg-2: #F5F0E5;
  --card: #FFFFFF;
  --text: #1C1710;
  --muted: rgba(60, 42, 20, 0.65);
  --dim: rgba(60, 42, 20, 0.45);
  --border: rgba(201, 160, 74, 0.18);
  --shadow: 0 10px 40px rgba(60, 42, 20, 0.08);
  --ok: #2F6B4F;
  --danger: #9E232C;
  --radius: 22px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
}

.ap-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(201,160,74,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201,160,74,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.ap-glow {
  position: fixed; top: -18vh; left: 50%; transform: translateX(-50%);
  width: min(900px, 100vw); height: 420px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(201,160,74,0.18), transparent 70%);
}

.ap-wrap {
  position: relative; z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.ap-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
}
.ap-logo { height: 36px; width: auto; }
.ap-top-link {
  font-size: 13px; font-weight: 600; color: var(--gold-600);
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
}

.ap-hero {
  text-align: center;
  margin: 8px auto 36px;
  max-width: 720px;
}
.ap-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 14px;
}
.ap-kicker i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(201,160,74,0.18);
}
.ap-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05;
  margin-bottom: 12px;
}
.ap-hero h1 em { font-style: italic; color: var(--gold-500); }
.ap-hero p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }

.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 960px) { .ap-grid { grid-template-columns: 1fr; } }

.ap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ap-card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(60,42,20,0.12); }
.ap-card-photo {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  overflow: hidden;
}
.ap-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ap-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ap-card-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem; line-height: 1.1;
}
.ap-card-name span { display: block; font-size: 0.95rem; color: var(--gold-600); letter-spacing: 0.02em; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chip {
  font-size: 11px; font-weight: 600; color: var(--gold-600);
  background: rgba(201,160,74,0.12); border: 1px solid rgba(201,160,74,0.2);
  padding: 5px 9px; border-radius: 999px;
}
.ap-card-bio { font-size: 0.9rem; color: var(--muted); line-height: 1.55; flex: 1; }
.ap-card-meta { font-size: 12px; color: var(--dim); }
.ap-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px; width: 100%;
  background: linear-gradient(135deg, #C9A04A, #9A7028);
  color: #fff; font-weight: 700; font-size: 0.95rem;
  border: 0; border-radius: 999px; padding: 14px 18px; cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
.ap-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ap-cta:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ap-cta-ghost {
  background: #fff; color: var(--gold-600);
  border: 1px solid var(--border);
}

.ap-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 900px) { .ap-layout { grid-template-columns: 1fr; } }

.ap-profile, .ap-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ap-profile-photo { aspect-ratio: 1 / 1.05; background: var(--bg-2); }
.ap-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ap-profile-body { padding: 22px; }
.ap-profile-body h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.05; margin-bottom: 8px;
}
.ap-profile-body .headline { color: var(--gold-600); font-weight: 600; margin-bottom: 12px; }
.ap-profile-body .bio { color: var(--muted); line-height: 1.6; margin: 12px 0 14px; }

.ap-panel { padding: 22px; }
.ap-steps {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
}
.ap-step {
  font-size: 12px; font-weight: 700; color: var(--dim);
  padding: 7px 11px; border-radius: 999px; background: var(--bg-2);
}
.ap-step.is-on { color: #fff; background: var(--gold-500); }

.ap-month {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 10px;
}
.ap-month strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem; font-weight: 500; text-transform: capitalize;
}
.ap-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--text);
}
.ap-days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 18px;
}
.ap-dow {
  text-align: center; font-size: 11px; font-weight: 700; color: var(--dim); padding: 4px 0;
}
.ap-day {
  aspect-ratio: 1; border-radius: 14px; border: 1px solid transparent;
  background: transparent; color: var(--text); cursor: pointer;
  font-weight: 600; font-size: 0.92rem;
}
.ap-day.is-muted { color: var(--dim); opacity: .45; cursor: default; }
.ap-day.is-avail { background: rgba(201,160,74,0.12); border-color: rgba(201,160,74,0.22); }
.ap-day.is-avail:hover { background: rgba(201,160,74,0.2); }
.ap-day.is-on { background: var(--gold-500); color: #fff; border-color: var(--gold-500); }

.ap-slots-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.ap-slots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px;
  margin-bottom: 18px; min-height: 48px;
}
.ap-slot {
  border: 1px solid var(--border); background: #fff; border-radius: 12px;
  padding: 11px 8px; cursor: pointer; font-weight: 700; font-size: 0.92rem;
}
.ap-slot:hover { border-color: var(--gold-400); }
.ap-slot.is-on { background: var(--gold-500); color: #fff; border-color: var(--gold-500); }

.ap-form { display: grid; gap: 12px; }
.ap-field label {
  display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px;
}
.ap-field input, .ap-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 14px;
  background: #fff; padding: 12px 14px; color: var(--text); outline: none;
}
.ap-field input:focus, .ap-field textarea:focus { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(201,160,74,0.15); }
.ap-field textarea { min-height: 88px; resize: vertical; }

.ap-summary {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 16px; font-size: 0.92rem; color: var(--muted); line-height: 1.5;
}
.ap-summary strong { color: var(--text); }

.ap-alert {
  border-radius: 14px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.45;
}
.ap-alert.is-error { background: #FBEAEA; color: var(--danger); border: 1px solid #F0C7C9; }
.ap-alert.is-ok { background: #EAF5EF; color: var(--ok); border: 1px solid #C7E4D3; }

.ap-empty, .ap-loading {
  text-align: center; color: var(--muted); padding: 28px 12px; font-size: 0.95rem;
}

.ap-success, .ap-confirm {
  text-align: center; padding: 28px 8px 8px;
  max-width: 560px; margin: 0 auto;
}
.ap-success h2, .ap-confirm h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem; margin: 10px 0 8px;
}
.ap-success p, .ap-confirm > p { color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.ap-confirm-box {
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin: 0 0 20px;
}
.ap-confirm-box h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--text);
}
.ap-confirm-box p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.ap-confirm-box p:last-child { margin-bottom: 0; }
.ap-hint {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.ks-assinatura {
  margin-top: 40px; padding: 12px 16px; font-size: 12px; line-height: 1.6;
  text-align: center; opacity: .6;
}
.ks-assinatura a { color: inherit; text-decoration: none; }
.ks-assinatura a:hover { text-decoration: underline; }
.ks-assinatura span { margin: 0 6px; }
