/* "Why I built Wingman Mail" story page.
 *
 * Loads /landing.css first and inherits its tokens, page shell, cards, nav and
 * footer — this file only adds the long-form chapter layout the marketing page
 * has no use for. If you need a token here, add it to landing.css. */

/* ------------------------------------------------------------ title card -- */

.why-head-inner {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  padding-bottom: 112px;
}

.why-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 112px;
  /* Same centred measure as the chapters below, so the h1's left edge lands
   * on the same x as the prose. The explicit width matters: auto cross-axis
   * margins switch off flex stretch. */
  width: 100%;
  max-width: calc(760px + var(--gutter) * 2);
  margin-inline: auto;
}

.why-title h1 {
  font-size: 56px;
  line-height: 62px;
}

.why-lead {
  max-width: 560px;
  font-size: 19px;
  line-height: 30px;
  letter-spacing: -0.025em;
  color: var(--muted);
}

/* The author, so the first-person story has a face from the first screen. */
.why-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.why-byline img {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.why-byline span {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.01em;
}

.why-byline b {
  font-weight: 600;
  color: var(--white);
}

.why-byline em {
  font-style: normal;
  color: var(--muted);
}

/* --------------------------------------------------------------- chapters -- */

.chapter {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-block: 112px;
}

/* One comfortable reading measure for everything in a chapter, centred the
 * same way the policy pages centre their prose. */
.chapter > * {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.chapter h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
}

@media (min-width: 768px) {
  .chapter h2 {
    font-size: 40px;
    line-height: 48px;
  }
}

.chapter h2 .soft {
  font-weight: 500;
  color: var(--secondary);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prose p {
  font-size: 17px;
  line-height: 29px;
  letter-spacing: -0.015em;
  color: var(--secondary);
}

.prose em {
  font-style: italic;
}

.prose a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prose li {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  line-height: 29px;
  letter-spacing: -0.015em;
  color: var(--secondary);
}

.prose li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted);
}

.prose b {
  font-weight: 600;
  color: var(--ink);
}

/* ---------------------------------------------------------------- figure --- */

.shot-figure {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 8px;
}

.shot-figure img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-card);
}

.shot-figure figcaption {
  font-size: 13px;
  line-height: 20px;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* ------------------------------------------------------------- pull quote -- */

.pull {
  margin-block: 8px;
  padding-left: 24px;
  border-left: 3px solid var(--ink);
}

.pull p {
  font-size: 24px;
  line-height: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.pull cite {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-style: normal;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.pull cite img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.pull cite a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}

.pull cite a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------ what-if grid -- */

/* Hand-built figures in the homepage feature-card style: white mini elements
 * on the grey card, no images, aria-hidden with the question as real text. */

.whatif-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .whatif-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wa-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background: var(--card);
}

.wa-card > p {
  font-size: 15px;
  line-height: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wa-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 12px;
}

/* Full-width variant for figures that need every horizontal pixel. */
.wa-art.wide {
  padding-inline: 0;
}

/* shared atoms */

.wa-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
}

.wa-bar.faint {
  background: var(--muted);
  opacity: 0.55;
}

.wa-bar.w25 { width: 25%; }
.wa-bar.w30 { width: 30%; }
.wa-bar.w40 { width: 40%; }
.wa-bar.w50 { width: 50%; }
.wa-bar.w60 { width: 60%; }
.wa-bar.w70 { width: 70%; }

.wa-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 999px;
}

.wa-dot.blue,
.wa-accounts i.blue { background: var(--blue); }
.wa-dot.orange,
.wa-accounts i.orange { background: var(--orange); }
.wa-dot.teal,
.wa-accounts i.teal { background: var(--teal); }

/* 1 — gutter clicks */

.wa-gutter {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.wa-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1.5px dashed var(--muted);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
}

.wa-zone.done {
  border-color: var(--teal);
  color: var(--teal);
}

.wa-zone svg {
  width: 15px;
  height: 15px;
}

.wa-mailrow {
  flex: 2.4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 16px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.wa-cursor {
  position: absolute;
  right: 26px;
  bottom: 30px;
}

.wa-cursor svg {
  width: 16px;
  height: 17px;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.3));
}

/* 2 — unified inbox */

.wa-unified {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  max-width: 250px;
}

.wa-accounts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wa-accounts i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--card);
}

.wa-accounts i + i {
  margin-left: -12px;
}

.wa-inboxrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.wa-inboxrow .wa-bar {
  height: 5px;
}

