/* Hallmark · checked: 2026-11-28 · genre: modern-minimal (a consumer social app: the landing page and its clickable demo)
 * floor: 62 open on app.html only, a false positive (the app's other four tabs are built at start and stay hidden until tapped) · fixed: 7b 10a 20 26a 34 39a 40 44b 48 49b 54 62 63 67 75 F3 · structural: 24b 58 printed, not rebuilt
 * finish-review: in-thread · Impeccable detector 24 to 8: Geist and the cream paper kept on purpose, the phone screen's flush app a false positive
 * brand kept: cream paper #F3F0E9, ink #0E1719, raspberry #C9416A, bold Geist, the two-ring logo, Donald's page order
 * job: join the waitlist for the app, out in December (the page's one job, from Donald's mockup) · built: the project · redesign: polish · v2.0.0 */
/* Hallmark · waive 39b · five runbook rows at 79px, each a full-width two-line row (the step and a hint) · the rows are the demo's numbered steps you click through, list rows rather than form buttons */
/* Hallmark · waive 80 · two rings and two app cards on the hero's right, wide screens only · the rings are the Novit logo mark drawn large, and the cards are the demo's own components (a person and an ask), not decoration */
/* Hallmark · waive 47b · one phone frame, the live demo app inside it (app.html in an iframe, fully usable) · the demo is the product being shown, and visitors use it in place rather than look at a picture of it */
/*
 * KNOWN shared styles: tokens, type, primitives, and the phone frame.
 * Used by index.html (with landing.css) and app.html (with app.css).
 *
 * Palette rule: nothing is pure. Paper is warm, ink is a chosen cool
 * teal-black, and there is no #fff or #000 anywhere.
 */

:root {
  /* Colours that were written into rules, lifted to tokens at the same values (Hallmark gate 48, polish pass 28 Nov 2026). */
  --device-frame-bg-1: #2B3335;
  --device-frame-bg-2: #151B1C;
  --device-frame-bg-3: #1E2527;
  --device-frame-bg-4: #2A3234;
  --device-frame-shadow-1: #3B4447;
  --device-frame-shadow-2: #0B1012;
  --device-frame-before-bg-1: #252C2E;
  --device-frame-before-bg-2: #3A4245;
  --device-frame-before-shadow-1: #2C3436;
  --device-island-bg: #060A0B;
  --device-home-bg: rgb(14 23 25 / 0.82);
  --device-home-bg-2: rgb(243 240 233 / 0.78);
}

/* ------------------------------------------------------------------ tokens */

:root {
  --paper:          #F3F0E9;
  --paper-deep:     #EAE6DC;
  --paper-raised:   #FAF8F3;
  --ink:            #0E1719;
  --ink-raised:     #162124;
  --ink-soft:       #3B4648;
  --ink-faint:      #5F6A6B;   /* 5:1 on the paper (was #6C7778, 4.06:1) */

  --on-ink:         #F3F0E9;
  --on-ink-soft:    rgb(243 240 233 / 0.74);
  --on-ink-faint:   rgb(243 240 233 / 0.52);
  --on-ink-hairline: rgb(243 240 233 / 0.2);

  --accent:         #B8395F;   /* focus rings and current markers: the raspberry (was the old teal) */
  --accent-deep:    #9E2F51;
  --accent-on-ink:  #F07A9C;   /* the same accent, legible on ink */

  /* The hint (coral pink, from niki.aroca's palettes): only on the moments -
     introductions, waiting requests, search matches, the main action. */
  --pop:            #C9416A;   /* Novit raspberry (Donald's mockup, 26 Nov) */
  --on-pop:         #FFF8F9;   /* white tinted toward the raspberry (Hallmark 7b) */
  --pop-text:       #B8395F;   /* the same pink for small text: 5:1 on paper */

  --hairline:        rgb(14 23 25 / 0.14);
  --hairline-strong: rgb(14 23 25 / 0.28);

  --radius:        2px;
  --radius-button: 3px;
  --radius-card:   10px;
  --shadow-panel:  0 30px 80px -20px rgb(14 23 25 / 0.28);

  --font-display: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;   /* 28 Nov: bold Geist, as on the landing page (was a display serif) */
  --display-weight: 720;
  --display-tracking: -0.04em;
  --font-body:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  /* Inside the phone: the platform font, as an iOS app would use. */
  --font-ui:      "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;   /* the app uses the brand face too */

  --tracking-hero: -0.022em;
  --tracking-head: -0.012em;

  --ease-out:    cubic-bezier(.33, 1, .68, 1);
  --ease-expo:   cubic-bezier(.19, 1, .22, 1);
  --ease-hover:  cubic-bezier(.32, .72, 0, 1);
  --ease-spring: linear(0, .0229, .0788, .1532, .2361, .3208, .403, .4802, .5509,
                 .6146, .6711, .7207, .7638, .801, .8329, .8601, .8832, .9027, .9191,
                 .9329, .9445, .9541, .9621, .9688, .9743, .9789, .9827, .9858, .9884,
                 .9905, .9922, .9936, .9948, .9958, .9965, .9972, .9977, .9981, .9985,
                 .9988, 1);

  --gutter: clamp(16px, 4vw, 64px);
  color-scheme: light;
}

