/* appmyx.com: "Shelf" design. Self-hosted fonts, no external requests. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #121212;
  --body: #3e3e3a;
  --muted: #5e5e5a;
  --soft: #9a9890;
  --line: #e0ddd4;
  --rule: #121212;
  --chip: rgba(18, 18, 18, .07);
  --focus: #3048c9;
  --footer-bg: #121212;
  --footer-ink: #c9c8c2;
  --footer-strong: #fbfaf7;
  --tint-mix: 13%;
  --wrap: 1280px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --shadow: 0 10px 24px -10px rgba(18, 18, 18, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111110; --surface: #1a1a18; --ink: #f3f2ee; --body: #cfcdc6; --muted: #a9a7a0; --soft: #77756e;
    --line: #34332f; --rule: #f3f2ee; --chip: rgba(243, 242, 238, .09); --focus: #9fb0ff;
    --footer-bg: #000000; --footer-ink: #a9a7a0; --footer-strong: #f3f2ee; --tint-mix: 22%;
    --shadow: 0 10px 24px -10px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111110; --surface: #1a1a18; --ink: #f3f2ee; --body: #cfcdc6; --muted: #a9a7a0; --soft: #77756e;
  --line: #34332f; --rule: #f3f2ee; --chip: rgba(243, 242, 238, .09); --focus: #9fb0ff;
  --footer-bg: #000000; --footer-ink: #a9a7a0; --footer-strong: #f3f2ee; --tint-mix: 22%; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 99; }

/* Each app sets --accent inline; these derive its tint and text colour for light and dark. */
.has-accent {
  --tint: color-mix(in srgb, var(--accent) var(--tint-mix), var(--bg));
  --accent-ink: color-mix(in srgb, var(--accent) 72%, var(--ink));
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.mark { display: grid; grid-template-columns: repeat(2, 10px); gap: 3px; }
.mark i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.mark i:nth-child(1) { background: #3048c9; }
.mark i:nth-child(2) { background: #6b45d0; }
.mark i:nth-child(3) { background: #0b8fc7; }
.mark i:nth-child(4) { background: #e3a008; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--chip); }
@media (max-width: 480px) { .nav a { padding: 10px 10px; } .nav a.hide-sm { display: none; } }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: flex-end; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.hero h1 { font-size: clamp(52px, 8vw, 116px); line-height: .92; letter-spacing: -0.045em; }
.hero h1 span { color: var(--soft); }
.hero .lead { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.55; color: var(--body); max-width: 520px; margin-top: 28px; }
.icon-row { flex: 0 0 auto; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.icon-row a { display: block; border-radius: 18px; transition: transform .25s ease; }
.icon-row a:hover { transform: translateY(-4px) rotate(-3deg); }
.icon-row img { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); }
@media (max-width: 700px) {
  .hero { padding: 44px 0 36px; }
  .icon-row { justify-content: flex-start; }
  .icon-row img { width: 58px; height: 58px; border-radius: 14px; }
}

/* Sections */
.section { padding: 24px 0 64px; }
.section-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 2px solid var(--rule); padding-top: 16px; margin-bottom: 28px;
}
.section-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.section-head .meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 15px; }
#apps { scroll-margin-top: 72px; }

/* Shelf carousel */
.shelf-nav { display: flex; gap: 8px; }
.shelf-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--rule); background: transparent; color: var(--ink);
  font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.shelf-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.shelf-btn:disabled { opacity: .25; cursor: default; }
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 3.35); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
@media (max-width: 1000px) { .shelf { grid-auto-columns: calc((100% - 16px) / 2.25); } }
@media (max-width: 640px) {
  .shelf { grid-auto-columns: 84%; gap: 12px; margin-right: -16px; padding-right: 16px; }
  .shelf-nav { display: none; }
}
.tile {
  position: relative; scroll-snap-align: start;
  background: var(--tint); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; min-height: 600px;
}
.tile-copy { padding: 24px 22px 0; display: flex; flex-direction: column; gap: 12px; }
.tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tile-top img { width: 56px; height: 56px; border-radius: 13px; }
.pill { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--chip); color: var(--body); white-space: nowrap; }
.pill.live { background: var(--ink); color: var(--bg); }
.tile .cat { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.tile h3 { font-size: 28px; letter-spacing: -0.03em; }
.tile h3 a { text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 26px; }
.tile p.line { font-size: 15px; line-height: 1.5; color: var(--body); }
.tile .go { position: relative; z-index: 1; align-self: flex-start; font-size: 15px; font-weight: 600; color: var(--accent-ink); text-decoration: none; padding: 8px 0; }
.tile .go:hover { text-decoration: underline; }
.tile-shot { margin-top: auto; padding: 24px 26px 0; display: flex; justify-content: center; }
.tile-shot img { width: 100%; max-width: 210px; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 30px -12px rgba(18, 18, 18, .35); transition: transform .35s ease; }
.tile:hover .tile-shot img { transform: translateY(-8px); }
.shelf-dots { display: flex; gap: 2px; justify-content: center; margin-top: 18px; }
.shelf-dots button { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.shelf-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .25s ease, background .25s ease; }
.shelf-dots button[aria-current="true"]::before { width: 22px; background: var(--ink); }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 32px; border-top: 2px solid var(--rule); padding-top: 28px; }
.values h3 { font-size: 44px; letter-spacing: -0.035em; }
.values p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--body); }

