/* HostNomiq — coming-soon site.
   Follows the shared design guidelines (HostNomiqSites docs/DESIGN.md): quiet and editorial, serif headlines,
   tracked-capital labels, hairlines instead of boxes, bronze only as a seasoning. Self-hosted fonts, no trackers. */

@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 200 900; font-display: swap; src: url('/assets/fonts/source-serif-4-latin.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/assets/fonts/jost-latin.woff2') format('woff2'); }

/* ---- tokens ---- */
/* Palette matches the HostNomiq app (backend/hostnomiq/static/admin.css): white paper, sand panels, warm hairlines.
   Light only, like the app. --ink-3 stays darker than the app's #8a847d so small text keeps 4.5:1 contrast on white. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #ffffff;
  --stone: #efebe4;
  --stone-2: #f6f4f0;
  --ink: #161514;
  --ink-2: #4a4743;
  --ink-3: #6f6a64;
  --line: #e4dfd7;
  --line-strong: #d4cdc2;
  --bronze: #7d6243;
  --on-ink: #ffffff;
  --error: #a3311f;

  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', Futura, 'Avenir Next', 'Gill Sans', sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink-2); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease); }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
::selection { background: color-mix(in srgb, var(--bronze) 28%, transparent); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; background: var(--ink); color: var(--on-ink); border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }

.container { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.label { display: inline-flex; align-items: center; gap: 10px; font: 500 0.7rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze); }
.label .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.fine { font-size: 0.8rem; line-height: 1.6; color: var(--ink-3); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: var(--radius-sm, 0); background: transparent; color: var(--ink);
  font: 500 0.72rem/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), opacity 0.35s var(--ease); }
.btn:hover { background: var(--ink); color: var(--on-ink); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { opacity: 0.86; }
.btn-lg { min-height: 54px; padding: 0 30px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 500 0.8rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; }
.brand svg { width: 28px; height: 28px; border-radius: 5px; flex: none; }
.brand .mark-bg { fill: var(--ink); }
.brand .mark-fg { stroke: var(--paper); }
.site-header .btn { padding: 0 16px; }

/* ---- hero ---- */
.hero { padding: clamp(64px, 10vw, 136px) 0 clamp(72px, 10vw, 144px); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: clamp(48px, 6vw, 88px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem); margin: 22px 0 26px; }
.lede { font-size: 1.08rem; max-width: 34em; color: var(--ink-2); }
.audience { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 34em; font-size: 0.92rem; color: var(--ink-3); }

/* Decorative network of hairlines: properties, guests and crews connected. */
.network { position: absolute; inset: 0; z-index: -1; pointer-events: none; color: var(--line-strong); opacity: 0.7; }
.network svg { position: absolute; right: -6%; top: 50%; width: min(820px, 90vw); transform: translateY(-50%); }
.network .node-accent { fill: var(--bronze); }
@media (max-width: 999px) { .network { opacity: 0.35; } .network svg { right: -30%; top: 20%; } }

/* ---- waitlist form ---- */
.signup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg, 0); padding: clamp(28px, 4vw, 44px); }
.signup h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 8px; }
.signup > p { font-size: 0.95rem; }
.fields { display: grid; gap: 22px; margin: 28px 0 26px; }
.field label { display: block; margin-bottom: 4px; font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }
.field label span { color: var(--ink-3); letter-spacing: 0.1em; text-transform: none; font-weight: 400; font-size: 0.8rem; }
.field input { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent;
  color: var(--ink); font: 400 1rem/1.4 var(--sans); transition: border-color 0.3s var(--ease); }
.field input::placeholder { color: var(--ink-3); opacity: 0.8; }
.field input:focus { outline: none; border-bottom-color: var(--ink); }
.field input:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--ink); }
.field input[aria-invalid="true"] { border-bottom-color: var(--error); }
.field .error { margin-top: 6px; font-size: 0.82rem; color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup .fine { margin-top: 16px; }
.status { margin-top: 14px; font-size: 0.9rem; }
.status.is-error { color: var(--error); }
.done { text-align: left; }
.done .check { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--bronze); margin-bottom: 20px; }
.done .check svg { width: 20px; height: 20px; }

/* ---- features ---- */
.section { padding: clamp(80px, 10vw, 144px) 0; }
.section-stone { background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 44rem; }
.section-head h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 32px 0 36px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .pillar { padding: 36px 32px 40px 0; }
  .pillar:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .pillar { border-bottom: 0; padding: 40px 28px 8px; border-left: 1px solid var(--line); }
  .pillar:first-child { padding-left: 0; border-left: 0; }
  .pillar:nth-child(2n) { padding-left: 28px; }
}
.pillar .icon { width: 28px; height: 28px; color: var(--ink); margin-bottom: 22px; }
.pillar .num { display: block; font: 500 0.7rem/1 var(--sans); letter-spacing: 0.24em; color: var(--bronze); margin-bottom: 14px; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 12px; }
.pillar p { font-size: 0.96rem; }
.planned-note { margin-top: clamp(36px, 4vw, 56px); }

/* ---- closing CTA ---- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin: 18px auto 28px; max-width: 18em; }

/* ---- legal pages ---- */
.page { padding: clamp(56px, 8vw, 112px) 0 clamp(80px, 10vw, 128px); }
.page h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); margin: 18px 0 14px; }
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 12px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.88rem; color: var(--ink-3); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---- motion: one quiet reveal ---- */
[data-load] { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
