/* Loupe Mail — Envelope desk system (aligned with home1) */

.mail-body {
  --h1-ink: #0a2f52;
  --h1-ink-soft: #1a4a73;
  --h1-paper: #e8eef4;
  --h1-paper-warm: #f2f6fa;
  --h1-line: rgba(10, 47, 82, 0.14);
  --h1-accent: #1d6bb8;
  --h1-err: #b42318;
  --h1-font-display: "Fraunces", Georgia, serif;
  --h1-font-ui: "Sora", system-ui, sans-serif;

  --green: var(--h1-accent);
  --green-dark: var(--h1-ink);
  --green-deep: var(--h1-ink);
  --green-soft: rgba(29, 107, 184, 0.1);
  --green-mist: var(--h1-paper-warm);
  --sky: #1cb0f6;
  --sky-soft: #ddf4ff;
  --gold: #c45c26;
  --coral: var(--h1-err);
  --ink: var(--h1-ink);
  --muted: var(--h1-ink-soft);
  --line: var(--h1-line);
  --card: rgba(255, 255, 255, 0.72);
  --page: var(--h1-paper);
  --navy: var(--h1-ink-soft);
  --navy-dark: var(--h1-ink);
  --navy-mid: var(--h1-accent);
  --navy-soft: rgba(29, 107, 184, 0.1);
  --blue: var(--h1-accent);
  --text: var(--h1-ink);

  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--ink);
  font-family: var(--h1-font-ui);
  font-weight: 500;
  position: relative;
}

.mail-body.home1-app > .home1-desk {
  z-index: 0;
}

.mail-body .app-topbar,
.mail-body .mail-topbar,
.mail-body .mail-main,
.mail-body .mail-site-foot {
  position: relative;
  z-index: 1;
}

.mail-body .app-topbar,
.mail-body .mail-topbar {
  background: rgba(242, 246, 250, 0.82);
  border-bottom: 1px solid var(--h1-line);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.mail-body .top-logo {
  text-decoration: none;
}

.mail-body .top-logo-text.mail-brand,
.mail-body .mail-brand {
  font-family: var(--h1-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--h1-ink);
}

.mail-body .top-logo-text strong {
  color: var(--h1-ink);
  font-weight: 700;
  font-family: var(--h1-font-display);
}

.mail-body .top-logo-text em {
  color: var(--h1-ink-soft);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1em;
  font-family: var(--h1-font-display);
}

.mail-body .top-nav a,
.mail-body .mail-topnav a {
  color: var(--h1-ink-soft);
  font-weight: 600;
  font-size: 0.82rem;
  opacity: 0.85;
}

.mail-body .top-nav a:hover,
.mail-body .mail-topnav a:hover,
.mail-topnav a.active {
  color: var(--h1-ink);
  opacity: 1;
}

.mail-lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  margin-right: 0.65rem;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.mail-lang-switch .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  padding: 0.2rem 0.35rem;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--h1-ink-soft);
  text-decoration: none;
  opacity: 0.55;
  background: transparent;
}
.mail-lang-switch .lang-btn.active,
.mail-lang-switch .lang-btn.is-on,
.mail-lang-switch .lang-btn:hover {
  background: transparent;
  color: var(--h1-ink);
  opacity: 1;
}
.mail-pin-display {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--navy-dark) !important;
  font-family: var(--h1-font-ui);
}

.mail-inline { display: inline; margin: 0; }

.mail-who,
.mail-body .linkish {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--h1-ink-soft);
}

