/* Noxi website: the Afterglow look. Every page loads this file first.
   It holds the colors, the fonts, the header, the buttons, the cards and the footer.
   Rules come from design/reference/afterglow-site/brand-kit-v3.md. */

/* ---------- fonts: hosted in /fonts, never loaded from Google ---------- */
@font-face { font-family: Cinzel; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/cinzel-700.woff2") format("woff2"); }
@font-face { font-family: Inter; font-weight: 100 900; font-style: normal; font-display: swap; src: url("/fonts/inter-var.woff2") format("woff2"); }

@property --spin { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

/* ============================================================
   EDIT ME: every color is written once, here.
   Each color is three numbers (red green blue). The hex code is in the note.
   ============================================================ */
:root {
  --night-n: 21 11 36;          /* #150B24  main ground */
  --plum-n: 46 23 72;           /* #2E1748  night cards */
  --deep-n: 34 6 47;            /* #22062F  text on bright colors */
  --blush-n: 255 217 236;       /* #FFD9EC  text, and the day ground */
  --coral-n: 255 79 109;        /* #FF4F6D  action color */
  --pink-n: 255 61 139;         /* #FF3D8B  tiles, highlights, time chips */
  --violet-n: 107 43 255;       /* #6B2BFF  light and glow */
  --petal-n: 245 196 222;       /* #F5C4DE  day cards */
  --quiet-night-n: 201 169 214; /* #C9A9D6  quiet text on night */
  --quiet-day-n: 106 63 122;    /* #6A3F7A  quiet text on day */
  --hair-night-n: 58 35 88;     /* #3A2358  hairlines on night */

  --night: rgb(var(--night-n)); --plum: rgb(var(--plum-n)); --deep: rgb(var(--deep-n)); --blush: rgb(var(--blush-n));
  --coral: rgb(var(--coral-n)); --pink: rgb(var(--pink-n)); --violet: rgb(var(--violet-n)); --petal: rgb(var(--petal-n));

  /* What each color does. Night is the main look. */
  --page: var(--night);                 /* the ground */
  --ink: var(--blush);                  /* text */
  --card: var(--plum);                  /* cards */
  --card-ink: var(--blush);             /* text on cards */
  --quiet: rgb(var(--quiet-night-n));   /* quiet text */
  --hair: rgb(var(--hair-night-n));     /* thin lines */
  --mark: var(--pink);                  /* small labels and links */
  --head-mark: var(--pink);             /* the lit word in a big headline */
  --frame: var(--blush);                /* photo frames */
  --focus: var(--pink);                 /* the focus ring */
  --accent: var(--coral);               /* buttons */
  --accent-ink: var(--deep);            /* button labels */
  --lite: var(--blush); --dark: var(--deep);
  --hdr: rgb(var(--night-n) / .8);      /* the glass of the header */
  --veil: rgb(var(--night-n) / .8);     /* the dark veil over the painting */
  --tint: rgb(var(--night-n) / .35);
  --tile-glow: rgb(var(--pink-n) / .45);

  /* Not in the kit. From the approved prototype, for drawings only:
     the header ring at 9 AM, the sparks on the 404 page, and the phone's metal frame and glass. */
  --dawn-gold: #FFC53D; --dawn-peach: #FF9A6B; --dawn-rose: #FFB3D1;
  --metal-1: #F3ECF7; --metal-2: #A297B0; --metal-3: #5F566B; --metal-4: #8E849C; --metal-5: #D9D0E2; --metal-6: #F6F0FA;
  --bezel: #050308; --screen-off: #0E0E12; --lens-1: #2B3350; --lens-2: #07080F;

  --display: Cinzel, Georgia, serif;
  --text: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --card-radius: 22px;                  /* cards */
  --photo-radius: 14px;                 /* photos */
  --margin: clamp(20px, 6vw, 88px);     /* the page's side margin */
  --content: 1200px;                    /* widest the content gets */

  color-scheme: dark;
}
/* Day is the second look. Pink and coral are not used for text on blush (2.6 to 1). */
html.day {
  --page: var(--blush); --ink: var(--deep); --card: var(--petal); --card-ink: var(--deep);
  --quiet: rgb(var(--quiet-day-n)); --hair: rgb(var(--deep-n) / .22);
  --mark: var(--deep); --head-mark: var(--violet); --frame: var(--deep); --focus: var(--violet);
  --hdr: rgb(var(--deep-n) / .9); --veil: rgb(var(--deep-n) / .62); --tint: rgb(var(--night-n) / 0);
  color-scheme: light;
}
/* ============================================================ end EDIT ME */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--text); font-weight: 500; transition: background .4s, color .4s; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: var(--deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Controls that need the script stay hidden until the script runs. */
html:not(.js) .needs-js { display: none !important; }

/* ---------- the app icon (files from logo-files, three sizes) ---------- */
.appicon { flex: none; display: block; border-radius: 22%; background: var(--night) url("/img/brand/noxi-app-icon-medium.svg") center / cover no-repeat; box-shadow: 0 0 0 1px rgb(var(--blush-n) / .28); }
.appicon--full { background-image: url("/img/brand/noxi-app-icon-full.svg"); }

/* ---------- header: a glass pill with a ring of light ---------- */
.hdr { position: fixed; z-index: 60; top: 12px; left: 50%; transform: translateX(-50%); padding: 2px; border-radius: 999px; color: var(--lite); white-space: nowrap; animation: spin 9s linear infinite; }
.hdr::before, .hdr::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 999px; z-index: -1; }
.hdr::before { background: conic-gradient(from calc(var(--spin) + var(--turn, 0deg)), var(--violet), var(--pink), var(--coral), var(--plum), var(--violet)); }
.glow { position: absolute; z-index: -2; left: -4px; top: -4px; right: -4px; bottom: -4px; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--pink)); filter: blur(18px); opacity: calc(.15 + .6 * var(--energy, .4)); animation: pulse 1s ease-in-out infinite alternate; }
.hdr-in { position: relative; display: flex; align-items: center; gap: 6px 14px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--hdr); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: padding .3s, background .4s; }
.word { display: flex; align-items: center; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .14em; text-decoration: none; }
.toggle { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(var(--blush-n) / .12); }
.toggle button { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: 700 13px var(--text); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--blush); color: var(--deep); }
.toggle svg { width: 16px; height: 16px; fill: currentColor; }
.get { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
/* The header is dark in both looks, so its focus ring is always blush. */
.hdr :focus-visible, .panel :focus-visible, .motion:focus-visible { outline-color: var(--blush); }

/* The simple header of every page but the home page: text logo, Day and Night, Get Noxi. It stays at the top. */
.hdr--page { position: sticky; left: auto; transform: none; width: max-content; max-width: calc(100vw - 16px); margin: 12px auto 0; }

/* ---------- buttons: coral fill, deep bold label, fully round ---------- */
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 16px var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 0 34px var(--tile-glow); }
.cta--sm { min-height: 44px; padding: 0 18px; font-size: 14px; box-shadow: none; }
.ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); font: 700 16px var(--text); text-decoration: none; white-space: nowrap; }
.motion { position: fixed; z-index: 50; right: 12px; bottom: 12px; min-height: 44px; padding: 0 14px; border: 1px solid rgb(var(--pink-n) / .5); border-radius: 999px; background: var(--hdr); color: var(--lite); font: 700 12px var(--text); letter-spacing: .06em; cursor: pointer; }

