:root {
  color-scheme: dark;
  --background: #09090a;
  --surface: #111113;
  --line: #29292d;
  --foreground: #f0efed;
  --secondary: #a8a7ad;
  --accent: #e4bf8a;
  --ease-out: cubic-bezier(.22,.76,.24,1);
  --hero-art-width: min(28vw, 360px);
  --hero-art-gap: clamp(24px, 3vw, 56px);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--background);
  color: var(--foreground);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 5px; }
.skip {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: #f0efed;
  color: #09090a;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }
.shell { width: min(100% - 88px, 1200px); margin-inline: auto; }
.masthead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgb(9 9 10 / .87);
  backdrop-filter: blur(14px);
}
.masthead-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
}
.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -.03em;
}
.wordmark img { border-radius: 7px; }
.site-nav, .header-actions, .hero-actions, .footer nav { display: flex; align-items: center; }
.site-nav { gap: clamp(15px, 2vw, 31px); }
.header-actions { justify-self: end; gap: 18px; }
.site-nav a, .header-actions > a:not(.button), .footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 180ms ease;
}
.site-nav a:hover, .header-actions > a:not(.button):hover, .footer a:hover { color: var(--foreground); }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 590;
  letter-spacing: .01em;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.button-primary { background: var(--foreground); color: #141416; }
.button-primary:hover { background: #d7d5d4; }
.button-subtle { border-color: #37373b; background: #1a1a1d; }
.button-subtle:hover { border-color: #535258; background: #27272a; }
.button-quiet { color: #c8c7cc; }
.button-quiet:hover { background: #19191b; color: var(--foreground); }
.header-download { min-height: 38px; padding-inline: 14px; font-size: 13px; }

.hero { isolation: isolate; overflow: clip; }
.hero-inner {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--hero-art-width);
  column-gap: var(--hero-art-gap);
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; width: min(100%, 560px); padding: 64px 0 78px; }
.hero-label { display: flex; align-items: center; gap: 9px; color: #bdbaB8; font-size: 13px; letter-spacing: .09em; margin: 0 0 24px; }
.hero-label span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1, h2, h3, p, figure { margin: 0; }
h1, .section-header h2, .closing h2 {
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, "STSong", Georgia, serif;
  font-weight: 600;
}
h1 { font-size: clamp(54px, 6.1vw, 94px); line-height: 1.12; letter-spacing: -.05em; }
.hero-description { max-width: 26em; margin-top: 25px; color: var(--secondary); font-size: 16px; line-height: 1.85; }
.hero-actions { flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-art {
  animation: reveal-art 1000ms var(--ease-out) both;
}
@keyframes reveal-art { from { opacity: 0; } to { opacity: 1; } }

.workflow { padding-top: 67px; scroll-margin-top: 90px; }
.section-header { margin-bottom: 27px; }
.section-header h2, .closing h2 { font-size: clamp(33px, 4vw, 50px); line-height: 1.25; letter-spacing: -.04em; }
.section-header p, .closing p { margin-top: 11px; color: var(--secondary); font-size: 15px; line-height: 1.7; }
.workspace { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.workspace-bar { min-height: 59px; padding: 6px 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.workspace-tabs { display: flex; align-items: center; gap: 5px; }
.workspace-tabs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 570;
  color: var(--secondary);
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.workspace-tabs a:hover { color: var(--foreground); }
.workspace-tabs [aria-selected="true"] { background: #252529; border-color: #36363a; color: var(--foreground); }
.workspace-meta, figure figcaption { color: #a6a5ad; font-size: 12px; }
.workspace-panel {
  padding: clamp(18px, 3vw, 40px);
  display: grid;
  grid-template-columns: minmax(175px,.29fr) minmax(0,1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 60px);
}
.enhanced .workspace-panel { animation: panel-arrival 260ms var(--ease-out) both; }
@keyframes panel-arrival { from { opacity: .28; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel-copy { padding-top: 8px; }
.panel-copy h3 { font-size: 19px; line-height: 1.4; letter-spacing: -.02em; font-weight: 630; }
.panel-copy p { color: var(--secondary); font-size: 14px; line-height: 1.85; margin-top: 10px; }
figure { min-width: 0; }
figure a { display: block; border: 1px solid #36363b; border-radius: 8px; overflow: hidden; background: #070707; }
figure img { display: block; width: 100%; height: auto; aspect-ratio: 2800 / 1668; }
figure figcaption { padding-top: 9px; }
.closing { margin-top: 95px; padding: 56px 0 66px; }
.footer { padding-block: 13px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--secondary); font-size: 13px; }
.footer nav { gap: 20px; }

.site-nav a[aria-current="page"], .header-actions a[aria-current="page"] { color: var(--foreground); }
.header-download[aria-current="page"] { border-color: #626168; }
.subpage-hero {
  padding-block: clamp(64px, 10vw, 140px) clamp(45px, 7.4vw, 104px);
}
.subpage-hero h1 { font-size: clamp(43px, 6vw, 82px); text-wrap: balance; }
.page-description { max-width: 38em; margin-top: 21px; color: var(--secondary); font-size: 16px; line-height: 1.85; }
.subpage-section { padding-block: clamp(39px, 5.5vw, 74px); scroll-margin-top: 100px; }
.subpage-section h2 {
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, "STSong", Georgia, serif;
  font-size: clamp(30px, 3.5vw, 47px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.04em;
}
.subpage-section > p { color: var(--secondary); max-width: 45em; margin-top: 12px; line-height: 1.8; }
.page-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.page-card { min-width: 0; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.page-card h2, .page-card h3 { font-size: clamp(19px, 2.4vw, 29px); }
.page-card p, .page-card li { color: var(--secondary); font-size: 14px; line-height: 1.8; }
.page-card p { margin-top: 10px; }
.page-card ul, .page-card ol { padding-inline-start: 1.25em; margin-block: 12px 0; }
.page-card li + li { margin-top: 5px; }
.page-card .hero-actions { margin-top: 19px; }

@media (max-width: 930px) {
  .shell { width: min(100% - 56px, 1200px); }
  .masthead-inner { grid-template-columns: auto 1fr; gap: 0 18px; padding-top: 8px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; gap: 25px; }
  .hero-inner { min-height: 530px; }
  .workflow { scroll-margin-top: 114px; }
}
@media (max-width: 600px) {
  :root { --hero-art-width: min(52vw, 200px); }
  .shell { width: calc(100% - 36px); }
  .masthead-inner { min-height: 0; gap: 0 10px; }
  .wordmark { font-size: 14px; gap: 6px; }
  .wordmark img { width: 22px; height: 22px; }
  .header-actions { gap: 9px; }
  .header-actions > a:not(.button), .site-nav a { font-size: 12px; }
  .header-download { min-height: 44px; padding-inline: 9px; font-size: 12px; }
  .site-nav { flex-wrap: wrap; column-gap: 17px; row-gap: 0; }
  .hero-inner { display: block; min-height: 520px; }
  .hero-copy { padding: 64px 0 0; }
  .hero-label { margin-bottom: 18px; font-size: 12px; }
  h1 { font-size: clamp(45px, 11.8vw, 68px); }
  .hero-description { margin-top: 19px; font-size: 15px; max-width: 19em; }
  .hero-actions { margin-top: 20px; gap: 6px; }
  .button { padding-inline: 12px; }
  .hero-art { margin: 0 0 8px auto; }
  .workflow { padding-top: 42px; }
  .section-header { margin-bottom: 20px; }
  .workspace-bar { padding: 5px 7px; }
  .workspace-tabs { gap: 3px; }
  .workspace-tabs a { padding-inline: 8px; }
  .workspace-meta { display: none; }
  .workspace-panel { grid-template-columns: 1fr; padding: 14px; gap: 15px; }
  .panel-copy { padding-top: 0; }
  .closing { margin-top: 56px; padding: 42px 0; }
  .footer { align-items: flex-start; flex-wrap: wrap; gap: 3px 10px; }
  .footer nav { flex-wrap: wrap; gap: 0 11px; }
  .subpage-hero { padding-block: 51px 47px; }
  .page-description { margin-top: 15px; font-size: 15px; }
  .subpage-section { scroll-margin-top: 114px; }
  .page-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Shared financial illustrations and smaller content modules. */
.feature-glyph {
  display: block;
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  flex: 0 0 auto;
}
.finance-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 42px);
}
.finance-heading > div { min-width: 0; }
.finance-heading > .feature-glyph { width: clamp(30px, 5vw, 44px); height: auto; }
.subpage-hero.has-motif {
  position: relative;
  padding-inline-end: calc(var(--hero-art-width) + var(--hero-art-gap));
}
.graphite-art {
  display: block;
  position: relative;
  width: var(--hero-art-width);
  aspect-ratio: 1;
  overflow: clip;
}
.graphite-art video {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
/* Keep the inner-page motifs 15% below their previously aligned size. */
.graphite-art video[data-src$="resend-broadcasts-transparent.webm"] { transform: scale(1.343); }
.graphite-art video[data-src$="resend-automations-transparent.webm"] { transform: scale(1.309); }
.graphite-art video[data-src$="resend-audience-transparent.webm"],
.graphite-art video[data-src$="resend-templates-transparent.webm"] { transform: scale(1.2325); }
.hero-motif {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.catalog-hero .graphite-art { justify-self: center; width: min(100%, var(--hero-art-width)); }
.feature-list { padding-inline-start: 1.25em; margin-block: 12px 0; color: var(--secondary); line-height: 1.8; }
.feature-list li + li { margin-top: 5px; }
.page-text a:not(.button), .page-card a:not(.button) { text-decoration: underline; text-underline-offset: .22em; }
.subpage-section .page-text { max-width: 68ch; color: var(--secondary); line-height: 1.85; }
@media (max-width: 600px) {
  .subpage-hero.has-motif { padding-inline-end: 0; }
  .hero-motif { position: static; transform: none; margin-top: 14px; margin-left: auto; }
  .catalog-hero .graphite-art { justify-self: end; }
  .finance-heading > .feature-glyph { width: 32px; }
}

.hero-label > .hero-label-text { width: auto; height: auto; border-radius: 0; background: none; }
.home-resources { padding-bottom: 0; }
.home-resources .page-card > h2 { margin-top: 10px; }
:lang(en) :is(h1, .section-header h2, .closing h2, .subpage-section h2) {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.account-section { max-width: 690px; }
.account-panel { display: block; padding: clamp(17px, 4vw, 40px); }
.account-panel h3 { font-size: 22px; line-height: 1.3; }
.account-panel p { color: var(--secondary); font-size: 14px; line-height: 1.75; margin-top: 12px; }
.account-panel fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.account-panel label { display: grid; gap: 6px; margin: 0 0 14px; font-size: 14px; }
.account-panel input {
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  min-height: 44px;
  border: 1px solid #343439;
  border-radius: 7px;
  background: #19191d;
  color: var(--foreground);
  font: inherit;
}
.account-panel :disabled { cursor: default; }
.account-panel button:disabled { opacity: .58; }
.account-code { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: end; }
.account-code label { flex: 1 1 160px; }
.account-code button { margin-bottom: 14px; }

.legacy-anchor { display: block; height: 0; scroll-margin-top: 114px; }
