/* CRIE San Francisco: estilos de componente. Carregue depois de tokens.css. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@800&family=Roboto:wght@400;500;700&display=swap");

/* Valores que mudam com o tema e não são cor pura. */
:root,
[data-theme="noite"] {
  --crie-btn-image: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
  --crie-btn-glow: var(--shadow-gold);
  --crie-btn-glow-hover: var(--shadow-gold-hover);
  --crie-btn-hover-filter: saturate(1.05);
  --crie-field-bg: var(--bg);
  --crie-placeholder: var(--accent-soft);
  --crie-tag-ink: var(--accent-soft);
  --crie-steps-rest: rgba(202, 161, 88, 0.35);
  --crie-logo-noite: block;
  --crie-logo-papel: none;
}
[data-theme="papel"] {
  --crie-btn-image: none;
  --crie-btn-glow: none;
  --crie-btn-glow-hover: none;
  --crie-btn-hover-filter: brightness(0.92);
  --crie-field-bg: var(--surface);
  --crie-placeholder: var(--muted);
  --crie-tag-ink: var(--text);
  --crie-steps-rest: var(--accent-soft);
  --crie-logo-noite: none;
  --crie-logo-papel: block;
}

/* Base */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* Seção com tema próprio dentro da página: <section data-theme="noite" class="crie-ground"> */
.crie-ground {
  background: var(--bg);
  color: var(--text);
}

/* Tipografia: celular primeiro, desktop a partir de 768 px */
.crie-display,
.crie-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  text-wrap: balance;
}
.crie-display {
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.crie-display--closing {
  font-size: 36px;
}
.crie-title {
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.crie-highlight {
  color: var(--highlight);
}
.crie-subtitle {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
  text-wrap: pretty;
}
.crie-lead {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
}
.crie-text {
  margin: 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.crie-tag {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--crie-tag-ink);
}
.crie-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.crie-rule {
  width: 40px;
  height: 2px;
  margin: 0;
  border: 0;
  background: var(--accent);
}

/* Button */
.crie-btn {
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--button-height);
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: var(--action);
  background-image: var(--crie-btn-image);
  box-shadow: var(--crie-btn-glow);
  color: var(--on-action);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, filter 180ms ease-out;
}
.crie-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--crie-btn-glow-hover);
  filter: var(--crie-btn-hover-filter);
}
.crie-btn:active {
  transform: translateY(0);
  box-shadow: var(--crie-btn-glow);
  filter: brightness(0.94);
}
.crie-btn:focus-visible,
.crie-field__input:focus-visible,
.crie-faq__q:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.crie-btn:disabled,
.crie-btn[aria-disabled="true"] {
  opacity: 0.45;
  box-shadow: none;
  transform: none;
  filter: none;
  cursor: not-allowed;
}
.crie-btn--block {
  display: flex;
  width: 100%;
}
/* Enviando: só o ícone, sem texto */
.crie-btn[aria-busy="true"] {
  color: transparent;
  pointer-events: none;
}
.crie-btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--on-action);
  border-right-color: transparent;
  border-radius: 50%;
  animation: crie-spin 800ms linear infinite;
}
@keyframes crie-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Só ícone: voltar à etapa anterior */
.crie-btn--icon {
  width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0;
  border: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
  color: var(--accent-text);
}
.crie-btn--icon:hover {
  background: var(--soft);
  box-shadow: none;
  filter: none;
  transform: none;
}
.crie-icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Field */
.crie-field {
  display: grid;
  gap: var(--space-2);
}
.crie-field__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}
.crie-field__input {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--field-height);
  margin: 0;
  padding: 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--crie-field-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  transition: box-shadow 160ms ease-out;
}
textarea.crie-field__input {
  min-height: 84px;
  padding-block: 14px;
  resize: vertical;
}
.crie-field__input::placeholder {
  color: var(--crie-placeholder);
  opacity: 1;
}
.crie-field__input:hover {
  box-shadow: inset 0 0 0 1px var(--border);
}
.crie-field__input:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}
.crie-field__help {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.crie-field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--danger);
}
.crie-field__error .crie-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.crie-field--error .crie-field__input {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}