/* ---------- headings ---------- */
.display { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; text-wrap: balance; }

/* ---------- the waitlist form ---------- */
.field { display: flex; gap: 6px; padding: 6px; border-radius: 999px; border: 2px solid var(--hair); background: var(--page); }
.field input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 500 16px var(--text); }
.field input::placeholder { color: var(--quiet); opacity: 1; }
.field .cta { min-height: 52px; padding: 0 22px; box-shadow: none; }
.hp { position: absolute; left: -9999px; }
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; font-size: 14px; color: var(--quiet); }
.pick label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--card-ink); font-weight: 700; }
.pick input { width: 20px; height: 20px; margin: 0; accent-color: var(--coral); }
.join__err { margin: 0; font-size: 14px; font-weight: 700; }
.join__done { margin: 0; padding: 16px 20px; border-radius: var(--card-radius); border: 2px solid var(--coral); }
@media (max-width: 480px) {
  .field { flex-direction: column; border-radius: 28px; }
  .field .cta { width: 100%; }
}

/* ---------- footer: one mosaic border closes the page ---------- */
.mline { height: 29px; background: var(--deep) url("/img/brand/mosaic-border.svg") 0 0 repeat-x; }
.foot-in { max-width: var(--content); margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--margin) 96px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.lockup { display: flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; }
.lockup img { width: 48px; height: 48px; border-radius: 22%; box-shadow: 0 0 0 1px rgb(var(--blush-n) / .28); }
.lockup b { font-family: var(--display); font-size: 28px; letter-spacing: .14em; }
.foot-in p { margin: 0; font-size: 15px; font-weight: 500; }
.foot-nav { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0 -2px; }
.foot-nav a, .foot-in a.top { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: 14px; font-weight: 700; }
.foot-betas { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; }
.foot-betas:empty { display: none; }
.foot-betas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.foot-in small { flex-basis: 100%; font-size: 13px; font-weight: 500; color: var(--quiet); }
.foot-in small a { display: inline-block; padding: 14px 0; }