.mail-body h1,
.mail-body h2,
.mail-body .q-text,
.mail-body .price-hero h1 {
  font-family: var(--h1-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mail-body .linkish {
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-family: inherit;
}

.mail-main {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
  flex: 1;
}

body.pricing-page .mail-main,
body.home-mail .mail-main {
  width: min(1120px, 100%);
}

.mail-site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.4rem;
  border-top: 1px solid var(--h1-line);
  background: rgba(242, 246, 250, 0.65);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.mail-site-foot .foot-brand-text {
  font-family: var(--h1-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--h1-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.mail-site-foot .foot-brand {
  color: var(--ink);
  text-decoration: none;
  gap: 0.45rem;
}

.mail-site-foot .foot-brand .logo-mark {
  width: 22px;
  height: 22px;
}

.foot-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.foot-links a {
  color: var(--h1-ink-soft);
  font-weight: 500;
  text-decoration: none;
  opacity: 0.75;
}

.foot-links a:hover {
  opacity: 1;
  color: var(--h1-ink);
  text-decoration: none;
}

.foot-links-sm {
  gap: 0.65rem 0.9rem;
  max-width: 42rem;
}

.foot-links-sm a {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--h1-ink-soft);
  letter-spacing: 0.01em;
}

.foot-links-sm a:hover {
  color: var(--h1-ink);
}

.mail-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem 1.4rem 1.75rem;
  max-width: 42rem;
  margin: 0 auto;
  backdrop-filter: blur(6px);
}

.mail-info h1 {
  margin: 0 0 0.75rem;
  font-size: 1.55rem;
  color: var(--navy-dark);
  font-weight: 700;
  font-family: var(--h1-font-display);
  letter-spacing: -0.02em;
}

.mail-info-intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 600;
}

.mail-info-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.mail-info-section h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 800;
}

.mail-info-section p {
  margin: 0 0 0.55rem;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
}

.mail-info-section ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.mail-info-section li {
  margin: 0.3rem 0;
  line-height: 1.45;
  font-weight: 600;
}

.mail-info-cta {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mail-info-cta .btn-outline { margin-top: 0; }

body.mail-info-page .mail-main {
  width: min(720px, 100%);
}

.mail-flash {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.mail-flash li { margin-bottom: 0.5rem; }

.mail-body .flash,
.mail-body .flash-ok {
  background: var(--green-soft);
  color: var(--green-deep);
  border: 1px solid var(--h1-line);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.mail-body .flash-error {
  background: #fdeceb;
  color: var(--h1-err);
  border-color: rgba(180, 35, 24, 0.25);
}

/* Cards */
.mail-card {
  background: var(--card);
  border: 1px solid var(--h1-line);
  border-radius: 4px;
  padding: 1.35rem 1.35rem 1.45rem;
  margin-bottom: 1rem;
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.mail-card.narrow {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.mail-card h1,
.mail-card h2 {
  margin-top: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: var(--h1-font-display);
}

.mail-hero {
  padding: 2.5rem 0 1.5rem;
  text-align: left;
}

.mail-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  color: var(--green-deep);
  font-weight: 700;
  font-family: var(--h1-font-display);
}

.mail-hero p {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0 0 1.1rem;
  font-weight: 600;
}

.mail-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.muted { color: var(--muted); font-weight: 500; }
.err { color: var(--coral); font-weight: 600; }

.trial-pill {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid var(--h1-line);
}

.trial-pill.ok { background: var(--green-soft); color: var(--green-deep); }
.trial-pill.warn { background: #fdeceb; color: var(--h1-err); border-color: rgba(180, 35, 24, 0.25); }

/* Forms */
.mail-form {
  display: grid;
  gap: 0.95rem;
}

.mail-form.grid2 {
  grid-template-columns: 1fr 1fr;
}

.mail-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
}

.mail-form input[type="text"],
.mail-form input[type="email"],
.mail-form input[type="password"],
.mail-form input[type="number"],
.mail-form input[type="file"],
.mail-form input[type="search"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--h1-line);
  border-radius: 4px;
  font: inherit;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-sizing: border-box;
}

.mail-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--h1-line);
  border-radius: 4px;
  font: inherit;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-sizing: border-box;
}

.mail-form select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 91, 184, 0.22);
}

/* Match main mloupe.com (home3) button style */
.mail-body .btn,
.mail-body a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  font-weight: 650;
  font-size: 0.92rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.mail-body .btn:active,
.mail-body a.btn:active {
  transform: translateY(0);
}

.mail-body .btn-primary,
.mail-body a.btn-primary {
  background: var(--h1-ink);
  color: #fff !important;
  border-color: transparent;
}

.mail-body .btn-primary:hover,
.mail-body a.btn-primary:hover {
  background: var(--h1-ink-soft);
  transform: translateY(-2px);
  box-shadow: none;
  text-decoration: none;
  color: #fff !important;
}

.mail-body .btn[disabled],
.mail-body .btn[disabled]:hover,
.mail-body a.btn[disabled],
.mail-body a.btn[disabled]:hover {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--blue);
  color: #fff !important;
}

