/* Plastic Software — site styles */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f7f5f2;
  --ink: #17141a;
  --muted: #6b6570;
  --line: rgb(23 20 26 / 0.12);
  --panel: #ffffff;
  --accent: #f3006b;
  --accent-ink: #d6005e;
  --blob-a: #ff5aa5;
  --blob-b: #f3006b;
  --blob-c: #b80052;

  --font-latin: "Inter";
  --font-display: var(--font-latin), "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-body: var(--font-latin), -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 5vw, 4.5rem);
  --header-h: 4rem;
  --radius: clamp(1.25rem, 2.4vw, 2rem);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --global-h: 4rem;
  --local-h: 3.25rem;

  --badge-ring: none;
  --theme-sun: none;
  --theme-moon: block;
  color-scheme: light;
}

/* Dark: follows the system unless the visitor has chosen a side with the header toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0d11;
    --ink: #f5f2f6;
    --muted: #a39ca8;
    --line: rgb(255 255 255 / 0.14);
    --panel: #19161c;
    --accent: #ff2a85;
    --accent-ink: #ff5a9f;
    --blob-a: #ff4d9c;
    --blob-b: #ee0068;
    --blob-c: #8f0040;
    --blob-glow: 0.34;
    --badge-ring: 0 0 0 1px rgb(255 255 255 / 0.3);
    --theme-sun: block;
    --theme-moon: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0d11;
  --ink: #f5f2f6;
  --muted: #a39ca8;
  --line: rgb(255 255 255 / 0.14);
  --panel: #19161c;
  --accent: #ff2a85;
  --accent-ink: #ff5a9f;
  --blob-a: #ff4d9c;
  --blob-b: #ee0068;
  --blob-c: #8f0040;
  --blob-glow: 0.34;
  --badge-ring: 0 0 0 1px rgb(255 255 255 / 0.3);
  --theme-sun: block;
  --theme-moon: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-break: strict;
  overflow-wrap: anywhere;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

.nowrap { white-space: nowrap; }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* App icons ship as squares; the page applies the iOS corner */
.app-icon, .show__icon, .get__icon, .bl-hero__app img { border-radius: 22.37%; }
.minor__icon { border-radius: 0; }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.header[data-scrolled] {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--line);
}

