/* The gate's one screen, in the product's own look. The token block below is web/app/globals.css's, copied whole
   (test/gate_page.test.ts compares the two, so the look cannot drift). Nothing here is loaded from anywhere else. */
@font-face { font-family: "Sofia"; src: url("/sofia.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "SofiaX"; src: url("/sofia-xcond.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
:root {
  --bg: #f7f5f1; --rail: #f0ede7; --card: #ffffff; --hover: #ebe7e0; --sel: #e4dfd6;
  --s1: #ebe7e0; --s2: #ffffff; --s3: #ffffff; --s4: #e4dfd6; --hi: rgba(255, 255, 255, 0);
  --line: #e2ddd4; --edge: #837d72; --uline: #b9b3a8;
  --ink: #24222b; --ink2: #4c4956; --dim: #625e6a; --on: #f7f5f1; --warm: #24222b;
  --acc: #a2367c; --acc-soft: rgba(162, 54, 124, .08); --needs: #a2367c;
  --light: none;
  --shadow: 0 1px 2px rgba(36, 34, 43, .05), 0 8px 28px rgba(36, 34, 43, .07);
  --float: 0 1px 2px rgba(36, 34, 43, .06), 0 14px 40px rgba(36, 34, 43, .12);
  --scrim: rgba(36, 34, 43, .28);

  /* Type: Sofia only, sentence case. Body 17 at 1.65; secondary 15; nothing below 14. Bold for names and figures. */
  --t-hero: 500 40px/1.15 "Sofia", sans-serif;
  --t-h1: 600 28px/1.25 "Sofia", sans-serif;
  --t-fig: 500 30px/1.1 "Sofia", sans-serif;
  --t-fig-l: 500 40px/1.05 "Sofia", sans-serif;
  --t-fig-s: 500 22px/1.2 "Sofia", sans-serif;
  --t-h2: 600 17px/1.4 "Sofia", sans-serif;
  --t-lead: 500 22px/1.4 "Sofia", sans-serif;
  --t-lead-s: 500 19px/1.45 "Sofia", sans-serif;
  --t-row: 600 17px/1.45 "Sofia", sans-serif;
  --t-body: 400 17px/1.65 "Sofia", sans-serif;
  --t-sub: 400 15px/1.5 "Sofia", sans-serif;
  --t-meta: 400 14px/1.45 "Sofia", sans-serif;
  --caps: 0;

  --r-field: 10px; --r-stage: 16px;

  --spring: linear(0, .006, .025 2.8%, .101 6.1%, .539 18.9%, .721 25.3%, .849 31.5%, .937 38.1%, .968 41.8%, .991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
  --t-press: 80ms; --t-fast: 120ms; --t-draw: 160ms; --t-move: 280ms; --t-open: 260ms; --t-close: 200ms; --t-leave: 240ms; --t-settle: 420ms;
  --t-fly: 220ms; --t-now: 600ms;
  --top: 60px; --tabs: 0px; --kb: 0px; --z: 1; --pad: 40px; --side: 0px;
}
/* The app's soft dark theme, as globals.css has it: when Markingo OS opens this window from its dark theme (#<id>~os~dark). */
:root[data-theme="dark"] {
  --bg: #1f1e23; --rail: #19181d; --card: #28272e; --hover: #2e2d34; --sel: #37363e;
  --s1: #2e2d34; --s2: #28272e; --s3: #2b2a31; --s4: #37363e; --hi: rgba(255, 255, 255, .04);
  --line: #33323a; --edge: #7c7884; --uline: #5d5a66;
  --ink: #ece9e4; --ink2: #c4c0cb; --dim: #a9a5b3; --on: #1f1e23; --warm: #ece9e4;
  --acc: #e8a3d4; --acc-soft: rgba(232, 163, 212, .1); --needs: #e8a3d4;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --float: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 44px rgba(0, 0, 0, .45);
  --scrim: rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--bg); }
body { margin: 0; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); color: var(--ink); font: var(--t-body);
  font-variant-numeric: tabular-nums lining-nums; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain; }
p, h1, h2, dl, dd, ul, pre { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* the bar: what this is, where you are in the stack, who you are */
.bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: env(safe-area-inset-top) 16px 0; background: var(--s1); }
.brand { font: var(--t-h2); letter-spacing: var(--caps); }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--needs); }
.count { margin-left: auto; color: var(--ink2); font: var(--t-meta); }
.who { color: var(--dim); font: var(--t-meta); }
.bar button { min-width: 44px; padding: 0; border-color: transparent; color: var(--ink2); font-size: 22px; }