/* 3 — To/Cc auto-split */

.wa-compose {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 270px;
}

.wa-field {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.wa-field b {
  width: 18px;
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.wa-chip {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--card);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.wa-auto {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

/* 4 — pre-rendered next thread */

.wa-instant {
  position: relative;
  width: 100%;
  max-width: 240px;
  height: 104px;
}

.wa-thread {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 16px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.wa-thread.back {
  transform: translate(16px, -14px) rotate(2deg);
  opacity: 0.65;
}

.wa-thread b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wa-tag {
  position: absolute;
  top: -24px;
  right: -8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* 5 — caution and verified marks, drawn as the app's actual list rows:
 * sender + 18px badge · subject + snippet on one line · time on the right.
 * Badge colors match the app tokens (--color-danger, --color-verified-gov). */

.wa-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.wa-lrow {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding-inline: 12px;
  min-width: 0;
}

.wa-from {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 140px;
  flex: none;
  font-size: 10.5px;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

.wa-from > span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-lrow.unread .wa-from,
.wa-lrow.unread .wa-line2 b {
  font-weight: 600;
  color: var(--ink);
}

.wa-mark {
  width: 14px;
  height: 14px;
  flex: none;
}

.wa-mark.danger { color: #ef4444; }
.wa-mark.gov { color: #829aab; }

.wa-line2 {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.5px;
  letter-spacing: -0.01em;
}

.wa-line2 b {
  font-weight: 500;
  color: var(--secondary);
}

.wa-line2 em {
  margin-left: 8px;
  font-style: normal;
  color: var(--muted);
}

.wa-time {
  flex: none;
  font-size: 9px;
  color: var(--muted);
}

/* 6 — auto drafts fed by company context */

.wa-context {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 250px;
}

.wa-sources {
  display: flex;
  gap: 8px;
}

.wa-source {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

.wa-source svg {
  width: 11px;
  height: 11px;
}

.wa-flow {
  color: var(--muted);
}

.wa-flow svg {
  width: 12px;
  height: 12px;
}

.wa-draft {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.wa-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wa-draft-head b {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.wa-drafting {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--purple);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--white);
}

/* 7 — cloud action log, drawn as the app's Transparency panel: timestamp ·
 * friendly operation label · automation, with dangerous ops in danger red. */

.wa-audit {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--hairline), var(--shadow-card);
  overflow: hidden;
}

.wa-audit-head {
  padding: 9px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.wa-audit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 10.5px;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

.wa-audit-row + .wa-audit-row {
  border-top: 1px solid var(--hairline);
}

.wa-audit-row em {
  flex: none;
  width: 32px;
  font-style: normal;
  color: var(--muted);
}

.wa-audit-row i {
  margin-left: auto;
  font-style: normal;
  color: var(--muted);
}

.wa-audit-row.danger span,
.wa-audit-row.danger i {
  color: #ef4444;
}

/* 8 — team pricing */

.wa-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wa-avatars {
  display: flex;
  align-items: center;
}

.wa-avatars i {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--muted);
  border: 2px solid var(--card);
}

.wa-avatars i:nth-child(even) {
  background: var(--secondary);
}

.wa-avatars i + i {
  margin-left: -7px;
}

.wa-avatars b {
  margin-left: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
}

.wa-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.wa-price b {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.wa-price em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.wa-note {
  font-size: 10.5px;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

/* ----------------------------------------------------------- dark chapter -- */

.chapter-dark h2 {
  color: var(--white);
}

.chapter-dark h2 .soft {
  color: var(--muted);
}

.chapter-dark .prose p {
  color: var(--muted);
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px;
  border-radius: 24px;
  background: var(--surface-dark);
  box-shadow: var(--glass);
}

.pillar h3 {
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}

.pillar p {
  font-size: 15px;
  line-height: 25px;
  letter-spacing: -0.015em;
  color: var(--muted);
}

.chapter-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

/* --------------------------------------------------------------- narrow --- */

@media (max-width: 1023px) {
  .why-head-inner {
    padding-bottom: 72px;
  }

  .why-title {
    margin-top: 72px;
  }

  .why-title h1 {
    font-size: 44px;
    line-height: 50px;
  }

  .chapter {
    padding-block: 72px;
  }
}

@media (max-width: 767px) {
  .why-title h1 {
    font-size: 36px;
    line-height: 42px;
  }

  .pull p {
    font-size: 20px;
    line-height: 29px;
  }

  .pillar {
    padding: 20px;
  }
}