.mail-body .btn.secondary,
.mail-body .btn-outline,
.mail-body a.btn-outline {
  border: 1px solid var(--blue);
  color: var(--blue) !important;
  background: #fff;
}

.mail-body .btn.secondary:hover,
.mail-body .btn-outline:hover,
.mail-body a.btn-outline:hover {
  background: var(--navy-soft);
  color: var(--navy) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(7, 24, 51, 0.12);
  text-decoration: none;
}

.mail-body .btn-lg {
  padding: 0.82rem 1.4rem;
  font-size: 1rem;
  border-radius: 4px;
}

.mail-body .linkish {
  background: none;
  border: 0;
  color: var(--blue);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
}

.mail-table {
  width: 100%;
  border-collapse: collapse;
}

.mail-table th,
.mail-table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 2px solid #e8eef5;
  font-size: 0.95rem;
}

.mail-list {
  padding-left: 1.2rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
}

.mail-link-box {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.mail-link-box input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 4px;
  border: 2px solid #c5d6ea;
  font: inherit;
  font-weight: 700;
  box-sizing: border-box;
}

.qa-block {
  padding: 0.95rem 0;
  border-bottom: 2px solid #e8eef5;
}

.qa-block h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--green-dark);
  font-weight: 700;
}

.opts {
  margin: 0.3rem 0 0.6rem;
  color: var(--muted);
}

/* Quiz */
.quiz-card {
  border-color: #b7cce3;
  box-shadow: 0 8px 0 rgba(0, 74, 153, 0.12);
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-weight: 800;
}

.timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.35rem;
  background: var(--green-soft);
  border: 2px solid #9bb8d9;
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  min-width: 3.5rem;
  text-align: center;
}

.timer.urgent {
  color: #fff;
  background: var(--coral);
  border-color: #e03535;
}

.q-text {
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 1.1rem;
  font-weight: 800;
}

.mcq {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.65rem;
}

.mcq-opt {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border: 2px solid #c5d6ea;
  border-radius: 4px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.08s ease;
}

.mcq-opt:hover {
  border-color: var(--green);
  background: var(--green-mist);
}

.mcq-opt:has(input:checked) {
  border-color: var(--green-dark);
  background: var(--green-soft);
  box-shadow: 0 3px 0 var(--green-deep);
}

.no-copy {
  -webkit-user-select: none;
  user-select: none;
}

/* Pricing — modern SaaS table, Envelope desk tokens */
.price-section-title {
  margin: 0 0 0.55rem;
  color: var(--navy-dark);
  font-family: var(--h1-font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.price-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0.5rem 0 0.25rem;
}

.price-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--green-deep);
  font-family: var(--h1-font-display);
  font-weight: 700;
  line-height: 1.15;
}

.price-hero > p {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 500;
}

.price-grid-wrap { margin-bottom: 2.25rem; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.price-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.price-card {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--h1-line);
  border-radius: 4px;
  padding: 1.5rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  backdrop-filter: blur(6px);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.price-card:hover {
  border-color: rgba(29, 107, 184, 0.35);
}

.price-card.is-popular {
  border-color: var(--h1-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px var(--h1-ink);
}

.price-card.is-current {
  border-color: var(--h1-accent);
  box-shadow: 0 0 0 1px var(--h1-accent);
}

.price-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--h1-ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 4px;
  white-space: nowrap;
  border: none;
}

.price-badge.current {
  background: var(--h1-accent);
  color: #fff;
}

.price-card h3 {
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
  color: var(--h1-ink);
  font-family: var(--h1-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-blurb {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  min-height: 2.6em;
}

.price-amount {
  font-size: 2.35rem;
  font-weight: 700;
  font-family: var(--h1-font-display);
  line-height: 1;
  margin: 0.5rem 0 0.15rem;
  color: var(--h1-ink);
  letter-spacing: -0.03em;
}

.price-amount.sm { font-size: 1.55rem; }

.price-amount span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  font-family: var(--h1-font-ui);
  margin-left: 0.15rem;
  letter-spacing: 0;
}

.price-quota {
  color: var(--h1-ink-soft);
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.price-features {
  list-style: none;
  padding: 0.65rem 0 0;
  margin: 0.35rem 0 1.15rem;
  flex: 1;
  border-top: 1px solid var(--h1-line);
}

.price-features li {
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
  border-bottom: 1px solid var(--h1-line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--h1-ink);
  line-height: 1.4;
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--h1-accent);
}

.price-card .btn,
.price-card form {
  margin-top: auto;
  width: 100%;
}

.price-card .btn { width: 100%; justify-content: center; }

.price-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
  font-weight: 500;
}

.price-campus {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--h1-line);
  border-radius: 4px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}

