@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Sora-700.ttf") format("truetype"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/Sora-800.ttf") format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/NunitoSans-500.ttf") format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/NunitoSans-600.ttf") format("truetype"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/NunitoSans-700.ttf") format("truetype"); }

/* Hart Studios. One dark world, the same as Pathom: night blue, frosted glass,
   a cyan-to-violet accent. The games are dark-only, so the site is too; every
   colour is set explicitly so it holds on any browser default. */
:root {
  --night: #0B1020;
  --night-top: #141B3C;
  --panel: rgba(255, 255, 255, 0.045);
  --edge: rgba(255, 255, 255, 0.09);
  --text: #EEF2FF;
  --body: #C9CEE3;
  --muted: #9AA2BE;
  --faint: #6B7392;
  --cyan: #4FD1FF;
  --violet: #8B6CFF;
  --radius: 22px;
  --display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-font: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { color-scheme: dark; -webkit-text-size-adjust: 100%; background: var(--night); }
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--text-font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60% 38% at 12% -6%, rgba(79, 209, 255, 0.11) 0%, transparent 62%),
    radial-gradient(52% 40% at 96% 4%, rgba(139, 108, 255, 0.13) 0%, transparent 62%),
    linear-gradient(180deg, var(--night-top) 0%, var(--night) 42%, #070B18 100%);
  background-color: var(--night);
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }

.wrap { max-width: 780px; margin: 0 auto; padding: 26px 22px 56px; }

/* --- Top bar ------------------------------------------------------------ */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.2px; text-decoration: none; }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.toplink, .back { color: var(--muted); font-weight: 700; font-size: 15px; text-decoration: none; }
.toplink:hover, .back:hover { color: var(--text); }

/* --- Type --------------------------------------------------------------- */
.eyebrow { margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--cyan); }
h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6.4vw, 56px); line-height: 1.05; letter-spacing: -1.6px; text-wrap: balance; }
.lede { margin: 18px 0 0; max-width: 50ch; font-size: 19px; color: var(--muted); text-wrap: pretty; }
.section-title { margin: 64px 0 16px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--faint); }

