/* www.facipos.cl — the FACIPOS home page. Brand colours from synthetic-trial/brand (FACIPOS Blue, Navy). */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff") format("woff");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2022, U+2026, U+20AC, U+2192, U+00D7;
}

:root {
  --ink: #0b1a3c;
  --ink-2: #33415f;
  --muted: #5f6b86;
  --faint: #8a94aa;
  --line: #e4e9f2;
  --line-strong: #cfd7e6;
  --paper: #ffffff;
  --mist: #f4f6fa;
  --blue: #1b52fb;
  --blue-hover: #1443d6;
  --blue-press: #1038b5;
  --blue-50: #eef3ff;
  --ring: #6d93ff;
  --radius: 8px;
  --radius-lg: 14px;
  --font: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC",
    "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
li, summary { text-wrap: pretty; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 8px 14px; border-radius: 6px; background: #fff; color: var(--ink); }
.skip:focus { left: 16px; }

/* Buttons: one solid action per place, the rest outlined. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 600 15px/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { background: var(--blue-press); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-sm svg { width: 16px; height: 16px; }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 36px; height: 68px; }
.brand { display: block; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 112px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f6f8fc 100%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 3.9vw, 54px); line-height: 1.22; font-weight: 800; letter-spacing: -.01em; }
.hero h1 span { display: block; white-space: nowrap; }
.lead { margin-top: 22px; max-width: 26em; font-size: 18px; line-height: 1.85; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-art { position: relative; padding: 0 0 72px 56px; }
.shot-desktop {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 26, 60, .06), 0 28px 64px -28px rgba(11, 26, 60, .38);
}
.shot-phone {
  position: absolute; left: 0; bottom: 0;
  width: 24%;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 50px -22px rgba(11, 26, 60, .55);
}

/* The receipt: thermal paper with a torn edge, printed once as the page opens. */
.receipt {
  position: absolute; right: -36px; bottom: -48px;
  width: 31%;
  container-type: inline-size;
  filter: drop-shadow(0 18px 26px rgba(11, 26, 60, .22)) drop-shadow(0 2px 3px rgba(11, 26, 60, .08));
  transform: rotate(1.5deg);
}
.paper {
  --edge: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  padding: 9% 8% 13%;
  background: #fff;
  color: #20242c;
  font: 500 11px/1.6 var(--mono);
  font-size: 4.9cqw;
  -webkit-mask: var(--edge);
  mask: var(--edge);
  animation: print 1.5s steps(30, end) .5s both;
}
@keyframes print {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.r-store { text-align: center; font-weight: 700; font-size: 1.25em; letter-spacing: .08em; margin-bottom: .5em; }
.r-row { display: flex; justify-content: space-between; gap: 1em; white-space: nowrap; }
.r-row span:first-child { overflow: hidden; text-overflow: ellipsis; }
.r-small { color: #5a606c; font-size: .92em; }
.r-qty { padding-left: 1em; margin-top: -.15em; }
.r-rule { margin: .55em 0; border-top: 1px dashed #b9bec8; }
.r-total { font-weight: 700; font-size: 1.15em; margin-bottom: .2em; }
.r-qr { display: block; width: 46%; margin: 1em auto .6em; color: #111; }
.r-foot { text-align: center; font-size: .82em; color: #5a606c; }

/* Sections */
.section { padding: 104px 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.3; font-weight: 800; letter-spacing: -.005em; }
.section-head p { margin-top: 10px; font-size: 17px; color: var(--muted); }

/* Downloads */
.dl-group + .dl-group { margin-top: 44px; }
.dl-group-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.dl-list { margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.dl {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 248px 172px;
  align-items: center;
  gap: 6px 28px;
  padding: 24px 28px;
}
.dl + .dl { border-top: 1px solid var(--line); }
.dl-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.dl-icon svg { width: 24px; height: 24px; }
.dl-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.dl-text { margin-top: 3px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.dl-tag { padding: 1px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 12px; font-weight: 600; line-height: 1.7; }
.dl-tag[hidden] { display: none; }
.dl-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; margin: 0; font-size: 14px; line-height: 1.7; }
.dl-meta dt { color: var(--faint); }
.dl-meta dd { margin: 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dl-meta div { display: contents; }
.dl-act { justify-self: end; }
.dl-act .btn { min-width: 132px; }
.dl-hash { grid-column: 2 / -1; margin-top: 2px; font-size: 13px; color: var(--muted); }
.dl-hash summary { width: max-content; cursor: pointer; list-style: none; color: var(--faint); }
.dl-hash summary::-webkit-details-marker { display: none; }
.dl-hash summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.dl-hash[open] summary::after { transform: rotate(-135deg); margin-bottom: -1px; }
.dl-hash summary:hover { color: var(--ink-2); }
.hash-body { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: 6px; background: var(--mist); }
.hash-body code { flex: 1; min-width: 0; font: 12.5px/1.55 var(--mono); color: var(--ink-2); word-break: break-all; }
.copy { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); font: 600 13px/1 var(--font); cursor: pointer; }
.copy:hover { border-color: var(--ink-2); }
.section-head .dl-latest { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.dl-latest a { font-weight: 600; white-space: nowrap; }
.dl.is-recommended { background: #fafbff; box-shadow: inset 3px 0 0 var(--blue); }
.dl.is-soon .dl-icon { background: var(--mist); color: var(--faint); }
.dl.is-soon .dl-name { color: var(--ink-2); }
.dl.is-soon .dl-main { grid-column: 2 / 4; }
.soon { display: inline-block; padding: 3px 12px; border: 1px dashed var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* Features: a ruled grid of plain text, no boxes. */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.feature { padding: 30px 22px 34px 0; border-bottom: 1px solid var(--line); }
.feature + .feature { padding-left: 24px; border-left: 1px solid var(--line); }
.feature:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
.f-icon { display: block; color: var(--blue); }
.f-icon svg { width: 26px; height: 26px; }
.feature h3 { margin-top: 16px; font-size: 18px; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 14px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.feature li + li { margin-top: 7px; }
.feature li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: #b3bdd0; }

.showcase { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: center; margin-top: 88px; }
.showcase-copy h3 { font-size: 24px; line-height: 1.4; }
.showcase-copy p { margin-top: 12px; font-size: 16px; color: var(--muted); }
.showcase img { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 28px 64px -32px rgba(11, 26, 60, .38); }

/* Steps: a real sequence, so numbered. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 44px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px 0 36px; border-top: 1px solid var(--line-strong); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 32px; height: 32px; margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ink); color: #fff;
  font: 700 15px/1 var(--font);
}
.steps h3 { font-size: 18px; }
.steps p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* FAQ */
.faq-in, .updates-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.faq-in .section-head, .updates-in .section-head { position: sticky; top: 100px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; line-height: 1.6; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-top: 8px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 13px; }
.faq summary:hover { color: var(--blue); }
.faq details p { max-width: 40em; padding: 0 0 24px; font-size: 15.5px; color: var(--muted); }

/* Footer */
.foot { padding: 56px 0 40px; background: var(--ink); color: #aab5cc; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand p { margin-top: 12px; font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 4px; }
.foot-links a { color: #fff; font-size: 14px; }
.foot-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); color: #7f8bab; font-size: 13px; }

/* 404 */
.missing { display: grid; min-height: 100vh; place-items: center; background: var(--mist); }
.missing-in { display: grid; justify-items: start; gap: 16px; width: min(440px, 100% - 32px); }
.missing-in img { height: 30px; width: auto; margin-bottom: 24px; }
.missing-in h1 { font-size: 28px; }
.missing-in p { color: var(--muted); }
.missing-in .btn { margin-top: 8px; }

/* 更新说明 */
.updates { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.up { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.up-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; }
.up-head time { font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.up-what { font-size: 17px; font-weight: 700; color: var(--ink); }
.up-notes { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.up-notes li { display: flex; align-items: baseline; gap: 12px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.up-kind { flex: none; padding: 0 8px; border-radius: 6px; background: var(--mist); color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 1.8; }
.up-kind.is-new { background: var(--blue-50); color: var(--blue); }
.up-get { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.up-get svg { width: 16px; height: 16px; }

/* Narrower screens */
@media (max-width: 1180px) {
  .receipt { right: -8px; }
}
@media (max-width: 1100px) {
  .dl { grid-template-columns: 48px minmax(0, 1fr) 172px; }
  .dl-meta { grid-column: 2; grid-row: 2; }
  .dl-act { grid-column: 3; grid-row: 1 / span 2; }
  .dl-hash { grid-column: 2 / -1; }
  .dl.is-soon .dl-main { grid-column: 2; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .feature:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 960px) {
  .hero { padding: 48px 0 104px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-art { padding: 0 0 56px 40px; }
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 64px; }
  .faq-in, .updates-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq-in .section-head, .updates-in .section-head { position: static; margin-bottom: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 80px 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-login { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav-in { height: 60px; }
  .brand img { height: 26px; }
  .hero { padding: 36px 0 88px; }
  .lead { font-size: 17px; }
  .actions .btn { flex: 1 1 auto; }
  .hero-art { padding: 0 0 24px; }
  .shot-desktop { display: none; }
  .shot-phone { position: relative; width: 56%; border-radius: 26px; }
  .receipt { right: 0; bottom: 4px; width: 50%; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .dl { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; padding: 20px 16px; }
  .dl-icon { align-self: start; width: 40px; height: 40px; border-radius: 10px; }
  .dl-icon svg { width: 21px; height: 21px; }
  .dl-meta, .dl-act, .dl-hash { grid-column: 2; grid-row: auto; }
  .dl-act { justify-self: start; margin-top: 6px; }
  .dl.is-soon .dl-act { margin-top: 2px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(n) { padding: 26px 0 28px; border-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .paper { animation: none; }
  .btn, .nav, .faq summary::after, .dl-hash summary::after { transition: none; }
}