.price-campus h2,
.price-compare h2,
.price-faq h2,
.price-cta h2 {
  margin-top: 0;
  color: var(--h1-ink);
  font-family: var(--h1-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-campus .lead {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 1.35rem;
  font-weight: 500;
}

.campus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.campus-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--h1-line);
  border-radius: 4px;
  padding: 1.15rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.campus-card.is-current {
  border-color: var(--h1-accent);
  box-shadow: 0 0 0 1px var(--h1-accent);
}

.campus-card h4 {
  margin: 0;
  color: var(--h1-ink);
  font-family: var(--h1-font-display);
  font-weight: 700;
}

.campus-card .btn,
.campus-card form {
  margin-top: auto;
  width: 100%;
}

.campus-card .btn { width: 100%; justify-content: center; }

.campus-contact {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

.table-scroll { overflow-x: auto; }

.compare-table th,
.compare-table td { text-align: center; }

.compare-table th:first-child,
.compare-table td:first-child { text-align: left; }

.price-faq {
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}

.price-faq > h2 {
  margin-bottom: 1.15rem;
}

.faq-item { margin-bottom: 1.45rem; }

.faq-item h4 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  color: var(--ink);
  font-family: var(--h1-font-display);
  font-weight: 700;
  line-height: 1.3;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
}

.price-included {
  margin: 0 0 3rem;
}

.price-included h2 {
  margin-bottom: 0.85rem;
}

.price-included ul {
  line-height: 1.7;
}

.price-included li {
  margin-bottom: 0.55rem;
}

.price-cta {
  text-align: center;
  padding: 2.75rem 1.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--h1-ink);
  margin: 0.5rem 0 1rem;
  border: 1px solid var(--h1-line);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.price-cta h2 {
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.price-cta p {
  color: var(--h1-ink-soft);
  max-width: 28rem;
  margin: 0 auto 1.35rem;
  font-weight: 500;
  line-height: 1.55;
}

.price-cta .btn {
  letter-spacing: 0.03em;
  padding: 0.75rem 1.25rem;
  line-height: 1.35;
  margin: 0.35rem 0.4rem;
}

.price-cta .btn-primary,
.price-cta a.btn-primary {
  background: var(--h1-ink);
  color: #fff !important;
  border-color: transparent;
}

.price-cta .btn-primary:hover,
.price-cta a.btn-primary:hover {
  background: var(--h1-ink-soft);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: none;
  text-decoration: none;
}

.price-cta .btn.secondary,
.price-cta .btn-outline,
.price-cta a.btn-outline {
  background: transparent;
  color: var(--h1-ink) !important;
  border-color: var(--h1-line);
}

.price-cta .btn.secondary:hover,
.price-cta .btn-outline:hover,
.price-cta a.btn-outline:hover {
  background: rgba(29, 107, 184, 0.08);
  color: var(--h1-ink) !important;
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
  .campus-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .campus-grid {
    grid-template-columns: 1fr;
  }
}

/* Home — minimal send / receive */
body.home-mail { background: transparent; }
body.home-minimal .mail-main {
  width: min(820px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.mail-transfer {
  width: 100%;
}

.mail-transfer-brand {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.mail-transfer-solo-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.mail-transfer-solo-wrap .mail-transfer-solo {
  width: min(26rem, 100%);
  margin: 0;
}

.mail-transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mail-transfer-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 16rem;
  backdrop-filter: blur(6px);
}

.mail-transfer-panel h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
  font-family: var(--h1-font-display);
  color: var(--navy-dark);
  letter-spacing: -0.02em;
}

.mail-transfer-panel .muted {
  margin: 0;
  font-weight: 600;
}

.mail-transfer-panel .mail-form {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mail-transfer-panel .btn-lg,
.mail-transfer-panel a.btn-lg {
  width: 100%;
  margin-top: auto;
}

.mail-pin-input {
  font-size: 1.45rem !important;
  letter-spacing: 0.28em;
  text-align: center;
  font-weight: 800 !important;
  padding: 0.85rem 0.75rem !important;
}

.mail-transfer-solo {
  margin: 0 auto;
}

.mail-site-foot.is-minimal {
  justify-content: center;
  text-align: center;
}

@media (max-width: 700px) {
  .mail-transfer-grid {
    grid-template-columns: 1fr;
  }
  .mail-transfer-panel {
    min-height: 0;
  }
}

/* Legacy home band (unused on minimal home) */
.mail-home-band {
  background:
    radial-gradient(ellipse 70% 55% at 18% -10%, rgba(255, 200, 0, 0.4), transparent 55%),
    linear-gradient(145deg, #003a7a 0%, #1d5bb8 42%, #1cb0f6 100%);
  color: #fff;
  border-radius: 28px;
  padding: 2.6rem 1.85rem;
  margin-bottom: 1.25rem;
  border: 3px solid #003a7a;
  box-shadow: 0 10px 0 #003a7a;
}

.mail-home-band .eyebrow {
  color: #cfe3ff !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mail-home-band h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mail-home-band p {
  color: rgba(255, 255, 255, 0.95);
  max-width: 34rem;
  margin: 0 0 1.15rem;
  line-height: 1.5;
  font-weight: 700;
}

.mail-home-band .btn-primary,
.mail-home-band a.btn-primary {
  background: #fff;
  color: var(--navy-dark) !important;
  border-color: transparent;
}

.mail-home-band .btn-primary:hover,
.mail-home-band a.btn-primary:hover {
  background: #f5f8fc;
  color: var(--navy-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(7, 24, 51, 0.28);
  text-decoration: none;
}

.mail-home-band .btn-outline,
.mail-home-band a.btn-outline,
.mail-home-band .btn.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 0;
}

.mail-home-band .btn-outline:hover,
.mail-home-band a.btn-outline:hover,
.mail-home-band .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: none;
  text-decoration: none;
}

@media (max-width: 700px) {
  .mail-form.grid2 { grid-template-columns: 1fr; }
  .mail-topnav { display: none; }
}

/* ========== Prep modal (must be viewport overlay) ========== */
.mail-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 0 !important;
  box-sizing: border-box;
}

.mail-modal[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.mail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 55, 8, 0.55);
  backdrop-filter: blur(4px);
}

.mail-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border: 3px solid #003a7a;
  border-radius: 28px;
  padding: 1.5rem 1.35rem 1.4rem;
  box-shadow: 0 12px 0 #003a7a, 0 24px 48px rgba(20, 55, 8, 0.28);
  max-height: min(92vh, 680px);
  overflow: auto;
  text-align: center;
  animation: mail-pop 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes mail-pop {
  from { transform: scale(0.86) translateY(18px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.prep-mascot {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 65% 32%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 50% 58%, #003a7a 0 8%, transparent 9%),
    linear-gradient(160deg, #004a99, #1cb0f6);
  border: 3px solid #003a7a;
  box-shadow: 0 5px 0 #003a7a;
  position: relative;
  animation: mail-bounce 1.4s ease-in-out infinite;
}

.prep-mascot::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 10px;
  border: 3px solid #003a7a;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
}

@keyframes mail-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.prep-mascot.is-ready {
  background:
    radial-gradient(circle at 35% 32%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 65% 32%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 50% 62%, transparent 0 7%, #003a7a 8% 11%, transparent 12%),
    linear-gradient(160deg, #1cb0f6, #004a99);
  animation: none;
}

.prep-mascot.is-ready::after {
  width: 34px;
  height: 16px;
  border-radius: 0 0 20px 20px;
  bottom: 18px;
}

.prep-mascot.is-sad {
  animation: none;
  filter: grayscale(0.2);
  background: linear-gradient(160deg, #ff8a8a, #ff4b4b);
}

.prep-mascot.is-sad::after {
  width: 28px;
  height: 10px;
  border: 3px solid #003a7a;
  border-bottom: 0;
  border-radius: 4px 16px 0 0;
  bottom: 20px;
}

.mail-google-wrap {
  margin: 0.35rem 0 0;
}

.mail-body .btn-google,
.mail-body a.btn-google {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: var(--h1-ink) !important;
  border: 1px solid var(--h1-line);
  font-weight: 600;
}

.mail-body .btn-google:hover,
.mail-body a.btn-google:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(29, 107, 184, 0.35);
  transform: translateY(-2px);
  box-shadow: none;
  color: var(--h1-ink) !important;
  text-decoration: none;
}

.mail-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--h1-ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mail-or::before,
.mail-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--h1-line);
}

.mail-or span {
  opacity: 0.75;
}

/* Login — role separation */
.mail-login-hero {
  text-align: center;
  margin: 0 0 1.5rem;
}

.mail-login-hero .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h1-accent);
}

.mail-login-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--h1-font-display);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.mail-login-err {
  text-align: center;
  margin: 0 0 1rem;
}

.mail-role-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.mail-role-tab {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  border: 1px solid var(--h1-line);
  color: var(--h1-ink-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
}

.mail-role-tab:hover,
.mail-role-tab.is-on {
  color: var(--h1-ink);
  border-color: var(--h1-ink);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.mail-role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 auto 1.5rem;
  max-width: 52rem;
}

.mail-role-card {
  display: block;
  padding: 1.35rem 1.15rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--h1-line);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.mail-role-card:hover {
  border-color: var(--h1-ink);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.mail-role-card h2 {
  margin: 0 0 0.45rem;
  font-family: var(--h1-font-display);
  font-size: 1.25rem;
  color: var(--h1-ink);
}

.mail-role-card p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--h1-ink-soft);
  line-height: 1.45;
}

.mail-login-panel h2 {
  margin-top: 0;
}

@media (max-width: 700px) {
  .mail-role-cards {
    grid-template-columns: 1fr;
  }
}

/* Pricing comparison tables */
.price-compare-wrap {
  margin: 0 0 3.25rem;
}

.price-compare-lead {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  line-height: 1.6;
}

.price-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--h1-line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
}

.price-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.price-compare-table.is-campus {
  min-width: 44rem;
}

.price-compare-table th,
.price-compare-table td {
  padding: 1.05rem 1rem;
  border-bottom: 1px solid var(--h1-line);
  text-align: center;
  vertical-align: middle;
}

.price-compare-table thead th {
  background: rgba(242, 246, 250, 0.9);
  font-weight: 600;
  padding: 1.2rem 1rem 1.1rem;
}
.price-compare-table thead th:first-child,
.price-compare-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--h1-ink);
  min-width: 9.5rem;
}

