/* HalfReal site: the app's own palette — a warm-neutral dark family, one orange accent, gold for the premium moments. */
@font-face { font-family: 'Bungee'; src: url('/assets/bungee-latin.woff2') format('woff2'); font-display: swap; }
:root {
	--bg: #121210; --panel: #1b1b19; --group: #2c2a26; --control: #262722; --line: #373632;
	--text: #f2f5f9; --dim: #a9a69f; --faint: #7d7a73;
	--primary: #fc6b41; --primary-text: #1b1209; --gold: #f5c542; --amber: #f0a35a;
	--radius: 18px; --maxw: 1120px;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.muted { color: var(--dim); }
.wordmark { font-family: 'Bungee', system-ui, sans-serif; letter-spacing: .02em; display: inline-flex; }
.wordmark span:first-child { color: #fff; } .wordmark span:last-child { color: var(--gold); }

/* header */
.site-header { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(20px, calc((100vw - var(--maxw)) / 2)); background: linear-gradient(#121210ee, #121210aa 70%, transparent); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; }
.brand img { border-radius: 9px; image-rendering: auto; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 600; }
.site-header nav a:hover { color: var(--text); }
.nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--primary); color: var(--primary-text) !important; }
@media (max-width: 640px) { .site-header nav a:not(.nav-cta) { display: none; } }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px max(20px, calc((100vw - var(--maxw)) / 2)) 80px; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/assets/hero-street.webp') center / cover; filter: saturate(1.1); transform: scale(1.05); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 25% 45%, #121210d6 0%, #121210a0 55%, #12121066 100%), linear-gradient(transparent 65%, var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border: 1px solid #f5c54255; border-radius: 999px; background: #f5c54214; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-family: 'Bungee', system-ui, sans-serif; font-size: clamp(44px, 8vw, 88px); line-height: 1; margin: 18px 0 14px; }
.hero h1 .a { color: #fff; } .hero h1 .b { color: var(--gold); }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); color: #e4e1da; max-width: 34em; margin: 0 0 30px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 11px 20px; border: 1px solid #ffffff2e; border-radius: 14px; background: #ffffff0d; color: var(--text); text-decoration: none; cursor: default; backdrop-filter: blur(8px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11px; color: var(--dim); line-height: 1.2; }
.store strong { display: block; font-size: 17px; line-height: 1.2; }
.store .soon { position: absolute; top: -9px; right: 12px; padding: 1px 9px; border-radius: 999px; background: var(--primary); color: var(--primary-text); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.store[aria-disabled='true'] { opacity: .92; }

/* phones */
.phone { position: relative; width: min(100%, 290px); aspect-ratio: 9 / 19; margin-inline: auto; padding: 9px; border-radius: 42px; background: linear-gradient(145deg, #3a3833, #151513); box-shadow: 0 0 0 1.5px #55524b, 0 30px 80px #000a, 0 0 70px #fc6b4122; }
.phone::before { content: ''; position: absolute; z-index: 2; top: 15px; left: 50%; width: 76px; height: 20px; transform: translateX(-50%); border-radius: 999px; background: #0a0a09; }
.phone .screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #000; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.hero .phone { transform: rotate(3deg); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .lead { margin-inline: auto; } .stores { justify-content: center; } .hero .phone { width: 220px; transform: none; } }

/* sections */
section.block { padding: 96px max(20px, calc((100vw - var(--maxw)) / 2)); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 44px); }
.section-head p { color: var(--dim); font-size: 18px; margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, #22211e, var(--panel)); transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: #fc6b4166; }
.card .ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: #fc6b4120; color: var(--primary); font-size: 24px; }
.card h3 { font-size: 20px; } .card p { margin: 0; color: var(--dim); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

.gallery-band { background: radial-gradient(ellipse at 50% 0%, #2b2217, transparent 60%), #161712; }
.gallery { display: flex; gap: 28px; overflow-x: auto; padding: 20px 4px 40px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; margin: 0; scroll-snap-align: center; width: 250px; }
.gallery figcaption { margin-top: 18px; text-align: center; color: var(--dim); font-size: 14px; }
.gallery figcaption strong { display: block; color: var(--text); font-size: 16px; }
@media (min-width: 1100px) { .gallery { justify-content: center; } }

.download { text-align: center; background: linear-gradient(transparent, #fc6b4112), var(--bg); }
.download .stores { justify-content: center; margin-top: 8px; }
.download h2 { font-size: clamp(28px, 4.4vw, 44px); }
.download p { color: var(--dim); max-width: 520px; margin: 0 auto 32px; }
.download .delete-note { margin: 44px auto 0; max-width: 560px; font-size: 14px; color: var(--faint); }

/* footer */
.site-footer { padding: 56px max(20px, calc((100vw - var(--maxw)) / 2)) 32px; border-top: 1px solid var(--line); background: #0e0e0d; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer-grid nav { display: grid; align-content: start; gap: 8px; }
.footer-grid nav a { color: var(--dim); text-decoration: none; font-size: 14.5px; }
.footer-grid nav a:hover { color: var(--text); }
.legal-line { margin: 36px 0 0; font-size: 12.5px; color: var(--faint); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div { grid-column: 1 / -1; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* documents */
body.doc main { max-width: 800px; margin: 0 auto; padding: 120px 20px 80px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 36px; }
.doc h2 { margin-top: 2.2em; font-size: 22px; padding-top: .4em; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 1.6em; font-size: 17px; color: var(--amber); }
.doc p, .doc li { color: #d9d6cf; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: .35em 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.doc th { background: var(--panel); color: var(--text); }
.doc .toc { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.doc .toc ol { margin: 0; }
.doc .callout { padding: 16px 20px; border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; background: #fc6b4112; }
mark.todo { background: #f5c54230; color: var(--gold); padding: 0 4px; border-radius: 4px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--primary); color: var(--primary-text) !important; font-weight: 700; text-decoration: none; }

/* language switch */
.site-header nav a.lang { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .08em; }
@media (max-width: 640px) { .site-header nav a.lang { display: inline-block !important; } }
