/* Shared styles for the Catudy sub-pages (invites, 404, privacy, account deletion).
   Loaded after styles.css, which supplies the design tokens. */

[hidden] {
  display: none !important;
}

.page-main {
  padding: clamp(44px, 6vw, 76px) 0 clamp(60px, 7vw, 92px);
}

.page-narrow {
  width: min(100% - 40px, 820px);
  margin-inline: auto;
}

.page-head {
  margin-bottom: 36px;
}

.page-head h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.page-meta {
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

/* ------------------------------------------------------------- centred card */

.centre-wrap {
  display: grid;
  min-height: calc(100dvh - var(--header-h));
  padding: clamp(32px, 6vw, 68px) 20px clamp(48px, 7vw, 84px);
  place-items: center;
  background:
    radial-gradient(circle at 14% 18%, rgba(168, 138, 240, 0.2) 0 88px, transparent 90px),
    radial-gradient(circle at 86% 76%, rgba(82, 207, 195, 0.22) 0 120px, transparent 122px),
    var(--cream);
}

.centre-card {
  width: min(100%, 540px);
  padding: clamp(28px, 5vw, 44px);
  border: var(--line);
  border-radius: 32px 32px 4px 32px;
  background: var(--white);
  box-shadow: 12px 12px 0 var(--ink);
  text-align: center;
}

.centre-card .card-logo {
  width: 68px;
  height: 68px;
  padding: 5px;
  margin: 0 auto 20px;
  border: var(--line-thin);
  border-radius: 20px;
  background: var(--lavender-soft);
  box-shadow: 5px 5px 0 var(--lavender);
}

.centre-card .card-mascot {
  width: 92px;
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(4px 5px 0 rgba(20, 26, 58, 0.18));
}

.centre-card h1 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
}

.centre-card p {
  font-weight: 650;
}

.centre-card .store-row {
  justify-content: center;
}

.invite-code {
  display: inline-grid;
  padding: 14px 26px;
  margin: 24px 0 4px;
  border: var(--line-thin);
  border-radius: 16px 16px 2px 16px;
  background: var(--sun-soft);
  box-shadow: 5px 5px 0 var(--ink);
  gap: 2px;
}

.invite-code small {
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.invite-code b {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.centre-note {
  margin-top: 24px;
  font-size: 0.86rem;
  font-weight: 700;
}

.centre-note a {
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

/* -------------------------------------------------------------------- prose */

.prose h2 {
  margin: 46px 0 14px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
}

.prose p,
.prose li {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.72;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 900;
}

.panel {
  padding: 20px 22px;
  margin-bottom: 1em;
  border: var(--line-thin);
  border-radius: 20px 20px 2px 20px;
  background: var(--sun-soft);
  box-shadow: 5px 5px 0 var(--ink);
}

.panel :last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------- forms */

.form {
  display: grid;
  padding: clamp(24px, 4vw, 34px);
  border: var(--line);
  border-radius: 26px 26px 3px 26px;
  background: var(--white);
  box-shadow: 9px 9px 0 var(--lavender);
  gap: 18px;
}

.form-plain {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: var(--line-thin);
  border-radius: 14px 14px 2px 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  font-weight: 650;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--white);
  box-shadow: 4px 4px 0 var(--mint);
  outline: none;
}

.field-hint,
.auth-divider {
  margin: 18px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.signed-in-label {
  margin-bottom: 14px;
  font-weight: 900;
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  font-size: 0.92rem;
  font-weight: 700;
}

.checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--coral);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.form-status {
  padding: 13px 15px;
  border: var(--line-thin);
  border-radius: 14px 14px 2px 14px;
  font-size: 0.9rem;
  font-weight: 800;
}

.form-status[data-state="ok"] {
  background: var(--mint-soft);
}

.form-status[data-state="error"] {
  background: var(--peach);
}

.form button[type="submit"] {
  justify-self: start;
}

.form button[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.form button[disabled]:hover {
  box-shadow: 5px 5px 0 var(--ink);
  transform: none;
}

@media (max-width: 620px) {
  .form button[type="submit"] {
    justify-self: stretch;
    justify-content: center;
  }
}
