/* qtco.ms: the Tokyo Night look of QTComs' apps. System fonts only (nothing loaded from other sites). */
:root {
  --bg: #1a1b26;
  --bg-deep: #16161e;
  --surface: #24283b;
  --surface-2: #292e42;
  --border: #3b4261;
  --fg: #a9b1d6;
  --fg-strong: #c0caf5;
  --muted: #9aa5ce;
  --magenta: #bb9af7;
  --cyan: #7dcfff;
  --blue: #7aa2f7;
  --green: #9ece6a;
  --yellow: #e0af68;
  --red: #f7768e;
  --radius: 14px;
  --container: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--fg-strong); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--fg-strong); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 .5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--magenta); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 16px; z-index: 10; }
.muted { color: var(--muted); }

/* Header */
.site-header { background: var(--bg-deep); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.brand-glyph { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.nav a:hover { background: var(--surface); color: var(--fg-strong); }
.nav a[aria-current="page"] { color: var(--magenta); background: var(--surface); }


/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, rgba(187, 154, 247, .14), transparent 70%); }
.hero-compact { padding: 48px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.hero-art { display: flex; justify-content: center; }
.hero-glyph { width: min(320px, 70%); height: auto; filter: drop-shadow(0 20px 50px rgba(187, 154, 247, .25)); }
.eyebrow { color: var(--magenta); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin: 0 0 12px; }
.lead { font-size: 1.2rem; color: var(--fg); max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.button {
  display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--magenta); color: var(--bg); border: 1px solid var(--magenta);
}
.button:hover { background: var(--fg-strong); border-color: var(--fg-strong); color: var(--bg); }
.button-quiet { background: transparent; color: var(--fg-strong); border-color: var(--border); }
.button-quiet:hover { background: var(--surface); color: var(--fg-strong); border-color: var(--border); }
.badge { display: inline-block; padding: 10px 16px; border-radius: 10px; background: var(--surface); color: var(--yellow); border: 1px solid var(--border); }

/* Sections */
.section { padding: 56px 0; }
.section-tight { padding: 24px 0 48px; }
.section-alt { background: var(--bg-deep); border-block: 1px solid var(--border); }
.section-title { margin: 0 0 24px; }

/* App cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--magenta); }
.card-link { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 24px; color: var(--fg); text-decoration: none; }
.card-link:hover { color: var(--fg); }
.card h3 { margin: 12px 0 0; }
.app-icon { border-radius: 22%; }
.app-icon-large { width: 128px; height: 128px; flex: none; }
.tagline { color: var(--magenta); font-weight: 600; margin: 0; }
.tagline-large { font-size: 1.25rem; }
.status { color: var(--yellow); font-size: .95rem; margin-top: auto; }
.more { color: var(--cyan); font-weight: 600; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.principle h3 { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); }
.dot-cyan { background: var(--cyan); }
.dot-magenta { background: var(--magenta); }

.contact-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* Product page */
.product-head { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.shot { margin: 0; scroll-snap-align: start; }
.shot img { border-radius: 18px; border: 1px solid var(--border); }
.shot figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.checks-cyan li::before { border-color: var(--cyan); }
.watch-shots { display: flex; gap: 16px; flex-wrap: wrap; }
.watch-shot { margin: 0; }
.watch-shot img { width: 160px; border-radius: 50%; border: 1px solid var(--border); }
.note { color: var(--yellow); }

/* Long text: policies, support */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2em; }
.policy table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.policy th, .policy td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.policy th { color: var(--fg-strong); background: var(--surface); }
.policy strong { color: var(--fg-strong); }
.crumbs { color: var(--muted); margin-bottom: 8px; }
.policy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 780px; }
.policy-link { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); text-decoration: none; }
.policy-link:hover { border-color: var(--magenta); color: var(--fg); }
.policy-link > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.policy-link strong { color: var(--fg-strong); }

/* Footer */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-title { font-size: .95rem; color: var(--fg-strong); margin: 4px 0 12px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: 8px; }
.plain a { color: var(--fg); text-decoration: none; }
.plain a:hover { color: var(--cyan); }
.fine-print { color: var(--muted); font-size: .9rem; margin-top: 32px; border-top: 1px solid var(--border); padding-top: 16px; }

@media (max-width: 860px) {
  .hero-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero { padding: 48px 0 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
