/* Fonts are served from this site (no Google Fonts requests). All three are
   under the SIL Open Font License; see assets/fonts/LICENSES.md. */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/baloo2-latin.woff2") format("woff2") }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("fonts/nunitosans-latin.woff2") format("woff2") }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/plexmono-400-latin.woff2") format("woff2") }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/plexmono-500-latin.woff2") format("woff2") }

/* Layout: Flexibits-style. Slim sticky header, a short hero with the tagline,
   two app cards side by side with the phone peeking up from each card,
   a three-step "how it works" strip, then a column footer. */
:root {
  --bg: #FFFDF9;
  --surface: #F5F1FA;
  --ink: #17131F;
  --muted: #5F5870;
  --line: #E6E0EE;
  --sun: #FDAE01;
  --on-sun: #1A1300;
  --violet: #6B05E9;
  --link: #5B00CF;

  /* App cards keep the apps' own night colours in both themes */
  --aq-1: #052438;
  --aq-2: #0E5C78;
  --aq-accent: #2DE1CF;
  --cd-1: #141826;
  --cd-2: #3A3557;
  --cd-accent: #FFB547;
  --aq-tag: #0B8077;
  --cd-tag: #A85A16;
  --card-ink: #F3F6FA;
  --card-muted: #BAC5D2;
  --device: #0C0A10;

  --f-display: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1120px;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #100D16; --surface: #1A1622; --ink: #F2EEF7; --muted: #ADA5BC;
    --line: #2B2537; --sun: #FDB51A; --violet: #9B6BFF; --link: #B596FF;
    --aq-tag: #3FE0CF; --cd-tag: #FFB547;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .logo-light { display: none }
  :root:not([data-theme="light"]) .logo-dark { display: block }
}
:root[data-theme="dark"] {
  --bg: #100D16; --surface: #1A1622; --ink: #F2EEF7; --muted: #ADA5BC;
  --line: #2B2537; --sun: #FDB51A; --violet: #9B6BFF; --link: #B596FF;
    --aq-tag: #3FE0CF; --cd-tag: #FFB547;
  color-scheme: dark;
}
:root[data-theme="dark"] .logo-light { display: none }
:root[data-theme="dark"] .logo-dark { display: block }

* { box-sizing: border-box }
[hidden] { display: none !important }
img { max-width: 100%; height: auto }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
a { color: var(--link) }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; text-wrap: balance; margin: 0 }
p { margin: 0 }
.logo-dark { display: none }

.wrap {
  /* full width: a grid item with auto margins would otherwise shrink to its content */
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.mono {
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; padding-block: 14px;
}
.brand { display: block; line-height: 0 }
.brand img { height: 30px; width: auto }
.nav { display: flex; gap: 6px; flex-wrap: wrap }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 6px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--surface) }
.nav a[aria-current="page"] { background: var(--surface); color: var(--link) }

main { padding-bottom: 72px }
section[data-route] { display: grid; gap: 72px }

/* Home hero */
.hero { padding-block: 72px 8px; display: grid; gap: 20px }
.hero > * { max-width: 760px }
.hero h1 { font-size: clamp(48px, 9vw, 92px); font-weight: 700; letter-spacing: -.01em }
.hero h1 .bloom { color: var(--violet) }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40em }
.hero .dot { display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--sun); margin-left: .04em; vertical-align: .08em }

/* App cards */
.cards { display: grid; gap: 24px; grid-template-columns: 1fr }
@media (min-width: 780px) { .cards { grid-template-columns: 1fr 1fr } }
.app-card {
  display: grid; grid-template-rows: auto 1fr; gap: 28px;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: var(--card-ink); min-width: 0;
  padding: 32px 32px 0;
  transition: transform .25s ease, box-shadow .25s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(10, 6, 20, .55) }
