/* ==========================================================================
   Liftevity website. Uses the app's "Tape" design system (see DESIGN.md):
   charcoal olive ground, film grain, electric lime only where something is
   acted on or earned, Archivo 900 at 62% width for display type.
   The token values are copied from src/styles/tokens.css, dark theme.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
  --gutter: 28px;

  --accent: #c6ff00;
  --secondary-text: #d1d6cb;
  --ink: #15180e;

  --bg: #10120d;
  --band: #171a13;
  --surface: #191c15;
  --surface-2: #23271e;
  --line: #34392c;
  --line-strong: #4b5340;
  --fg: #f3f5ed;
  --muted: #b1b8a6;
  --subtle: #8b947d;

  --shadow: 0 28px 70px -24px #000c;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --display: 900 1em/0.86 var(--font);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --crumple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='960' height='480'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .011' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='5'%3E%3CfeDistantLight azimuth='225' elevation='48'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");

  font-family: var(--font);
  font-size: 100%;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) transparent;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
}
/* The Grain Everywhere Rule: one film grain above all content, never in the way of input. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--grain);
  mix-blend-mode: overlay;
  opacity: 0.09;
}
::selection {
  background: var(--accent);
  color: var(--ink);
}
h1,
h2,
h3,
p,
ul,
figure,
address {
  margin: 0;
}
h1,
h2 {
  font: var(--display);
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  hyphenate-limit-chars: 14 6 6;
}
h1 {
  font-size: clamp(54px, 8.4vw, 116px);
}
h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 0.92;
}
h3 {
  font: 800 20px/1.05 var(--font);
  font-stretch: 75%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
p {
  line-height: 1.6;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
ul {
  padding: 0;
  list-style: none;
}
address {
  font-style: normal;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.icon {
  display: inline-flex;
  flex: none;
}
.icon svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Two languages live in one file. The script in site.js sets data-lang on the
   html element; the other language is hidden. Without JavaScript the page stays
   English, and the text pages show both languages (see their noscript block). */
html[data-lang="de"] [lang="en"],
html[data-lang="en"] [lang="de"] {
  display: none !important;
}

/* ---------- Masthead (text pages) ---------- */
.masthead {
  position: relative;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  max-width: var(--max);
  height: 68px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.wordmark img {
  width: 40px;
  height: 40px;
  border-radius: 18%;
}
.wordmark-text {
  font: var(--display);
  font-stretch: 62%;
  font-size: 31px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark-text span,
.brand-name span {
  color: var(--accent);
}
/* The outlined icon button of the app's page headers, here with the other language's flag. */
.lang-switch {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color 0.15s, border-color 0.15s;
}
.lang-switch img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18);
}
@media (hover: hover) {
  .lang-switch:hover {
    background: var(--surface-2);
    border-color: var(--muted);
  }
}

