/* The Contact page (CR-105 U3), as the app draws it: apps/customer-app/lib/features/legal/info_screen.dart (InfoScreen
   with slug `contact`, InfoHeader, ContactDoors, _Door and its actions) and lib/widgets/toast.dart (the "Email copied."
   toast). Sizes are the app's; words grow with --u like the app's text scaler, boxes and gaps stay in px.
   - Computer (900px and up): a 1080px column (40px sides), 52px above and 90px below, the three doors side by side.
   - Phone: a 720px column (20px sides), 16px above and 60px below, "← MY CODEX" first, the doors stacked.
   - The buttons follow the app's density: compact for a mouse (as the app draws them on a computer), full height
     for a finger (as on a phone). */

.page-body.contact { max-width: 1080px; padding: 52px 40px 90px; }

/* The head keeps its own measure (InfoHeader in a 640px box). */
.contact__head { max-width: 640px; }
.contact__kicker {
  margin: 0; font-size: calc(10 * var(--u)); font-weight: 600; letter-spacing: 0.24em; color: var(--gold-deep);
}
.contact__title {
  margin: 14px 0 0; font-family: var(--font-display); font-weight: 700; font-size: calc(34 * var(--u));
  line-height: 1.1; color: var(--ink); text-wrap: balance;
}
.contact__lede {
  margin: 10px 0 0; font-family: var(--font-voice); font-style: italic; font-size: calc(19 * var(--u));
  line-height: 1.4; color: var(--grey-body);
}
.contact__body { margin-top: 28px; }
.contact__body p {
  margin: 18px 0 0; font-size: calc(14 * var(--u)); line-height: 1.85; color: #3F3F3F; white-space: pre-line;
}
.contact__body p:first-child { margin-top: 0; }

/* The doors: side by side and equally tall, their actions at the foot. */
.contact__doors { margin-top: 38px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.door {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  /* The app adds the hairline to its 26/24/24 padding (Container counts the border), as CSS does. */
  padding: 26px 24px 24px; background: var(--white); border: 1px solid var(--hairline); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(138, 107, 16, 0.059);
}
.door--featured { border-color: var(--hairline-strong); }

.door__seal {
  flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline-strong); border-radius: 50%; background: var(--cream); color: var(--gold-icon);
}
/* The app's ★ and ✦ are 15px text in its symbol font; drawn here at the same size and place (a touch above the middle,
   as the app's glyphs sit), so every browser shows the same shape. */
.door__glyph { font-size: calc(15 * var(--u)); transform: translateY(-0.2em); }
.door__glyph--star { width: 0.94em; height: 0.9em; }
.door__glyph--spark { width: 0.88em; height: 0.88em; }
.door__mail { width: 17px; height: 17px; }

.door__label {
  margin: 12px 0 0; font-size: calc(9.5 * var(--u)); font-weight: 600; letter-spacing: 0.2em; color: var(--gold-deep);
}
.door__title {
  margin: 16px 0 0; font-family: var(--font-display); font-weight: 700; font-size: calc(19 * var(--u));
  line-height: 1.25; color: var(--ink); text-wrap: balance;
}
.door__body { margin: 12px 0 18px; font-size: calc(13 * var(--u)); line-height: 1.7; color: #3F3F3F; }
.door__email { font-weight: 500; color: var(--gold-deep); text-decoration: none; overflow-wrap: anywhere; }
.door__email:hover { color: var(--gold-hover); text-decoration: underline; }

/* The three actions, each at the foot of its door. */
.door__gold, .door__text-action, .door__outline { margin-top: auto; }

/* The lead door's small gold button (GoldButton compact). */
.door__gold {
  min-height: 26px; padding: 1px 15px; font-size: calc(10.5 * var(--u)); line-height: 1.5; letter-spacing: 0.14em;
  color: #1A1A1A;
}
.door__gold:hover { background: color-mix(in srgb, var(--gold), #1A1A1A 8%); color: #1A1A1A; }

/* "FIND A SPECIALIST →": gold-deep letters, 44px tall to tap. */
.door__text-action {
  display: inline-flex; align-items: center; min-height: 44px; font-size: calc(11 * var(--u)); font-weight: 600;
  letter-spacing: 0.14em; color: var(--gold-deep); text-decoration: none;
}
.door__text-action:hover { color: var(--gold-hover); }

/* "COPY EMAIL": the hairline-bordered small button. */
.door__outline {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--hairline-strong); border-radius: 3px; background: transparent; cursor: pointer;
  font-family: var(--font-ui); font-size: calc(10.5 * var(--u)); font-weight: 600; letter-spacing: 0.14em;
  line-height: 1.5; color: var(--gold-deep);
}
.door__outline:hover { background: rgba(138, 107, 16, 0.08); }

@media (pointer: coarse) {
  .door__gold { min-height: 34px; padding: 9px 15px; }
  .door__outline { min-height: 44px; }
}

/* The toast (lib/widgets/toast.dart): a dark pill with a green dot, low in the middle, three seconds. */
.contact-toast {
  position: fixed; left: 16px; right: 16px; bottom: 26px; z-index: 60; margin: 0 auto; width: fit-content;
  max-width: calc(100% - 32px); display: flex; align-items: center; gap: 10px; padding: 13px 22px;
  border-radius: 24px; background: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-size: calc(12.5 * var(--u)); font-weight: 500; line-height: 1.5; color: var(--cream);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 240ms ease, visibility 0s linear 360ms;
}
.contact-toast::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4C9A4C; }
.contact-toast.is-shown { opacity: 1; visibility: visible; transition: opacity 240ms ease; }

@media (max-width: 899.98px) {
  .page-body.contact { max-width: 720px; padding: 16px 20px 60px; }
  .contact .back-pill { margin-bottom: 18px; }
  .contact__title { font-size: calc(26 * var(--u)); }
  .contact__doors { margin-top: 28px; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .door__gold, .door__text-action, .door__outline { margin-top: 0; }
  .contact-toast { bottom: 84px; }
}
