: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;
}

.hidden {
  display: none !important;
}

.decision-block {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid #161616;
  background: #f6f6f6;
  max-width: 860px;
}

.decision-block h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.decision-block p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: #222222;
}

.decision-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-link,
#confirm-exit-button {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0;
  text-decoration: none;
  font-family: inherit;
}

.secondary-link {
  color: #101010;
  border: 1px solid #121212;
  background: #ffffff;
}

#confirm-exit-button {
  border: 1px solid #000000;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
}

#confirm-exit-button:disabled {
  opacity: 0.65;
  cursor: default;
}

.feedback-block {
  margin-top: 24px;
}

.feedback-label {
  display: block;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.reason-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reason-card {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #171717;
  background: #ffffff;
  color: #121212;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.reason-card.selected,
.reason-card[aria-pressed="true"] {
  background: #000000;
  color: #ffffff;
}

.reason-extra {
  margin-top: 12px;
}

.reason-extra label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e1e1e;
}

#switching-app-input,
#other-reason-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #121212;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  color: #111111;
  background: #ffffff;
}

#switching-app-input:focus,
#other-reason-input:focus {
  outline: 2px solid #000000;
  outline-offset: 1px;
}

.disconnect-block {
  margin-top: 20px;
  max-width: 760px;
}

.disconnect-copy {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
  color: #222222;
}

.disconnect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#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);
}

.support-block {
  margin-top: 20px;
  font-size: 14px;
  color: #2d2d2d;
}

.support-block a {
  color: #0d0d0d;
  font-weight: 700;
}

.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;
  }

  .reason-grid {
    grid-template-columns: 1fr;
  }

  #disconnect-calendar-button {
    width: 100%;
  }

  #confirm-exit-button,
  .secondary-link {
    width: 100%;
  }
}
