/* Hoobaloo site. Palette from App/DesignSystem/Palette.swift. */
:root {
  --red: #db3a47; --yellow: #f8b90a; --green: #14905e; --blue: #2460e8;
  --ink-top: #141629; --ink-bottom: #0b0c18; --panel: #1b1d33;
  --bg: #f7f5f0; --surface: #ffffff; --text: #17182b; --muted: #5a5c72;
  --line: rgba(20, 22, 41, 0.10); --link: #1d4fc4;
  --radius: 22px;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c18; --surface: #1b1d33; --text: #f2f2f7; --muted: #a3a5bd;
    --line: rgba(255, 255, 255, 0.10); --link: #8db3ff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--ink-top) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: rgba(255,255,255,0.86); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,0.12); color: #fff; }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(60% 70% at 0% 0%, #7a2238 0%, transparent 70%),
    radial-gradient(50% 60% at 55% 0%, #7a4a1a 0%, transparent 70%),
    radial-gradient(60% 70% at 100% 10%, #1e3fb0 0%, transparent 70%),
    radial-gradient(55% 70% at 0% 100%, #0e5a48 0%, transparent 70%),
    radial-gradient(50% 60% at 60% 100%, #3a1a40 0%, transparent 70%),
    #121230;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 1; margin: 0 0 16px; font-weight: 900; letter-spacing: -0.03em; }
.hero .lede { font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: rgba(255,255,255,0.88); margin: 0 0 28px; max-width: 34ch; }
.hero .fine { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin: 16px 0 0; }
.shapes { display: flex; gap: 12px; align-items: center; margin: 0 0 22px; }
.shape { width: 22px; height: 22px; display: inline-block; }
.shape.circle { background: var(--red); border-radius: 50%; }
.shape.triangle { background: var(--yellow); clip-path: polygon(50% 4%, 100% 96%, 0 96%); }
.shape.square { background: var(--green); border-radius: 4px; }
.shape.diamond { background: var(--blue); transform: rotate(45deg) scale(0.82); border-radius: 3px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; text-decoration: none;
  padding: 12px 22px 12px 18px; border-radius: 14px; min-height: 56px;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform .15s ease;
}
.store-btn:hover { transform: translateY(-1px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn small { font-size: 0.72rem; font-weight: 500; opacity: 0.9; }
.store-btn strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }

.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: 420px; }
.device {
  background: #0b0c18; padding: 7px; border-radius: 44px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
  width: min(250px, 46%);
}
.device img { border-radius: 37px; }
.device.left { transform: rotate(-6deg) translateX(18px); z-index: 1; }
.device.right { transform: rotate(5deg) translate(-18px, 28px); z-index: 2; }

/* Sections */
main section { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 800; color: var(--muted); margin: 0 0 8px; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; font-weight: 850; }
h3 { font-size: 1.2rem; margin: 0 0 6px; line-height: 1.25; }
.section-lede { color: var(--muted); max-width: 60ch; margin: 0 0 36px; font-size: 1.12rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
}
.card p { margin: 0; color: var(--muted); }
.card .tag { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.tag.red { background: var(--red); } .tag.yellow { background: var(--yellow); }
.tag.green { background: var(--green); } .tag.blue { background: var(--blue); }
.tag .shape { background: #fff; width: 18px; height: 18px; }
.tag.yellow .shape { background: #3a2500; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.shot { border-radius: 28px; overflow: hidden; box-shadow: 0 24px 50px rgba(11,12,24,0.28); border: 1px solid var(--line); }
.shot.phone { max-width: 300px; margin-inline: auto; border-radius: 40px; background: #0b0c18; padding: 7px; }
.shot.phone img { border-radius: 33px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.list li .shape { margin-top: 5px; }
.list strong { display: block; }
.list span { color: var(--muted); }

.band { background: linear-gradient(180deg, var(--ink-top), var(--ink-bottom)); color: #fff; }
.band .section-lede, .band .card p, .band .eyebrow { color: rgba(255,255,255,0.72); }
.band .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); }
.platforms { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.platforms .card { padding: 18px; text-align: center; }
.platforms .card strong { display: block; font-size: 1.05rem; }
.platforms .card p { font-size: 0.9rem; }

.cta { text-align: center; }
.cta .store-btn { margin-top: 8px; }

/* Docs pages */
.page-hero { background: linear-gradient(180deg, var(--ink-top), #1a1a50); color: #fff; padding: 56px 0 44px; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.page-hero p { margin: 0; color: rgba(255,255,255,0.8); max-width: 60ch; }
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 1.6rem; margin-top: 44px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 1.2em; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; min-height: 44px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); flex: none; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 20px 18px; }
details > div > :first-child { margin-top: 0; }
details > div > :last-child { margin-bottom: 0; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 40px; }
.contact h2 { margin-top: 0; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; padding: 0; list-style: none; }
.legend li { display: flex; gap: 10px; align-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .platforms { grid-template-columns: repeat(3, 1fr); }
  .hero .wrap { padding: 48px 0 40px; gap: 28px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .site-nav a { padding: 10px 9px; font-size: 0.9rem; }
  .brand span { display: none; }
  main section { padding: 52px 0; }
  .phones { min-height: 0; }
  .legend { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