.price-compare-table tbody th {
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
  padding-right: 1.15rem;
}

.price-compare-table .pct-name {
  display: block;
  font-family: var(--h1-font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--h1-ink);
  margin-bottom: 0.2rem;
}

.price-compare-table .pct-price {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--h1-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--h1-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.price-compare-table .pct-price small {
  font-family: var(--h1-font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--h1-ink-soft);
  margin-left: 0.1rem;
}

.price-compare-table .pct-badge {
  display: inline-block;
  margin: 0.4rem 0 0.15rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  background: var(--h1-ink);
  color: #fff;
}

.price-compare-table .pct-badge.current {
  background: var(--h1-accent);
}

.price-compare-table th.is-popular,
.price-compare-table td.is-popular {
  background: rgba(29, 107, 184, 0.06);
  box-shadow: inset 0 0 0 1px rgba(10, 47, 82, 0.12);
}

.price-compare-table th.is-current,
.price-compare-table td.is-current {
  box-shadow: inset 0 0 0 1px var(--h1-accent);
}

.pct-yes {
  color: var(--h1-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.pct-no {
  color: var(--h1-ink-soft);
  opacity: 0.55;
}

.pct-cta-row td {
  border-bottom: none;
  padding-top: 1.25rem;
  padding-bottom: 1.35rem;
}

.pct-cta-row .btn,
.pct-cta-row .btn-sm-block {
  letter-spacing: 0.03em;
  line-height: 1.35;
  white-space: normal;
  min-height: 2.65rem;
}

.pct-manual {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.price-payg {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 0.75rem;
}

.price-payg .pct-price {
  font-family: Fraunces, serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.25rem 0;
}

.price-payg .pct-price small {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 0.15rem;
}

.price-included ul {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2.5rem;
  line-height: 1.7;
}

.price-included li {
  margin-bottom: 0.55rem;
  break-inside: avoid;
}

.price-tagline {
  margin-top: 1.5rem;
  font-style: italic;
  line-height: 1.5;
}

.price-cta .btn {
  margin: 0.4rem 0.45rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.25rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .price-included ul {
    columns: 1;
  }
}


.mail-payment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mail-payment-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--h1-ink) 8%, transparent);
}

.mail-payment-admin {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mail-payment-row {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--h1-ink) 10%, transparent);
}

