/* Playshelf website.
   Layout: left-aligned, white page; orange is used for the download button,
   step numbers and one closing band. Type is Windows' own (Segoe UI Variable,
   Cascadia Mono), so nothing loads from a font host. Single light theme by choice. */

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1d1a17;          /* warm near-black, leans toward the orange */
  --ink-2: #5f5851;        /* body text on white */
  --rule: #ebe6e0;         /* hairlines */
  --tint: #fbf8f5;         /* screenshot backing, tags */
  --orange: #ff8800;       /* VLC orange: band, numerals */
  --orange-btn: #e86a00;   /* button fill, keeps white text readable */
  --orange-ink: #b85500;   /* orange for text links on white */
  --dot: #dcd0c3;          /* hero dot grid, warm and faint */
  --dot-on-orange: rgba(29, 26, 23, .12);  /* band dots */
  --grid: #eee6dd;         /* hatch lines */
  --grid-strong: #e7ddd2;  /* graph paper around the folders screenshot */

  --display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --text: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 2.6vw, 2.1rem);
  --step-3: clamp(2.4rem, 5.2vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-2); font-weight: 650; letter-spacing: -.015em; line-height: 1.15; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--orange-btn); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange-btn); color: #fff;
  font: 600 var(--step-0)/1 var(--text);
  padding: 15px 24px; border-radius: 8px; text-decoration: none;
  transition: background-color .15s;
}
.btn:hover { background: #d45f00; }
.btn-invert { background: var(--ink); }
.btn-invert:hover { background: #000; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
  font: 650 1.125rem/1 var(--display); letter-spacing: -.01em;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: var(--step--1); }
.nav-links a { color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-download { color: var(--orange-ink); font-weight: 600; }

/* Hero: a soft dot grid that fades out toward the edges */
.hero { padding-block: 72px 96px; position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: -11px -11px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 65% 45%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 75% 85% at 65% 45%, #000 30%, transparent 80%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.hero-copy { padding-top: 24px; min-width: 0; }
.hero h1 {
  font-size: var(--step-3); font-weight: 700; line-height: 1.04; letter-spacing: -.03em;
  max-width: 11ch;
}
.lead { margin-top: 24px; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }

.get { margin-top: 40px; }
.note { margin-top: 18px; font-size: var(--step--1); line-height: 1.65; color: var(--ink-2); max-width: 40ch; }
.note strong { color: var(--ink); font-weight: 600; }

/* Screenshot in a Windows-style window */
.shot {
  margin: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  background: var(--tint);
  box-shadow: 0 1px 2px rgba(29, 26, 23, .05), 0 24px 48px -24px rgba(29, 26, 23, .22);
}
.titlebar {
  display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 12px;
  background: var(--paper); border-bottom: 1px solid var(--rule);
  font-size: .75rem; color: var(--ink-2);
}
.titlebar span { flex: 1; }
.titlebar i { width: 44px; height: 34px; position: relative; }
.titlebar i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; translate: -50% -50%; border-top: 1px solid var(--ink-2); }
.titlebar i:nth-of-type(2)::before { height: 9px; border: 1px solid var(--ink-2); }
.titlebar i:nth-of-type(3)::before { height: 0; border: 0; width: 11px; height: 11px;
  background: linear-gradient(45deg, transparent 46%, var(--ink-2) 46%, var(--ink-2) 54%, transparent 54%),
              linear-gradient(-45deg, transparent 46%, var(--ink-2) 46%, var(--ink-2) 54%, transparent 54%); }
.hero-shot { margin-right: calc(-1 * max(20px, env(safe-area-inset-right, 0px))); }

/* Sections */
.section { padding-block: 96px; border-top: 1px solid var(--rule); }
.section h2 { max-width: 20ch; }

/* Section textures: each section gets its own faint pattern, faded at the edges.
   Steps: "+" marks. Points: graph-paper grid behind the screenshot. FAQ: diagonal hatch. */
.section { position: relative; isolation: isolate; }
.section::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
}
#how::before {
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M14 10.5v7M10.5 14h7' stroke='%23d9cdbf' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 32% 85% at 100% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 32% 85% at 100% 30%, #000 20%, transparent 75%);
}
#why::before {
  /* starts at the last selling point ("Stays on your computer") and fades in from there */
  left: 0; right: 0; bottom: 0; height: 60%;
  background-image:
    linear-gradient(var(--grid-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 32%, #000 85%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 32%, #000 85%, transparent);
}
#faq::before {
  inset: 0;
  background-image: repeating-linear-gradient(135deg, var(--grid) 0 1px, transparent 1px 11px);
  -webkit-mask-image: radial-gradient(ellipse 40% 70% at 12% 35%, #000 15%, transparent 70%);
          mask-image: radial-gradient(ellipse 40% 70% at 12% 35%, #000 15%, transparent 70%);
}

/* Steps: a real sequence, so real numbers */
.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px;
  counter-reset: step;
}
.steps li { counter-increment: step; min-width: 0; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 14px;
  font: 700 3.25rem/1 var(--display); letter-spacing: -.04em; color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.steps p { margin-top: 8px; color: var(--ink-2); max-width: 34ch; }

/* Selling points: one row each, with a small "proof" tag in the app's own terms */
.why { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; }
.why h2 { position: sticky; top: 100px; align-self: start; }
.points { list-style: none; margin: 0; padding: 0; }
.points li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline;
  padding-block: 26px; border-bottom: 1px solid var(--rule);
}
.points li:first-child { padding-top: 4px; }
.points p { margin-top: 6px; color: var(--ink-2); max-width: 52ch; }
.tag {
  font-family: var(--mono); font-size: .75rem; color: var(--ink-2); white-space: nowrap;
  background: var(--tint); border: 1px solid var(--rule); border-radius: 4px; padding: 3px 8px;
}
.wide-shot { grid-column: 1 / -1; margin-top: 56px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 64px; }
.faq-list { border-top: 1px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none; padding-block: 20px;
  display: flex; justify-content: space-between; gap: 24px;
  font: 600 var(--step-0)/1.4 var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  rotate: 45deg; transition: rotate .2s;
}
details[open] summary::after { rotate: 225deg; margin-top: 10px; }
summary:hover { color: var(--orange-ink); }
details p { padding-bottom: 22px; color: var(--ink-2); max-width: 60ch; }
details strong { color: var(--ink); font-weight: 600; }

/* Closing band: the one loud moment */
.band {
  background-color: var(--orange); color: var(--ink);
  background-image: radial-gradient(var(--dot-on-orange) 1.3px, transparent 1.5px);
  background-size: 18px 18px;
}
.band-inner {
  padding-block: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.band h2 { font-size: var(--step-3); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; max-width: 14ch; }
.band-get { display: grid; gap: 12px; justify-items: start; }
.band-get p { font-size: var(--step--1); }

/* Footer */
.footer { padding-block: 28px; font-size: var(--step--1); color: var(--ink-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer a { color: var(--ink-2); }
.brand-sm { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; color: var(--ink); font-weight: 600; vertical-align: -3px; }

/* Responsive */
@media (max-width: 960px) {
  .hero { padding-block: 48px 72px; }
  .hero-inner, .why, .faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { padding-top: 0; }
  .hero h1 { max-width: 14ch; }
  .hero-shot { margin-right: 0; }
  .why h2 { position: static; }
  .section { padding-block: 72px; }

  /* Stacked layout: move each texture to an area with no text */
  .hero::before {   /* only around the screenshot at the bottom of the hero */
    -webkit-mask-image: radial-gradient(ellipse 90% 30% at 50% 84%, #000 25%, transparent 75%);
            mask-image: radial-gradient(ellipse 90% 30% at 50% 84%, #000 25%, transparent 75%);
  }
  #how::before {    /* top-right corner, above the steps */
    -webkit-mask-image: radial-gradient(ellipse 45% 14% at 100% 0%, #000 20%, transparent 80%);
            mask-image: radial-gradient(ellipse 45% 14% at 100% 0%, #000 20%, transparent 80%);
  }
  #why::before {    /* a fixed band behind the screenshot, below the last row */
    height: 380px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 85%, transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 85%, transparent);
  }
  #faq::before {    /* top-right corner, beside the short heading */
    -webkit-mask-image: radial-gradient(ellipse 50% 12% at 100% 0%, #000 15%, transparent 80%);
            mask-image: radial-gradient(ellipse 50% 12% at 100% 0%, #000 15%, transparent 80%);
  }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .points li { grid-template-columns: minmax(0, 1fr); }
  .tag { justify-self: start; white-space: normal; }
}
@media (max-width: 520px) {
  .nav-links a:not(.nav-download) { display: none; }
  .btn { width: 100%; justify-content: center; }
  .band-get { justify-items: stretch; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, summary::after { transition: none; }
}