@keyframes spin { to { --spin: 360deg; } }
@keyframes pulse { from { transform: scale(.97); } to { transform: scale(1.04); } }

@media (max-width: 430px) { .hdr-in { gap: 6px; padding-left: 14px; } .get { padding: 0 14px; } }

/* Motion off: the page starts this way with no script, and when the phone asks for less motion. */
.still .hdr, .still .glow { animation: none; }
.still body, .still .hdr-in { transition: none; }

/* ============================================================
   Older pages. The stored guides in .seo-engine/drafts still use this header and footer.
   These rules give them the new look until their files are updated.
   ============================================================ */
.hd { position: sticky; top: 0; z-index: 20; background: var(--hdr); color: var(--lite); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hd__in { display: flex; align-items: center; justify-content: space-between; max-width: var(--content); margin: 0 auto; padding: 12px 20px; }
.hd__logo { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--lite); }
.hd__logo img { width: 40px; height: 40px; border-radius: 22%; display: block; }
.hd__logo span { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; }
.hd__btn, .hd .hd__btn--cta { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 14px var(--text); text-decoration: none; }
.hd__nav { display: none; }
.ft { max-width: var(--content); margin: 0 auto; padding: 24px 20px 32px; border-top: 2px solid var(--hair); font: 500 13px/1.5 var(--text); color: var(--quiet); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ft__logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
.ft__logo img { width: 40px; height: 40px; border-radius: 22%; display: block; }
.ft__logo span { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; }
.ft__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.ft__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); font-weight: 700; }
.ft__betas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ft__beta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }

/* ---------- back to top: a glass circle with the header's pink edge and violet glow ----------
   site.js adds it to every page. It shows after you scroll past about one screen, and sits above the
   Motion button on the pages that have one. */
.totop { position: fixed; z-index: 55; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgb(var(--pink-n) / .55); border-radius: 999px; background: var(--hdr); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--lite); cursor: pointer; box-shadow: 0 0 22px rgb(var(--violet-n) / .45), 0 0 34px rgb(var(--pink-n) / .22); opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop.above { bottom: calc(66px + env(safe-area-inset-bottom)); }
.totop svg { width: 20px; height: 20px; fill: currentColor; }
.totop:hover { box-shadow: 0 0 28px rgb(var(--violet-n) / .6), 0 0 44px rgb(var(--pink-n) / .35); }
.totop:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
html.still .totop { transition: none; }
@media print { .totop { display: none; } }

