/* NextHome — shared styles for the information pages (contact, support, legal, status).
   Same palette, fonts and pill shapes as the main site, built responsive for every screen. */
@font-face { font-family: "NH Display"; font-weight: 170; font-display: swap; src: url("/assets/fonts/open/InterDisplay-170.woff2") format("woff2"); }
@font-face { font-family: "NH Display"; font-weight: 290; font-display: swap; src: url("/assets/fonts/open/InterDisplay-290.woff2") format("woff2"); }
@font-face { font-family: "NH Display"; font-weight: 390; font-display: swap; src: url("/assets/fonts/open/InterDisplay-390.woff2") format("woff2"); }
:root {
  --navy: #000225; --ink: #ffffff; --muted: rgba(255,255,255,.72); --faint: rgba(255,255,255,.5);
  --line: rgba(255,255,255,.22); --pill: rgba(255,255,255,.2); --ok: #4cd18a; --warn: #f5c451; --bad: #ff6b6b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--navy); color: var(--ink); }
body { font: 290 17px/1.65 "NH Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; color: var(--navy); padding: 8px 14px; border-radius: 999px; }

/* header: logo pill + menu pill, as on the main site */
.nh-top { position: sticky; top: 0; z-index: 5; background: rgba(0,2,37,.88); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.nh-top .in { max-width: 1240px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 42px; border: 1px solid #fff; border-radius: 999px; background: var(--pill); }
.logo { width: 171px; } .logo img { height: 20px; width: auto; display: block; }
.menu { padding: 0 8px; } .menu a { text-decoration: none; padding: 9px 11px; font-size: 14px; font-weight: 290; color: rgba(255,255,255,.88); white-space: nowrap; }
.menu a:hover, .menu a[aria-current] { color: #fff; }
.burger { display: none; width: 46px; height: 42px; border-radius: 999px; border: 1px solid #fff; background: var(--pill); color: #fff; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1px; background: #fff; margin: 4px auto; }
@media (max-width: 900px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; left: 16px; right: 16px; top: 72px; height: auto; flex-direction: column; align-items: stretch; padding: 10px; border-radius: 22px; background: rgba(0,2,37,.97); }
  .menu.open { display: flex; } .menu a { padding: 12px 14px; font-size: 16px; }
}

/* content */
main { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.eyebrow { color: var(--faint); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-weight: 170; font-size: clamp(36px, 6vw, 60px); line-height: 1.12; margin: 0 0 22px; letter-spacing: -.01em; }
h2 { font-weight: 290; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; margin: 48px 0 12px; }
h3 { font-weight: 390; font-size: 18px; margin: 28px 0 8px; }
p, li { color: var(--muted); } strong { color: #fff; font-weight: 390; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: rgba(255,255,255,.82); }
ul { padding-left: 1.2em; } li { margin: 6px 0; }
.meta { color: var(--faint); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 28px 0; }
.card { border: 1px solid var(--line); border-radius: 22px; padding: 22px; background: rgba(255,255,255,.04); }
.card h3 { margin-top: 0; } .card p { margin: 6px 0 0; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; } summary { cursor: pointer; color: #fff; font-weight: 390; list-style: none; }
summary::after { content: "+"; float: right; color: var(--faint); } details[open] summary::after { content: "–"; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border-radius: 999px; border: 1px solid #fff; background: var(--pill); color: #fff; font: inherit; font-weight: 390; text-decoration: none; cursor: pointer; }
.btn:hover { background: rgba(255,255,255,.3); } .btn[disabled] { opacity: .55; cursor: default; }

/* forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; color: var(--muted); margin: 18px 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
textarea { min-height: 150px; resize: vertical; } select option { color: #000; }
input:focus, select:focus, textarea:focus { border-color: #fff; outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; color: var(--muted); font-size: 15px; } .check input { width: auto; margin-top: 5px; }
.notice { margin-top: 16px; padding: 14px 16px; border-radius: 14px; display: none; } .notice.show { display: block; }
.notice.ok { background: rgba(76,209,138,.12); border: 1px solid rgba(76,209,138,.5); } .notice.err { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.5); }
.hp { position: absolute; left: -9999px; }

/* status */
.status-head { display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: 22px; border: 1px solid var(--line); margin: 24px 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); flex: none; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.components { list-style: none; padding: 0; margin: 0; } .components li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); margin: 0; }
.components .state { display: flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; }

/* footer (also used on the main site pages) */
.nh-foot { border-top: 1px solid var(--line); }
.nh-foot .in { max-width: 1240px; margin: 0 auto; padding: 28px 24px 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--faint); }
.nh-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; } .nh-foot a { text-decoration: none; color: var(--muted); } .nh-foot a:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) { main > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; } main > *:nth-child(2) { animation-delay: .06s; } main > *:nth-child(3) { animation-delay: .12s; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
