/* usehabla.com — the house look (docs/design/HOUSE-LOOK.md) on the web: dark by default like the Mac window, light when
   the visitor's system is light; the tints are the kit's, the primary button the hero gradient (white on it reads at 4.6:1).
   System fonts, no third party. The page says little and shows the app moving (D-H80): one line, the film, three loops. */
:root { color-scheme: dark light; --ink: #f2f2f4; --soft: #a9a9b0; --paper: #121214; --card: #1c1c1f; --line: #2c2c31; --inset: #232327; --coral: #ff8a8e; --bad: #ff8a80; --hero-a: #D93546; --hero-b: #B01F6B; --screen: #0f0f19; }
@media (prefers-color-scheme: light) { :root { --ink: #1c1c1e; --soft: #5b5b60; --paper: #fbfaf8; --card: #fff; --line: #e3e3e6; --inset: #f3f2f0; --coral: #C21F3A; --bad: #b3261e; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the attribute wins over any display rule: a hidden block is not drawn */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, p { margin: 0; }
.wrap { width: min(1100px, 100% - 2rem); margin: 0 auto; }
section { padding: 2.5rem 0; }
/* top bar */
.top { display: flex; align-items: center; gap: .75rem; padding: 1rem 0; }
.top .brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.top .brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; gap: .25rem 1.25rem; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--soft); padding: .25rem 0; }
.top nav a:hover { color: var(--ink); }
/* the hero: one line and the film, muted with its captions burned in; a tap brings the sound */
.hero { padding: 1.5rem 0 1rem; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.8vw, 4rem); line-height: 1.05; letter-spacing: -.025em; text-align: center; margin-bottom: 1.5rem; }
.film { position: relative; border-radius: 20px; overflow: hidden; background: var(--screen); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.button { font: inherit; font-weight: 600; font-size: 1.05rem; padding: .85rem 1.25rem; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-align: center; }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); box-shadow: 0 8px 24px -10px rgba(217, 53, 70, .7); }
.button.primary:hover { filter: brightness(1.06); }
.button.quiet { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button.quiet:hover { border-color: var(--soft); }
.button[disabled] { opacity: .6; cursor: default; }
.button.sound { position: absolute; right: 1rem; bottom: 1rem; padding: .6rem 1rem; font-size: .95rem; color: #fff; background: rgba(20, 20, 28, .72); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.button.sound::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.button.sound.on::before { background: #fff; }
/* three loops of the real app, one line under each, one per row so the pill's words read (CRAFT: words 4–5% of the frame) */
.loops { display: grid; gap: 1.25rem; max-width: 820px; }
.loops figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.loops video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--screen); }
.loops figcaption { padding: .9rem 1.1rem 1rem; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
/* the price and the two buttons */
.get { text-align: center; }
.price { font-size: clamp(1.2rem, 1rem + 1.2vw, 1.7rem); line-height: 1.3; letter-spacing: -.015em; max-width: 36rem; margin: 0 auto 1.5rem; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.facts { color: var(--soft); font-size: .9rem; margin-top: 1rem; }
/* the Android list */
.android { padding-top: 1rem; }
.android form, .android .placed { max-width: 36rem; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
label { display: block; font-weight: 600; margin-bottom: .5rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
input { flex: 1 1 14rem; min-width: 0; font: inherit; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.error { color: var(--bad); font-size: .95rem; margin-top: .6rem; min-height: 1.4em; }
.error:empty { display: none; }
.placed { margin-top: 1rem; }
.place { font-size: 3rem; font-weight: 700; line-height: 1; margin: .25rem 0 .5rem; }
.total { color: var(--soft); margin-bottom: .5rem; }
.link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; word-break: break-all; background: var(--inset); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .65rem; margin: .75rem 0; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }
footer { color: var(--soft); font-size: .9rem; border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  section { padding: 1.75rem 0; }
  .hero h1 { margin-bottom: 1rem; }
  .cta .button, .row .button { width: 100%; }
  /* the film and the loops are the whole width the phone has, their border inside it, so the words are as large as it can draw them */
  .film, .loops figure { box-sizing: border-box; border-inline-width: 0; border-radius: 0; }
  .hero, .loops { width: 100%; }
  .hero h1 { padding-inline: 1rem; }
  .loops figcaption { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