/* Dark mode keeps two lighting states: ink, and a raised ink in place of paper. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:          #121B1D;
    --paper-deep:     #0F171A;
    --paper-raised:   #182326;
    --ink:            #0A1113;
    --ink-raised:     #142023;
    --ink-soft:       #C4CCCB;
    --ink-faint:      #8F9A9A;
    --hairline:        rgb(243 240 233 / 0.13);
    --hairline-strong: rgb(243 240 233 / 0.26);
    --accent:         #F07A9C;
    --accent-deep:    #F49AB4;
    --shadow-panel:   0 30px 80px -20px rgb(4 8 9 / 0.6);
    color-scheme: dark;
  }
}

/* -------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 380;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { color: var(--on-ink); }
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; border-radius: var(--radius-button);
  background: var(--ink); color: var(--on-ink); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Display type: bold Geist, tracked tight, as on the landing page. */
.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.08;
}

/* Novit: two linked rings (ink and raspberry), then the name. */
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}
.wordmark .mark { width: 31px; height: 20px; flex: none; }

.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* Hairline button with a small accent dot. Used outside the phone only. */
.btn-line {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid currentColor; border-radius: var(--radius-button);
  background: transparent; color: inherit;
  font-size: 15px; font-weight: 520; text-decoration: none;
  transition: background-color .55s var(--ease-hover), color .55s var(--ease-hover), border-color .55s var(--ease-hover);
}
.btn-line::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--pop);
}
.on-ink .btn-line::after { background: var(--pop); }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-ink .btn-line:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.btn-line:active { transform: scale(0.98); transition-duration: .1s; }

/* Bare text link with the sweeping underline. */
.link-sweep {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: inherit; font-size: 15px; font-weight: 460;
  background: none; border: 0; padding: 4px 0;
}
.link-sweep::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(1); transform-origin: 0 50%; opacity: .5;
  transition: transform .735s cubic-bezier(.625, .05, 0, 1);
}
@media (hover: hover) and (pointer: fine) {
  .link-sweep:hover::after { transform: scaleX(0); transform-origin: 100% 50%; }
}

/* ------------------------------------------------------------ phone frame */
/* An iPhone-sized device: 393 x 852 screen inside a 12px bezel.
   JS sets --s to scale it to the space available. */

.device {
  --s: 1;
  position: relative; flex: none;
  width: calc(417px * var(--s));
  height: calc(876px * var(--s));
}
.device-frame {
  position: absolute; top: 0; left: 0;
  width: 417px; height: 876px; padding: 12px;
  border-radius: 66px;
  transform: scale(var(--s)); transform-origin: 0 0;
  background: linear-gradient(150deg, var(--device-frame-bg-1) 0%, var(--device-frame-bg-2) 38%, var(--device-frame-bg-3) 70%, var(--device-frame-bg-4) 100%);
  box-shadow:
    inset 0 0 0 1.5px var(--device-frame-shadow-1),
    inset 0 0 0 5px var(--device-frame-shadow-2),
    var(--shadow-panel);
}
/* side buttons */
.device-frame::before, .device-frame::after {
  content: ""; position: absolute; width: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--device-frame-before-bg-1), var(--device-frame-before-bg-2));
}
.device-frame::before { left: -3px; top: 168px; height: 62px; box-shadow: 0 86px 0 var(--device-frame-before-shadow-1), 0 -56px 0 -1px var(--device-frame-before-shadow-1); }
.device-frame::after  { right: -3px; top: 222px; height: 98px; }

.device-screen {
  position: relative; width: 393px; height: 852px;
  border-radius: 54px; overflow: hidden; isolation: isolate;
  background: var(--ink);
}
.device-island {
  position: absolute; z-index: 90; top: 11px; left: 50%;
  width: 126px; height: 37px; margin-left: -63px;
  border-radius: 20px; background: var(--device-island-bg);
  pointer-events: none;
}
.device-home {
  position: absolute; z-index: 90; bottom: 8px; left: 50%;
  width: 139px; height: 5px; margin-left: -69.5px; border-radius: 3px;
  background: var(--device-home-bg);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .device-home { background: var(--device-home-bg-2); }
}
.device-screen iframe { display: block; width: 100%; height: 100%; border: 0; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
