/* Hearwink — sales site. Heading face is self-hosted (no third-party font hosts, so it loads everywhere). */
@font-face { font-family: "Bricolage"; src: url("/assets/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("/assets/bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  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+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage"; src: url("/assets/bricolage-vietnamese.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --paper: #F7F8FC;
  --ink: #161A3A;
  --blue: #3451E6;
  --blue-deep: #2238B8;
  --wink: #FF8A3D;
  --sky: #E3E9FF;
  --line: #D0D6EC;
  --muted: #50577A;
  --white: #FFFFFF;
  --display: "Bricolage", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* ---------- top bar ---------- */
.top { max-width: var(--wrap); margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.wordmark span { color: var(--blue); }
.nav { display: flex; gap: 22px; margin-left: 12px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 15px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.langs { margin-left: auto; display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; gap: 2px; }
.langs a { text-decoration: none; font-size: 14px; padding: 5px 12px; border-radius: 999px; min-height: 32px; display: inline-flex; align-items: center; }
.langs a[aria-current="page"] { background: var(--ink); color: var(--white); }
.langs a:not([aria-current]):hover { background: var(--sky); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 14px; background: var(--blue); color: var(--white); font-weight: 650; font-size: 17px; text-decoration: none; border: 2px solid var(--blue); }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--sky); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }

/* ---------- hero ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 40px 24px 88px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.03; font-weight: 750; letter-spacing: -0.03em; text-wrap: balance; }
:lang(zh-Hans) .hero h1 { line-height: 1.22; letter-spacing: 0; font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
:lang(vi) .hero h1 { line-height: 1.12; }
.lead { margin-top: 24px; font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 34em; }
.cta-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.note { margin-top: 16px; font-size: 15px; color: var(--muted); }

.demo { margin: 0; background: var(--white); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--blue); overflow: hidden; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.demo-title { font-family: var(--display); font-weight: 650; }
.toggle { font-size: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.thread { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 4px 16px 16px 16px; background: var(--white); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.msg .orig { font-size: 14px; color: var(--muted); }
.msg .tr { font-weight: 600; font-size: 16.5px; }
.msg .from { font-size: 12.5px; color: var(--blue-deep); }
.msg.out { align-self: flex-end; background: var(--blue); border-color: var(--blue); color: var(--white); border-radius: 16px 4px 16px 16px; }
.msg.out .sent { font-weight: 600; font-size: 16.5px; }
.msg.out .from { color: #DDE4FF; }
.msg.out .typed { font-size: 14px; color: #DDE4FF; border-top: 1px solid rgba(255,255,255,0.3); padding-top: 6px; margin-top: 3px; }
.msg.out .typed span { display: block; font-size: 12px; opacity: 0.85; }
.demo.hide-original .msg.in .orig { display: none; }

/* One orchestrated moment: translations arrive one after another. */
@media (prefers-reduced-motion: no-preference) {
  .msg .tr, .msg .from, .msg.out { animation: arrive 0.5s both; animation-delay: calc(0.5s + var(--i) * 0.75s); }
  @keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ---------- apps ---------- */
.apps { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 88px; }
.apps h2 { font-size: 1.15rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.app-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-family: var(--display); font-weight: 650; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; }
.app-list li:not(:last-child)::after { content: "/"; color: var(--wink); margin: 0 0.5em; font-weight: 400; }
.fine { margin-top: 16px; font-size: 14.5px; color: var(--muted); max-width: 46em; }

/* ---------- features ---------- */
.features { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 40px; }
.features > h2, .steps h2, .faq h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1.12; max-width: 18em; text-wrap: balance; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 56px 0; border-top: 2px solid var(--ink); margin-top: 40px; }
.feature + .feature { margin-top: 0; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: 1.9rem; font-weight: 700; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feature-copy p { margin-top: 14px; color: var(--muted); max-width: 32em; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 7px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.soon { font-family: var(--body); font-size: 13px; font-weight: 650; letter-spacing: 0; background: var(--ink); color: var(--white); padding: 4px 10px; border-radius: 999px; }
.visual { background: var(--sky); border-radius: 22px; padding: 28px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.bubble { background: var(--white); border-radius: 4px 16px 16px 16px; padding: 12px 14px; max-width: 88%; border: 1.5px solid var(--line); }
.bubble .orig { font-size: 14px; color: var(--muted); }
.bubble .tr { font-weight: 600; }
.bubble.mine { align-self: flex-end; background: var(--blue); border-color: var(--blue); color: var(--white); border-radius: 16px 4px 16px 16px; }
.bubble.mine .orig { color: #DDE4FF; }
.v-video { padding: 0; overflow: hidden; }
.screen { position: relative; background: var(--ink); min-height: 260px; display: flex; align-items: flex-end; justify-content: center; padding: 22px; border-radius: 22px; }
.play { position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent rgba(255,255,255,0.35); transform: translate(-40%, -90%); }
.subs { background: rgba(8, 10, 26, 0.86); border-radius: 12px; padding: 10px 16px; text-align: center; max-width: 100%; }
.subs .tr { color: var(--white); font-weight: 650; font-size: 1.05rem; }
.subs .orig { color: #C7CDEA; font-size: 14px; margin-top: 2px; }
.tile { background: var(--white); border-radius: 16px; padding: 14px 16px; border: 1.5px solid var(--line); }
.tile.you { background: var(--ink); color: var(--white); border-color: var(--ink); align-self: flex-end; }
.who { font-size: 13px; font-weight: 650; color: var(--blue-deep); display: block; }
.tile.you .who { color: #BFC9FF; }
.wave { display: inline-flex; gap: 3px; align-items: flex-end; height: 18px; margin-top: 8px; }
.wave i { width: 4px; background: var(--wink); border-radius: 2px; }
.wave i:nth-child(1) { height: 6px; } .wave i:nth-child(2) { height: 14px; } .wave i:nth-child(3) { height: 18px; } .wave i:nth-child(4) { height: 10px; } .wave i:nth-child(5) { height: 5px; }

/* ---------- steps (a real sequence, so it is numbered) ---------- */
.steps { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 88px; }
.steps ol { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 750; font-size: 3.2rem; line-height: 1; color: var(--blue); display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.25rem; font-weight: 650; }
.steps p { margin-top: 6px; color: var(--muted); }

/* ---------- privacy band ---------- */
.privacy { background: var(--ink); color: var(--white); }
.privacy > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.privacy h2 { padding-top: 80px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; }
.privacy dl { margin-top: 36px; margin-bottom: 0; padding-bottom: 88px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.privacy dt { font-family: var(--display); font-weight: 650; font-size: 1.2rem; }
.privacy dd { margin: 8px 0 0; color: #C9CFEE; }

/* ---------- pricing ---------- */
.pricing { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px; }
.pricing h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 750; line-height: 1.08; max-width: 14em; text-wrap: balance; }
.pricing .lead { margin-top: 18px; }
.plans-pending { margin-top: 24px; padding: 16px 18px; background: var(--sky); border-radius: 14px; max-width: 40em; }
.plans { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 760px; }
.plan { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan h3 { font-size: 1.2rem; }
.price strong { font-family: var(--display); font-size: 2rem; }
.price span { color: var(--muted); }
.pay { margin: 24px 0; color: var(--muted); max-width: 40em; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: 0 24px 96px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-of-type { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--display); font-weight: 650; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 44em; }

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--ink); max-width: var(--wrap); margin: 0 auto; padding: 32px 24px 48px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .langs { margin-left: auto; }
.foot .fine { margin: 0; flex-basis: 100%; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; }
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .feature.flip .feature-copy { order: 0; }
  .steps ol, .privacy dl { grid-template-columns: 1fr; }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .langs { margin-left: auto; }
  .demo { box-shadow: 6px 6px 0 var(--blue); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- account page ---------- */
.account-main { max-width: 34rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.account-card { display: flex; flex-direction: column; gap: 0.9rem; }
.account-card h1 { font-size: 1.9rem; line-height: 1.15; margin: 0; }
.account-card h2 { font-size: 1.2rem; margin: 1.2rem 0 0; }
.account-card h3 { font-size: 1.05rem; margin: 0; }
.account-card form { display: flex; flex-direction: column; gap: 0.5rem; }
.account-card label { font-weight: 600; font-size: 0.95rem; }
.account-card input { height: 2.9rem; border: 1px solid #8A9099; border-radius: 0.7rem; padding: 0 0.8rem; font: inherit; background: #fff; color: inherit; }
.account-card input:focus-visible, .acc-link:focus-visible { outline: 2px solid #3451E6; outline-offset: 2px; }
#acc-code { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; font-size: 1.3rem; }
.acc-muted { color: #5B616B; margin: 0; }
.acc-or { text-align: center; color: #5B616B; margin: 0; }
.acc-provider { width: 100%; justify-content: center; }
.acc-error { color: #9A3412; background: #FFF4ED; border-radius: 0.7rem; padding: 0.7rem 0.9rem; margin: 0; }
.acc-note { color: #14532D; background: #ECFDF3; border-radius: 0.7rem; padding: 0.7rem 0.9rem; margin: 0; }
.acc-status { font-weight: 650; font-size: 1.1rem; background: #EEF1FD; color: #2238B8; border-radius: 0.7rem; padding: 0.8rem 1rem; margin: 0; }
.acc-status.locked { background: #FFF4ED; color: #9A3412; }
.acc-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.4rem 0 0; }
.acc-link { background: none; border: 0; padding: 0.3rem 0; font: inherit; color: #2238B8; text-decoration: underline; cursor: pointer; }
.acc-link:disabled { color: #6B717B; cursor: default; }
.acc-plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.acc-plan { border: 1px solid #C9CDD3; border-radius: 1rem; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; background: #fff; }
.acc-price { margin: 0; } .acc-price strong { font-size: 1.5rem; }
.acc-order { border: 2px solid #3451E6; border-radius: 1rem; padding: 1rem 1.1rem; background: #fff; }
.acc-order dl { display: grid; gap: 0.5rem; margin: 0.8rem 0; }
.acc-order dl > div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.acc-order dt { color: #5B616B; } .acc-order dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
#acc-memo { font-size: 1.2rem; letter-spacing: 0.06em; }
/* Buttons are <button> here (not links): they must use the page's typeface too. */
.account-card button { font-family: inherit; }
.account-card button.btn { font-size: 1rem; cursor: pointer; }
.account-card button.btn:disabled { opacity: .6; cursor: default; }

.build-note code { font-family: ui-monospace, Consolas, monospace; font-size: 0.85em; overflow-wrap: anywhere; }

/* Privacy policy and terms: a single reading column. */
.legal-main { max-width: 42rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal-main h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 0.5rem; }
.legal-main h2 { font-size: 1.25rem; margin: 2.2rem 0 0.4rem; }
.legal-main p { line-height: 1.6; margin: 0.6rem 0; max-width: 40em; }
.legal-updated { color: var(--muted); font-size: 0.95rem; }
.legal-intro { font-size: 1.08rem; }
.legal-contact { margin-top: 2.5rem; font-weight: 600; }
.legal-links a { margin-right: 1.25rem; color: inherit; }

.acc-device-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.acc-device { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.6rem 0; border-top: 1px solid var(--line, #d9dde3); }
.price-year { margin: 0.2rem 0 0.6rem; color: var(--muted); font-size: 0.95rem; }
.plans-extras { margin-top: 1rem; }
