/* hallune landing — brand tokens copied from the Base44 app (src/index.css): night, lantern amber,
   moonlight and paper, DM Sans Semibold headings, JetBrains Mono labels. Fonts are self-hosted
   (SIL Open Font License), so the site makes no third-party requests. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); }

:root {
  --bg: #1C1B26; --fg: #F3E9D2; --card: hsl(246 17% 16% / .6); --primary: #E8A04B;
  --primary-fg: #1C1B26; --muted-fg: hsl(42 22% 70%); --border: hsl(246 14% 26% / .7);
  --input: hsl(246 14% 30%); --field: hsl(246 16% 20%); --field-ph: hsl(42 18% 66%);
  --field-label: hsl(42 45% 88%); --danger: hsl(0 72% 65%); --radius: .75rem;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  background-image: radial-gradient(60rem 30rem at 85% -10%, hsl(33 77% 60% / .10), transparent 60%),
                    radial-gradient(40rem 24rem at -10% 10%, hsl(246 40% 40% / .14), transparent 60%);
  background-attachment: fixed; }
::selection { background: hsl(33 77% 60% / .3); }
a { color: var(--primary); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 42rem; margin: 0 auto;
  padding: calc(3rem + env(safe-area-inset-top, 0px)) calc(1.25rem + env(safe-area-inset-right, 0px)) calc(3rem + env(safe-area-inset-bottom, 0px)) calc(1.25rem + env(safe-area-inset-left, 0px)); }
.skip { position: absolute; left: -10000px; top: 0; background: var(--primary); color: var(--primary-fg); padding: .5rem 1rem; border-radius: .5rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Wordmark: "hall" + crescent u + "ne" */
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--fg); }
.wordmark .mark { font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-size: 1.875rem; }
.wordmark svg { display: inline-block; height: .68em; width: auto; margin: 0 .02em; vertical-align: baseline; }
.wordmark .tag { margin-top: .5rem; font-size: .875rem; color: var(--muted-fg); }
.wordmark.sm .mark { font-size: 1.25rem; }
@media (min-width: 640px) { .wordmark .mark { font-size: 2.25rem; } .wordmark.sm .mark { font-size: 1.25rem; } }

.mono-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted-fg); }
.hero { margin-top: 1.5rem; }
.hero h1 { margin-top: .5rem; font-size: 2.25rem; line-height: 1.15; }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
.lede { margin-top: 1rem; font-size: .9375rem; line-height: 1.65; color: var(--muted-fg); }
@media (min-width: 640px) { .lede { font-size: 1rem; } }

.notice { margin-top: 1.5rem; display: flex; gap: .75rem; align-items: flex-start; padding: 1rem;
  border: 1px solid hsl(33 77% 60% / .4); background: hsl(33 77% 60% / .1); border-radius: var(--radius); }
.notice svg { flex-shrink: 0; width: 1rem; height: 1rem; margin-top: .2rem; color: var(--primary); }
.notice p { font-size: .875rem; line-height: 1.6; color: hsl(42 58% 89% / .85); }
.notice strong { color: var(--fg); font-weight: 500; }

.panel { border-radius: 1rem; border: 1px solid var(--border); background: var(--card);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.features { margin-top: 1.75rem; display: grid; gap: 1rem; }
.feature { display: flex; gap: 1rem; padding: 1rem; }
.feature svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: .15rem; color: var(--primary); }
.feature h3 { font-size: 1.125rem; }
.feature p { margin-top: .25rem; font-size: .875rem; line-height: 1.6; color: var(--muted-fg); }

.beta-facts { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.beta-facts div { padding: .9rem 1rem; }
.beta-facts strong { display: block; font-size: 1.125rem; font-weight: 600; }
.beta-facts span { font-size: .75rem; color: var(--muted-fg); }
@media (max-width: 520px) { .beta-facts { grid-template-columns: 1fr; } }

.form-panel { margin-top: 2rem; padding: 1.25rem; }
@media (min-width: 640px) { .form-panel { padding: 1.5rem; } }
.form-panel h2 { font-size: 1.25rem; }
.form-panel .sub { margin-top: .25rem; font-size: .875rem; color: var(--muted-fg); }
form { display: grid; gap: 1.25rem; }
.field-label { display: block; margin-bottom: .5rem; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--field-label); }
.input { width: 100%; min-width: 0; border-radius: var(--radius); border: 1px solid var(--input); background: var(--field);
  color: var(--fg); font: inherit; font-size: .875rem; padding: .6rem .875rem; transition: border-color .15s; }
