@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/assets/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #172e3f;
  --body: #364e60;
  --muted: #4d6577;
  --accent: #175c76;
  --deep: #104b62;
  --line: #d4e1e7;
  --surface: #f8fbfc;
  --soft: #eef5f7;
  --white: #fff;
  --radius: 12px;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--surface);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; line-height: 1.55; min-width: 280px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled) { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid #2894af; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1192px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 3; padding: 10px; background: white; }

.site-header { background: rgba(255,255,255,.84); border-bottom: 1px solid var(--line); }
.bar, .footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; font-size: 17px; line-height: 1.15; text-decoration: none; }
.brand-mark { display: inline-flex; place-content: center; align-items: center; gap: 2px; flex: 0 0 35px; width: 35px; height: 35px; border-radius: 10px; background: var(--accent); color: white; }
.brand-mark i { width: 9px; height: 13px; border: 1.5px solid currentColor; transform: skewY(10deg); border-radius: 2px 1px 1px 2px; }
.brand-mark i + i { transform: skewY(-10deg); border-radius: 1px 2px 2px 1px; }
.navigation { display: flex; align-items: center; flex-shrink: 0; gap: clamp(12px, 2.15vw, 30px); }
.header-account { display: flex; align-items: center; gap: 7px; }
.header-credit-balance { padding: 4px 8px; border-radius: 7px; background: #e8f3f7; color: var(--deep); font-size: 13px; font-weight: 750; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.how-link { color: var(--body); text-decoration: none; font-weight: 650; font-size: 14px; }
.how-link:hover { text-decoration: underline; }
.language-button { min-height: 44px; display: flex; align-items: center; gap: 7px; white-space: nowrap; border: 0; background: transparent; padding: 4px 1px; color: var(--body); font-weight: 700; font-size: 14px; }
.language-button:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 9px; min-height: 44px; border: 1px solid transparent; padding: 9px 16px; background: transparent; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 14px; line-height: 1.25; }
.button:disabled { opacity: .65; cursor: wait; }
.button-outline { border-color: #bed1db; background: var(--white); }
.button-outline:hover:not(:disabled) { border-color: var(--accent); background: var(--soft); }
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover:not(:disabled) { background: var(--deep); }
.button-link { color: var(--accent); padding: 0 2px; gap: 8px; }
.button-link:hover { text-decoration: underline; }
.demo-strip { background: #e9f4f5; border-bottom: 1px solid #d4e7e9; color: var(--deep); font-size: 13px; }
.demo-strip .wrap { min-height: 35px; display: flex; align-items: center; gap: 9px; padding-block: 5px; }
.demo-status { width: 7px; height: 7px; border-radius: 50%; background: #3b8292; flex-shrink: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); column-gap: clamp(36px, 6vw, 92px); align-items: center; padding-block: clamp(61px, 7vw, 105px) clamp(62px, 6.45vw, 96px); }
.hero-left { min-width: 0; }
body.has-result .hero .preview { align-self: start; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 780; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 20px; }
.eyebrow > span:first-child { width: 19px; height: 2px; background: #5793a3; border-radius: 3px; }
.hero h1 { font: 540 clamp(48px, 5.4vw, 83px)/.96 Newsreader, Georgia, serif; letter-spacing: -.062em; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--accent); margin-top: 5px; }
.hero-copy { color: var(--body); max-width: 445px; font-size: clamp(16px, 1.52vw, 19px); line-height: 1.52; margin-top: 19px; }
:lang(zh-CN) .hero h1 { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-size: clamp(45px, 4.7vw, 70px); font-weight: 700; line-height: 1.12; letter-spacing: -.09em; }
:lang(zh-CN) .eyebrow { letter-spacing: .13em; }
.lookup { margin-top: 31px; }
.lookup-row { display: flex; gap: 7px; align-items: stretch; padding: 6px; background: white; border: 1px solid #a9c4d2; border-radius: 13px; min-width: 0; box-shadow: 0 3px 11px #1350680d; }
.lookup-row:focus-within { border-color: #36839a; box-shadow: 0 0 0 3px #cee7ed; }
.input-wrap { display: flex; align-items: center; gap: 12px; color: var(--accent); flex: 1; min-width: 60px; padding-left: 9px; }
.input-wrap input { width: 100%; min-width: 0; min-height: 44px; border: 0; outline: none; color: var(--ink); background: transparent; font-size: 16px; border-radius: 5px; }
.input-wrap input::placeholder { color: #537080; opacity: 1; }
.lookup-row .button { min-width: max-content; padding-inline: 17px; }
.lookup-error { color: #a33428; font-size: 14px; line-height: 1.4; }
.lookup-error:not(:empty) { margin: 7px 0 0 2px; }
.wishlist-offer { margin-top: 8px; min-width: 0; }
.wishlist-button { max-width: 100%; gap: .28em; }
.wishlist-button > span { flex: 0 0 auto; }
.wishlist-button[aria-disabled="true"] { opacity: .72; cursor: default; }
.wishlist-domain { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wishlist-help, .wishlist-status { color: var(--muted); font-size: 13px; line-height: 1.45; }
.wishlist-help, .wishlist-status:not(:empty) { margin: 6px 0 0 2px; }
.wishlist-status.error { color: #a33428; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; min-height: 25px; gap: 6px 8px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.platform-tag { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 5px; border: 1px solid #c8dce3; background: #edf5f7; color: #245970; font-size: 12px; overflow-wrap: anywhere; font-weight: 700; }
.platform-tag::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #398584; }
.platforms .button { min-height: 35px; padding-block: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .button { min-height: 42px; }

.preview { overflow: hidden; align-self: center; background: #e5eff2; border: 1px solid #c9dce4; border-radius: 19px; box-shadow: 0 20px 55px -24px #274f6780; position: relative; }
.preview-top { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; min-height: 43px; border-bottom: 1px solid #d1e0e6; padding-inline: 15px; text-align: center; color: #4a6475; font-size: 11px; letter-spacing: .065em; font-weight: 740; }
.preview-dots { display: flex; gap: 4px; }
.preview-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #a1bac5; }
.preview-window { justify-self: end; width: 12px; height: 9px; border: 1px solid #7995a4; border-radius: 2px; }
.preview-paper { position: relative; overflow: hidden; margin: clamp(11px, 1.8vw, 25px); padding: clamp(22px, 2.9vw, 42px); background: #fff; border: 1px solid #d0dde3; border-radius: 9px; box-shadow: 0 7px 17px #23485e10; }
.preview-paper::after { content: ""; width: 36px; height: 36px; position: absolute; top: -1px; right: -1px; background: linear-gradient(45deg, #e6f1f4 0 48%, #c7dbe3 48% 51%, #e5eff2 51% 100%); border-bottom-left-radius: 5px; }
.preview-kicker { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 11px; font-weight: 780; letter-spacing: .10em; text-transform: uppercase; }
.preview-paper h2 { font: 560 clamp(28px, 2.8vw, 40px)/1.03 Newsreader, Georgia, serif; letter-spacing: -.038em; margin-top: 16px; }
:lang(zh-CN) .preview-paper h2 { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-size: clamp(25px, 2.65vw, 38px); font-weight: 700; line-height: 1.21; }
.sample-meta { color: var(--muted); font-size: 12px; margin-top: 9px; }
.preview-paper hr { border: 0; border-top: 1px solid var(--line); margin: 21px 0 16px; }
.preview-paper h3 { font-size: 14px; }
.sample-copy { color: var(--body); font-size: 14px; margin-top: 7px; }
.sample-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 17px; padding: 10px 12px; background: #edf5f7; border-radius: 6px; color: #2f5769; font-size: 12px; line-height: 1.47; }
.sample-note > span { color: var(--accent); }

.how { padding-block: 37px 43px; background: #edf4f6; border-block: 1px solid var(--line); scroll-margin-top: 14px; }
.how h2 { margin-bottom: 22px; font: 560 clamp(29px, 3vw, 38px)/1.15 Newsreader, Georgia, serif; letter-spacing: -.04em; }
:lang(zh-CN) .how h2 { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-weight: 700; font-size: clamp(26px, 2.7vw, 35px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; gap: 12px; align-items: start; }
.step-icon { flex: 0 0 37px; width: 37px; height: 37px; display: grid; place-items: center; color: var(--accent); background: white; border: 1px solid #cfdee4; border-radius: 8px; }
.step h3 { font-size: 15px; font-weight: 780; }
.step p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.footer-bar { min-height: 73px; color: var(--muted); font-size: 13px; }
.site-footer .brand-mark { flex-basis: 25px; width: 25px; height: 25px; border-radius: 7px; }
.site-footer .brand-mark i { width: 6px; height: 9px; border-width: 1px; }
.site-footer .brand { font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 4px 16px; text-align: right; }
.footer-links a { text-underline-offset: 3px; }
.privacy-note { font-size: 13px; margin-top: 8px; }
.privacy-note a { text-underline-offset: 3px; }

.workspace { margin-top: 14px; }
.result-card { background: white; border: 1px solid #cadae2; border-radius: var(--radius); padding: clamp(15px, 2vw, 24px); box-shadow: 0 8px 31px #17435a0c; }
.result-badge { display: inline-block; padding: 3px 9px; border: 1px solid #cbdfe8; border-radius: 5px; background: #eef5f7; color: var(--accent); font-size: 12px; font-weight: 750; }
.result-badge.error { background: #fbefec; color: #8c3f30; border-color: #f0d6d0; }
.result-card h2 { margin: 9px 0 6px; font-size: clamp(23px, 3.5vw, 32px); line-height: 1.2; overflow-wrap: anywhere; }
.result-card > p, .dialog p { color: var(--body); font-size: 15px; }
.result-link { margin-top: 10px; display: inline-flex; align-items: center; min-height: 28px; gap: 5px; font-size: 13px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.result-actions .button[aria-disabled="true"] { opacity: .65; cursor: wait; }
.result-action-feedback:not(:empty) { margin-top: 8px; padding: 8px 12px; border-radius: 7px; background: #edf5f7; color: #234c5f; font-size: 14px; }
.result-action-feedback.error:not(:empty) { background: #fbefec; color: #8c3f30; }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -.13em; border: 2px solid #bdd6df; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reader-content { margin-top: 28px; max-width: 64ch; border-top: 1px solid var(--line); padding-top: 24px; }
.reader-content p { font-size: 17px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.reader-content p + p { margin-top: 14px; }

.dialog { width: min(480px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 25px; color: var(--ink); border: 1px solid #c9dde4; border-radius: 16px; background: white; box-shadow: 0 27px 80px #0b293d55; }
.dialog::backdrop { background: #18334482; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.dialog h2 { font-size: 25px; line-height: 1.2; margin-bottom: 8px; }
.dialog form { display: grid; gap: 11px; margin-top: 15px; }
.dialog form label { display: grid; gap: 5px; font-size: 14px; font-weight: 720; }
.field { width: 100%; min-height: 44px; padding: 8px 10px; color: var(--ink); background: white; border: 1px solid #a9c4d2; border-radius: 7px; }
.dialog .icon-button { min-width: 44px; padding: 0; }
.dialog .dialog-secondary { width: 100%; margin-top: 9px; }
.dialog .notice, .result-card .notice { margin-top: 12px; background: #edf5f7; color: #234c5f; padding: 9px 11px; border-radius: 6px; overflow-wrap: anywhere; }
.dialog .notice.error, .result-card .notice.error { color: #8c3f30; background: #fbefec; }
.account-email { overflow-wrap: anywhere; }
.account-credits { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0; padding: 12px; background: var(--soft); border-radius: 8px; }
.account-credits > div { flex: 1 1 100px; }
.account-credits dt { color: var(--muted); font-size: 13px; }
.account-credits dd { margin: 0; font-weight: 780; font-size: 22px; }
.dialog .held-credit-help { margin: -6px 0 14px; color: var(--muted); font-size: 13px; }
.history-list { list-style: none; margin: 12px 0; padding: 0; border-top: 1px solid var(--line); }
.history-list li { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.history-entry-link.button { display: inline; min-height: auto; padding: 0; text-align: start; white-space: normal; }
.dialog .history-entry-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
#history-back { margin-inline-start: 8px; }
.invite-code { display: block; margin-block: 8px; color: var(--deep); overflow-wrap: anywhere; }
.invite-share { width: 100%; margin: 4px 0 8px; }

.icon { position: relative; display: inline-block; flex: 0 0 15px; width: 15px; height: 15px; vertical-align: -.15em; color: inherit; }
.link-icon { transform: rotate(-41deg); }
.link-icon::before, .link-icon::after { content: ""; position: absolute; width: 9px; height: 5px; top: 5px; border: 1.5px solid currentColor; border-radius: 6px; }
.link-icon::before { left: -2px; }
.link-icon::after { right: -2px; }
.globe { border: 1.4px solid currentColor; border-radius: 50%; }
.globe::before { content: ""; position: absolute; inset: -1px 3px; border: 1px solid currentColor; border-radius: 50%; }
.globe::after { content: ""; position: absolute; top: 6px; inset-inline: 0; border-top: 1px solid currentColor; }
.arrow-right::before, .arrow-up-right::before { content: ""; position: absolute; top: 7px; left: 2px; width: 10px; border-top: 1.5px solid currentColor; }
.arrow-right::after, .arrow-up-right::after { content: ""; position: absolute; top: 4px; right: 2px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-left: 0; border-bottom: 0; transform: rotate(45deg); }
.arrow-up-right { transform: rotate(-45deg); }
.paper-icon { width: 12px; flex-basis: 12px; height: 15px; border: 1.4px solid currentColor; border-radius: 2px; }
.paper-icon::before { content: ""; position: absolute; inset: 4px 2px auto; height: 3px; border-block: 1px solid currentColor; }
.search-icon::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; bottom: 3px; right: 0; width: 6px; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.x-icon::before, .x-icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 15px; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.x-icon::after { transform: rotate(-45deg); }
@media (max-width: 900px) {
  .wrap { width: calc(100% - 60px); }
  .hero { column-gap: 27px; }
  .lookup-row .button { padding-inline: 11px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .bar { min-height: 64px; gap: 8px; }
  .site-header .brand { min-width: 0; }
  .site-header .brand [data-brand] { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .how-link { display: none; }
  .hero { grid-template-columns: 1fr; align-items: start; row-gap: 28px; padding-block: 40px 31px; }
  .hero h1 { font-size: clamp(45px, 10.6vw, 70px); }
  :lang(zh-CN) .hero h1 { font-size: clamp(39px, 9.6vw, 64px); }
  .hero-copy { margin-top: 14px; }
  .lookup { margin-top: 22px; }
  .preview { max-width: 490px; width: 100%; }
  body.has-result .hero .preview { display: none; }
  .steps { grid-template-columns: 1fr; gap: 19px; }
  .how { padding-block: 28px 33px; }
  .footer-bar { min-height: 61px; }
}
@media (max-width: 375px) {
  .wrap { width: calc(100% - 28px); }
  .brand { font-size: 15px; gap: 6px; }
  .brand-mark { width: 29px; height: 29px; flex-basis: 29px; border-radius: 8px; }
  .navigation, .header-account { gap: 6px; }
  .header-credit-balance { padding-inline: 5px; font-size: 12px; }
  .language-button { gap: 4px; }
  .language-button .icon { display: none; }
  .account-button { padding-inline: 8px; }
  .lookup-row { gap: 4px; }
  .input-wrap { gap: 7px; padding-left: 5px; }
  .lookup-row .button { padding-inline: 8px; gap: 4px; }
  .lookup-row .button .icon { display: none; }
  .footer-bar { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}

.callback-page { padding-block: 50px; }
