/* One stylesheet for every page: dark liquid glass, readable at any width. */
:root {
  --bg: #0a0d13;
  --text: #e6e9f2;
  --muted: #9aa6b8;
  --teal: #34e7c4;
  --teal-soft: #9fe8d8;
  --violet: #a78bfa;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.045);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Manrope", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand, .hero-app-name { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; color: #fff; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.07; margin: 0.2em 0 0.35em; font-weight: 600; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.05rem); line-height: 1.2; margin: 0.2em 0 0.8em; font-weight: 600; }
h3 { font-size: 1.05rem; line-height: 1.3; margin: 0.6em 0 0.35em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--teal-soft); }
img { max-width: 100%; height: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: clamp(1.02rem, 2.3vw, 1.18rem); color: #c8d0dd; max-width: 40rem; }
.narrow { max-width: 34rem; margin-left: auto; margin-right: auto; }
.label { font: 500 11px/1.4 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(52, 231, 196, 0.75); margin: 0 0 0.6em; }
.grad { background: linear-gradient(120deg, var(--teal), #7dd8ff 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #061014; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 16px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 10px; }

/* background */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.33; }
.blob-teal { width: 480px; height: 480px; top: -140px; left: -120px; background: radial-gradient(circle, var(--teal), transparent 70%); }
.blob-violet { width: 520px; height: 520px; top: 35%; right: -200px; background: radial-gradient(circle, var(--violet), transparent 70%); }

/* layout */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.section { padding: clamp(36px, 7vw, 72px) 16px; }
@media (min-width: 640px) { .section { padding-left: 28px; padding-right: 28px; } }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 360px) and (max-width: 699px) { .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; } .grid-4 .card.tight { padding: 16px; } }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.2em 0 0.8em; }
.center { text-align: center; }
.center-row { justify-content: center; }

/* glass */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 20px 40px -22px rgba(0, 0, 0, 0.65);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, 0.11), transparent 60%);
}
.glass:hover::after { opacity: 1; }
.card { padding: clamp(20px, 4vw, 30px); }
.card.tight { padding: 20px; }
.ic-badge { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; color: var(--teal); background: rgba(52, 231, 196, 0.09); border: 1px solid rgba(52, 231, 196, 0.2); }
.ic { flex: none; }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--teal), #7dd8ff); color: #061014; box-shadow: 0 10px 25px -8px rgba(52, 231, 196, 0.45); }
.btn-ghost { color: var(--text); background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0.8em 0; }
.chip { display: inline-block; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: #cbd3e1; }
.chip-mono { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--teal-soft); background: rgba(52, 231, 196, 0.07); border-color: rgba(52, 231, 196, 0.2); }