.logo { display: block; flex: none; margin-left: -2px; }
.logo svg { height: 1.875rem; width: auto; }
.logo__mark { fill: var(--accent); }
.logo__type { fill: currentColor; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.6vw, 1.25rem);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.nav { flex: none; }
.nav a {
  position: relative;
  white-space: nowrap;
  padding: 0.625rem 0.5rem;
  line-height: 1.5;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0.5rem; right: 0.5rem; bottom: 0.4rem;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.nav__lang {
  margin-left: 0.25rem;
  padding: 0.25rem 0.7rem !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.nav__lang::after { display: none; }
.nav__lang:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.theme-toggle {
  display: none;
  width: 2.25rem; height: 2.25rem;
  margin-left: 0.25rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.js .theme-toggle { display: grid; }
.theme-toggle:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 1.125rem; height: 1.125rem; }
.theme-toggle__sun { display: var(--theme-sun); }
.theme-toggle__moon { display: var(--theme-moon); }

/* a short cross-fade while the palette swaps, so the change does not snap */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, fill 0.35s ease !important;
}

@media (max-width: 35rem) {
  .nav__extra { display: none; }
  .header { gap: 0.5rem; }
  .nav { font-size: 0.875rem; gap: 0; margin-right: -0.3rem; }
  .nav a { padding-inline: 0.3rem; }
  .nav a::after { left: 0.3rem; right: 0.3rem; }
  .nav__lang { padding-inline: 0.55rem !important; }
  .theme-toggle { width: 2rem; height: 2rem; }
  .logo svg { height: 1.5rem; }
}
/* narrower than an iPhone: the mark alone stands for the name */
@media (max-width: 23.4rem) {
  .logo { width: 0.9rem; overflow: hidden; }
  .logo svg { max-width: none; }
}

/* ---------- Two-storey navigation on product pages ----------
   Upstairs: the company bar, which scrolls away with the page, and comes back as soon as
   the reader scrolls up, wherever they are (js/site.js sets the two classes).
   Downstairs: the product bar, which stays — name, where to go, and the way in. */

.has-localnav .header--global { position: absolute; height: var(--global-h); background: none; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-localnav main { --header-h: var(--local-h); }
/* out of sight further down the page: held just above the window, ready to slide in */
.has-localnav.global-held .header--global {
  position: fixed;
  transform: translateY(-100%);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
}
.has-localnav.global-ready .header--global { transition: transform 0.32s var(--ease); }   /* only once it is in place, or taking hold would show */
.has-localnav.global-held.global-back .header--global { transform: none; }
.has-localnav.global-back { --nav-shift: var(--global-h); }
@media (prefers-reduced-motion: reduce) {
  .has-localnav.global-ready .header--global, .localnav { transition: none !important; }
}

.localnav {
  position: sticky;
  top: var(--nav-shift, 0px);
  transition: top 0.32s var(--ease);
  z-index: 40;
  height: var(--local-h);
  margin-top: var(--global-h);
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-block: 1px solid var(--line);
}
.localnav__app {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.localnav__app img { width: 1.75rem; height: 1.75rem; border-radius: 22.37%; }
.localnav__links {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  gap: clamp(0.25rem, 1.4vw, 1.25rem);
  font-size: 0.875rem;
  font-weight: 500;
}
.localnav__links::-webkit-scrollbar { display: none; }
.localnav__links a {
  display: block;
  padding: 0.5rem 0.375rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.localnav__links a:hover, .localnav__links a[aria-current] { color: var(--ink); }
.localnav__links a[aria-current] { font-weight: 700; }
.localnav__get {
  flex: none;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  transition: background-color 0.25s, transform 0.3s var(--ease);
}
.localnav__get:hover { background: var(--accent); color: #fff; }
.localnav__get:active { transform: scale(0.95); }

@media (max-width: 35rem) {
  .localnav { gap: 0.5rem; }
  .localnav__app span { display: none; }
  /* the icon on the left already leads to the overview */
  .localnav__overview { display: none; }
  .localnav__links { gap: 0; font-size: 0.8125rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) var(--gutter) clamp(2.5rem, 7vh, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  overflow-x: clip;
}

.blob {
  position: absolute;
  z-index: -1;
  top: calc(var(--header-h) + 1vh);
  right: -6vw;
  width: min(86vh, 60vw);
  aspect-ratio: 1;
  pointer-events: none;
}
.blob svg { width: 100%; height: 100%; overflow: visible; }
.blob [data-blob-body] { filter: drop-shadow(0 2.2rem 3rem rgb(243 0 107 / 0.28)); }
.blob canvas {
  position: absolute;
  inset: -14%;                 /* room round the box for the pour; VIEW in site.js matches */
  width: 128%; height: 128%;
  display: none;
}
.blob.is-gl canvas { display: block; }
.blob.is-gl svg { display: none; }
/* soft light the object throws onto the page */
.blob.is-gl::before {
  content: "";
  position: absolute;
  inset: 18% 2% -14% 2%;
  background: radial-gradient(closest-side, rgb(243 0 107 / var(--blob-glow, 0.26)), rgb(243 0 107 / 0.08) 60%, transparent);
  filter: blur(2rem);
}

/* pause for keyboard users: out of sight until it has focus */
.blob-toggle {
  position: absolute;
  z-index: 2;
  top: calc(var(--header-h) + 1rem);
  right: var(--gutter);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  clip-path: inset(50%);
  white-space: nowrap;
}
.blob-toggle:focus-visible { clip-path: none; }
.blob-toggle::before { display: inline-block; width: 1.1em; content: "❚❚" / ""; font-size: 0.75em; letter-spacing: -0.1em; }
.blob-toggle[aria-pressed="true"]::before { content: "▶" / ""; letter-spacing: 0; }

@media (max-width: 47.99rem) {
  .blob { width: 112vw; right: -34vw; top: calc(var(--header-h) - 2vh); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 10.6vw, 10rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-optical-sizing: auto;
  margin-left: -0.04em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.06em 0.12em;
  margin-block: -0.06em -0.12em;
}
.hero__title .line > span { display: inline-block; }


.hero__lead {
  margin-top: clamp(1.5rem, 4vh, 2.75rem);
  max-width: 34em;
  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) {
  .hero__title .line > span {
    animation: rise 1.1s var(--ease) both;
  }
  .hero__title .line:nth-child(2) > span { animation-delay: 0.08s; }
  .hero__title .line:nth-child(3) > span { animation-delay: 0.16s; }
  .hero__lead { animation: fade 1.2s 0.5s var(--ease) both; }
  .blob { animation: bloom 1.6s var(--ease) both; }

}

@media (max-width: 47.99rem) {
  .hero__title { font-size: 15vw; }
}

.hero__title .is-root { color: color-mix(in srgb, var(--accent) calc(var(--flat, 0) * 100%), currentColor); }

.hero__title { position: relative; }
.hero__title.is-mosaic .is-root { color: transparent; }
.hero__mosaic { position: absolute; display: none; pointer-events: none; }

/* not found: the hero, with the ways back under the line */
.lost__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  padding: 0;
  list-style: none;
}
.lost__links a {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-weight: 600;
  transition: border-color 0.3s, color 0.3s;
}
.lost__links li:first-child a { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.lost__links a:hover, .lost__links a:focus-visible { border-color: var(--accent); }
.lost__links li:first-child a:hover, .lost__links li:first-child a:focus-visible { background: var(--accent); border-color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .lost__links { animation: fade 1.2s 0.7s var(--ease) both; }
}

@keyframes rise { from { transform: translateY(110%); } }
@keyframes fade { from { opacity: 0; transform: translateY(0.75rem); } }
@keyframes bloom { from { opacity: 0; transform: scale(0.82) rotate(-14deg); } }

/* ---------- Apps ---------- */

.apps {
  padding: clamp(1rem, 4vw, 3rem) var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.app {
  --tint: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--tint) 9%, var(--panel));
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.app--haste { --tint: #20aef5; }
.app--booklover { --tint: #fa6900; }

@media (hover: hover) {
  .app:hover {
    transform: translateY(-6px);
    box-shadow: 0 2rem 3.5rem -1.5rem color-mix(in srgb, var(--tint) 45%, transparent);
  }
}
.app:focus-within { box-shadow: 0 0 0 2px var(--tint); }

.app__stage {
  height: clamp(13rem, 26vw, 21rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 0;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--tint) 20%, transparent), transparent 70%);
}

.app__body {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.75rem) 0;
}
.app__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));
}
.app__name {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.2vw, 5.5rem);
  font-weight: 700;
  font-stretch: 86%;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-left: -0.03em;
}
/* the whole panel is the link */
.app__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.app__name a:focus-visible { outline: none; }

.app__tagline {
  margin-top: 0.9rem;
  font-size: clamp(1.0625rem, 0.7vw + 0.9rem, 1.375rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
  word-break: keep-all;
}

.app__foot {
  margin-top: auto;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.app__platform {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in oklab, var(--tint) 55%, var(--ink));
}
.app__store {
  position: relative;
  z-index: 2;
  border-radius: 8px;
  transition: transform 0.3s var(--ease);
}
.app__store img { height: 2.5rem; width: auto; }
.app__store:hover { transform: scale(1.04); }
.app__store:active { transform: scale(0.98); }

.app__arrow {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  width: 3rem; height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.6s var(--ease);
}
.app__arrow svg { transition: transform 0.6s var(--ease); }
.app:hover .app__arrow,
.app:focus-within .app__arrow { background: var(--ink); color: var(--bg); }
.app:hover .app__arrow svg,
.app:focus-within .app__arrow svg { transform: translate(2px, -2px); }

/* Haste: ⌘⌘ → search */
.haste {
  width: min(100%, 24rem);
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
.haste__keys { display: flex; gap: 0.625rem; }
.haste__keys kbd {
  width: 3.25rem; height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--panel);
  color: var(--ink);
  font: 500 1.375rem/1 var(--font-body);
  box-shadow:
    0 0 0 1px var(--line),
    0 4px 0 0 color-mix(in oklab, var(--tint) 30%, var(--line)),
    0 0.75rem 1.25rem -0.5rem rgb(0 0 0 / 0.25);
}
.haste__field {
  width: 100%;
  height: 3.5rem;
  padding: 0 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  background: var(--panel);
  color: var(--tint);
  box-shadow:
    0 0 0 1px var(--line),
    0 1.5rem 2.5rem -1rem color-mix(in srgb, var(--tint) 55%, transparent);
}
.haste__field svg { flex: none; }
.haste__query {
  overflow: hidden;
  white-space: nowrap;
  width: 10ch;
  color: var(--ink);
  font: 500 1.125rem/1.6 var(--font-mono);
}
.haste__caret {
  width: 2px; height: 1.5rem;
  margin-left: -0.625rem;
  background: var(--tint);
  border-radius: 1px;
}

@media (prefers-reduced-motion: no-preference) {
  .haste__keys kbd { animation: key-1 7s infinite; }
  .haste__keys kbd + kbd { animation-name: key-2; }
  .haste__field { animation: field 7s infinite; transform-origin: 50% 0; }
  .haste__query { animation: type 7s infinite; }
  .haste__caret { animation: blink 1s steps(2, jump-none) infinite; }
}
@keyframes key-1 {
  0%, 5%, 11%, 100% { transform: none; }
  8% { transform: translateY(4px); box-shadow: 0 0 0 1px var(--line), 0 0 0 0 transparent, 0 0.25rem 0.5rem -0.25rem rgb(0 0 0 / 0.25); }
}
@keyframes key-2 {
  0%, 11%, 17%, 100% { transform: none; }
  14% { transform: translateY(4px); box-shadow: 0 0 0 1px var(--line), 0 0 0 0 transparent, 0 0.25rem 0.5rem -0.25rem rgb(0 0 0 / 0.25); }
}
@keyframes field {
  0%, 15% { opacity: 0; transform: translateY(-0.5rem) scale(0.96); }
  21%, 93% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-0.5rem) scale(0.96); }
}
@keyframes type {
  0%, 28% { width: 0; animation-timing-function: steps(10, end); }
  52%, 100% { width: 10ch; }
}
@keyframes blink { from { opacity: 1; } to { opacity: 0; } }

/* Booklover: shelf */
.shelf {
  align-self: stretch;
  width: min(100%, 26rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.2%;
  border-bottom: 3px solid color-mix(in oklab, var(--tint) 45%, var(--ink));
}
.shelf i {
  flex: none;
  width: var(--w);
  height: var(--h);
  display: grid;
  place-items: center;
  border-radius: 5px 5px 1px 1px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.22), transparent 30%, transparent 75%, rgb(0 0 0 / 0.16)),
    var(--c);
  color: rgb(255 255 255 / 0.92);
  font: 700 0.75rem/1 var(--font-display);
  font-style: normal;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  transform-origin: 100% 100%;
  transition: transform 0.7s var(--ease);
}
.shelf .lean { transform: rotate(-9deg) translateX(-6%); }
@media (hover: hover) {
  .app:hover .shelf .pick { transform: translateY(-12%); }
  .app:hover .shelf .lean { transform: none; }
}