.mail-inline-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.65rem;
}

.mail-inline-forms input[type="text"] {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.mail-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
}

.mail-filter-tabs a.active {
  font-weight: 700;
  text-decoration: underline;
}

.mail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.mail-subhead {
  margin: 1.5rem 0 0.75rem;
  font-family: Fraunces, serif;
  font-size: 1.15rem;
}

.mail-form label {
  display: block;
  margin-bottom: 0.9rem;
}

.mail-form input,
.mail-form select,
.mail-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
}

.btn-sm-block {
  width: 100%;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  padding: 0.7rem 0.95rem;
}

.price-compare-wrap .campus-contact {
  margin-top: 1rem;
  text-align: left;
}

.mail-modal-card .eyebrow {
  color: var(--green-dark) !important;
  margin: 0 0 0.35rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.mail-modal-card h2 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mail-modal-card > #prep-loading > .muted,
.mail-modal-card > #prep-ready > .muted {
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.mail-progress {
  height: 18px;
  background: #e8f0fa;
  border: 2px solid #9bb8d9;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.35rem 0 0.25rem;
}

.mail-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #004a99 0%, #1d5bb8 55%, #1cb0f6 100%);
  border-radius: 4px;
  transition: width 0.35s ease;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.mail-progress-pct {
  margin: 0.15rem 0 1rem;
  font-weight: 700;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
  line-height: 1;
}

.prep-tips {
  background: var(--green-mist);
  border: 2px solid #b7cce3;
  border-radius: 4px;
  padding: 0.95rem 1rem;
  text-align: left;
}

.prep-tips h3 {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
  color: var(--green-deep);
  font-weight: 700;
}

.prep-tips ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 700;
}

