/* docsaura.com/email-signature. The same house style as the homepage and /maps (css/home.css supplies the tokens,
   the nav and the hero type); this file holds what index.html carries inline plus the page's own sections.
   /css/* is immutable for a year: bump ?v= in email-signature.html on every change. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; }
#nav-placeholder { display: contents; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Hero: /maps' sea, its headline and its capsule, with the signature in place of the proof row ── */
.hero {
  display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; text-align: center;
  scroll-margin-top: 80px;
}
body.home .hero { min-height: 0; padding: clamp(7rem, 15vh, 9.5rem) 20px clamp(3rem, 8vh, 5rem); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-content { position: relative; width: 100%; }
.aura-img-fill {
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-subtitle { margin: 0 auto; line-height: 1.5; }

.es-form {
  width: min(620px, 100%); margin: clamp(24px, 3.4vh, 34px) auto 0; padding: 14px;
  border: 1px solid var(--glass-edge); border-radius: 24px; background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--sh-float), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.es-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.es-field { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.es-field span { font: 500 .8rem/1 var(--font-display); color: var(--ink-soft); padding: 0 0 6px 4px; }
.es-field input {
  width: 100%; height: 52px; padding: 0 14px; font: 400 1rem var(--font-sans); color: var(--ink);
  background: #fff; border: 1px solid rgba(11, 14, 43, .16); border-radius: 14px; transition: border-color .18s, box-shadow .18s;
}
.es-field input::placeholder { color: var(--ink-mute); }
.es-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(20, 30, 200, .14); }
.es-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; margin-top: 8px; padding: 14px 24px;
  border: 0; border-radius: 14px; cursor: pointer; color: #fff;
  font: 600 1.08rem var(--font-display); letter-spacing: -0.01em;
  background: linear-gradient(180deg, #2530e0 0%, var(--brand) 100%);
  box-shadow: 0 14px 30px -12px rgba(20, 30, 200, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.es-btn:hover { transform: translateY(-1px); box-shadow: 0 20px 38px -14px rgba(20, 30, 200, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.es-btn:disabled { opacity: .75; cursor: progress; transform: none; }
.es-meta { margin-top: 10px; font-size: .86rem; line-height: 1.45; color: var(--ink-soft); }
.es-meta a { color: var(--ink-soft); text-underline-offset: 2px; }
.es-note { margin-top: 10px; font-size: .92rem; line-height: 1.45; color: #a3211a; }
.es-done { padding: 16px 10px 12px; text-align: center; }
.es-done strong { display: block; font: 600 1.2rem/1.25 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.es-done p { margin-top: 6px; font-size: .95rem; color: var(--ink-soft); }
.es-done a { color: var(--brand); font-weight: 600; text-underline-offset: 2px; }
.es-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The moving part of the page: a real-looking email whose sender, message and signature change through the examples. */
.es-mail {
  width: min(640px, 100%); margin: clamp(28px, 4vh, 44px) auto 0; padding: 26px 28px 22px; text-align: left;
  background: #fff; border-radius: 22px; box-shadow: var(--sh-float);
}
.es-mail-inner { min-height: 394px; transition: opacity .18s ease; }
.es-mail-inner.is-swapping { opacity: 0; }
.es-mail-subject { font: 600 1.32rem/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.es-mail-head { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.es-mail-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font: 600 1.05rem/1 var(--font-display); }
.es-mail-who { flex: 1; min-width: 0; }
.es-mail-from { font-size: .92rem; line-height: 1.35; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-mail-from strong { font-weight: 600; color: var(--ink); }
.es-mail-to { font-size: .84rem; line-height: 1.35; color: var(--ink-mute); }
.es-mail-time { flex: none; font-size: .84rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.es-mail-body { margin-top: 16px; font: 400 1rem/1.5 var(--font-sans); color: var(--ink); min-height: 6em; white-space: pre-line; }
.es-sig-card { display: block; width: 480px; max-width: 100%; height: auto; margin-top: 14px; border-radius: 8px; background: var(--tint); }
.es-mail-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.es-mail-switch button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font: 500 .8rem/1.2 var(--font-sans); color: var(--ink-soft); transition: background .2s, color .2s, border-color .2s; }
.es-mail-switch button:hover { border-color: var(--brand); color: var(--brand); }
.es-mail-switch button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Sections ── */
.es-section { padding: clamp(56px, 9vh, 104px) 20px; scroll-margin-top: 72px; }
.es-section.is-white { background: #fff; }
.es-wrap { width: min(1080px, 100%); margin: 0 auto; }
.es-narrow { width: min(760px, 100%); margin: 0 auto; }
.es-h2 { font: 600 clamp(1.9rem, 3.6vw, 3rem)/1.08 var(--font-display); letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.es-lede { margin-top: 14px; font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.55; color: var(--ink-soft); max-width: 640px; }
.es-head { margin-bottom: clamp(28px, 4vh, 44px); }

/* How it works: the sequence is the information, so the steps are numbered. */
.es-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); list-style: none; counter-reset: s; }
.es-steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 16px; }
.es-steps li::before { content: counter(s); display: block; font: 600 2.4rem/1 var(--font-display); letter-spacing: -0.04em; color: var(--brand); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.es-steps h3 { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.es-steps p { margin-top: 8px; font-size: 1rem; color: var(--ink-soft); }

/* Examples: signatures as they sit in an email, on the page's ground. */
.es-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px); align-items: start; }
.es-example { min-width: 0; }
.es-example .es-sig-card { width: 100%; margin-top: 0; border-radius: 14px; box-shadow: var(--sh-card); }
.es-example figcaption { margin: 12px 4px 0; font-size: .92rem; line-height: 1.45; color: var(--ink-soft); }
.es-example figcaption strong { color: var(--ink); font-weight: 600; }
.es-disclaimer { margin-top: clamp(24px, 3vh, 36px); font-size: .95rem; color: var(--ink-soft); }

/* Plain facts */
.es-facts { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-top: 1px solid var(--line); }
.es-facts dt, .es-facts dd { padding: 16px 0; border-bottom: 1px solid var(--line); }
.es-facts dt { font: 600 1.02rem/1.4 var(--font-display); color: var(--ink); padding-right: 20px; }
.es-facts dd { color: var(--ink-soft); }

/* Tables */
.es-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.es-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .96rem; }
.es-table th, .es-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.es-table thead th { font: 600 .95rem/1.3 var(--font-display); color: var(--ink); background: var(--tint); }
.es-table tbody th { font: 600 .98rem/1.35 var(--font-display); color: var(--ink); }
.es-table tr:last-child th, .es-table tr:last-child td { border-bottom: 0; }
.es-table td { color: var(--ink-soft); }
.es-table a { color: var(--brand); text-underline-offset: 2px; }
.es-table .is-us th, .es-table .is-us td { background: rgba(20, 30, 200, .045); color: var(--ink); }
.es-source { margin-top: 12px; font-size: .86rem; color: var(--ink-mute); }
.es-source a { color: inherit; text-underline-offset: 2px; }
.es-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--brand); text-underline-offset: 3px; }

/* FAQ: every answer is in the HTML, open or closed, so readers and crawlers get the same text. */
.es-faq details { border-bottom: 1px solid var(--line); }
.es-faq details:first-child { border-top: 1px solid var(--line); }
.es-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; font: 600 1.08rem/1.35 var(--font-display); letter-spacing: -0.012em; color: var(--ink); }
.es-faq summary::-webkit-details-marker { display: none; }
.es-faq summary svg { flex-shrink: 0; margin-top: 3px; color: var(--ink-mute); transition: transform .25s var(--ease); }
.es-faq details[open] summary svg { transform: rotate(45deg); }
.es-faq details p { padding: 0 36px 20px 0; color: var(--ink-soft); }

/* Guides */
.es-guides { list-style: none; border-top: 1px solid var(--line); }
.es-guides li { border-bottom: 1px solid var(--line); }
.es-guides a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; text-decoration: none; font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--ink); transition: color .2s; }
.es-guides a:hover { color: var(--brand); }
.es-guides svg { flex-shrink: 0; align-self: center; }

/* Closing call */
.es-final { padding: clamp(64px, 10vh, 112px) 20px; text-align: center; background: #fff; }
.es-final .es-h2 { margin: 0 auto; max-width: 720px; }
.es-final-btn { display: inline-flex; width: auto; margin-top: 26px; padding: 15px 30px; border-radius: 999px; text-decoration: none; }

@media (max-width: 760px) {
  .es-fields { grid-template-columns: 1fr; }
  .es-steps { grid-template-columns: 1fr; gap: 28px; }
  .es-gallery { grid-template-columns: 1fr; }
  .es-facts { grid-template-columns: 1fr; }
  .es-facts dt { padding-bottom: 2px; border-bottom: 0; }
  .es-facts dd { padding-top: 0; }
  .es-mail { padding: 20px 16px 16px; }
  .es-mail-inner { min-height: 344px; }
  .es-mail-from span { display: none; }
  .es-faq details p { padding-right: 0; }
}