/* ---------- Contact ---------- */

.contact {
  padding: clamp(6rem, 18vw, 14rem) var(--gutter) clamp(5rem, 14vw, 11rem);
}
.contact__app {
  max-width: 40em;
  text-wrap: balance;
  word-break: auto-phrase;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--muted);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.7;
}
.contact__app + .contact__to { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.contact__to {
  text-wrap: balance;
  word-break: auto-phrase;
  margin-bottom: 0.6rem;
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 600;
}
.contact__app { margin-bottom: 0; }
.contact__app .menu-icon svg { display: inline-block; width: 1.15em; height: 1.15em; margin-inline: 0.15em; vertical-align: -0.24em; color: var(--ink); }
[data-mail-text] > .mail-host { white-space: nowrap; background: none; padding: 0; }
.contact__mail {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.15em;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6.4vw, 6.25rem);
  font-weight: 600;
  font-stretch: 84%;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-left: -0.03em;
}
.contact__mail span {
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 0.07em no-repeat;
  padding-bottom: 0.08em;
  transition: background-size 0.7s var(--ease), color 0.4s;
}
.contact__mail svg {
  flex: none;
  width: 0.62em; height: 0.62em;
  margin-top: 0.12em;
  color: var(--accent);
  transition: transform 0.6s var(--ease);
}
.contact__mail:hover span,
.contact__mail:focus-visible span,
.contact.is-called .contact__mail span { background-size: 100% 0.07em; }
.contact__mail:hover svg,
.contact__mail:focus-visible svg { transform: translate(0.08em, -0.08em); }