/* things to press: the app's own */
button, a.btn { font: 600 15px/1 "Sofia", sans-serif; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--edge); background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; user-select: none; text-decoration: none; transition: transform var(--t-press), border-color var(--t-fast), filter var(--t-fast); }
button:hover, a.btn:hover { border-color: var(--ink); }
button:active, a.btn:active { transform: scale(.97); }
button.yes, a.btn.yes { flex: 1 1 auto; border-color: var(--ink); background: var(--ink); color: var(--on); font-weight: 600; }
button:disabled { opacity: .5; cursor: default; }
:where(button, a):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* the stage: one item between the brackets */
main { width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 16px 24px; }
.card { position: relative; padding: 30px 22px 28px; border-radius: var(--r-stage); background: var(--light), var(--s2); }
.card::before, .card::after { content: ""; position: absolute; width: 44px; height: 44px; border: 5px solid var(--ink); pointer-events: none; }
.card::before { left: -5px; top: -5px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.card::after { right: -5px; bottom: -5px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.card h1 { margin-bottom: 18px; font: var(--t-fig-s); overflow-wrap: anywhere; }
.card dl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.card dt { color: var(--dim); font: var(--t-meta); line-height: 22px; }
.card dd { font: var(--t-body); overflow-wrap: anywhere; }
.card dd.addr { font-weight: 600; color: var(--ink); }
.body { padding: 18px 0 4px; font: var(--t-row); font-weight: 400; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.files, .checks { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.files li { display: grid; gap: 2px; }
.files b { font: var(--t-row); overflow-wrap: anywhere; }
.files span, .says { color: var(--ink2); font: var(--t-meta); overflow-wrap: anywhere; }
.checks li { position: relative; padding-left: 18px; color: var(--ink2); font: var(--t-body); overflow-wrap: anywhere; }
.checks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--edge); }
.checks li.no, .warn { color: var(--warm); }
.checks li.no::before { background: var(--needs); }
.says { margin-top: 16px; }
.warn { margin: 0 0 14px; font: var(--t-body); }
/* An ask from a desk, and a desk waiting for its phone: the one accent, as everything that waits for a person. */
.asked { position: relative; margin: 0 0 16px; padding-left: 18px; font: var(--t-body); color: var(--ink); }
.asked::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--needs); }
.note { padding: 56px 6px; display: grid; gap: 14px; justify-items: start; }
.note h1 { font: var(--t-h1); text-wrap: balance; }
.note p { color: var(--ink2); max-width: 46ch; }
.rec { display: grid; gap: 10px; margin-top: 8px; }
.rec li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: var(--t-meta); color: var(--ink2); overflow-wrap: anywhere; }
.rec b { color: var(--ink); font: var(--t-row); }
.skel { height: 300px; border-radius: var(--r-stage); background: var(--s2); }

/* the answers: fixed above the safe area, the one accent at the thumb */
.foot { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 8px; width: 100%; max-width: 760px; margin: 0 auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); }
.foot:empty { display: none; }
.foot button, .foot a.btn { min-height: 56px; }
.foot .why { align-self: center; color: var(--ink2); font: var(--t-meta); }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 4; display: none; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 728px; margin: 0 auto; padding: 10px 10px 10px 18px; border-radius: 14px; background: var(--s4); box-shadow: var(--float); font: var(--t-body); }
.toast[data-on] { display: flex; }
.toast button { min-height: 44px; border-color: var(--edge); }
@media (min-width: 700px) { .card { padding: 44px 48px 40px; } .card dl { grid-template-columns: 110px minmax(0, 1fr); } main { padding-top: 40px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
