/* Plastic Software — showcase layout (index-b). Loaded after site.css. */

/* ---------- Intro ---------- */

.intro {
  padding: calc(var(--header-h) + clamp(4rem, 14vh, 9rem)) var(--gutter) clamp(3.5rem, 10vh, 7rem);
}
.intro__title {
  max-width: 13em;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.4vw, 6.75rem);
  font-weight: 600;
  font-stretch: 88%;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-left: -0.04em;
  text-wrap: balance;
}
.intro__title .plastic { color: var(--accent); font-weight: 700; font-stretch: 88%; }
.intro__lead {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  font-size: clamp(0.9375rem, 0.6vw + 0.8rem, 1.1875rem);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: no-preference) {
  .intro__title { animation: fade 1.1s var(--ease) both; }
  .intro__lead { animation: fade 1.2s 0.25s var(--ease) both; }
}

/* ---------- Showcase sections: each app brings its own world ---------- */

.show {
  --s-bg: var(--panel);
  --s-ink: var(--ink);
  --s-line: var(--line);
  --tint: var(--accent);
  position: relative;
  background: var(--s-bg);
  color: var(--s-ink);
  padding-block: clamp(4rem, 11vw, 9rem);
  overflow-x: clip;
}
.show--booklover { --s-bg: #f0ede8; --s-ink: #17141a; --s-line: rgb(23 20 26 / 0.16); --tint: #fa6900; }
.show--haste { --s-bg: #100f17; --s-ink: #f5f2f6; --s-line: rgb(255 255 255 / 0.18); --tint: #20aef5; }

.show__head {
  position: relative;
  padding-inline: var(--gutter);
}
.show__icon {
  width: clamp(3.5rem, 5vw, 4.5rem);
  height: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0.5rem 0.9rem color-mix(in srgb, var(--tint) 35%, transparent));
}
.show__name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 11rem);
  font-weight: 700;
  font-stretch: 84%;
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-left: -0.04em;
}
.show__name a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.12em;
}
.show__arrow {
  flex: none;
  width: 0.34em; height: 0.34em;
  min-width: 2.25rem; min-height: 2.25rem;
  margin-top: 0.1em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--s-line);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.show__arrow svg { width: 45%; height: 45%; transition: transform 0.6s var(--ease); }
.show__name a:hover .show__arrow,
.show__name a:focus-visible .show__arrow { background: var(--s-ink); border-color: var(--s-ink); color: var(--s-bg); }
.show__name a:hover .show__arrow svg,
.show__name a:focus-visible .show__arrow svg { transform: translate(8%, -8%); }

.show__tagline {
  margin-top: clamp(1rem, 2vw, 1.75rem);
  font-size: clamp(1.25rem, 1.6vw + 0.8rem, 2.25rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  word-break: keep-all;
}
.show__meta {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.show__platform {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--tint) 60%, var(--s-ink));
}
.show--haste .app__store { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.28); }

/* Booklover: poster strip that runs off the edge of the page */

.strip-nav {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  display: none;
  gap: 0.5rem;
}
.js .strip-nav { display: flex; }
.strip-nav button {
  width: 3rem; height: 3rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid var(--s-line);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
}
.strip-nav button:hover:not(:disabled) { background: var(--s-ink); border-color: var(--s-ink); color: var(--s-bg); }
.strip-nav button:active:not(:disabled) { transform: scale(0.94); }
.strip-nav button:disabled { opacity: 0.3; cursor: default; }
@media (hover: none) { .js .strip-nav { display: none; } }

.strip {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding-inline: var(--gutter);
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline-offset: -4px; }
.strip li {
  flex: none;
  width: clamp(16.5rem, 31vw, 30rem);
  scroll-snap-align: start;
  border-radius: clamp(0.75rem, 1.4vw, 1.25rem);
  overflow: hidden;
  background: #e9eae3;
  box-shadow: 0 0 0 1px rgb(23 20 26 / 0.08), 0 1.5rem 3rem -1.5rem rgb(23 20 26 / 0.3);
}
.strip img { width: 100%; height: auto; aspect-ratio: 3 / 4; }