@media (max-width: 35rem) {
  .contact__mail { font-size: 5.4vw; }
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 2.5rem 2rem;
}
.footer h2 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}
.footer li a {
  display: inline-block;
  word-break: keep-all;
  padding-block: 0.3rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer li a:hover { color: var(--ink); }
.footer li a[aria-current] { color: var(--ink); }
.footer__copy {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--muted);
  font-family: var(--font-display);
  line-height: 1.5;
}
.footer__copy small { font-size: 0.75rem; letter-spacing: 0.02em; }

/* Sections no longer fade in on scroll. The [data-reveal] / .is-in hook stays
   for the few places where the motion explains something (see product.css). */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Product pages: nudge the company logo so its mark sits on the same centre
   line as the app icon in the local nav below. */
.has-localnav .header--global .logo { transform: translateX(0.47rem); }

/* Narrow screens: the local nav scrolls sideways; its right edge fades so the
   cut-off item reads as "more this way". */
@media (max-width: 47.99rem) {
  .localnav__links {
    padding-right: 1.5rem;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
  }
}

/* English pages: a plain store button stands in until the official English badge artwork is added */
.store-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  height: 40px;
  padding: 0 0.95rem;
  border: 1px solid #a6a6a6;
  border-radius: 7px;
  background: #000;
  color: #fff;
  font-family: var(--font-latin), sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.store-pill small { font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.01em; }

/* language switch in the global bar */
.nav__lang { font-family: var(--font-latin), sans-serif; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; }

/* Hero headline, once its letters have been made soft (see js/site.js) */
.hero__title.is-soft .line { overflow: visible; }
.hero__title .glyph {
  display: inline-block;
  letter-spacing: 0;
  text-align: center;
  white-space: pre;
  transform-origin: 50% 70%;
  will-change: transform;
}
