:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #1a8fbd;
  --accent-dark: #146f93;
  --hero-from: #0f2a3d;
  --hero-to: #1a6a8f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.1rem; color: var(--muted); }
.brand img { height: 40px; width: auto; display: block; }
nav a { margin-left: 20px; color: var(--muted); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--accent); }

.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; padding: 88px 0 80px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; opacity: .75; margin: 0 0 12px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); line-height: 1.15; margin: 0 0 18px; }
.lead { font-size: 1.15rem; max-width: 720px; margin: 0 0 28px; }
.hero .lead { opacity: .9; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px; font-weight: 600;
  text-decoration: none; border: 1px solid rgba(255,255,255,.5); color: #fff;
}
.btn:hover { background: rgba(255,255,255,.12); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.apps { padding-top: 64px; padding-bottom: 32px; }
h2 { font-size: 1.8rem; margin: 0 0 24px; }

.card {
  display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 24px; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.card:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .1); transform: translateY(-2px); border-color: var(--accent); }
.card h3 { margin: 6px 0 8px; font-size: 1.3rem; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin: 4px 0; }
.more { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--accent); }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; color: var(--accent-dark);
  background: #e3f3fa; padding: 3px 10px; border-radius: 999px;
}
.icon { font-size: 2rem; margin-bottom: 8px; }
.app-icon { margin-bottom: 10px; }
.app-icon img { width: 56px; height: 56px; border-radius: 14px; display: block; box-shadow: 0 1px 4px rgba(15,23,42,.25); }
.page-title .app-icon { margin: 0; }
.page-title .app-icon img { width: 72px; height: 72px; border-radius: 18px; }

