:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202124;
  background: #eef2f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.65;
  background: radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.95), transparent 34rem), #eef2f1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  background: rgba(238, 242, 241, 0.92);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  width: min(920px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  width: 38px;
  height: 38px;
}

.site-name {
  flex: 1;
  margin: 10px 0 0;
  color: #171717;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.back-link {
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
}

.document {
  width: min(840px, calc(100% - 40px));
  margin: 40px auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 60px rgba(35, 58, 53, 0.08);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #171717;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.updated {
  margin: 14px 0 34px;
  color: #6b7280;
  font-size: 14px;
}

h2 {
  margin: 36px 0 10px;
  color: #171717;
  font-size: 21px;
  line-height: 1.3;
}

h3 {
  margin: 24px 0 8px;
  color: #242424;
  font-size: 17px;
}

p,
ul,
ol {
  margin: 10px 0;
}

ul,
ol {
  padding-left: 24px;
}

li + li {
  margin-top: 7px;
}

.notice,
.support-card,
.danger-card,
.success-card {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 16px;
}

.notice,
.support-card {
  border: 1px solid #cfe1dc;
  background: #f3f9f7;
}

.danger-card {
  border: 1px solid #f0c7c3;
  background: #fff7f6;
}

.success-card {
  border: 1px solid #b9ddce;
  background: #eefaf5;
}

.notice > :first-child,
.support-card > :first-child,
.danger-card > :first-child,
.success-card > :first-child {
  margin-top: 0;
}

.notice > :last-child,
.support-card > :last-child,
.danger-card > :last-child,
.success-card > :last-child {
  margin-bottom: 0;
}

.contact-link {
  font-weight: 650;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #0f574a;
  color: #fff;
}

.button-danger {
  width: 100%;
  background: #b42318;
}

.button-danger:hover {
  background: #8f1d14;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.auth-step {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 18px;
  background: #fff;
}

.auth-step h2 {
  margin-top: 0;
}

.google-button {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.verified-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 650;
}

.verified-label::before {
  content: "✓";
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #dff3eb;
}

.verified-account {
  margin: 16px 0 22px;
  padding: 14px 16px;
  border: 1px solid #cfe1dc;
  border-radius: 12px;
  background: #f3f9f7;
}

.verified-account-value {
  margin: 5px 0 0 32px;
  color: #171717;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.family-owner-warning {
  margin: 16px 0 4px;
  padding: 16px;
  border: 1px solid #f0c7c3;
  border-radius: 12px;
  background: #fff7f6;
}

.family-owner-warning > :last-child {
  margin-bottom: 0;
}

.family-owner-label {
  margin-top: 0;
  color: #b42318;
  font-weight: 700;
}

.confirmation-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
}

.confirmation-row input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: #b42318;
}

.confirmation-input {
  width: 100%;
  min-height: 46px;
  margin: 6px 0 18px;
  padding: 0 14px;
  border: 1px solid #c7cbc9;
  border-radius: 10px;
  color: #171717;
  background: #fff;
  font: inherit;
}

.confirmation-input:focus {
  outline: 3px solid rgba(23, 107, 91, 0.12);
}

.status-message {
  margin-top: 16px;
  color: #4b5563;
  font-size: 14px;
}

.status-message.error {
  color: #b42318;
}

[hidden] {
  display: none !important;
}

.page-footer {
  padding: 0 20px 36px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  .site-header-inner,
  .document {
    width: min(100% - 24px, 840px);
  }

  .document {
    margin: 16px auto 28px;
    padding: 24px 20px 32px;
    border-radius: 18px;
  }

  .auth-step {
    padding: 18px;
  }

}
