/* nomikit.com — the app's own design language, set for the web.
   Tokens read straight from the app: Ink.pearl, Color.nomi*, and the type
   ramp. One splash and one document, no build step. */

@font-face {
  font-family: "Bagel Fat One";
  src: url(fonts/BagelFatOne-latin.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "SN Pro";
  src: url(fonts/SNPro-Variable.woff2) format("woff2-variations");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --veil: #121317;            /* Color.nomiVeil — the stage */
  --gold: #edb529;            /* Color.nomiGold */
  --blue: #2e82fa;            /* Color.nomiBlue */
  --pearl-a: #f06bb8;         /* Ink.pearl, in press order */
  --pearl-b: #edb529;
  --pearl-c: #5cc7db;
  --pearl-d: #9e78eb;
  --t-94: rgba(255 255 255 / .94);
  --t-85: rgba(255 255 255 / .85);
  --t-50: rgba(255 255 255 / .50);
  --t-35: rgba(255 255 255 / .35);
  --card: rgba(255 255 255 / .05);
  --card-line: rgba(255 255 255 / .06);
  --radius: 22px;             /* ShopCard's one corner */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

/* clip, not hidden: hidden makes the root a scroll container iOS can still
   pan; clip forbids the overflow outright. */
html, body { overflow-x: clip; }

body {
  background: var(--veil);
  color: var(--t-85);
  font-family: "SN Pro", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* The studio light: one soft key from above, the way every screen in the
   app is lit. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 60% at 50% -5%, rgba(255 255 255 / .075), transparent 62%);
}

.wrap {
  width: min(1040px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- header ---------- */

header {
  padding: 26px 0 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 26px; width: auto; }
.brand span {
  font-family: "Bagel Fat One";
  font-size: 21px;
  color: var(--t-94);
  letter-spacing: .01em;
}

/* ---------- hero, which is the page ---------- */

main {
  flex: 1;
  display: flex;
}

.hero {
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Optically centred: the footer below pulls the visual middle down, so
     the card sits a little above true centre. */
  padding: 6vh 0 14vh;
}

/* The house sunburst, cut to a fade so no ray ever ends where it can be
   seen — Ink.sunburst, at stage alpha. Fixed to the viewport like the key
   light: a backdrop owns no layout box, so it can never grow the page into
   phantom scroll. Centred where the card optically sits. */
.rays {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-conic-gradient(
    from -6deg at 50% 46%,
    rgba(255 255 255 / .038) 0deg 5deg,
    transparent 5deg 11.25deg
  );
  -webkit-mask-image: radial-gradient(60% 60% at 50% 46%, #000 16%, transparent 78%);
  mask-image: radial-gradient(60% 60% at 50% 46%, #000 16%, transparent 78%);
  animation: raysIn 1.6s ease-out both;
}

h1 {
  font-family: "Bagel Fat One";
  font-weight: 400;
  font-size: clamp(58px, 11vw, 104px);
  line-height: 1;
  color: var(--t-94);
  text-shadow: 0 2px 0 rgba(0 0 0 / .35);
}

.tagline {
  margin-top: 16px;
  max-width: 34ch;
  font-size: clamp(16px, 2.4vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--t-85);
}
.tagline em {
  font-style: normal;
  color: var(--gold);
}

/* The one promise on the page wears the pearl — the premium signature. */
.pill {
  position: relative;
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(255 255 255 / .06);
  backdrop-filter: blur(10px);
  font-size: 15px;
  font-weight: 600;
  color: var(--t-85);
  text-decoration: none;
}
.pill:hover { background: rgba(255 255 255 / .10); color: #fff; }
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--pearl-a), var(--pearl-b), var(--pearl-c), var(--pearl-d));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: .75;
}

/* ---------- document pages (privacy) ---------- */

.doc {
  margin: clamp(36px, 6vh, 64px) auto;
  /* main is a flex box (the splash centres in it); without this the card
     stretches to fill the column instead of hugging its words. */
  align-self: flex-start;
  width: min(680px, 100%);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 44px);
}
.doc h1 {
  font-size: clamp(30px, 6vw, 40px);
  text-shadow: none;
  margin-bottom: 6px;
}
.doc .updated {
  font-size: 13px;
  color: var(--t-35);
  margin-bottom: 26px;
}
.doc h2 {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--t-94);
  margin: 26px 0 8px;
}
.doc p, .doc li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--t-85);
  margin-bottom: 10px;
}
.doc ul { padding-left: 20px; }
.doc a { color: var(--blue); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

footer {
  margin-top: auto;
  padding: 26px 0 30px;
  border-top: 1px solid var(--card-line);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t-35);
}
.foot-row a {
  color: var(--t-50);
  text-decoration: none;
}
.foot-row a:hover { color: var(--t-85); }
.foot-row .spacer { flex: 1; }

/* ---------- motion ---------- */

.rise { animation: rise .7s cubic-bezier(.2, .8, .3, 1) both; }
.d1 { animation-delay: .08s; }
.d2 { animation-delay: .18s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes raysIn { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .rise, .rays { animation: none; }
}
