/* Pages opened in the iOS app web view. Matches MetroShare controls:
   San Francisco via -apple-system, 64px pills, primary ColorButtonPrimary.
   Marketing pages keep .block-button. See DESIGN_SYSTEM.md. */

body.app-embedded {
  --app-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --app-primary: #0088ff;
  --app-primary-pressed: #0079d3;
  --app-border: #9d9d9d;
  --app-secondary-text: #373737;
  box-sizing: border-box;
  /* Critical layout CSS forces width/max-width/margin with !important. */
  width: 100% !important;
  max-width: 480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 8px 16px 40px;
  align-items: stretch;
  background: #fff;
  color: #000;
  font-family: var(--app-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

body.app-embedded,
body.app-embedded * {
  font-family: var(--app-font);
}

body.app-embedded h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  color: #000;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

body.app-embedded .app-support-header-1 {
  max-width: none;
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-align: center;
}

body.app-embedded .uui-faq01_component {
  margin-top: 12px;
  padding-left: 0;
  padding-right: 0;
}

body.app-embedded .uui-faq01_question {
  padding-top: 16px;
  padding-bottom: 16px;
}

body.app-embedded .app-faq01_heading {
  color: #000;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

body.app-embedded .app-uui-text-size-medium,
body.app-embedded .app-text-5 {
  color: #000;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

body.app-embedded .app-text-block-4,
body.app-embedded .app-text-block-4-copy {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

body.app-embedded .app-text-block-4 {
  margin-top: 28px;
}

body.app-embedded .app-text-block-4-copy {
  margin-top: 12px;
}

body.app-embedded a {
  color: var(--app-primary);
}

body.app-embedded .app-heading-6,
body.app-embedded .app-heading-7 {
  margin-top: 64px;
  font-size: 19px;
  font-weight: 500;
  text-align: center;
}

body.app-embedded .account-deletion-section {
  max-width: none;
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
}

body.app-embedded .form-block {
  margin-top: 16px;
}

body.app-embedded .app-field-label {
  margin: 0 0 8px;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

body.app-embedded .app-text-field {
  box-sizing: border-box;
  width: 100%;
  height: 64px;
  margin: 0 0 16px;
  padding: 0 16px;
  border: 1px solid var(--app-border);
  border-radius: 32px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}

body.app-embedded .app-text-field::placeholder {
  color: #8e8e93;
}

body.app-embedded .app-text-field:focus {
  border-color: var(--app-primary);
  outline: none;
}

body.app-embedded .contact-buttons {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 8px;
}

body.app-embedded .small-button,
body.app-embedded .app-small-button {
  box-sizing: border-box;
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 0 20px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

body.app-embedded .small-button {
  justify-content: center;
  border: 1px solid var(--app-border);
  background: #fff;
  color: var(--app-secondary-text);
}

body.app-embedded .small-button:hover,
body.app-embedded .small-button:active {
  background: #f7f7f7;
  color: var(--app-secondary-text);
}

body.app-embedded .app-button-label-1 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

body.app-embedded .app-small-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border: 0;
  background-color: var(--app-primary);
  background-color: color(display-p3 0 0.533 1);
  color: #fff;
}

body.app-embedded .app-small-button:hover,
body.app-embedded .app-small-button:active {
  background-color: var(--app-primary-pressed);
  color: #fff;
}

body.app-embedded .form-privacy-note {
  font-size: 13px;
  line-height: 1.4;
}

body.app-embedded .w-form-done,
body.app-embedded .w-form-fail {
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.4;
}
