/* ============================================================
   stripe.com — social post system · 1080×1350 (4:5)
   Shared tokens, type scale, image cards, brand lock, footer.
   ------------------------------------------------------------
   Type: the live site measures `sohne-var` (Söhne, commercial —
   not on Google Fonts). Nearest Google equivalent for Söhne's
   neo-grotesque proportions and low-contrast strokes is Archivo,
   used for all display/headline type. Inter is used for body and
   UI text only, where its larger x-height keeps 20–28px copy
   legible at social crop sizes.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600&family=Inter:wght@300;400;500&display=swap');

:root {
  /* palette — measured from stripe.com */
  --brand: #533afd;
  --brand-deep: #3f27e0;
  --ink: #0d1738;      /* dark surface */
  --fg: #061b31;       /* primary text */
  --muted: #64748d;    /* secondary text */
  --line: #e5edf5;     /* hairline */
  --surface: #f8fafd;  /* tinted panel */
  --surface-2: #f2f7fe;
  --white: #ffffff;
  --accent: #ffe0d1;

  /* type scale */
  --t-display: 84px;
  --t-h2: 52px;
  --t-h3: 34px;
  --t-lead: 27px;
  --t-body: 22px;
  --t-cap: 19px;
  --t-kicker: 17px;

  --pad: 72px;
  --r-sm: 4px;
  --r-md: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #d9dee7;
  font-family: 'Inter', system-ui, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- canvas ---------- */
.post {
  position: relative;
  width: 1080px;
  height: 1350px;
  overflow: hidden;
  background: var(--white);
  color: var(--fg);
  display: flex;
  flex-direction: column;
}

/* ---------- hero / imagery ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  flex: none;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.scrim-bottom {
  background: linear-gradient(to top,
    rgba(6, 14, 36, .95) 0%,
    rgba(6, 14, 36, .82) 30%,
    rgba(6, 14, 36, .38) 58%,
    rgba(6, 14, 36, .04) 84%,
    rgba(6, 14, 36, 0) 100%);
}
.scrim-soft {
  background: linear-gradient(to top,
    rgba(6, 14, 36, .78) 0%,
    rgba(6, 14, 36, .34) 46%,
    rgba(6, 14, 36, 0) 78%);
}
.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--pad);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* frosted overlay chip, corner-anchored inside the image bounds */
.chip {
  position: absolute;
  z-index: 2;
  left: 40px;
  bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .94);
  box-shadow: rgba(23, 23, 23, .18) 0 8px 24px 0;
  font-size: var(--t-kicker);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--fg);
}
.chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

/* image card (fixed frame, cover-cropped) */
.shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.shot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.shot-grid .shot { aspect-ratio: 1 / 1; }

/* fallback slot — only if no real file fits */
.ph-img {
  background: repeating-linear-gradient(135deg, var(--surface) 0 12px, var(--surface-2) 12px 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* ---------- type ---------- */
.kicker {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--t-kicker);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: 'Archivo', system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--t-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.h2 {
  font-family: 'Archivo', system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--t-h2);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.h3 {
  font-family: 'Archivo', system-ui, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.02em;
}
.lead {
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.44;
  color: var(--muted);
}
.body { font-size: var(--t-body); font-weight: 400; line-height: 1.5; color: var(--muted); }
.cap  { font-size: var(--t-cap); font-weight: 400; line-height: 1.45; color: var(--muted); }

.on-dark { color: var(--white); }
.on-dark.kicker { color: rgba(255, 255, 255, .78); }
.on-dark.lead, .on-dark.cap, .on-dark.body { color: rgba(255, 255, 255, .82); }
.brand-text { color: var(--brand); }

/* stat block */
.stat {
  border-top: 2px solid var(--fg);
  padding-top: 18px;
}
.stat-num {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--fg);
}
.stat-num.is-brand { color: var(--brand); }
.stat .cap { margin-top: 10px; max-width: 300px; }

/* ---------- action ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 74px;
  padding: 0 40px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.005em;
  text-decoration: none;
  border: 1px solid var(--brand);
  transition: background 200ms cubic-bezier(.45, .05, .55, .95),
              box-shadow 200ms cubic-bezier(.45, .05, .55, .95);
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); }
.btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.btn .arrow { font-size: 22px; line-height: 1; transform: translateY(-1px); }

.link {
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 27, 49, .3);
  padding-bottom: 3px;
  transition: border-color 200ms ease;
}
.link:hover { border-color: var(--fg); color: var(--fg); }
.link:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }

/* ---------- brand lock / footer ---------- */
.lock {
  flex: none;
  height: 128px;
  padding: 0 var(--pad);
  background: var(--white);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lock img { width: 92px; height: auto; display: block; }
.lock .cap { color: var(--muted); letter-spacing: .01em; }

/* ---------- layout helpers ---------- */
.section { padding: 0 var(--pad); }
.flow { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.row { display: flex; gap: 40px; }
.row-between { justify-content: space-between; align-items: flex-end; }
.rule { height: 1px; background: var(--line); }