/* nav */
.nav-wrap { position: sticky; top: 0; z-index: 40; padding: 12px 16px; }
.nav { max-width: 1088px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 16px; border-radius: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.brand-mark { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 9px; background: linear-gradient(135deg, var(--teal), var(--violet)); color: #0a0d13; font-size: 12px; font-weight: 700; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: #cbd3e1; text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-soft); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--text); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .ic:last-child { display: none; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 4px; padding: 8px 0 4px; }
  .nav-links a { padding: 10px 4px; font-size: 1rem; }
  .nav.open .nav-links { display: flex; }
  .nav.open .nav-toggle .ic:first-child { display: none; }
  .nav.open .nav-toggle .ic:last-child { display: block; }
}

/* home */
.hero { display: grid; gap: 32px; align-items: center; padding-top: clamp(24px, 6vw, 64px); padding-bottom: clamp(24px, 6vw, 56px); }
@media (min-width: 900px) { .hero { grid-template-columns: 1.3fr 0.7fr; } }
.hero-app { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 32px 24px; text-decoration: none; color: inherit; }
.hero-app img { border-radius: 30px; margin-bottom: 10px; }
.hero-app-name { font-size: 1.4rem; font-weight: 600; margin: 0; }
.app-card { display: flex; flex-direction: column; }
.app-card-link { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.app-card .row, .app-card .btn { position: relative; z-index: 1; }
.app-card .row { margin-top: auto; padding-top: 8px; }
.app-head { display: flex; gap: 16px; align-items: center; }
.app-head h3 { margin: 0; font-size: 1.25rem; }
.app-head p { margin: 2px 0 0; }
.app-icon { border-radius: 18px; flex: none; }
.about-strip { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.about-strip img { border-radius: 24px; object-fit: cover; }
.about-strip > div { flex: 1 1 280px; }

/* app page */
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 8px; }
.crumbs a { color: var(--muted); }
.app-hero { display: grid; gap: 24px; align-items: center; padding-top: 24px; padding-bottom: 12px; }
@media (min-width: 760px) { .app-hero { grid-template-columns: 160px 1fr; gap: 36px; } }
.app-hero-icon { border-radius: 36px; box-shadow: 0 24px 60px -24px rgba(124, 92, 255, 0.6); width: 128px; height: 128px; }
@media (min-width: 760px) { .app-hero-icon { width: 160px; height: 160px; } }
.prose { max-width: 820px; margin-left: auto; margin-right: auto; }
.prose p { color: #c8d0dd; }
.ticks { list-style: none; padding: 0; margin: 0.8em 0 0; }
.ticks li { position: relative; padding-left: 26px; margin: 0.45em 0; color: #d2d9e4; font-size: 0.95rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #c8d0dd; margin: 0 0 14px; }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shot { margin: 0; flex: none; width: min(62vw, 230px); scroll-snap-align: start; }
.shot img { width: 100%; height: auto; border-radius: 26px; box-shadow: 0 0 0 6px #0b0e15, 0 18px 36px -12px rgba(0, 0, 0, 0.7); display: block; }
.shot figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* home hero: two screens, one tucked behind the other */
.hero-showcase { position: relative; display: block; min-height: 520px; text-decoration: none; color: inherit; }
.hero-phone { position: absolute; border-radius: 28px; box-shadow: 0 0 0 6px #0b0e15, 0 24px 48px -16px rgba(0, 0, 0, 0.8); height: auto; }
.hero-phone.front { width: 236px; left: 50%; top: 0; transform: translateX(-15%) rotate(3deg); z-index: 2; }
.hero-phone.back { width: 216px; left: 50%; top: 34px; transform: translateX(-95%) rotate(-6deg); opacity: 0.92; }
.hero-badge { position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; white-space: nowrap; }
.hero-badge img { border-radius: 12px; }
.hero-badge > span { display: flex; flex-direction: column; line-height: 1.25; }
.hero-badge strong { color: #fff; font-family: "Space Grotesk", sans-serif; }
@media (max-width: 420px) { .hero-showcase { min-height: 470px; } .hero-phone.front { width: 200px; } .hero-phone.back { width: 184px; } }

/* about */
.page-head { padding-bottom: 0; }
.about-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.about-head img { border-radius: 28px; object-fit: cover; }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 28px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid a:not(.brand) { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; font-size: 0.93rem; }
.footer-grid a:hover { color: var(--teal-soft); }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 6px; }
.copyright { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* An app's own pages (/apps/<slug>/privacy, terms, about, help, premium). */
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.doc-nav .chip, .doc .chips .chip { text-decoration: none; }
.doc-head { display: flex; gap: 16px; align-items: center; }
.doc-head h1 { margin: 0; }
.doc-section { margin: 16px 0; }
.doc-section h2 { margin-top: 0; font-size: 1.3rem; }
.doc-section h3 { margin: 1.2em 0 0.3em; font-size: 1.05rem; }
.table-wrap { overflow-x: auto; }
.plans { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.plans th, .plans td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.plans thead th { color: var(--teal-soft); font-weight: 700; }
.plans tbody th { color: #fff; font-weight: 600; }
.plans td { color: #c8d0dd; }
.plans .row-about { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.plans-more { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(52, 231, 196, 0.07); border: 1px solid rgba(52, 231, 196, 0.2); color: #d2d9e4; }
