/* Plottery landing page. The nav and footer are the same as on the other
   pages (their rules are copied from styles.css); the rest is the home
   page's own. The other pages use styles.css. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter.woff2") format("woff2");
}
@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/CrimsonPro.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/JetBrainsMono.woff2") format("woff2");
}
@font-face {
  font-family: "Crimson Pro";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/CrimsonPro-italic.woff2") format("woff2");
}

:root {
  --ink-950: #0a0a0b;
  --ink-900: #111114;
  --ink-800: #17181c;
  --ink-700: #1f2028;
  --ink-600: #2a2c36;
  --ink-400: #6b6f7e;
  --ink-300: #a1a6b6;
  --ink-200: #d8dbe4;
  --ink-100: #ebedf2;
  --cream: #f3e8cf;
  --bone: #d8c9a3;
  --amber-400: #e5b570;
  --amber-500: #d49a4a;
  --amber-600: #b07a30;
  --rule: rgba(243, 232, 207, 0.18);
  --bg-card-2: #1c1d22;
  --text-subtle: var(--ink-400);
  --font-serif: "Crimson Pro", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-950);
  color: var(--ink-200);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--amber-400); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--cream); margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- nav, shared with the other pages (see styles.css) ---- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  /* No backdrop blur here: on this page it would blur a playing video
     every frame. A little more opacity stands in for it. */
  background: rgba(10, 10, 11, 0.88);
  border-bottom: 1px solid var(--rule);
  transform: translateY(0); transition: transform 240ms ease; will-change: transform;
}
.site-nav-hidden { transform: translateY(-100%); }
.site-nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-nav-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-style: italic; font-size: 1.45rem;
  color: var(--cream); line-height: 1;
}
.site-nav-brand:hover { text-decoration: none; }
.site-nav-brand img { height: 1.8em; width: auto; filter: drop-shadow(0 0 8px rgba(229, 181, 112, 0.32)); }
.brand-mark { display: inline-block; }
.site-nav-links { display: flex; align-items: center; gap: 40px; }
.site-nav-links a {
  display: inline-flex; align-items: baseline; gap: 7px;
  color: var(--bone); font-size: 0.92rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 1px solid transparent; white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease;
}
.site-nav-links a:hover { color: var(--cream); border-bottom-color: var(--amber-400); text-decoration: none; }
.site-nav-group { display: flex; align-items: center; gap: 22px; }
.site-nav-pages a { color: var(--cream); }
.site-nav-links a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--amber-400); }
.site-nav-auth a { border: 1px solid var(--rule); border-radius: 7px; padding: 6px 14px; background: var(--bg-card-2); }
.site-nav-auth a:hover { border-color: var(--amber-400); }
@media (max-width: 640px) {
  .site-nav-inner { padding: 10px 16px; gap: 12px; }
  .site-nav-brand { font-size: 1.15rem; }
  .site-nav-links { gap: 14px; }
  .site-nav-links a { font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .brand-mark { display: none; }
  .site-nav-pages a:first-child { display: none; }
  .site-nav-links { gap: 10px; }
  .site-nav-group { gap: 12px; }
  .site-nav-links a { font-size: 0.8rem; }
  .site-nav-auth a { padding: 5px 10px; }
}

/* ---- hero ---- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; background: var(--ink-900);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.15) 0%, rgba(10,10,11,0) 35%, rgba(10,10,11,0.55) 70%, rgba(10,10,11,0.96) 100%),
    linear-gradient(90deg, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0) 60%);
}
/* The video's brightest part, the snow, sits under the text at midday on a
   phone, where the text spans the whole width. Darken more there and give
   the text a shadow everywhere. */
@media (max-width: 700px) {
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10,10,11,0.2) 0%, rgba(10,10,11,0.2) 30%, rgba(10,10,11,0.9) 55%, rgba(10,10,11,0.98) 100%);
  }
  /* Smaller type on a phone, so the map keeps the top half of the screen. */
  .hero-content { padding: 96px 20px 44px; }
  .hero-title { font-size: 32px; max-width: 14ch; margin-bottom: 12px; }
  .hero-lede { font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
  /* No filter on the video: a per-frame filter pass made playback stutter
     on phones. The shade does the darkening. */
}
.hero-title, .hero-lede { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.8); }
.hero-content {
  position: relative; z-index: 1; max-width: var(--maxw); width: 100%; margin: 0 auto;
  padding: 120px 24px 96px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.01em;
  max-width: 12ch; margin-bottom: 20px;
}
.hero-lede { max-width: 56ch; font-size: 19px; color: var(--ink-100); margin-bottom: 28px; }
.hero-platforms { font-size: 14px; color: var(--ink-300); margin-top: 14px; }
.hero-caption {
  position: absolute; right: 24px; bottom: 14px; z-index: 1; margin: 0;
  font-size: 12px; color: var(--ink-300); max-width: 46ch; text-align: right;
}
@media (max-width: 700px) { .hero-caption { display: none; } }