/* ---------- Page and band ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}
.page-head {
  position: relative;
  isolation: isolate;
  padding: 60px 0 72px;
  margin-bottom: 40px;
}
.page-head::before,
.page-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  border-radius: 0 0 50% 50% / 0 0 64px 64px;
}
.page-head::before {
  background: var(--band);
}
.page-head::after {
  background: var(--crumple) center / 960px 480px;
  mix-blend-mode: soft-light;
  opacity: 0.12;
}
.page-head-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}
.lede {
  max-width: 54ch;
  color: var(--muted);
}

/* ---------- Home: name, what it does, two screens, the stores ---------- */
.home .page {
  padding-bottom: 104px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "top top"
    "copy screens";
  align-items: center;
  gap: 0 clamp(32px, 6vw, 96px);
  padding: 0;
  margin-bottom: 0;
}
.hero-top {
  grid-area: top;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 68px;
}
.hero-copy {
  grid-area: copy;
  display: grid;
  justify-items: start;
  gap: 22px;
  padding: 24px 0 96px;
}
.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 18%;
}
/* The wordmark as the page title: the app's italic condensed cut with "Lift" in lime. */
.brand-name {
  font-size: clamp(84px, 10.5vw, 140px);
  font-style: italic;
  line-height: 0.82;
  letter-spacing: -0.035em;
  white-space: nowrap;
  hyphens: none;
}
.hero .lede {
  max-width: 44ch;
  font-size: 18px;
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
/* Not links yet: the stores are announced, the look is the app's outlined secondary action. */
.store {
  display: grid;
  gap: 5px;
  min-width: 168px;
  padding: 12px 20px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  line-height: 1;
}
.store small {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.store strong {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
a.store {
  transition: background-color 0.15s, border-color 0.15s;
}
@media (hover: hover) {
  a.store:hover {
    background: var(--surface-2);
    border-color: var(--muted);
  }
}
.screens {
  grid-area: screens;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  /* The phones reach past the band's curve. */
  margin-bottom: -40px;
}
.phone {
  flex: none;
  width: clamp(190px, 20vw, 252px);
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 40px;
  background: var(--surface);
  /* The One Float Rule: only a layer that sits above the page casts the shadow. */
  box-shadow: var(--shadow);
}
.phone:nth-child(2) {
  margin-top: 44px;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: 33px;
  background: var(--bg);
}

/* ---------- Text pages (privacy, legal notice) ---------- */
/* Like the app's settings pages, long text keeps one centred column on wide screens. */
.page-narrow .page-head-copy,
.prose {
  max-width: 720px;
  margin-inline: auto;
}
.prose section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.prose > section:first-child,
.prose .panel + section {
  border-top: 0;
  padding-top: 0;
}
.prose h2 {
  margin-bottom: 18px;
}
.prose h3 {
  margin: 28px 0 10px;
}
.prose p,
.prose li {
  color: var(--secondary-text);
}
.prose p + p,
.prose p + ul,
.prose ul + p,
.prose address + p {
  margin-top: 12px;
}
.prose ul:not(.facts) {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  list-style: disc;
}
.prose ul:not(.facts) li::marker {
  color: var(--subtle);
}
.prose li {
  line-height: 1.6;
}
.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
@media (hover: hover) {
  .prose a:hover {
    text-decoration-color: var(--fg);
  }
}
/* A button-like link inside running text, like the support page's Buy Me a Coffee link. */
.prose .stores {
  margin-top: 20px;
}
.prose a.store {
  text-decoration: none;
}
.prose address {
  margin-top: 12px;
  color: var(--secondary-text);
  line-height: 1.6;
}
.prose h2 + address {
  margin-top: 0;
}
.panel {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.prose .panel {
  margin-bottom: 40px;
}
.prose .panel h2 {
  font: 800 20px/1.05 var(--font);
  font-stretch: 75%;
  letter-spacing: 0.01em;
}
.facts {
  display: grid;
  gap: 14px;
}
.prose .facts li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--fg);
}
/* The lime stamp with a heavy check from the week strip's trained days. */
.stamp {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--ink);
  font-size: 20px;
}
.stamp svg {
  stroke-width: 2.75;
}
.updated,
.prose .fine {
  font-size: 13px;
  color: var(--subtle);
}

/* ---------- Footer ---------- */
.page-footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  max-width: var(--max);
  min-height: 76px;
  margin: 0 auto;
  padding: 16px var(--gutter);
  font-size: 14px;
  color: var(--subtle);
}
.footer-inner nav {
  display: flex;
  gap: 24px;
}
/* Tertiary actions: quiet sentence-case text with a 44px tap height. */
.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-stretch: 90%;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.15s;
}
@media (hover: hover) {
  .footer-inner a:hover {
    color: var(--fg);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root {
    --gutter: 16px;
  }
  h1 {
    font-size: clamp(40px, 12.5vw, 64px);
    line-height: 0.9;
  }
  .masthead-inner {
    height: 52px;
  }
  .masthead .wordmark {
    gap: 8px;
  }
  .masthead .wordmark img {
    width: 30px;
    height: 30px;
  }
  .masthead .wordmark-text {
    font-size: 23px;
  }
  .lang-switch {
    width: 40px;
    height: 40px;
  }
  .page {
    padding-bottom: 56px;
  }
  .page-head {
    padding: 36px 0 48px;
    margin-bottom: 28px;
  }
  .page-head::before,
  .page-head::after {
    border-radius: 0 0 50% 50% / 0 0 32px 32px;
  }
  .home .page {
    padding-bottom: 104px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "top"
      "copy"
      "screens";
    padding: 0;
    margin-bottom: 0;
  }
  .hero-top {
    height: 56px;
  }
  .hero-copy {
    gap: 18px;
    padding: 8px 0 40px;
  }
  .brand-mark {
    width: 56px;
    height: 56px;
  }
  .brand-name {
    font-size: clamp(64px, 21vw, 120px);
  }
  .hero .lede {
    font-size: 17px;
  }
  .stores {
    width: 100%;
  }
  .store {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 16px;
  }
  .screens {
    justify-content: center;
    gap: 12px;
    margin-bottom: -48px;
  }
  .phone {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 240px;
    padding: 5px;
    border-radius: 30px;
  }
  .phone:nth-child(2) {
    margin-top: 28px;
  }
  .phone img {
    border-radius: 25px;
  }
}
@media (max-width: 560px) {
  .prose {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  .panel {
    padding: 20px;
  }
}
@media (max-width: 380px) {
  .store strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media print {
  body::after,
  .lang-switch {
    display: none;
  }
}