/* Buttons and badges */
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 20px; border-radius: 999px; border: 1.5px solid transparent; line-height: 1.2; }
.btn-store { background: var(--ink); color: var(--bg); }
.btn-store:hover { opacity: .88; }
.btn-store svg { width: 15px; height: 15px; fill: currentColor; margin-top: -2px; }
.btn-ghost { border-color: var(--rule); }
.btn-ghost:hover { background: var(--chip); }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--body); padding: 11px 16px; border-radius: 999px; background: var(--chip); }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e3a008; }

/* App page */
.app-hero { padding: 40px 0 40px; }
.back { display: inline-flex; gap: 6px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.app-id img { width: 88px; height: 88px; border-radius: 20px; box-shadow: var(--shadow); }
.app-id strong { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
.app-id span { color: var(--accent-ink, var(--muted)); font-size: 14px; font-weight: 600; }
.app-hero h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: .94; letter-spacing: -0.045em; max-width: 16ch; }
.app-hero .lead { font-size: clamp(18px, 1.8vw, 20px); color: var(--body); max-width: 58ch; margin: 24px 0 28px; line-height: 1.55; }
.price-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.shots-band { background: var(--tint); padding: 48px 0 0; overflow: hidden; margin-bottom: 64px; }
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px; scroll-padding-left: 24px;
}
.shots::-webkit-scrollbar { display: none; }
.shots img { flex: 0 0 auto; width: 250px; border-radius: 26px 26px 0 0; box-shadow: 0 -6px 30px -12px rgba(18, 18, 18, .35); scroll-snap-align: start; }
@media (max-width: 600px) { .shots { padding: 0 16px; gap: 12px; scroll-padding-left: 16px; } .shots img { width: 210px; } }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px 32px; border-top: 2px solid var(--rule); padding-top: 28px; }
.feature h3 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 14px; }
.feature ul { margin: 0; padding: 0; list-style: none; color: var(--body); font-size: 16px; display: grid; gap: 8px; }
.feature li { padding-left: 18px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.panel { background: var(--tint); border-radius: 26px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.panel h2 { font-size: 30px; margin-bottom: 12px; letter-spacing: -0.03em; }
.panel p { color: var(--body); font-size: 16px; }
.panel p + p { margin-top: 10px; }
.panel a { font-weight: 600; color: var(--accent-ink); }
@media (max-width: 760px) { .panel { grid-template-columns: 1fr; padding: 24px 20px; } }
.note { font-size: 14px; color: var(--muted); margin-top: 24px; max-width: 80ch; }

/* Prose pages */
.prose { max-width: 760px; padding: 48px 0 80px; }
.prose h1 { font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.045em; margin-bottom: 16px; }
.prose .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.prose h2 { font-size: 30px; margin: 48px 0 14px; scroll-margin-top: 90px; letter-spacing: -0.03em; }
.prose h3 { font-size: 20px; margin: 26px 0 8px; letter-spacing: -0.015em; font-weight: 700; }
.prose p, .prose li { color: var(--body); }
.prose a { font-weight: 500; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin: 12px 0; }
.prose .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; padding: 0; list-style: none; }
.prose .toc a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--chip); display: inline-block; }
.prose .app-block { border-top: 2px solid var(--rule); margin-top: 48px; }
.prose .app-block h2 { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.prose .app-block h2 img { width: 40px; height: 40px; border-radius: 10px; }
.placeholder { background: #fff3c4; color: #5a4400; padding: 0 4px; border-radius: 4px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.contact-cards a { display: block; text-decoration: none; background: var(--chip); border-radius: 22px; padding: 24px; }
.contact-cards a:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.contact-cards strong { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin: 6px 0; overflow-wrap: anywhere; }
.contact-cards span { color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: 24px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; align-items: start; }
.site-footer .wordmark { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 7vw, 88px); letter-spacing: -0.045em; line-height: .9; color: var(--footer-strong); text-decoration: none; display: inline-block; }
.site-footer .about p { margin-top: 16px; max-width: 34ch; font-size: 15px; }
.site-footer h4 { margin: 6px 0 12px; font-size: 13px; font-weight: 600; color: var(--footer-strong); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.site-footer a { text-decoration: none; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: var(--footer-strong); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }

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