/* ---- download button, platform tags and the Discord button, the same
   rules as styles.css ---- */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.cta-row-bottom { margin-top: 8px; }
.btn-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 26px 16px 20px;
  background: linear-gradient(180deg, #f4d29a 0%, var(--amber-500) 60%, var(--amber-600) 100%);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px; /* hard-edge book-cover feel */
  color: var(--ink-950);
  font-family: var(--font-sans);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 10px 30px rgba(176, 122, 48, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  text-align: left;
}

.btn-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 28% 16%,
    rgba(255, 255, 255, 0.32),
    transparent 60%
  );
  pointer-events: none;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 14px 36px rgba(176, 122, 48, 0.42);
}

.btn-download-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: rgba(10, 10, 11, 0.16);
  border: 1px solid rgba(10, 10, 11, 0.22);
}

.btn-download-icon svg {
  width: 20px;
  height: 20px;
}

.btn-download-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.btn-download-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
  font-weight: 500;
}

.btn-download-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.btn-download-version {
  margin-left: 10px;
  padding: 5px 10px;
  background: rgba(10, 10, 11, 0.18);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  border: 1px solid rgba(10, 10, 11, 0.22);
  color: var(--ink-950);
}

.btn-download-lg {
  padding: 20px 32px 20px 24px;
}

.btn-download-lg .btn-download-icon {
  width: 48px;
  height: 48px;
}

.btn-download-lg .btn-download-title {
  font-size: 1.35rem;
}

.btn-download.unavailable {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  filter: saturate(0.3);
}

@media (max-width: 540px) {
  .btn-download {
    padding: 14px 18px;
    gap: 12px;
  }
  .btn-download-version {
    display: none;
  }
}

/* the Microsoft Store link, shown only when Windows is the chosen platform */

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 12px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: rgba(10, 10, 11, 0.35);
  color: var(--cream);
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.btn-store[hidden] {
  display: none;
}

.btn-store:hover {
  border-color: var(--amber-500);
  color: var(--amber-400);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-store-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.05);
}

.btn-store-icon svg {
  width: 17px;
  height: 17px;
}

.btn-store-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.btn-store-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
}

.btn-store-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.15;
}

/* the two secondary buttons share one height; the download button is taller */
.btn-store,
.btn-discord {
  min-height: 56px;
}

/* platform pills, restyled as a thin row of monospace tags */

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}

.dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
  transition: all 0.15s ease;
  cursor: pointer;
}

.dl-pill svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.dl-pill:hover {
  border-color: rgba(229, 181, 112, 0.5);
  color: var(--cream);
}