.app-card.aq { background: linear-gradient(165deg, var(--aq-2), var(--aq-1) 75%) }
.app-card.cd { background: linear-gradient(165deg, var(--cd-2), var(--cd-1) 75%) }
.app-card .text { display: grid; gap: 16px; min-width: 0 }
.app-id { display: flex; align-items: center; gap: 16px }
.app-id h3 { font-size: 34px; font-weight: 700 }
.app-card.aq .tag { color: var(--aq-accent) }
.app-card.cd .tag { color: var(--cd-accent) }
.app-card p.blurb { color: var(--card-muted); font-size: 17px; max-width: 34em }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap }
.soon {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 5px 12px; color: var(--card-ink);
}
.more { font-weight: 700 }
.app-card.aq .more { color: var(--aq-accent) }
.app-card.cd .more { color: var(--cd-accent) }
.peek { align-self: end; justify-self: center; width: min(78%, 300px); height: 340px; overflow: hidden }
.peek .device { border-bottom-width: 0; border-radius: 38px 38px 0 0 }
.peek .device { height: 100% }
/* show the part of the screen with the fish and the city, not the empty sky */
.app-card.aq .peek img { margin-top: -8% }
.app-card.cd .peek img { margin-top: -8% }

/* Phone frame */
.device {
  border: 9px solid var(--device); border-radius: 40px; overflow: hidden;
  background: var(--device); line-height: 0; max-width: 100%;
}
.device img { width: 100%; display: block }

/* App icon placeholders */
.app-icon {
  flex: none; width: 64px; height: 64px; border-radius: 15px;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.app-icon svg { width: 62%; height: 62% }
.app-icon.aq { background: linear-gradient(160deg, #1BB6C4, #0A3D5C) }
.app-icon.cd { background: linear-gradient(160deg, #6B4A62, #1B1626) }
.app-icon.lg { width: 88px; height: 88px; border-radius: 21px }

/* How it works */
.how { display: grid; gap: 28px }
.how-head { display: grid; gap: 10px; max-width: 640px }
.how-head h2 { font-size: clamp(32px, 4.5vw, 44px) }
.how-head p { color: var(--muted) }
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: step; list-style: none; margin: 0; padding: 0 }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr) } }
.steps li { background: var(--surface); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0 }
.steps .num { font-family: var(--f-mono); font-size: 13px; color: var(--muted); letter-spacing: .1em }
.steps .big { font-family: var(--f-mono); font-size: 34px; font-weight: 500; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums }
.steps .minis { display: flex; gap: 8px }
.steps .minis .app-icon { width: 34px; height: 34px; border-radius: 9px }
.steps h3 { font-size: 22px }
.steps p { color: var(--muted); font-size: 16px }
.promise {
  display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line);
  border-radius: 18px; padding: 20px 24px; color: var(--ink);
}
.promise svg { flex: none; width: 26px; height: 26px; margin-top: 2px }

/* Studio statement */
.studio { display: grid; gap: 14px }
.studio > * { max-width: 720px }
.studio h2 { font-size: clamp(28px, 4vw, 38px) }
.studio p { color: var(--muted) }

/* App pages */
.app-hero {
  display: grid; gap: 40px; align-items: center; padding-block: 56px 0;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .app-hero { grid-template-columns: 1.15fr .85fr } }
.app-hero .text { display: grid; gap: 20px; min-width: 0 }
.app-hero h1 { font-size: clamp(48px, 8vw, 76px); font-weight: 700 }
.app-hero .tag { font-size: 15px }
#aquadoro .tag { color: var(--aq-tag) }
#citydoro .tag { color: var(--cd-tag) }
.app-hero .intro { font-size: 19px; color: var(--muted); max-width: 34em }
.badges { display: flex; gap: 10px; flex-wrap: wrap }
.badge {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 12px;
  background: var(--ink); color: var(--bg); padding: 10px 16px; font-weight: 700; font-size: 15px;
}
.badge small { display: block; font-weight: 600; font-size: 11px; opacity: .75; letter-spacing: .04em; text-transform: uppercase }
.badge svg { width: 22px; height: 22px; fill: currentColor }
.app-hero .phone { justify-self: center; width: min(100%, 300px) }

