/* ============================================================
   Flowprint — Design System
   Warm cream + coral ("Claude-ish") theme.
   Poppins (display) / Lora (editorial body) / JetBrains Mono (code)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* --- surfaces --- */
  --bg:        #faf9f5;   /* warm cream page bg */
  --bg-2:      #f3f1ea;   /* recessed / alt section */
  --surface:   #ffffff;   /* cards */
  --surface-2: #f7f5ef;   /* subtle raised */
  --ink:       #141413;   /* near-black text */
  --ink-2:     #46443e;   /* secondary text */
  --ink-3:     #87847a;   /* muted / captions */
  --line:      #e7e3d9;   /* hairline borders */
  --line-2:    #d8d3c6;   /* stronger border */

  /* --- brand --- */
  --coral:      #d97757;  /* primary accent */
  --coral-deep: #c25e3f;  /* hover / pressed */
  --coral-soft: #f6e7df;  /* tint bg */
  --blue:       #6a9bcc;
  --blue-soft:  #e6eef6;
  --green:      #788c5d;
  --green-soft: #e9eee0;
  --amber:      #cf9a3c;
  --amber-soft: #f7ecd6;

  /* --- node type colors (flowchart) --- */
  --node-terminal-bg: #141413;
  --node-terminal-fg: #faf9f5;
  --node-process-bg:  #ffffff;
  --node-process-bd:  #cfc9ba;
  --node-decision-bg: #faedd3;
  --node-decision-bd: #cf9a3c;
  --node-io-bg:       #e9eee0;
  --node-io-bd:       #788c5d;
  --node-sub-bg:      #e6eef6;
  --node-sub-bd:      #6a9bcc;
  --node-sel:         #d97757;

  /* --- type --- */
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Poppins', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* --- radii / shadow --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(20,20,19,.05), 0 1px 1px rgba(20,20,19,.04);
  --shadow-md: 0 4px 16px rgba(20,20,19,.07), 0 1px 3px rgba(20,20,19,.05);
  --shadow-lg: 0 18px 50px -12px rgba(20,20,19,.18), 0 6px 18px rgba(20,20,19,.07);
  --shadow-coral: 0 10px 30px -8px rgba(217,119,87,.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.ui  { font-family: var(--font-ui); }
.mono { font-family: var(--font-mono); }

a { color: inherit; text-decoration: none; }

::selection { background: var(--coral-soft); color: var(--coral-deep); }

/* thin warm scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------------- layout helpers ---------------- */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-sm { max-width: 920px; }
.eyebrow {
  font-family: var(--font-ui); font-weight: 600; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep);
}
.muted { color: var(--ink-3); }
.serif-lead { font-family: var(--font-body); font-size: 20px; line-height: 1.6; color: var(--ink-2); }

/* ---------------- buttons ---------------- */
.btn {
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 99px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-coral); }
.btn-primary:hover { background: var(--coral-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #2c2a26; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 30px; font-size: 16.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- pills / badges ---------------- */
.pill {
  font-family: var(--font-ui); font-weight: 600; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2);
}
.pill-coral { background: var(--coral-soft); border-color: transparent; color: var(--coral-deep); }
.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--coral); display: inline-block; }

/* ---------------- cards ---------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------------- site header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,245,.78); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-family: var(--font-ui); font-weight: 500; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.header-spacer { flex: 1; }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* ---------------- brand logo ---------------- */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); flex: none; position: relative;
}
.logo .mark svg { width: 20px; height: 20px; display: block; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 90px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-col h5 { font-family: var(--font-ui); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; font-weight: 600; }
.foot-col a { display: block; font-family: var(--font-ui); font-size: 14.5px; color: var(--ink-2); padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--coral-deep); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--font-ui); font-size: 13px; color: var(--ink-3); }

/* ---------------- inputs ---------------- */
.field { display: block; margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-ui); font-weight: 500; font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; }
.input {
  width: 100%; font-family: var(--font-ui); font-size: 15px; color: var(--ink);
  padding: 13px 15px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }

/* ---------------- misc ---------------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kbd { font-family: var(--font-mono); font-size: 12px; background: var(--surface); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--ink-2); }

/* entrance animation — DEFAULT IS VISIBLE; .in merely plays a rise-in.
   This guarantees content is never stuck hidden if JS/observers misbehave. */
.fade-up.in { animation: fpRise .7s cubic-bezier(.2,.7,.3,1) both; }
@keyframes fpRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-up.in { animation: none; } }

@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