.prep-tips li { margin-bottom: 0.4rem; }

.prep-ready-list {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.prep-ready-list li {
  background: var(--sky-soft);
  border: 2px solid #b8e6f8;
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  font-weight: 800;
  color: var(--ink);
  font-size: 0.95rem;
}

#prep-start-btn,
#prep-close-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.35rem;
  box-sizing: border-box;
}

#prep-failed .err {
  margin: 0.5rem 0 1rem;
}

/* Webmaster demo credentials portal */
.mail-demo-admin .mail-span2 { grid-column: 1 / -1; }
.mail-demo-creds {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 2px solid #1d5bb8;
  border-radius: 8px;
  background: #eef5ff;
}
.mail-demo-creds h2 { margin: 0 0 0.65rem; font-size: 1.05rem; color: var(--navy-dark); }
.mail-demo-dl { margin: 0; display: grid; gap: 0.45rem; }
.mail-demo-dl > div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.5rem; align-items: baseline; }
.mail-demo-dl dt { margin: 0; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.mail-demo-dl dd { margin: 0; font-weight: 700; }
.mail-demo-pw { font-size: 1.05rem; color: var(--navy-dark); }
.mail-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--ink);
}
.mail-check input { width: auto; margin: 0; }
.mail-check-sm { font-size: 0.85rem; font-weight: 700; }
.mail-demo-list { margin-top: 1.25rem; }
.mail-table-wrap { overflow-x: auto; }
.mail-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mail-table th, .mail-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.mail-table th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.mail-demo-actions { display: flex; flex-direction: column; gap: 0.45rem; min-width: 12rem; }
.mail-demo-set { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.mail-demo-set input[type="number"] { width: 5rem; padding: 0.35rem; }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; border-radius: 4px; background: var(--navy-soft); color: var(--navy-dark); border: 1px solid var(--line); cursor: pointer; font-weight: 700; }
.btn-sm:hover { background: #dce8f6; }