.input::placeholder { color: var(--field-ph); font-style: italic; opacity: 1; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px hsl(33 77% 60% / .3); outline: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9BEA8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 1rem; }
textarea.input { resize: vertical; min-height: 5.5rem; }
.grid2 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.count { margin-top: .25rem; text-align: right; font-size: 11px; color: var(--muted-fg); }
.err { margin-top: .25rem; font-size: .75rem; color: var(--danger); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.checks { display: grid; gap: .75rem; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; line-height: 1.6; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 1.05rem; height: 1.05rem; margin: .2rem 0 0;
  border: 1px solid var(--primary); border-radius: .3rem; background: transparent; cursor: pointer; display: grid; place-content: center; }
.check input::after { content: ''; width: .55rem; height: .55rem; transform: scale(0); transition: transform .1s;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: var(--primary-fg); }
.check input:checked { background: var(--primary); }
.check input:checked::after { transform: scale(1); }
.check input[aria-invalid="true"] { border-color: var(--danger); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; justify-self: start; min-height: 2.75rem;
  border: 0; border-radius: var(--radius); background: var(--primary); color: var(--primary-fg); font: inherit; font-weight: 600;
  font-size: .9375rem; padding: .6rem 1.25rem; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 1rem; height: 1rem; }
.done { display: flex; gap: .75rem; align-items: flex-start; }
.done > svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: .2rem; color: var(--primary); }
.done p { margin-top: .5rem; font-size: .875rem; color: var(--muted-fg); }
[hidden] { display: none !important; }

.social { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.social a { color: var(--muted-fg); display: inline-flex; padding: .25rem; margin: -.25rem; transition: color .15s; }
.social a:hover, .social a:focus-visible { color: var(--primary); }
.social svg { width: 1rem; height: 1rem; }

.site-footer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid hsl(246 14% 26% / .6); display: grid; gap: 1rem; }
.site-footer .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.foot-link { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted-fg); text-decoration: none; }
.foot-link:hover { color: var(--primary); }
.fine { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: hsl(42 22% 70% / .7); }
.contact { font-size: .8125rem; color: var(--muted-fg); }

/* Policy pages */
.doc header { margin-top: 2rem; }
.doc h1 { margin-top: .5rem; font-size: 1.875rem; }
@media (min-width: 640px) { .doc h1 { font-size: 2.25rem; } }
.doc .intro { margin-top: .75rem; font-size: .875rem; line-height: 1.65; color: var(--muted-fg); }
.doc .sections { margin-top: 1.5rem; display: grid; gap: 1rem; }
.doc section.panel { padding: 1.25rem; }
.doc section h2 { margin-top: .25rem; font-size: 1.125rem; }
.doc section p.body { margin-top: .5rem; font-size: .875rem; line-height: 1.7; color: var(--muted-fg); }
.todo { margin-top: .5rem; font-size: .75rem; font-style: italic; line-height: 1.6; color: hsl(33 77% 60% / .9); }
mark.confirm { background: hsl(33 77% 60% / .18); color: var(--primary); border: 1px dashed hsl(33 77% 60% / .6); border-radius: .3rem; padding: 0 .25rem; font-style: normal; }
.lines { margin-top: 1.5rem; padding: 1.25rem; }
.lines h2 { font-size: 1.125rem; }
.lines ul { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; }
.lines li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .7rem .9rem; border-radius: .75rem; background: hsl(246 16% 20% / .7); }
.lines li.emergency { border: 1px solid hsl(33 77% 60% / .5); }
.lines .name { font-size: .875rem; }
.lines .hours { font-size: .75rem; color: var(--muted-fg); }
.lines a.tel { font-weight: 600; font-size: 1rem; text-decoration: none; }
.back { display: inline-block; margin-top: 1.5rem; font-size: .875rem; }
.nf { text-align: left; margin-top: 3rem; }
.nf h1 { font-size: 2.25rem; margin-top: .5rem; }
.nf p { margin-top: 1rem; color: var(--muted-fg); }
@media (max-width: 767px) { .input, select, textarea { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