/* Choice: rádio e caixa de seleção */
.crie-choices {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  border: 0;
}
.crie-choices__legend {
  margin: 0 0 var(--space-3);
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}
.crie-choice {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--option-height);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--crie-field-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out;
}
.crie-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.crie-choice__mark {
  box-sizing: border-box;
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--highlight);
}
.crie-choice__mark--radio {
  border-radius: 50%;
}
.crie-choice__mark .crie-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  opacity: 0;
}
.crie-choice:has(input:checked) {
  border-color: var(--accent-text);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--accent-text);
}
.crie-choice:has(input:checked) .crie-choice__mark {
  border-color: var(--accent-text);
}
.crie-choice:has(input:checked) .crie-choice__mark .crie-icon {
  opacity: 1;
}
.crie-choice:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.crie-choice--error {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}
/* Caixa solta, com texto longo: consentimento */
.crie-choice--plain {
  align-items: flex-start;
  min-height: var(--tap-min);
  padding: var(--space-2) 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
}
.crie-choice--plain:has(input:checked) {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.crie-choice--plain:has(input:checked) .crie-choice__mark {
  background: var(--soft);
}

/* Steps: barra de etapas */
.crie-steps {
  display: flex;
  gap: var(--space-2);
}
.crie-steps__seg {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--crie-steps-rest);
}
.crie-steps__seg[aria-current="step"] {
  background: var(--highlight);
}

/* Faq: acordeão sem cartão, só filetes */
.crie-faq {
  border-top: 1px solid var(--line);
}
.crie-faq__item {
  border-bottom: 1px solid var(--line);
}
.crie-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--faq-row-height);
  padding: var(--space-3) 0;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}
.crie-faq__q::-webkit-details-marker {
  display: none;
}
.crie-faq__q .crie-icon {
  color: var(--accent-text);
}
.crie-faq__item[open] .crie-faq__plus {
  display: none;
}
.crie-faq__a {
  max-width: 62ch;
  margin: 0;
  padding: 0 0 var(--space-5);
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* EventDetails: o bloco do encontro */
.crie-event {
  box-sizing: border-box;
  margin: 0;
  padding: 0 var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  list-style: none;
}
.crie-event__row {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}
.crie-event__row:first-child {
  border-top: 0;
}
.crie-event__date {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.crie-event__day {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-text);
}
.crie-event__row--note {
  color: var(--muted);
}

/* Program: a programação, na ordem */
.crie-program {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.crie-program__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}
.crie-program__n {
  flex: none;
  width: 28px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
}

/* Card: bloco sobre o fundo */
.crie-card {
  box-sizing: border-box;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.crie-card--lg {
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-xl);
  font-size: 20px;
  line-height: 1.5;
}
.crie-card--soft {
  border-color: transparent;
  background: var(--soft);
  box-shadow: none;
}
.crie-card__title {
  margin: 0 0 var(--space-4);
}
.crie-list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}
.crie-list li {
  position: relative;
  padding-left: var(--space-6);
}
.crie-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.75em;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent-text);
}

/* Signature: o logo certo para cada tema (arquivos em assets/Logos) */
.crie-logo {
  display: inline-block;
  line-height: 0;
}
.crie-logo img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
}
.crie-logo--sm img {
  width: 160px;
}
.crie-logo--lg img {
  width: 320px;
}
.crie-logo .crie-logo__noite {
  display: var(--crie-logo-noite);
}
.crie-logo .crie-logo__papel {
  display: var(--crie-logo-papel);
}
.crie-mark {
  display: block;
  width: 48px;
  height: 48px;
}
.crie-mark--sm {
  width: 32px;
  height: 32px;
}
.crie-avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

/* SfLayer: luz, neblina e Golden Gate. Sempre sobre o tema Noite. */
.crie-atmosphere {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.crie-light {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 560px;
  height: 380px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.14;
  filter: blur(80px);
  transform: translate(-50%, -40%);
  pointer-events: none;
}
.crie-fog {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.crie-fog i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.1;
  filter: blur(60px);
  animation: crie-drift 48s ease-in-out infinite alternate;
}
.crie-fog i:nth-child(1) {
  left: -12%;
  bottom: 20%;
  width: 72%;
  height: 120px;
}
.crie-fog i:nth-child(2) {
  right: -14%;
  bottom: 2%;
  width: 64%;
  height: 140px;
  animation-delay: -16s;
}
.crie-fog i:nth-child(3) {
  left: 24%;
  bottom: 38%;
  width: 52%;
  height: 96px;
  animation-delay: -32s;
}
@keyframes crie-drift {
  from {
    transform: translateX(-4%);
  }
  to {
    transform: translateX(4%);
  }
}
.crie-bridge {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-inline: auto;
}

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
  .crie-display {
    font-size: 76px;
  }
  .crie-display--closing {
    font-size: 56px;
  }
  .crie-title {
    font-size: 44px;
  }
  .crie-subtitle {
    font-size: 21px;
  }
  .crie-text {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crie-btn,
  .crie-field__input,
  .crie-choice {
    transition: none;
  }
  .crie-btn:hover {
    transform: none;
  }
  .crie-btn[aria-busy="true"]::after,
  .crie-fog i {
    animation: none;
  }
}
