/* ForeverFlip uses the blahh.us palette and one shared page shell. */
:root {
  color-scheme: dark;
  --bg: #111318;
  --panel: #1a1d25;
  --ink: #f7f4ee;
  --muted: #b9bec9;
  --line: rgba(255, 255, 255, .12);
  --ember: #ff5a2f;
  --gold: #f4bd50;
  --blue: #50c8e9;
  --green: #66d39a;
  --page-width: 1160px;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0, rgba(255, 90, 47, .10), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(80, 200, 233, .07), transparent 28rem),
    linear-gradient(145deg, #181a21, #0d0f14 58%, #151015);
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(var(--page-width), calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: #0d0f14;
}
.nav, .brand-line { display: flex; align-items: center; gap: 14px; }
.nav { min-height: 76px; justify-content: space-between; gap: 24px; }
.brand, .project-name { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand { font-size: 1.2rem; }
.brand span { color: var(--ember); }
.project-name { font-size: .98rem; }
.divider { color: #777e8b; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .08); }
main { padding-block: 34px 44px; }
.page-intro { margin-bottom: 24px; }
h1 { margin: 8px 0 16px; font-size: clamp(2.3rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: -.04em; }
h2 { margin: 0 0 14px; font-size: clamp(1.3rem, 3vw, 1.5rem); line-height: 1.3; letter-spacing: -.02em; }
h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.4; }
p { margin: 0 0 14px; }
.lead { max-width: 820px; color: var(--muted); font-size: 1.08rem; }
.meta { color: var(--gold); font-size: .82rem; font-weight: 650; margin-bottom: 8px; }
.small, .legend, .note { color: var(--muted); font-size: .88rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin: 24px 0 14px; }
button, .button, select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 16px;
  font: inherit;
  line-height: 1.4;
  background: #222630;
  color: var(--ink);
}
button, .button { cursor: pointer; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.button.primary { background: var(--ember); color: #111318; border-color: transparent; font-weight: 800; }
.button.primary:hover { background: #ff744f; color: #111318; }
.button.secondary { background: rgba(255, 255, 255, .05); }
button:hover, .button.secondary:hover { border-color: var(--gold); color: var(--ink); }
button:disabled { cursor: default; color: #929aa8; border-color: var(--line); background: #1a1d25; }
select { max-width: 100%; }
section, .testing, .notice {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: var(--panel);
  scroll-margin-top: 100px;
}
.testing, .notice { border-left: 3px solid var(--gold); }
.testing p:last-child, section > p:last-child { margin-bottom: 0; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
}
.feature p { color: var(--muted); font-size: .94rem; margin: 12px 0 0; }
.status { display: inline-block; color: var(--gold); font-size: .78rem; font-weight: 650; }
.status.observed { color: var(--green); }
.status.planned { color: var(--muted); }
ol, ul { padding-left: 22px; margin: 12px 0; }
li { margin-block: 8px; }
code { color: var(--blue); font-size: .9em; overflow-wrap: anywhere; }
details { border-top: 1px solid var(--line); padding-block: 16px; }
summary { cursor: pointer; font-weight: 650; }
details ul { color: var(--muted); }
.market-picker { display: flex; align-items: center; gap: 14px; margin: 8px 0 12px; }
.market-picker label { font-weight: 650; }
.sync-status { min-height: 1.65em; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.card strong { display: block; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.3; color: var(--gold); margin-bottom: 8px; }
.card span { color: var(--muted); font-size: .83rem; }
.scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: rgba(255, 255, 255, .025); }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
td button { min-height: 32px; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--blue); text-align: left; font-weight: 500; }
td button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.heat { display: grid; grid-template-columns: 40px repeat(24, minmax(18px, 1fr)); gap: 4px; min-width: 670px; margin-bottom: 12px; }
.cell { height: 24px; border-radius: 3px; }
.tick { font-size: 11px; color: var(--muted); }
.chart { width: 100%; height: 190px; }
.pager { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }
.pager span { color: var(--muted); font-size: .9rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px 30px; color: var(--muted); font-size: .8rem; }
.site-footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
#download { scroll-margin-top: 100px; }
@media (max-width: 860px) {
  .nav { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section, .testing, .notice, #download { scroll-margin-top: 150px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  main { padding-top: 26px; }
  .nav-links a { padding: 8px 9px; font-size: .85rem; }
  .brand-line { gap: 10px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  section, .testing, .notice { padding: 18px; margin-top: 22px; }
  .feature, .card { padding: 18px; }
  .cards { gap: 10px; }
  .market-picker { align-items: stretch; flex-direction: column; gap: 8px; }
  .actions .button { width: 100%; }
  .site-footer .shell { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Product overview: clear routes, concise features and optional detail. */
.home-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-block: 38px 46px; }
.home-hero > *, .route-link > div, .section-heading > *, .market-invite > * { min-width: 0; }
.home-hero h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); letter-spacing: -.045em; line-height: 1.06; margin-block: 20px; }
.home-hero .lead { font-size: 1.08rem; max-width: 540px; }
.beta-badge { display: inline-block; color: var(--gold); border: 1px solid #78643d; border-radius: 20px; padding: 2px 9px; margin: 6px 0 0 8px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.download-options { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8rem; color: var(--muted); }
.hero-routes { background: linear-gradient(130deg, #26262c, #171b22); border: 1px solid #48443c; border-radius: 18px; padding: 24px; box-shadow: 0 18px 60px #0003; }
.route-link { display: flex; align-items: center; gap: 16px; padding: 21px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.route-link:hover h2 { color: var(--gold); }
.route-link h2 { font-size: 1.1rem; margin-bottom: 5px; }
.route-link p { font-size: .87rem; color: var(--muted); margin: 0; }
.route-icon { font-size: .77rem; color: var(--gold); font-weight: 700; border: 1px solid #68604b; background: #d3aa4410; border-radius: 9px; padding: 9px; }
.route-caption { font-size: .78rem; margin: 18px 0 0; }
.home-page .feature-section { background: none; border: 0; padding: 0; margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 1.85rem; }
.section-heading > a { font-size: .85rem; flex-shrink: 0; }
.home-page .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-page .feature { background: #1a1d25; padding: 24px; }
.feature-label { display: block; font-size: .68rem; color: var(--gold); letter-spacing: .12em; font-weight: 750; margin-bottom: 18px; }
.home-page .feature h3 { font-size: 1.13rem; }
.home-page .feature p { font-size: .9rem; }
.home-page .feature .feature-detail { padding-top: 14px; margin-top: 16px; border-top: 1px solid var(--line); font-size: .8rem; color: #aab1bd; }
.market-invite { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(110deg, #22252d, #1c2229); margin-block: 32px; }
.market-invite p:last-child { max-width: 760px; color: var(--muted); margin: 0; }
.market-invite .button { flex-shrink: 0; }
.setup-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; counter-reset: steps; margin: 28px 0; }
.setup-steps li { counter-increment: steps; margin: 0; }
.setup-steps li::before { content: '0' counter(steps); display: block; color: var(--gold); font-size: .8rem; font-weight: 700; margin-bottom: 12px; }
.setup-steps p, #setup details p, .beta-section p { font-size: .9rem; color: var(--muted); }
#setup details p { margin-top: 16px; }
.beta-section { border-left: 3px solid #ad8d4e; }
.beta-section h2 { font-size: 1.35rem; }
.beta-section > div > p:last-child { margin-bottom: 20px; max-width: 920px; }
.home-page #notes { background: transparent; }
.home-page #notes details { font-size: .9rem; }
@media (max-width: 1000px) {
 .home-hero { gap: 26px; padding-block: 14px 28px; }
 .home-page .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
 .home-hero { grid-template-columns: minmax(0, 1fr); }
 .hero-routes { padding: 20px; }
 .section-heading, .market-invite { flex-direction: column; align-items: flex-start; }
 .home-page .features, .setup-steps { grid-template-columns: minmax(0, 1fr); }
 .setup-steps { gap: 16px; }
 .beta-badge { margin-left: 0; }
 .home-hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
}

/* Approved ForeverFlip artwork: compact branding and an illustrated welcome. */
.project-name { display: inline-flex; align-items: center; gap: 10px; }
.project-name img { display: block; flex-shrink: 0; border-radius: 6px; }
.home-hero { position: relative; isolation: isolate; display: block; min-height: 508px; padding: 44px; margin-block: 4px 22px; overflow: hidden; border: 1px solid #6b5539; border-radius: 20px;
 background: url('/assets/auction-house-hero.webp') center right / cover;
 box-shadow: 0 22px 70px #0004; }
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #080e13f2 0%, #080e13d9 38%, #080e1330 70%, #080e1310); }
.home-hero .hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; pointer-events: none; opacity: 0; }
.home-hero .hero-video.is-playing { opacity: 1; }
.home-hero .hero-copy { position: relative; z-index: 2; width: 57%; max-width: 590px; }
.home-hero .hero-motion-toggle { position: absolute; z-index: 3; right: 14px; bottom: 14px; min-height: 36px; padding: 6px 11px; border: 1px solid #a88b58; border-radius: 7px; background: #080e13d9; color: #f7e3ba; font-size: .75rem; font-weight: 600; }
.home-hero h1 { font-size: clamp(2.8rem, 4.7vw, 4rem); }
.home-hero .lead { font-size: 1.05rem; color: #e1ddd4; }
.home-hero .small, .home-hero .download-options { color: #d0c8b8; }
.hero-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; padding: 22px 26px; margin-bottom: 38px; background: #171c1f; border-color: #4b493d; }
.hero-routes > .meta, .hero-routes > .route-caption { grid-column: 1 / -1; }
.hero-routes > .meta { margin: 0; }
.route-link { padding: 18px 0; align-items: flex-start; }
.route-link h2 { font-size: 1rem; }
.route-link p { font-size: .82rem; }
.route-caption { margin-top: 12px; }
.market-invite { background: linear-gradient(110deg, #18241e, #1b2025); border-color: #5a5239; }
.invite-crest { flex: 0 0 auto; width: 156px; height: 156px; object-fit: contain; filter: drop-shadow(0 10px 18px #0005); }
.market-invite > div { flex: 1; min-width: 0; }
@media (max-width: 1000px) { .home-hero { padding: 30px; } .home-hero .hero-copy { width: 65%; } .hero-routes { gap: 0 18px; } .invite-crest { width: 112px; height: 112px; } }
@media (max-width: 720px) {
 .home-hero { min-height: 640px; padding: 28px 24px 210px; background-image: url('/assets/auction-house-hero.webp'); background-position: 74% bottom; }
 .home-hero::before { background: linear-gradient(180deg, #080e13f5 0%, #080e13ed 71%, #080e13b8 78%, #080e1310 94%); }
 .home-hero .hero-video { object-position: 74% bottom; }
 .home-hero .hero-copy { width: 100%; max-width: none; } .home-hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
 .hero-routes { grid-template-columns: minmax(0, 1fr); padding: 20px; } .hero-routes > .meta, .hero-routes > .route-caption { grid-column: auto; }
 .market-invite { position: relative; padding-right: 100px; min-height: 190px; gap: 20px; } .market-invite .invite-crest { position: absolute; width: 88px; height: 88px; right: 12px; top: 24px; }
 .project-name { gap: 7px; } .project-name img { width: 28px; height: 28px; }
}

.skip-link{position:fixed;left:16px;top:-100px;z-index:1000;background:var(--gold);color:#151515;padding:10px 16px;border-radius:6px;font-weight:700}
.skip-link:focus{top:12px}
.site-footer .shell{display:flex;justify-content:space-between;align-items:center;gap:12px 22px;flex-wrap:wrap}
.site-footer{font-size:.83rem;line-height:1.6}
.feature-detail,.route-link p,.download-options{font-size:.9rem}
