/* Flipora website — shared styles for the landing page and the user manual. */

:root {
  --ink: #14151f;
  --ink-2: #393d4f;
  --muted: #6a6f82;
  --line: #e7e8ef;
  --line-2: #d9dbe5;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --bg-tint: #f1effe;
  --accent: #6d5efc;
  --accent-ink: #4c3ee0;
  --accent-soft: #efedff;
  --pink: #ec5b93;
  --good: #12a150;
  --good-soft: #e5f6ec;
  --warn: #9a6a00;
  --warn-soft: #fff6dc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 21, 31, .05), 0 2px 8px rgba(20, 21, 31, .04);
  --shadow: 0 2px 4px rgba(20, 21, 31, .04), 0 12px 32px rgba(20, 21, 31, .08);
  --shadow-lg: 0 30px 80px -20px rgba(55, 40, 160, .28), 0 12px 30px rgba(20, 21, 31, .08);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; box-shadow: 0 12px 28px -6px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font: 600 13px/1 var(--font);
}
.chip b { background: var(--accent); color: #fff; padding: 4px 8px; border-radius: 999px; font-size: 11px; letter-spacing: .02em; }
.eyebrow { display: inline-block; font: 700 12.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, #fff 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 20px/1 var(--font-display); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand small { font: 600 12px/1 var(--font); color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); font: 500 14.5px/1 var(--font); padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-ink); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover, .nav .btn:focus-visible { background: var(--accent-ink); color: #fff; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 12px 0 0; border-bottom: 0; border-radius: 999px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1.2fr 1fr; gap: 32px; }
.footer-grid > div { min-width: 0; }
.footer-grid a { overflow-wrap: anywhere; }
@media (max-width: 1040px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-grid > div:first-child { grid-column: 1 / -1; } }
.footer-grid h4 { font: 700 13px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink-2); }
.footer-grid p { color: var(--muted); max-width: 320px; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- shared content bits ---------- */
.frame {
  border-radius: 14px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f3f3f8; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dae3; }
.frame-bar i:nth-child(1) { background: #ff6b6b; } .frame-bar i:nth-child(2) { background: #ffc145; } .frame-bar i:nth-child(3) { background: #3ccf73; }
.frame-bar span { margin-left: 10px; font: 500 12px/1 var(--font); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink-2); font-size: 15px; margin: 18px 0; }
.callout::before { content: "i"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 13px/22px var(--font); text-align: center; }
.callout--tip { background: var(--good-soft); } .callout--tip::before { content: "✓"; background: var(--good); }
.callout--warn { background: var(--warn-soft); } .callout--warn::before { content: "!"; background: #d99a00; }
.callout p:last-child { margin: 0; }
kbd { display: inline-block; min-width: 24px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: #fff; color: var(--ink); text-align: center; font-size: 12.5px; line-height: 1.5; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