/* --- Surfaces and buttons ----------------------------------------------- */
.panel { background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius); padding: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--edge); transition: border-color .15s ease, background-color .15s ease, filter .15s ease; }
.btn:hover { border-color: rgba(255, 255, 255, 0.22); background-color: rgba(255, 255, 255, 0.09); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-primary { color: #08111F; background: linear-gradient(100deg, var(--cyan), var(--violet)); border-color: transparent; box-shadow: 0 0 26px rgba(79, 209, 255, 0.28); }
.btn-primary:hover { border-color: transparent; filter: brightness(1.07); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- App card (studio home) --------------------------------------------- */
.app-card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.app-icon { display: block; width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 44px rgba(79, 209, 255, 0.2); }
.app-name { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.3px; }
.app-tagline { margin: 2px 0 0; color: var(--muted); }
.app-meta { margin: 4px 0 14px; color: var(--faint); font-size: 14px; }
@media (max-width: 520px) { .app-card { grid-template-columns: 1fr; } }

/* --- Product hero (app page) -------------------------------------------- */
.product { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: center; }
.product-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.product-title .app-icon { width: 64px; height: 64px; border-radius: 15px; }
.product-title h1 { font-size: clamp(38px, 6vw, 52px); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 12px; border: 1px solid var(--edge); border-radius: 999px; background: rgba(255, 255, 255, 0.04); font-variant-numeric: tabular-nums; }
.product .btn-row { margin-top: 26px; }
.phone { width: 250px; padding: 8px; border-radius: 38px; background: #1A2148; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 64px rgba(79, 209, 255, 0.22), 0 30px 60px rgba(0, 0, 0, 0.6); }
.phone img { display: block; width: 100%; border-radius: 30px; }
@media (max-width: 720px) {
  .product { grid-template-columns: 1fr; gap: 36px; }
  .phone { justify-self: center; width: min(250px, 72vw); }
}

/* --- Contact ------------------------------------------------------------ */
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.contact h2, .contact .contact-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; }
.contact p { margin: 4px 0 0; color: var(--muted); max-width: 44ch; }
.contact .contact-title { color: var(--text); }

/* --- FAQ ---------------------------------------------------------------- */
.faq { padding-top: 4px; padding-bottom: 4px; }
.faq details + details { border-top: 1px solid var(--edge); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--cyan); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 18px; max-width: 62ch; color: var(--muted); }

/* --- Article (privacy policy) ------------------------------------------- */
.article h1 { font-size: clamp(32px, 5.4vw, 46px); }
.policy-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 26px 0 0; padding: 18px 22px; font-size: 15px; }
.policy-meta dt { color: var(--faint); font-weight: 700; }
.policy-meta dd { margin: 0; color: var(--body); overflow-wrap: anywhere; }
.article > p:first-of-type { margin-top: 26px; }
.article h2 { margin: 48px 0 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.3px; text-wrap: balance; }
.article h3 { margin: 28px 0 8px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.article p, .article li { color: var(--body); max-width: 68ch; }
.article ul { margin: 10px 0; padding-left: 22px; }
.article li { margin: 7px 0; }
.article li::marker { color: var(--cyan); }
.article strong { color: var(--text); font-weight: 700; }
.article a { color: var(--cyan); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* --- Footer ------------------------------------------------------------- */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; margin-top: 80px; padding-top: 22px; border-top: 1px solid var(--edge); color: var(--faint); font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* --- App list and store buttons --- */
/* Neutral store buttons: store names only, no Apple or Google artwork, which
   may only appear inside the official badges. A listing that does not exist
   yet is shown as a dimmed, non-clickable "coming soon" button. */
.app-list { display: grid; gap: 14px; }
.app-card { align-items: start; }
.app-card .app-meta { margin: 2px 0 8px; }
.app-card .app-tagline { margin: 0 0 18px; max-width: 52ch; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 11px; min-width: 176px; padding: 9px 18px 9px 13px; border-radius: 14px; background-color: #05070F; border: 1px solid rgba(255, 255, 255, 0.22); color: var(--text); text-decoration: none; line-height: 1.15; transition: border-color .15s ease, background-color .15s ease; }
.store:hover { border-color: rgba(255, 255, 255, 0.45); background-color: #0A0E1C; }
.store:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.store svg { flex: none; color: var(--cyan); }
.store > span { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.2px; }
.store small { font-family: var(--text-font); font-weight: 600; font-size: 11.5px; letter-spacing: 0.2px; color: var(--muted); }
.store.is-soon { opacity: 0.5; cursor: default; }
.store.is-soon:hover { border-color: rgba(255, 255, 255, 0.22); background-color: #05070F; }
.store.is-soon svg { color: var(--faint); }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14px; font-weight: 700; }
.app-links a { color: var(--muted); text-decoration: none; }
.app-links a:hover { color: var(--text); }
.product .stores { margin-top: 24px; }
@media (max-width: 520px) {
  .store { flex: 1 1 100%; }
}

/* --- Official store badges --- */
/* A live listing gets the official Apple or Google badge, shown as supplied
   (no recolouring, no hover effect). Both brands only allow their badge to
   link to a real store page, so a listing that does not exist yet keeps the
   neutral "coming soon" button, sized and shaped to sit in line with them. */
.stores { align-items: center; }
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { display: block; height: 44px; width: auto; }
.badge:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.store.is-soon { min-width: 0; height: 44px; padding: 0 14px 0 11px; gap: 9px; border-radius: 9px; background-color: #000; border-color: #A6A6A6; }
.store.is-soon > span { font-size: 15px; }
.store.is-soon small { font-size: 10.5px; }
@media (max-width: 520px) {
  .store { flex: 0 1 auto; }
}

/* --- Clickable app cards and app pages --- */
/* The whole card opens the app's page: the name link is stretched over the
   card, and only the store badges sit above it so they still open the store. */
.app-card { position: relative; transition: border-color .2s ease, background-color .2s ease; }
.app-card:hover { border-color: rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.065); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.app-card:has(.card-link:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }
/* Layer order: badges on top, then the card link, then everything else. The
   dimmed "coming soon" buttons use opacity, which lifts them into their own
   layer, so without these z-indexes a click on one would do nothing. */
.app-card .badge { position: relative; z-index: 2; }
.view-app { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--muted); transition: color .2s ease, gap .2s ease; }
.app-card:hover .view-app { color: var(--text); gap: 9px; }

/* Each app page tints its own content with the app's brand colours, while the
   studio's top bar and footer keep the Hart Studios look. */
.app-page { --cyan: #4FD1FF; --violet: #8B6CFF; }
.app-page.buildkit { --cyan: #FF5A5F; --violet: #FFC53D; }
.app-page.lumi { --cyan: #FFB84D; --violet: #A99BFF; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.feature { padding: 20px 22px; }
.feature h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature .feature-mark { display: block; width: 26px; height: 3px; margin-bottom: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.prose { padding: 22px 24px; }
.prose p { margin: 0; color: var(--body); max-width: 64ch; }
.prose p + p { margin-top: 10px; }

/* A hero without a phone screenshot shows the app icon large instead. */
.hero-icon { justify-self: center; width: 200px; height: 200px; border-radius: 46px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 90px color-mix(in srgb, var(--cyan) 35%, transparent); }
@media (max-width: 720px) { .hero-icon { width: 140px; height: 140px; border-radius: 32px; } }