/* Strip of device cut-outs: each card is a stage, the caption sits underneath */
.strip--devices { align-items: flex-start; padding-bottom: 0.5rem; }
.strip--devices li {
  width: clamp(15.5rem, 24vw, 22rem);
  border-radius: 0;
  overflow: visible;
  background: none;
  box-shadow: none;
}
.strip--devices .shot { background: #fff; }
.strip--devices img { aspect-ratio: auto; }
.strip--devices h3 { color: var(--s-ink); }
.strip--devices .credit { color: color-mix(in srgb, var(--s-ink) 60%, transparent); }

/* Haste: a Mac display */

.show--haste { text-align: center; }
.show--haste .show__icon { margin-inline: auto; }
.show--haste .show__name { margin-left: 0; }
.show--haste .show__meta { justify-content: center; }

.mac {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
}
.mac__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border: clamp(6px, 1vw, 14px) solid #050507;
  border-radius: clamp(0.75rem, 1.8vw, 1.5rem);
  background: #050507;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.16),
    0 3rem 6rem -2rem color-mix(in srgb, var(--tint) 45%, transparent);
}
.mac__screen img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: clamp(0.25rem, 0.6vw, 0.5rem);
}
.mac__screen img + img { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mac__screen img:nth-child(2) { animation: shot-2 15s infinite; }
  .mac__screen img:nth-child(3) { animation: shot-3 15s infinite; }
}
@keyframes shot-2 {
  0%, 30% { opacity: 0; }
  35%, 100% { opacity: 1; }
}
@keyframes shot-3 {
  0%, 63% { opacity: 0; }
  68%, 95% { opacity: 1; }
  100% { opacity: 0; }
}
.mac__stand {
  width: 22%;
  height: clamp(2rem, 6vw, 5rem);
  margin: 0 auto;
  background: linear-gradient(#2b2a33, #1a1921);
  clip-path: polygon(22% 0, 78% 0, 86% 92%, 100% 92%, 100% 100%, 0 100%, 0 92%, 14% 92%);
}

/* ---------- Minor app: one quiet row ---------- */

.minor {
  position: relative;
  margin: clamp(3rem, 8vw, 6rem) var(--gutter) 0;
  padding: clamp(1.25rem, 2.4vw, 1.75rem) 0;
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 1rem clamp(1rem, 2.4vw, 2rem);
}
.minor__icon { width: 3rem; height: 3rem; }
.minor__name {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2vw + 1rem, 1.75rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
/* the whole row is the link */
.minor__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.minor__name a:focus-visible { outline: none; }
.minor:focus-within { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
.minor__tagline {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.minor__platform {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.minor .app__store img { height: 2.25rem; }
.minor__arrow {
  width: 2.5rem; height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.minor__arrow svg { transition: transform 0.6s var(--ease); }
.minor:hover .minor__arrow,
.minor:focus-within .minor__arrow { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.minor:hover .minor__arrow svg { transform: translate(2px, -2px); }

.minor .app__store { box-shadow: var(--badge-ring); }

@media (max-width: 43.99rem) {
  .minor { grid-template-columns: auto minmax(0, 1fr) auto; }
  .minor__text { grid-column: 2 / -1; }
  .minor__platform { grid-column: 2; }
  .minor .app__store { grid-column: 3; justify-self: end; }
  .minor__arrow { display: none; }
}

/* ---------- Top page: Booklover in one block, details live on its own page ---------- */
.lead-app {
  margin-top: clamp(2.5rem, 6vw, 5rem);
  padding: 0 var(--gutter) clamp(3rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.lead-app__copy {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";
  word-break: keep-all;
  text-wrap: balance;
}
.lead-app__points { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--s-line); }
.lead-app__points a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--s-line);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.1875rem);
  font-weight: 700;
}
.lead-app__points svg { flex: none; opacity: 0.55; transition: transform 0.5s var(--ease), opacity 0.3s; }
.lead-app__points a:hover svg { transform: translateX(4px); opacity: 1; }
.lead-app .lead-app__all { justify-content: flex-start; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
@media (max-width: 55.99rem) {
  .lead-app { grid-template-columns: minmax(0, 1fr); }
}
.lead-app__all a { border-color: var(--s-line); }
.lead-app__all a:hover { background: var(--s-ink); border-color: var(--s-ink); color: var(--s-bg); }