.dl-pill.detected {
  border-color: rgba(229, 181, 112, 0.7);
  color: var(--cream);
  background: rgba(229, 181, 112, 0.06);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  background: rgba(88, 101, 242, 0.1);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-discord:hover {
  background: rgba(88, 101, 242, 0.9);
  border-color: rgba(88, 101, 242, 0.9);
  color: #fff;
  transform: translateY(-1px);
}

.btn-discord-icon {
  display: inline-flex;
  color: #fff;
}

.btn-discord-icon svg {
  width: 24px;
  height: auto;
}


/* ---- bands and features ---- */
.band { padding: 72px 0; }
.band-title { font-size: 34px; margin-bottom: 32px; }
.band-lede { max-width: 640px; margin: -16px 0 32px; color: var(--ink-300); font-size: 17px; line-height: 1.6; }
.contrast-label { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
/* The three shots are not all the same shape; crop them to one. */
.mode img { border-radius: var(--radius); border: 1px solid var(--ink-700); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.mode h3 { font-size: 26px; margin: 16px 0 6px; }
.mode p { color: var(--ink-300); font-size: 15.5px; }
@media (max-width: 900px) { .modes { grid-template-columns: 1fr; } }

.feature { padding: 84px 0; border-top: 1px solid var(--ink-800); }
.feature-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature-grid-rev { grid-template-columns: 7fr 5fr; }
.feature-grid-rev .feature-text { order: 2; }
.feature-text h2 { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.12; margin-bottom: 20px; }
.feature-text p { color: var(--ink-200); }
/* Even line lengths: no one-word last lines in paragraphs, no lone word
   on the last line of a heading. */
p, li, figcaption { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
/* A two-sentence heading breaks between the sentences, not inside one. */
.feature-text h2 .line { display: block; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-400);
  margin-bottom: 12px;
}
.facts { margin: 16px 0 0; padding-left: 18px; color: var(--ink-300); font-size: 15.5px; }
.facts li { margin-bottom: 6px; }
.feature-figure { margin: 0; }
.feature-figure img, .feature-shots img {
  border-radius: var(--radius); border: 1px solid var(--ink-700);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
figcaption { font-size: 13px; color: var(--ink-400); margin-top: 10px; }
.feature-shots { display: grid; gap: 22px; }
.feature-shots figure { margin: 0; }
@media (max-width: 900px) {
  .feature-grid, .feature-grid-rev { grid-template-columns: 1fr; }
  .feature-grid-rev .feature-text { order: 0; }
}

/* why local: two columns, the second one is ours */
.why-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; margin-bottom: 28px; max-width: 24ch; }
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contrast-col { padding: 26px; border: 1px solid var(--ink-700); border-radius: var(--radius); background: var(--ink-900); }
.contrast-col h3 { font-size: 24px; margin-bottom: 10px; color: var(--bone); }
.contrast-col p { margin: 0; color: var(--ink-300); font-size: 16px; }
.contrast-now { border-color: var(--amber-600); }
.contrast-now h3 { color: var(--cream); }
.contrast-now p { color: var(--ink-200); }
@media (max-width: 800px) { .contrast { grid-template-columns: 1fr; } }

/* worlds: the ranges still runs edge to edge above the text */
.feature-worlds { padding-top: 0; border-top: 0; }
.bleed { margin: 0 0 64px; }
.bleed img { width: 100%; height: min(72vh, 720px); object-fit: cover; }
.seeds-title { font-size: 22px; margin: 64px 0 16px; color: var(--bone); }
.seeds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.seeds img { border-radius: 4px; border: 1px solid var(--ink-700); }
@media (max-width: 900px) { .seeds { grid-template-columns: repeat(3, 1fr); } }

/* ---- what runs where ---- */

/* ---- price ---- */
.band-price { border-top: 1px solid var(--ink-800); }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 860px; margin-bottom: 40px; }
.price-col { position: relative; padding: 26px; border: 1px solid var(--ink-700); border-radius: var(--radius); background: var(--ink-900); }
.price-col-accent { border-color: var(--amber-600); }
.price-ribbon {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  padding: 6px 14px; border-radius: 4px;
  background: linear-gradient(180deg, #f4d29a 0%, var(--amber-500) 60%, var(--amber-600) 100%);
  border: 1px solid rgba(0, 0, 0, 0.2); color: var(--ink-950);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  white-space: nowrap;
}
.price-col h3 { font-size: 22px; margin-bottom: 8px; }
.price-num { font-family: var(--font-serif); font-size: 40px; color: var(--cream); margin-bottom: 8px; }
.price-num span { font-size: 18px; color: var(--ink-300); }
.price-col p:last-child { color: var(--ink-300); font-size: 15.5px; margin: 0; }
@media (max-width: 700px) { .price { grid-template-columns: 1fr; } }

/* ---- footer, shared with the other pages (see styles.css) ---- */
.site-footer {
  border-top: 1px solid var(--rule); padding: 32px 24px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 22px;
  white-space: nowrap; font-size: 13px; color: var(--text-subtle);
  font-family: var(--font-serif); font-style: italic;
}
.site-footer a { color: var(--bone); }
.site-footer a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.mobile-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  padding: 12px 16px; border-radius: var(--radius); background: var(--ink-700); color: var(--ink-100);
  font-size: 14px; z-index: 30; max-width: 90vw; transition: opacity 0.2s;
}
.mobile-toast.fading { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .hero { background: url("media/hero-day-poster.jpg") center / cover; }
}