.featured { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; margin-bottom: 24px; border-color: var(--accent); }
.featured ul { columns: 2; column-gap: 28px; }
.card-logo { text-align: center; }
.card-logo img { max-width: 100%; height: auto; }
.card-logo.small { text-align: left; margin-bottom: 10px; }
.card-logo.small img { height: 34px; width: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card.has-site { border-color: var(--accent); }
.card.has-site .card-logo.small { margin: -6px 0 4px -14px; }
.card.has-site .card-logo.small img { height: 74px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.custom { margin-top: 32px; padding: 56px 0; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; }
.custom p { max-width: 720px; margin: 0 0 22px; opacity: .92; }
.contact { text-align: center; padding: 64px 0; background: var(--surface); border-top: 1px solid var(--line); }
.contact p { color: var(--muted); margin: 0 0 20px; }

/* detail pages */
.page-hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; padding: 36px 0 44px; }
.page-hero .lead { margin: 20px 0 0; opacity: .92; }
.crumb { margin: 0 0 20px; }
.crumb a { text-decoration: none; opacity: .85; }
.crumb a:hover { opacity: 1; }
.page-title { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.page-title h1 { margin: 6px 0 0; font-size: 2.2rem; line-height: 1.15; }
.page-title .card-logo { background: #fff; border-radius: 12px; padding: 12px 18px; }
.page-title .card-logo img { height: 52px; width: auto; display: block; }
.page-title .icon { font-size: 2.6rem; margin: 0; background: #fff; border-radius: 12px; padding: 8px 16px; }
.page-hero .tag { background: rgba(255,255,255,.18); color: #fff; }

.detail { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding-top: 48px; padding-bottom: 56px; align-items: start; }
.detail-main section { margin-bottom: 28px; }
.detail-main h2 { font-size: 1.3rem; margin: 0 0 6px; }
.detail-main p { margin: 0; color: var(--muted); }
.detail-main h2.group { font-size: 1.6rem; margin: 40px 0 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.detail-main .problem { background: #e3f3fa; border-radius: 14px; padding: 22px 24px; }
.detail-main .problem h2 { font-size: 1.5rem; color: var(--text); }
.detail-main .problem p { color: var(--text); }
.flow { display: flex; align-items: stretch; gap: 10px; margin: 12px 0 20px; }
.flow .node { flex: 1; background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.flow .node strong { color: var(--accent-dark); }
.flow .node span { color: var(--muted); font-size: .9rem; }
.flow .arrow { align-self: center; font-size: 1.6rem; color: var(--accent); }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; }
.who { margin: 0; padding-left: 20px; color: var(--muted); }
.who li { margin: 4px 0; }

.shots { padding-top: 48px; }
.shots h2 { font-size: 1.6rem; margin: 0 0 18px; }
.shot-strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px; }
.shot-strip figure { flex: 0 0 200px; margin: 0; scroll-snap-align: start; }
.shot-strip img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15, 23, 42, .12); background: var(--surface); }
.shot-strip figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.shots + .detail { padding-top: 32px; }
@media (max-width: 620px) { .shot-strip figure { flex-basis: 64%; } }

.box, .callout { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.box h3 { margin: 0 0 8px; }
.box ul { margin: 0; padding-left: 20px; }
.box p, .callout p { color: var(--muted); margin: 0 0 14px; }
.callout { border-color: var(--accent); }

footer { padding: 24px 0; text-align: center; color: var(--muted); font-size: .9rem; }
footer p { margin: 0; }

@media (max-width: 800px) {
  .featured { grid-template-columns: 1fr; }
  .featured ul { columns: 1; }
  .detail { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow .arrow { transform: rotate(90deg); }
  .hero { padding: 56px 0 48px; }
  nav a { margin-left: 12px; font-size: .9rem; }
  .brand span { display: none; }
}

/* policy pages */
.policy { max-width: 760px; padding-top: 40px; padding-bottom: 56px; }
.policy h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.policy p, .policy li { color: var(--muted); }
.policy a:not(.btn) { color: var(--accent-dark); }
.policy .btn { margin-top: 24px; }
@media print {
  .site-header, footer, .policy .btn, .crumb { display: none; }
  body { background: #fff; }
  .page-hero { background: none; color: var(--text); padding: 0 0 8px; border-bottom: 2px solid var(--accent); }
  .page-hero .lead { margin: 8px 0 0; }
  .policy { padding-top: 16px; }
}
.carousel { position: relative; }
.car-btn { position: absolute; top: 40%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text, #0f172a); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(15, 23, 42, .18); display: none; }
.carousel.js .car-btn { display: block; }
.car-btn.prev { left: -14px; }
.car-btn.next { right: -14px; }
.car-btn:disabled { opacity: .35; cursor: default; }
.shot-strip { scroll-behavior: smooth; scrollbar-width: none; }
.shot-strip::-webkit-scrollbar { display: none; }
.car-dots { display: none; justify-content: center; gap: 8px; margin-top: 6px; }
.carousel.js + .car-dots { display: flex; }
.car-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.car-dots span.on { background: var(--brand, #1c8fa0); transform: scale(1.3); }
@media (max-width: 620px) { .car-btn { display: none !important; } .car-btn.prev { left: 4px; } .car-btn.next { right: 4px; } }
.car-dots span { cursor: pointer; }
/* full-width features band with large screenshots */
.features { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 24px; }
.wrap.wide { max-width: 1240px; }
.features h2 { font-size: 1.8rem; margin: 0 0 4px; }
.features .hint { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.feat { display: grid; gap: 24px 56px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--line); }
.feat:last-child { border-bottom: 0; }
.feat h3 { font-size: 1.5rem; margin: 0 0 10px; }
.feat p { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.feat.side { grid-template-columns: minmax(260px, 1fr) auto; }
.feat.side.flip { grid-template-columns: auto minmax(260px, 1fr); }
.feat.side.flip .feat-text { order: 2; }
.feat-shots { display: flex; gap: 32px; }
.feat-shots figure { margin: 0; flex: 0 0 340px; }
.feat-shots a { display: block; cursor: zoom-in; border-radius: 30px; }
.feat-shots img { display: block; width: 100%; height: auto; border-radius: 30px; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(15, 23, 42, .14); background: var(--surface); transition: transform .15s, box-shadow .15s; }
.feat-shots a:hover img { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 23, 42, .2); }
.feat-shots figcaption { margin-top: 12px; font-size: .95rem; color: var(--muted); line-height: 1.4; text-align: center; }
@media (max-width: 1180px) { .feat-shots figure { flex-basis: 290px; } .feat-shots { gap: 24px; } }
@media (max-width: 900px) {
  .feat.side, .feat.side.flip { grid-template-columns: 1fr; }
  .feat.side.flip .feat-text { order: 0; }
  .feat-shots { overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px; }
  .feat-shots figure { flex-basis: min(300px, 76vw); scroll-snap-align: start; }
}
@media print { .feat { break-inside: avoid; } .features { background: none; } }

/* screenshot lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(15, 23, 42, .82); }
.lightbox img { display: block; width: auto; height: auto; max-width: 92vw; max-height: 92vh; border-radius: 28px; cursor: zoom-out; }
.lightbox button { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0f172a; font-size: 28px; line-height: 1; cursor: pointer; }
/* home-screen screenshot beside the intro content */
.detail.has-shot { grid-template-columns: 300px 1fr 320px; }
.home-shot { margin: 0; position: sticky; top: 88px; }
.home-shot img { display: block; width: 100%; height: auto; border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(15, 23, 42, .18); background: var(--surface); }
.home-shot figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); line-height: 1.4; text-align: center; }
@media (max-width: 1100px) { .detail.has-shot { grid-template-columns: 220px 1fr; } .detail.has-shot .detail-side { grid-column: 1 / -1; } }
@media (max-width: 760px) { .detail.has-shot { grid-template-columns: 1fr; } .home-shot { position: static; max-width: 300px; margin: 0 auto; } }
