@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-400-700-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-400-700-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-400-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-500-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-500-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-600-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/plex-sans-600-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-400-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-500-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

:root {
  --paper: #f6efdf;
  --paper-2: #eadfc8;
  --card: #fffaf0;
  --ink: #14201d;
  --ink-soft: #52615b;
  --line: #14201d;
  --accent: #d9542f;
  --accent-ink: #b8431f;
  --accent-soft: #f4d8cf;
  --blue: #2d5b86;
  --sage: #6e8b7b;
  --sage-ink: #4f6b5c;
  --shadow: 6px 6px 0 rgba(20, 32, 29, 0.14);
  --radius: 18px;
  --font-sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1715;
    --paper-2: #16211e;
    --card: #16211e;
    --ink: #f2ead8;
    --ink-soft: #b3c0b8;
    --line: #e7dcc6;
    --accent: #ef7a52;
    --accent-ink: #ef7a52;
    --accent-soft: #3b211a;
    --blue: #6fa3d6;
    --sage: #9ab7a8;
    --sage-ink: #9ab7a8;
    --shadow: 6px 6px 0 rgba(0, 0, 0, 0.42);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(1100px 560px at 8% -12%, rgba(194, 75, 42, 0.13), transparent 62%),
    radial-gradient(900px 520px at 104% -4%, rgba(93, 122, 107, 0.18), transparent 58%),
    var(--paper);
  background-attachment: fixed;
  overscroll-behavior-y: contain;
  touch-action: manipulation;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--line) 0.55px, transparent 0.55px);
  background-size: 18px 18px;
  opacity: 0.07;
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.shell {
  display: flex;
  flex-direction: column;
  width: min(100%, 720px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px clamp(16px, 5vw, 32px) calc(28px + env(safe-area-inset-bottom));
}

.shell.narrow {
  width: min(100%, 560px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.site-header {
  position: relative;
}

.site-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
  min-width: 0;
}

.site-nav a {
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  border-bottom-color: var(--accent);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
  font-weight: 600;
}

.site-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.site-pickup {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  text-decoration: none;
}

.site-pickup:hover {
  border-bottom-color: currentColor;
}

.site-cta {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  white-space: nowrap;
}

.site-cta-mobile {
  justify-content: center;
  margin-top: 6px;
}

.site-menu {
  position: relative;
  display: none;
}

.site-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  list-style: none;
}

.site-menu summary::-webkit-details-marker {
  display: none;
}

.site-menu-icon {
  width: 18px;
  height: 18px;
}

.site-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 184px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.site-menu-panel a {
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.site-menu-panel a:hover {
  background: var(--accent-soft);
}

.site-menu-panel a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 600;
}

.site-header::after {
  display: block;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    135deg,
    var(--accent) 0 14px,
    transparent 14px 26px,
    var(--blue) 26px 40px,
    transparent 40px 52px
  );
  content: "";
}

.lang-switch,
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
}

.back {
  border-color: transparent;
  background: transparent;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.hint,
.privacy {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--sage-ink);
  font-size: 13px;
}

.status.error {
  color: var(--accent-ink);
}

.seal,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.seal {
  width: 100%;
  margin-top: 16px;
}

.seal:disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
}

.button.ghost {
  border-style: dashed;
  background: transparent;
  color: var(--ink);
}

.footer {
  margin-top: clamp(36px, 8vh, 64px);
  padding-top: 22px;
  border-top: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
}

.site-footer-tagline {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.4;
}

.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}

.site-footer-col {
  min-width: 0;
}

.site-footer-heading {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer-col .footer-links {
  justify-content: flex-start;
  text-align: left;
}

.site-footer-copy {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 24px;
}

html[data-page="help"] .page,
html[data-page="security"] .page {
  max-width: 68ch;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-220%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 54px);
  letter-spacing: -0.01em;
  line-height: 1.04;
}

.page-lede {
  max-width: 68ch;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.page-updated {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-email {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.contact-email a {
  border-bottom: 2px solid var(--accent);
  text-decoration: none;
}

.page-section {
  scroll-margin-top: 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.page-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4.6vw, 32px);
  line-height: 1.15;
}

.page-section p {
  max-width: 68ch;
  margin: 0 0 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.page-bullets {
  margin: 0;
  padding-left: 22px;
  line-height: 1.7;
}

.page-toc {
  max-width: 68ch;
  margin: 22px 0 0;
  padding: 14px 18px;
  border: 1.5px solid color-mix(in srgb, var(--line) 42%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  font-size: 13px;
}

.page-toc summary {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.page-toc nav {
  margin-top: 10px;
}

.page-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
  line-height: 1.7;
}

.page-toc a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-toc a:hover {
  color: var(--accent-ink);
  border-bottom-color: currentColor;
}

.page-bullets li {
  max-width: 68ch;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.breadcrumb {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  color: var(--ink-soft);
  content: "/";
}

.breadcrumb a {
  color: inherit;
}

.breadcrumb span {
  color: var(--ink-soft);
}

.page-steps {
  margin: 0;
  padding-left: 24px;
  line-height: 1.7;
}

.page-steps li {
  max-width: 68ch;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.page-steps li::marker {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-weight: 700;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.use-case-grid--pairs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.use-case-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .use-case-grid--pairs {
    grid-template-columns: 1fr;
  }
}

.use-case-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
}

.use-case-card p {
  flex: 1;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.page-faq {
  display: grid;
  gap: 18px;
}

.page-faq-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.page-faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  line-height: 1.6;
}

.page-cta {
  margin: 34px 0 0;
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 12px 16px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: var(--card);
  color: var(--accent-ink);
  font-size: 14px;
  text-align: center;
}

@media (min-width: 760px) and (max-width: 1199px) {
  .site-top {
    gap: 10px;
  }

  .site-nav {
    gap: 2px 10px;
  }

  .site-nav a {
    padding-inline: 0;
    font-size: 13px;
  }

  .site-tools {
    gap: 6px;
  }

  .site-pickup,
  .lang-switch,
  .site-cta {
    min-height: 38px;
    font-size: 12px;
  }

  .lang-switch,
  .site-cta {
    padding-inline: 10px;
  }
}

@media (max-width: 759.98px) {
  .site-nav {
    display: none;
  }

  .site-menu {
    display: block;
  }

  .site-cta {
    display: none;
  }

  .site-pickup {
    display: none;
  }

  .site-menu-panel {
    min-width: 220px;
  }
}

@media (max-width: 900px) {
  .site-footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page-toc ol {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .site-footer-cols {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  html[data-page="home"] .shell,
  body.site-page .shell,
  body.landing-page .shell {
    width: min(100%, 1080px);
  }

  html[data-page="use-cases"] .page,
  html[data-page="how-it-works"] .page,
  body.landing-page .landing {
    max-width: 1080px;
  }

  /* The tool stays a reading-width column; the marketing grid can breathe. */
  html[data-page="home"] .hero,
  html[data-page="home"] .compose,
  html[data-page="home"] .file-compose {
    max-width: 720px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .skeleton {
    animation: none;
  }
}
