/* foilapp.co — the platform home for FOIL.
   Tokens are FOIL's own, read out of ~/foil/app/globals.css on 4 Oct 2026.
   Dark values are the app's dark theme; light values are the app's light
   theme. Nothing here is invented and nothing here is a brand's color. */

:root {
  --surround: #131416;
  --panel:    #1b1d1f;
  --rule:     #2e3235;
  --rule-soft:#24272a;
  --ink:      #e9e5dd;
  --ink-dim:  #a8aeb2;
  --ink-faint:#7f8489;
  --you:      #bb7b4f;
  --you-lift: #d98a4e;
  --veil-ground: #111316;
  --veil-teal:   #56b8a4;
  --veil-clay:   #bb7b4f;
  --radius: 14px;
  --radius-sm: 8px;
  color-scheme: dark;
}

/* The legal pages read as documents, so they sit on FOIL's LIGHT theme —
   the same tokens the app ships, not a new palette. */
:root[data-ground="paper"] {
  --surround: #f3f1ec;
  --panel:    #fbfaf7;
  --rule:     #d8d4cc;
  --rule-soft:#e6e2da;
  --ink:      #1c1d1f;
  --ink-dim:  #4d5256;
  --ink-faint:#666b70;
  --you:      #98603a;
  --you-lift: #a55f2e;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surround);
  color: var(--ink);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--you-lift); text-decoration: none; }
a:hover { text-decoration: underline; }
:root[data-ground="paper"] a { color: var(--you); }

:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 3px rgba(187, 123, 79, .16);
  outline: 1px solid var(--you);
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ── The door: one screen, no scroll ──────────────────────────────── */

.door {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  position: relative;
  isolation: isolate;
  background: var(--veil-ground);
}

/* The sign-in veil, decorative only: teal and clay over #111316. */
.door::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 22% 18%, color-mix(in srgb, var(--veil-teal) 16%, transparent) 0%, transparent 68%),
    radial-gradient(56% 50% at 84% 86%, color-mix(in srgb, var(--veil-clay) 18%, transparent) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 50%, color-mix(in srgb, var(--veil-ground) 60%, transparent) 0%, var(--veil-ground) 82%);
}

.card {
  width: 100%;
  max-width: 520px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 34px 32px 26px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .34);
  backdrop-filter: blur(14px);
}

.mark {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--you);
  margin: 0 0 20px;
}

h1 {
  font-size: 25px;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.card p {
  margin: 0 0 14px;
  color: var(--ink-dim);
  font-size: 14.5px;
}

.card p.lead { color: var(--ink); }

.card .quiet {
  color: var(--ink-faint);
  font-size: 12.5px;
  margin: 0;
}

.foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  min-height: 46px;
}

.foot a, .foot span {
  font-size: 12.5px;
  color: var(--ink-faint);
}
.foot a { color: var(--ink-dim); }

/* ── The documents ─────────────────────────────────────────────────── */

.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 72px; }

.doc .back {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--you);
  margin-bottom: 28px;
}

.doc h1 { font-size: 26px; margin-bottom: 6px; }

.doc .stamp {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 38px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}

.doc h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 22px 0 6px;
  color: var(--ink);
}

.doc p, .doc li { color: var(--ink-dim); font-size: 15px; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--ink); font-weight: 600; }

.doc .panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 14px;
}
.doc .panel p:last-child { margin-bottom: 0; }

.doc .addr {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-dim);
}
.doc th { color: var(--ink); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; }
.doc .wrapper { overflow-x: auto; margin: 0 0 16px; }

.doc footer {
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (max-width: 420px) {
  .card { padding: 26px 20px 20px; }
  h1 { font-size: 20px; }
  .doc { padding: 28px 16px 56px; }
  .doc h1 { font-size: 20px; }
}
