:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --surface: #141416;
  --surface-raised: #1c1c1e;
  --line: #2c2c2e;
  --line-bright: #3a3a3c;
  --text: #f5f5f7;
  --muted: #98989d;
  --subtle: #636366;
  --blue: #0a84ff;
  --blue-hover: #2997ff;
  --green: #30d158;
  --yellow: #ffd60a;
  --red: #ff453a;
  --radius: 18px;
  --wide: min(1160px, calc(100% - 48px));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
html.page-enter body { opacity: 0; transform: translateY(8px); }
html.page-ready body, html.page-leaving body { transition: opacity 180ms ease, transform 180ms ease; }
html.page-ready body { opacity: 1; transform: translateY(0); }
html.page-leaving body { opacity: 0; transform: translateY(-5px); pointer-events: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-shell { width: var(--wide); margin: 0 auto; }
.site-nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(44,44,46,.78); background: rgba(13,13,15,.76); backdrop-filter: blur(22px) saturate(145%); }
.site-nav-inner {
  display: grid;
  width: var(--wide);
  min-height: 64px;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  padding: 0;
}
.site-brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; font-size: 20px; font-weight: 620; letter-spacing: -.045em; }
.site-brand img { width: 29px; height: 29px; border-radius: 8px; }
.site-nav-links, .site-nav-actions { display: flex; align-items: center; gap: 26px; }
.site-nav-links { justify-self: center; }
.site-nav-actions { justify-self: end; }
.mobile-menu-toggle, .site-mobile-menu { display: none; }
.site-nav-links a, .text-link { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 160ms ease; }
.site-nav-links a:hover, .text-link:hover { color: var(--text); }
.site-nav .button { min-height: 44px; padding: 10px 15px; border-radius: 9px; box-shadow: none; font-size: 14px; font-weight: 570; letter-spacing: normal; transform: none; }
.site-nav .button:hover { transform: none; box-shadow: none; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 10px 15px; cursor: pointer; font-size: 14px; font-weight: 570; transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease; }
.button:active { transform: scale(.98); }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: var(--blue-hover); }
.button.secondary { border-color: var(--line-bright); background: transparent; color: var(--text); }
.button.secondary:hover { background: var(--surface-raised); }
.button[disabled] { cursor: not-allowed; opacity: .52; }
.site-main { padding: 72px 0 110px; }
.page-hero { max-width: 750px; margin: 0 auto 58px; text-align: center; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.page-title { margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.07em; }
.page-lede { max-width: 620px; margin: 20px auto 0; color: var(--muted); font-size: 19px; line-height: 1.5; letter-spacing: -.02em; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form-layout { display: grid; max-width: 810px; margin: 0 auto; grid-template-columns: 1fr 1fr; overflow: hidden; }
.form-intro { display: flex; min-height: 470px; flex-direction: column; justify-content: end; padding: 36px; border-right: 1px solid var(--line); background: linear-gradient(155deg, #1a2238, #141416 62%); }
.form-intro h2 { max-width: 310px; margin: 0; font-size: 35px; line-height: 1.02; letter-spacing: -.06em; }
.form-intro p { margin: 15px 0 0; color: var(--muted); line-height: 1.5; }
.auth-form, .contact-form { padding: 34px; }
.form-switch { display: flex; gap: 18px; margin: 0 0 30px; border-bottom: 1px solid var(--line); }
.form-switch button { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 0 0 12px; color: var(--muted); background: transparent; cursor: pointer; font-size: 14px; font-weight: 560; }
.form-switch button.active { border-color: var(--blue); color: var(--text); }
.field { display: grid; gap: 7px; margin: 0 0 17px; color: #d1d1d6; font-size: 13px; font-weight: 510; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-bright); border-radius: 8px; padding: 11px 12px; outline: none; color: var(--text); background: var(--surface-raised); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,132,255,.2); }
.form-note, .form-message { min-height: 20px; margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.forgot-password { width: fit-content; margin: -5px 0 18px; padding: 0; border: 0; color: var(--blue-hover); background: transparent; cursor: pointer; font-size: 13px; }
.forgot-password:hover { color: var(--text); }
.form-message.error { color: #ff9f9f; }
.form-message.good { color: var(--green); }
.form-submit { width: 100%; margin-top: 4px; }
.account-card { max-width: 680px; margin: 0 auto; padding: 36px; }
.account-card h2 { margin: 0; font-size: 30px; letter-spacing: -.05em; }
.account-card > p { margin: 10px 0 26px; color: var(--muted); line-height: 1.5; }
.account-details { display: grid; gap: 1px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-details div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; }
.account-details strong { font-size: 14px; font-weight: 540; }
.account-details span { color: var(--muted); font-size: 14px; text-align: right; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.account-sign-out { margin-left: auto; color: #ff9f9f; }
.account-sign-out:hover { border-color: rgba(255,69,58,.55); color: #ffb4ae; }
.account-card[data-signed-in="true"] { margin-top: 24px; }
.legal-page { max-width: 780px; margin: 0 auto; }
.legal-page .page-hero { margin-bottom: 46px; text-align: left; }
.legal-page .page-lede { margin-left: 0; }
.legal-card { padding: clamp(25px, 5vw, 48px); }
.legal-card h2 { margin: 38px 0 10px; font-size: 24px; letter-spacing: -.04em; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { margin: 25px 0 8px; font-size: 17px; letter-spacing: -.025em; }
.legal-card p, .legal-card li { color: var(--muted); font-size: 15px; line-height: 1.6; }
.legal-card p { margin: 0 0 16px; }
.legal-card ul { margin: 0 0 16px; padding-left: 21px; }
.legal-card a { color: var(--blue-hover); text-decoration: underline; text-underline-offset: 3px; }
.legal-notice { margin: 0 0 28px !important; padding: 14px 16px; border: 1px solid rgba(255,214,10,.35); border-radius: 11px; color: #e9dc9a !important; background: rgba(255,214,10,.08); }
.founder-card { display: grid; max-width: 910px; margin: 0 auto; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.founder-image { display: block; width: 100%; min-height: 470px; object-fit: cover; background: var(--surface-raised); }
.founder-copy { display: flex; flex-direction: column; justify-content: end; padding: 42px; }
.founder-copy h2 { margin: 0; font-size: clamp(36px, 4vw, 55px); line-height: 1; letter-spacing: -.065em; }
.founder-role { margin: 28px 0 26px; color: var(--blue-hover); font-size: 15px; }
.founder-copy p { max-width: 420px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.founder-copy .button { width: fit-content; margin-top: 30px; }
.contact-layout { display: grid; max-width: 810px; margin: 0 auto; grid-template-columns: .72fr 1.28fr; overflow: hidden; }
.contact-aside { display: flex; flex-direction: column; justify-content: end; min-height: 445px; padding: 35px; border-right: 1px solid var(--line); background: linear-gradient(155deg, #17253d, #141416 60%); }
.contact-aside h2 { margin: 0; font-size: 36px; line-height: 1.03; letter-spacing: -.06em; }
.contact-aside p { margin: 15px 0 0; color: var(--muted); line-height: 1.5; }
.success-card { max-width: 720px; margin: 0 auto; padding: clamp(30px, 7vw, 68px); text-align: center; }
.success-mark { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 24px; border-radius: 50%; color: #061b0e; background: var(--green); font-size: 23px; font-weight: 700; }
.success-card h1 { margin: 0; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -.065em; }
.success-card p { max-width: 490px; margin: 16px auto 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; margin: 35px auto 0; }
.download-card { display: grid; min-height: 140px; align-content: space-between; padding: 20px; text-align: left; }
.download-card span { color: var(--muted); font-size: 13px; }
.download-card strong { font-size: 21px; letter-spacing: -.04em; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; min-height: 104px; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer small { max-width: 550px; color: var(--subtle); font-size: 11px; line-height: 1.45; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 16px; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  :root { --wide: min(100% - 32px, 560px); }
  .site-nav-inner { display: flex; min-height: 62px; padding: 0; }
  .site-nav-links { display: none; }
  .site-nav-actions { margin-left: auto; }
  .site-nav-actions .text-link, .site-nav-actions .button { display: none; }
  .mobile-menu-toggle { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line-bright); border-radius: 8px; padding: 8px 12px; color: var(--text); background: var(--surface); font-size: 13px; font-weight: 600; }
  .site-mobile-menu { position: absolute; top: calc(100% + 10px); right: 16px; left: 16px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line-bright); border-radius: 14px; background: rgba(20,20,22,.98); box-shadow: 0 18px 48px rgba(0,0,0,.34); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
  .site-mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-mobile-menu a { border-radius: 8px; padding: 12px; color: var(--text); font-size: 15px; font-weight: 540; }
  .site-mobile-menu a:hover { background: var(--surface-raised); }
  .site-mobile-menu .button { display: inline-flex; width: 100%; margin-top: 6px; }
  .site-main { padding: 54px 0 75px; }
  .page-hero { margin-bottom: 38px; }
  .page-lede { font-size: 17px; }
  .form-layout, .contact-layout, .founder-card { grid-template-columns: 1fr; }
  .form-intro, .contact-aside { min-height: 235px; padding: 27px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-form, .contact-form, .founder-copy { padding: 27px; }
  .founder-image { min-height: 390px; max-height: 520px; }
  .site-footer-inner { align-items: start; flex-direction: column; justify-content: center; padding: 24px 0; }
  .site-footer-links { justify-content: start; }
  .account-sign-out { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } html.page-enter body, html.page-ready body, html.page-leaving body { opacity: 1; transform: none; } }

/* The launch page uses the exact dark palette of the Flipr desktop app. */
body[data-page="home"] {
  --ink: #f5f5f7; --muted: #98989d; --paper: #0d0d0f; --surface: #141416; --line: #2c2c2e;
  --blue: #0a84ff; --blue-deep: #2997ff; --yellow: #ffd60a; --red: #ff453a; --green: #30d158;
  --shadow: 0 24px 70px rgba(0,0,0,.34);
}
body[data-page="home"] .hero-copy { color: #aeaeb2; }
body[data-page="home"] .sign-in { color: #d1d1d6; }
body[data-page="home"] .button.quiet { border-color: #3a3a3c; background: transparent; color: #f5f5f7; }
body[data-page="home"] .button.quiet:hover { border-color: #636366; background: #1c1c1e; }
body[data-page="home"] .dashboard { border-color: #3a3a3c; background: #141416; }
body[data-page="home"] .windowbar i { background: #636366; }
body[data-page="home"] .dash-brand { color: #f5f5f7; }
body[data-page="home"] .status { color: #30d158; }
body[data-page="home"] .search-pill { background: #1c1c1e; color: #d1d1d6; }
body[data-page="home"] .watching { color: #2997ff; background: rgba(10,132,255,.15); }
body[data-page="home"] .watch-label { color: #8e8e93; }
body[data-page="home"] .listing { border-color: #2c2c2e; }
body[data-page="home"] .listing.new { background: rgba(10,132,255,.16); }
body[data-page="home"] .listing-text strong, body[data-page="home"] .listing-price { color: #f5f5f7; }
body[data-page="home"] .listing-text span { color: #98989d; }
body[data-page="home"] .noise-card { background: #1c1c1e; }
body[data-page="home"] .noise-card::before { color: #98989d; }
body[data-page="home"] .ghost { border-color: #3a3a3c; background: #141416; }
body[data-page="home"] .ghost::before { background: #636366; }
body[data-page="home"] .ghost::after { background: #2c2c2e; }
body[data-page="home"] .process-card { border-color: #2c2c2e; background: #141416; }
body[data-page="home"] .process-card p, body[data-page="home"] .benefit p { color: #98989d; }
body[data-page="home"] .benefit { border-color: #f5f5f7; }
body[data-page="home"] .benefit:nth-child(2) { border-color: #0a84ff; }
body[data-page="home"] .benefit:nth-child(3) { border-color: #ffd60a; }
body[data-page="home"] .pricing-card .button.primary { color: #0d0d0f; background: #ffd60a; box-shadow: none; }
body[data-page="home"] .pricing-card .button.primary:hover { background: #ffe06a; }