.features { display: grid; gap: 16px; grid-template-columns: 1fr }
@media (min-width: 720px) { .features { grid-template-columns: 1fr 1fr } }
.feature { background: var(--surface); border-radius: 18px; padding: 24px; display: grid; gap: 8px; min-width: 0 }
.feature h3 { font-size: 22px }
.feature p { color: var(--muted); font-size: 16px }
.section-title { font-size: clamp(28px, 4vw, 38px) }
.stack { display: grid; gap: 24px }
.good { display: grid; gap: 16px; grid-template-columns: 1fr }
@media (min-width: 720px) { .good { grid-template-columns: 1fr 1fr } }

.sibling {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px;
  text-decoration: none; color: var(--card-ink); flex-wrap: wrap;
}
.sibling.aq { background: linear-gradient(120deg, var(--aq-2), var(--aq-1)) }
.sibling.cd { background: linear-gradient(120deg, var(--cd-2), var(--cd-1)) }
.sibling .s-text { flex: 1 1 220px; min-width: 0 }
.sibling h3 { font-size: 24px }
.sibling p { color: var(--card-muted); font-size: 16px }

/* Support + legal */
.page-head { padding-block: 56px 0; display: grid; gap: 14px }
.page-head > * { max-width: 720px }
.page-head h1 { font-size: clamp(42px, 7vw, 64px); font-weight: 700 }
.page-head p { color: var(--muted); font-size: 19px }
.contact {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
  background: var(--surface); border-radius: 18px; padding: 22px 24px;
}
.contact .addr { font-family: var(--f-mono); font-size: 18px; user-select: all; overflow-wrap: anywhere; min-width: 0 }
.btn {
  font: 700 15px var(--f-body); border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--sun); color: var(--on-sun); cursor: pointer;
}
.faq { display: grid; gap: 10px; max-width: 820px }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside }
.faq details p { color: var(--muted); padding-bottom: 16px; max-width: 62ch }
.draft {
  border: 1px dashed var(--violet); border-radius: 14px; padding: 16px 20px; color: var(--ink); max-width: 820px;
}
.outline { display: grid; gap: 18px; max-width: 760px; margin: 0; padding-left: 1.2em }
.outline li { padding-left: .3em }
.outline strong { display: block; font-family: var(--f-display); font-size: 21px; font-weight: 600 }
.outline span { color: var(--muted) }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--surface) }
footer .wrap { padding-block: 48px 32px; display: grid; gap: 36px }
.foot-top { display: grid; gap: 32px; grid-template-columns: 1fr }
@media (min-width: 760px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr } }
.foot-brand img { width: 220px; max-width: 100% }
.foot-col { display: grid; gap: 8px; align-content: start; min-width: 0 }
.foot-col h4 { margin: 0 0 4px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) }
.foot-col a { color: var(--ink); text-decoration: none; font-weight: 600 }
.foot-col a:hover { color: var(--link) }
.foot-col .addr { font-family: var(--f-mono); font-size: 14px; overflow-wrap: anywhere }
.foot-bottom { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px }

@media (max-width: 520px) {
  .app-card { padding: 24px 22px 0 }
  .app-id h3 { font-size: 30px }
  .peek { height: 280px }
  .hero { padding-block: 48px 0 }
}
@media (prefers-reduced-motion: reduce) {
  .app-card { transition: none }
  .app-card:hover { transform: none }
}

/* Legal pages: long-form reading */
.legal { display: grid; gap: 14px; max-width: 68ch }
.legal h2 { font-size: 26px; margin-top: 22px }
.legal p, .legal li { color: var(--ink) }
.legal ul { margin: 0; padding-left: 1.3em; display: grid; gap: 6px }
.legal .updated { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) }
.legal .short { background: var(--surface); border-radius: 14px; padding: 16px 20px }

/* 404 */
.lost { padding-block: 96px 24px; display: grid; gap: 16px; justify-items: start }
.lost h1 { font-size: clamp(42px, 7vw, 64px) }
.lost p { color: var(--muted); font-size: 19px }
.lost a.btn { text-decoration: none }


/* One wrapper per page; sections are spaced by the grid gap */
.page { display: grid; gap: 72px }

/* Real app icons: the artwork has rounded corners on white baked in, so the
   rounding here must be at least as large (about 21%) to clip the white away */
img.app-icon.icon-img { display: block; object-fit: cover; border-radius: 25%; box-shadow: none; background: none }
