:root {
  --ink: #090909;
  --muted: #4a4a4a;
  --line: #d8d8d8;
  --dot: #c30010;
  --surface: #ffffff;
  --overlay: rgba(0, 0, 0, 0.5);
  --error: #8f1f1f;
  --success: #1f5a35;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.exit-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 22px;
}

.exit-wrap {
  width: min(920px, 100%);
}

.brand-header {
  display: inline-block;
  text-align: center;
}

.wordmark {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #000000;
}

.wordmark .dot {
  color: var(--dot);
}

.tagline {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #1a1a1a;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 30px 0;
}

.message-block h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.message-block p {
  margin: 16px 0 0;
  max-width: 860px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
  color: #151515;
}

.feedback-block {
  margin-top: 34px;
}

.feedback-block label {
  display: block;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

#exit-feedback {
  width: 100%;
  resize: vertical;
  min-height: 170px;
  padding: 14px;
  border: 1px solid #121212;
  border-radius: 0;
  font: inherit;
  font-size: 15px;
  color: #111111;
  background: #ffffff;
}

#exit-feedback:focus {
  outline: 2px solid #000000;
  outline-offset: 1px;
}

.disconnect-block {
  margin-top: 26px;
  max-width: 560px;
}

.disconnect-copy {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
  color: #222222;
}

#disconnect-calendar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 240px;
  border: 1px solid #000000;
  border-radius: 0;
  padding: 0 18px;
  background: #000000;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

#disconnect-calendar-button:hover {
  opacity: 0.88;
}

#disconnect-calendar-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.disconnect-status {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.disconnect-status.info {
  color: #2f2f2f;
}

.disconnect-status.success {
  color: var(--success);
}

.disconnect-status.error {
  color: var(--error);
}

.result-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--overlay);
  z-index: 20;
}

.result-modal.open {
  display: flex;
}

.result-card {
  width: min(500px, 100%);
  background: var(--surface);
  border: 1px solid #000000;
  padding: 26px 22px;
}

.result-card h3 {
  margin: 0;
  font-size: 31px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.result-card p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: #222222;
}

#result-close-button {
  margin-top: 18px;
  min-height: 44px;
  min-width: 150px;
  border: 1px solid #000000;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 700px) {
  .exit-page {
    padding: 28px 16px;
  }

  .tagline {
    letter-spacing: 0.22em;
    font-size: 12px;
  }

  .message-block p {
    font-size: 16px;
  }

  #disconnect-calendar-button {
    width: 100%;
  }
}
