/* Fliqit — the app's paper, in a browser.
   Same stock, same ink, same face. Deliberately plain: no motion, no
   decoration, nothing that has to be explained. */

:root {
  /* Straight from ios/Fliqit/PaperKit.swift, light scheme. */
  --desk:      #efe9dd;
  --sheet:     #faf7f1;
  --ink:       #161411;
  --ink-soft:  #5a544b;
  --ink-faint: #736d63;
  --rule:      rgba(22, 20, 17, 0.16);
  --grid:      rgba(22, 20, 17, 0.13);
  --plum:      #74476a;
  --slate:     #2d6569;
  --mint:      #19aa7a;

  --display: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk:      #121110;
    --sheet:     #21201d;
    --ink:       #f2efe8;
    --ink-soft:  #b3afa7;
    --ink-faint: #827e76;
    --rule:      rgba(242, 239, 232, 0.16);
    --grid:      rgba(242, 239, 232, 0.10);
    --plum:      #c89aba;
    --slate:     #7fb4b5;
    --mint:      #3cca96;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  /* The desk, dotted, exactly as the app draws it. */
  background-color: var(--desk);
  background-image: radial-gradient(var(--grid) 1px, transparent 1px);
  background-size: 13px 13px;
  -webkit-font-smoothing: antialiased;
}

.shell { width: min(680px, calc(100% - 40px)); margin: 0 auto; }

/* Running head */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.nav-links { display: flex; gap: 18px; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 40px 0 56px; }
h1 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 9vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h1 .accent { color: var(--plum); }
.lede {
  margin: 0;
  max-width: 34em;
  font-size: 17px;
  color: var(--ink-soft);
}

/* Steps: three lines, no icons, no arrows */
.steps {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.steps .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-faint);
  min-width: 20px;
}
.note {
  margin: 26px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* Documents */
.doc { padding: 8px 0 56px; }
.doc h1 { font-size: clamp(30px, 6vw, 40px); margin-bottom: 8px; }
.updated { margin: 0 0 30px; font-size: 14px; color: var(--ink-faint); }
.doc h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 34px 0 8px;
}
.doc h3 { font-size: 16px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
.doc strong { color: var(--ink); font-weight: 600; }

/* The one sheet on the desk: used sparingly, for a single callout. */
.card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 17px;
  padding: 18px 20px;
  margin: 0 0 20px;
}
.card p:last-child { margin-bottom: 0; }

.contact {
  display: inline-block;
  margin-top: 6px;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--desk);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 20px 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
}
