/* [FLOT-AUTH-PROFILE-UPLOAD-IMPLEMENT-FROM-HANDOFF-001] Canonical
 * Flotry brand tokens. Single source of truth for color, type,
 * spacing, radius, and shadow.
 *
 * Source contract: docs/design/Flotry auth/FLOTRY_AUTH_PROFILE_DESIGN_CONTRACT.md
 *                  docs/design/Flotry auth/Flotry Product Brand Integration Spec.html (§9 Engineering Bridge)
 *
 * Font system (binding): exactly two families — Plus Jakarta Sans for
 * display/headings, Inter for body/UI. NO third family. The
 * deprecated families and color aliases are forbidden in the
 * runtime by tests/test_brand_legacy_purge.py.
 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  /* Surfaces */
  --flotry-cream: #FAF7F2;
  --flotry-cream-warm: #F3EEE5;
  --flotry-paper: #FFFFFF;

  /* Ink */
  --flotry-ink: #1A1F1E;
  --flotry-ink-soft: #4A5552;
  --flotry-ink-muted: #7A8581;

  /* Lines */
  --flotry-line: #E7E1D5;
  --flotry-line-strong: #CFC6B4;

  /* Brand */
  --flotry-coral: #E66A4A;
  --flotry-coral-soft: #FBE3D8;
  --flotry-coral-ink: #7A2F1F;

  /* Anchor (teal) */
  --flotry-anchor-teal: #0F8A7E;
  --flotry-teal: #0F8A7E;
  --flotry-teal-deep: #0B6B61;
  --flotry-teal-soft: #D6ECE9;
  --flotry-teal-ink: #073D37;

  /* Status */
  --flotry-success: #2F8A5E;
  --flotry-warning: #C98A1F;
  --flotry-danger: #B5453E;
  --flotry-info: #2E6789;

  /* Spacing scale (px) */
  --flotry-s-1: 4px;
  --flotry-s-2: 8px;
  --flotry-s-3: 12px;
  --flotry-s-4: 16px;
  --flotry-s-5: 20px;
  --flotry-s-6: 24px;
  --flotry-s-7: 32px;
  --flotry-s-8: 40px;
  --flotry-s-9: 48px;
  --flotry-s-10: 64px;

  /* Radius */
  --flotry-r-sm: 8px;
  --flotry-r-md: 12px;
  --flotry-r-lg: 16px;
  --flotry-r-xl: 20px;
  --flotry-r-pill: 999px;

  /* Shadow */
  --flotry-shadow-sm: 0 1px 2px rgba(26, 31, 30, 0.06);
  --flotry-shadow-md: 0 4px 12px rgba(26, 31, 30, 0.08);
  --flotry-shadow-lg: 0 12px 32px rgba(26, 31, 30, 0.10);

  /* Typography */
  --flotry-font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --flotry-font-body: "Inter", system-ui, -apple-system, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--flotry-cream);
  color: var(--flotry-ink);
  font-family: var(--flotry-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--flotry-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--flotry-ink);
}

a { color: var(--flotry-coral); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -------------------------------------------------- Component primitives */

.flotry-stack { display: flex; flex-direction: column; gap: var(--flotry-s-4); }

.flotry-card {
  background: var(--flotry-paper);
  border: 1px solid var(--flotry-line);
  border-radius: var(--flotry-r-md);
  padding: var(--flotry-s-4);
}

.flotry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--flotry-s-2);
  padding: 14px 20px;
  font-family: var(--flotry-font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--flotry-r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.flotry-btn--primary {
  background: var(--flotry-coral);
  color: var(--flotry-paper);
}
.flotry-btn--primary:hover { background: #d65f41; }
.flotry-btn--secondary {
  background: var(--flotry-paper);
  border-color: var(--flotry-line);
  color: var(--flotry-ink);
}
.flotry-btn--secondary:hover { border-color: var(--flotry-line-strong); }
.flotry-btn--full { width: 100%; }
.flotry-btn[disabled],
.flotry-btn[aria-disabled="true"] {
  background: var(--flotry-line);
  color: var(--flotry-ink-muted);
  cursor: not-allowed;
}

.flotry-input {
  width: 100%;
  background: var(--flotry-paper);
  border: 1px solid var(--flotry-line);
  border-radius: var(--flotry-r-md);
  padding: 12px 14px;
  font-family: var(--flotry-font-body);
  font-size: 15px;
  color: var(--flotry-ink);
  box-sizing: border-box;
}
.flotry-input:focus {
  outline: none;
  border-color: var(--flotry-coral);
}

.flotry-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--flotry-r-pill);
  background: var(--flotry-line);
  color: var(--flotry-ink-soft);
}

.flotry-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flotry-ink-muted);
}

/* -------------------------------------------------- Page container */

.flotry-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.flotry-page__main {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: var(--flotry-s-6) var(--flotry-s-4);
  flex: 1;
}

.flotry-page__footer {
  text-align: center;
  font-size: 12.5px;
  color: var(--flotry-ink-muted);
  padding: var(--flotry-s-6) var(--flotry-s-4);
}
