/* Flippique website: shared styles for every page. */
:root {
  --bg: #101014;
  --alt: #17171d;
  --card: #1e1e27;
  --card-hover: #272733;
  --border: #343442;
  --accent: #7167ff;
  --accent-hover: #837aff;
  --violet: #9a7cff;
  --text: #f4f4f7;
  --text-2: #9b9baa;
  --text-3: #6f6f7d;
  --radius: 14px;
  --max: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 650; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.lede { color: var(--text-2); font-size: clamp(16px, 1.6vw, 18px); max-width: 56ch; }
.eyebrow { color: var(--violet); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
section { padding: clamp(72px, 10vw, 120px) 0; }
.alt { background: var(--alt); }
.head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 48px; }
.head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .17s, border-color .17s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--card); border-color: var(--border); }
.btn--secondary:hover { background: var(--card-hover); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(16, 16, 20, .82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(52, 52, 66, .6); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) { color: var(--text-2); font-size: 15px; text-decoration: none; transition: color .17s; }
.nav__links a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) { .nav__links a:not(.btn) { display: none; } }

/* Hero */
.hero { padding-top: clamp(64px, 9vw, 110px); text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; letter-spacing: -.035em; max-width: 14ch; margin: 18px auto 0; }
.hero .lede { margin: 22px auto 0; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 16px; color: var(--text-3); font-size: 14px; }
.shot {
  position: relative; margin-top: clamp(48px, 7vw, 80px);
}
.shot::before {
  content: ""; position: absolute; inset: -12% -8% auto; height: 80%; z-index: -1;
  background: radial-gradient(closest-side, rgba(113, 103, 255, .28), transparent);
  filter: blur(20px);
}
.shot img { border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 30px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.step__num {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 22px;
  border-radius: 10px; background: rgba(113, 103, 255, .14); color: var(--violet); font-weight: 700;
}
.step p { margin-top: 8px; color: var(--text-2); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: background .17s; }
.feature:hover { background: var(--card-hover); }
.feature svg { width: 24px; height: 24px; margin-bottom: 18px; fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature p { margin-top: 6px; color: var(--text-2); font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Split sections */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--flip { grid-template-columns: 7fr 5fr; }
.split--flip .split__text { order: 2; }
.split__text { display: grid; gap: 16px; }
.split__img img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; color: var(--text-2); }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(113, 103, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a7cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 860px) { .split, .split--flip { grid-template-columns: 1fr; } .split--flip .split__text { order: 0; } }

/* PDF band */
.pdf { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 5vw, 56px); border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(135deg, rgba(113, 103, 255, .10), transparent 60%), var(--card); }
.pdf__text { display: grid; gap: 12px; max-width: 560px; }
.pdf__icon { flex: none; display: grid; place-items: center; width: 120px; height: 150px; border-radius: 14px; border: 1px solid var(--border); background: var(--alt); color: var(--violet); font-weight: 700; letter-spacing: .06em; }
@media (max-width: 700px) { .pdf { flex-direction: column; align-items: flex-start; } }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { position: relative; aspect-ratio: 4 / 5; display: flex; align-items: flex-end; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; font-weight: 600; }
.use::before { content: ""; position: absolute; inset: 0; background: var(--g); opacity: .9; transition: transform .4s ease; }
/* A small page: picture block, then a heading and text lines. */
.use::after {
  content: ""; position: absolute; top: 16%; left: 24%; right: 24%; bottom: 32%;
  border-radius: 5px;
  background:
    linear-gradient(var(--g2, rgba(0, 0, 0, .18)), var(--g2, rgba(0, 0, 0, .18))) 12% 12% / 76% 46% no-repeat,
    linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)) 12% 70% / 50% 5% no-repeat,
    linear-gradient(rgba(0, 0, 0, .14), rgba(0, 0, 0, .14)) 12% 80% / 76% 3% no-repeat,
    linear-gradient(rgba(0, 0, 0, .14), rgba(0, 0, 0, .14)) 12% 87% / 60% 3% no-repeat,
    #f6f3ee;
  box-shadow: 9px 10px 0 -3px rgba(255, 255, 255, .28), 0 12px 30px rgba(0, 0, 0, .35);
  transform: rotate(-3deg); transition: transform .4s ease;
}
.use:hover::after { transform: rotate(-1deg) translateY(-4px); }
.use span { position: relative; z-index: 1; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
@media (max-width: 900px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .use::after, .use::before { transition: none; } html { scroll-behavior: auto; } }

/* Ease */
.ease { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); }
.ease > div { padding: 28px; background: var(--bg); }
.ease strong { display: block; margin-bottom: 6px; font-size: 17px; }
.ease p { color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .ease { grid-template-columns: 1fr; } }

/* Download */
.download { text-align: center; }
.download .lede { margin: 16px auto 0; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.trial { display: inline-grid; gap: 4px; margin-top: 28px; padding: 16px 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text-2); font-size: 14px; text-align: left; }
.trial strong { color: var(--text); }
.tagline { margin-top: 36px; color: var(--text-3); font-style: italic; }

/* Footer */
footer { padding: 48px 0 56px; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.foot__brand img { height: 26px; width: auto; }
.foot__brand p { margin-top: 10px; color: var(--text-2); font-size: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot__links a { color: var(--text-2); font-size: 14px; text-decoration: none; }
.foot__links a:hover { color: var(--text); }
.foot__legal { width: 100%; color: var(--text-3); font-size: 13px; }

/* Back to top: appears once the reader has scrolled a screen or so. */
.to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(30, 30, 39, .92);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s, transform .2s, background .17s, border-color .17s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--card-hover); border-color: #40404f; }
.to-top:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Legal pages */
.legal { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.legal .wrap { max-width: 760px; }
.legal__head { display: grid; gap: 12px; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.legal__head h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 700; letter-spacing: -.03em; }
.legal__meta { color: var(--text-3); font-size: 14px; }
.legal__summary { margin-bottom: 40px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.legal__summary h2 { font-size: 17px; margin-bottom: 10px; }
.legal__summary ul { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; }
.prose { display: grid; gap: 16px; color: var(--text-2); }
.prose h2 { margin-top: 24px; color: var(--text); font-size: 22px; letter-spacing: -.015em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 8px; color: var(--text); font-size: 17px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-hover); }
.prose a:hover { color: var(--violet); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.toc a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--text); border-color: #40404f; }
/* Details only the owner can supply; visible on purpose until filled in. */
.todo { padding: 1px 6px; border-radius: 4px; background: rgba(242, 184, 75, .14); color: #f2b84b; font-style: normal; }
main:focus { outline: none; }
.foot__links a[aria-current="page"] { color: var(--text); }

/* Install hint under the download buttons (unsigned-app SmartScreen message). */
.install-note { max-width: 52ch; margin: 16px auto 0; color: var(--text-3); font-size: 13.5px; }
.install-note strong { color: var(--text-2); font-weight: 600; }
