/* Shared stylesheet for every app site. Generated by xiangyu-sun/appsites — edit templates/style.css there.
   Colours come from each app's theme in app.yml, written as custom properties in the page <head>. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--link, var(--accent)); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link, var(--accent)); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 8px; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ── Hero ── */
.hero { max-width: 900px; margin: 0 auto; padding: 80px 24px 60px; text-align: center; }
.app-icon {
  width: 120px; height: 120px; border-radius: 27px;
  margin: 0 auto 24px; display: block;
  box-shadow: var(--icon-shadow);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: var(--heading-weight); letter-spacing: -0.02em; margin-bottom: 12px; }
.hero h1 .title-accent { color: var(--title-accent); }
.hero h1, .section h2, .cta h2, .grid > h2 { text-wrap: balance; }
.hero p, .section > p, .cta p { text-wrap: pretty; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 580px; margin: 0 auto 36px; }

.badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.badge-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 20px; font-size: 0.9rem; color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.badge-btn:hover { border-color: var(--accent); background: var(--hover); text-decoration: none; }
.badge-btn svg { flex-shrink: 0; }
.badges.filled .badge-btn { background: var(--link, var(--accent)); border-color: var(--link, var(--accent)); color: #fff; font-weight: 600; font-size: 0.95rem; }
.badge-btn.soon, .badges.filled .badge-btn.soon { background: var(--muted); border-color: var(--muted); color: var(--bg); cursor: default; }

.hero p.trust {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--muted); margin: 8px auto 0;
}

/* ── Screenshots ── */
.screenshots { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }
.screenshots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.screenshots-grid img {
  width: 100%; display: block; border-radius: var(--radius);
  border: var(--shot-border); box-shadow: var(--shot-shadow);
}
.screenshots-grid:focus-visible { outline-offset: 6px; }
/* Phones: one swipeable row with the next screenshot peeking in, instead of a page-long stack. */
@media (max-width: 699px) {
  .screenshots { padding: 0 0 56px; }
  .screenshots-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 24px 16px; scroll-padding: 0 24px; scrollbar-width: none;
  }
  .screenshots-grid::-webkit-scrollbar { display: none; }
  .screenshots-grid img { flex: 0 0 75%; width: 75%; max-width: 340px; scroll-snap-align: center; }
}

/* ── Feature grids ── */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid {
  max-width: 900px; margin: 0 auto; padding: 80px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px;
}
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid > h2 { font-size: 1.8rem; font-weight: var(--heading-weight); grid-column: 1 / -1; text-align: center; margin-bottom: -8px; }
.grid > .lead { grid-column: 1 / -1; text-align: center; color: var(--muted); margin-top: -24px; }
.feature h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.feature h3 .icon { font-size: 1.3rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ── Chip sections ── */
.section { max-width: 900px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.section h2 { font-size: 1.8rem; font-weight: var(--heading-weight); margin-bottom: 12px; }
.section > p { color: var(--muted); margin-bottom: 40px; }
.section > p.after { margin: 32px 0 0; font-size: 0.9rem; }
.section > p a, .cta p a { text-decoration: underline; text-underline-offset: 2px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; }
.chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  padding: 8px 18px; font-size: 0.9rem; font-weight: 500;
}
.chip span { color: var(--muted); font-weight: 400; }

/* ── FAQ ── */
.faq-list { text-align: left; max-width: 680px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1.3rem; font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { color: var(--muted); padding: 0 0 18px; }
.faq details > div p + p { margin-top: .6rem; }
.faq details a { text-decoration: underline; text-underline-offset: 2px; }

/* ── CTA ── */
.cta { max-width: 900px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.cta h2 { font-size: 2rem; font-weight: var(--heading-weight); margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 36px; }
.cta p:last-child { margin-bottom: 0; }

/* ── Help strip ── */
.help-strip { max-width: 900px; margin: 0 auto; padding: 0 24px 48px; text-align: center; color: var(--muted); font-size: .95rem; }
.help-strip a { text-decoration: underline; text-underline-offset: 2px; }
.help-strip .english-note { font-size: .85rem; margin-top: 6px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; font-size: 0.85rem; color: var(--muted); }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.lang-switch { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.lang-switch a {
  border: 1px solid var(--border); border-radius: 100px; padding: 4px 12px; color: var(--muted);
}
.lang-switch a:hover { color: var(--text); text-decoration: none; border-color: var(--muted); }
.lang-switch a[aria-current="page"] { color: var(--text); background: var(--surface); border-color: var(--muted); }

/* ── Document pages (privacy policy, support) ── */
.doc { max-width: 42rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; font-size: 17px; line-height: 1.6; }
.doc header { margin-bottom: 1rem; }
.doc header .doc-app { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.doc header .doc-app img { width: 32px; height: 32px; border-radius: 8px; }
.doc header p { color: var(--muted); margin-top: .25rem; }
.doc header nav { font-size: .95rem; margin-top: 1rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.doc h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.01em; font-weight: var(--heading-weight); }
.doc h2 { font-size: 1.2rem; margin: 2.25rem 0 .5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.doc h3 { font-size: 1rem; margin: 1.5rem 0 .25rem; }
.doc p, .doc ul, .doc ol, .doc table, .doc blockquote { margin: .6rem 0; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin: .3rem 0; }
.doc hr { display: none; }
.doc blockquote { border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; background: var(--surface); }
.doc blockquote p { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: .92rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.doc code { font-size: .9em; }
.doc main a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.doc main a:hover { text-decoration-thickness: 2px; }

/* Support page: contact options and a table of contents */
.doc .contact { margin: 1.75rem 0 0; }
.doc .contact > h2, .doc .toc > h2 { border-top: none; padding-top: 0; margin: 0 0 .75rem; font-size: 1rem; color: var(--muted); font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.doc main a.contact-card {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s, background .2s;
}
.doc main a.contact-card:hover { border-color: var(--accent); background: var(--hover); }
.contact-card strong { font-size: 1rem; }
.contact-card span { color: var(--link, var(--accent)); font-size: .92rem; overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); font-size: .82rem; line-height: 1.45; margin-top: 4px; }
@media (max-width: 559px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .contact-card:first-child { grid-column: 1 / -1; }
}
.doc .contact-note { color: var(--muted); font-size: .9rem; margin-top: .9rem; }
.doc .toc { font-size: .95rem; margin: 2rem 0 0; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 14px; }
.doc .toc ul { list-style: none; padding: 0; columns: 2 14rem; column-gap: 1.5rem; margin: 0; }
.doc .toc li { margin: .25rem 0; break-inside: avoid; }
.doc .toc a { text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; }
.doc h2[id], .doc h3[id] { scroll-margin-top: 1rem; }
.doc footer { border-top: none; padding: 0; text-align: left; margin-top: 3rem; font-size: .9rem; }
