/* ==========================================================================
   mail.adnanhassan.me — sender-trust page
   Vanilla CSS. Mobile-first. Light theme. No external dependencies.
   Design intent: restrained and factual (Linear / Vercel / Stripe Docs),
   not flashy. Subtle hover effects only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  --bg:        #ffffff;   /* page background            */
  --text:      #111827;   /* primary text               */
  --secondary: #6b7280;   /* muted / supporting text    */
  --border:    #e5e7eb;   /* hairline borders           */
  --primary:   #2563eb;   /* links, accents             */
  --hover:     #1d4ed8;   /* link/accent hover          */

  --card-bg:   #ffffff;
  --accent-soft: #eff4ff; /* faint blue wash for chips  */

  --radius: 12px;
  --max-width: 760px;

  /* Very light shadow — barely there */
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04),
            0 1px 3px rgba(17, 24, 39, 0.03);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p, ul { margin: 0; }

ul { padding: 0; list-style: none; }

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { color: var(--hover); text-decoration: underline; }

strong { font-weight: 600; color: var(--text); }

::selection { background: var(--primary); color: #fff; }

/* Accessible skip link — visible only when focused */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 10;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Layout container
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px 72px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { margin-bottom: 44px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.brand:hover { color: var(--text); text-decoration: none; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

/* Verified sender badge */
.verified {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.verified-icon { flex: none; display: block; }

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 24px;
}

.lede {
  font-size: 1.05rem;
  color: var(--secondary);
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px 26px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 14px;
}

.card p { margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

.muted { color: var(--secondary); }

/* Bulleted lists with a subtle custom marker */
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 14px;
}
.list:last-child { margin-bottom: 0; }

.list li {
  position: relative;
  padding-left: 22px;
  color: var(--secondary);
}
.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* Contact row */
.contact-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
}
.contact-line a { font-weight: 500; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  margin-bottom: 18px;
}
.footer-links a {
  padding: 4px 14px;
  font-size: 0.88rem;
  color: var(--secondary);
}
.footer-links a + a { border-left: 1px solid var(--border); }
.footer-links a:hover { color: var(--primary); }

.copy {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 4px;
}
.copy.muted { color: var(--secondary); }

/* --------------------------------------------------------------------------
   Focus styles — visible for keyboard users everywhere
   -------------------------------------------------------------------------- */
a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Larger screens — a little more breathing room
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .container { padding: 80px 24px 88px; }
  .card { padding: 32px 32px 30px; }
}

/* Respect reduced-motion (defensive; page has no real animation) */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ==========================================================================
   Legal pages (privacy-policy, terms-of-service)
   Shared prose styling for long-form content on this same domain.
   ========================================================================== */

/* "Back to home" link above the title */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--secondary);
}
.back-link:hover { color: var(--primary); text-decoration: none; }
.back-link .arrow { font-size: 1.05em; line-height: 1; }

.legal-title {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.updated {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.intro {
  font-size: 1.02rem;
  color: var(--secondary);
  max-width: 62ch;
  margin-bottom: 4px;
}

/* Prose body */
.prose { margin-top: 36px; }

.prose h2 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 38px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.prose p { margin: 0 0 14px; color: var(--text); }
.prose p.muted { color: var(--secondary); }

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 16px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
  color: var(--secondary);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.prose ul li strong { color: var(--text); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--hover);
  color: #fff;
  text-decoration: none;
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.field label .req { color: var(--primary); }

.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--secondary); opacity: 0.75; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Honeypot: visually hidden, off-screen, not focusable for real users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Inline status message (aria-live) */
.form-status {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}
.form-status:empty { display: none; }
.form-status.is-success { color: #15803d; }
.form-status.is-error   { color: #b91c1c; }
.form-status.is-sending { color: var(--secondary); }

/* Definition-style contact details */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 0;
}
.contact-method {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-method .contact-label { min-width: 96px; }
