/* Pullery landing. Dark only, one accent, hairlines. Tokens mirror web/src/styles/tokens.css. */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/landing/fonts/sans.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/landing/fonts/sans-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/landing/fonts/sans-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0b0b0c;
  --ink: #f2f1ec;
  --text2: #a9a8a2;
  --muted: #95958e;
  --on-accent: #141416;
  --surface: #141416;
  --surface2: #26262a;

  --accent: #f5b700;
  --accent-hover: #ffc61a;
  --accent-pressed: #e0a800;
  --accent-tint: rgba(245, 183, 0, 0.12);

  --hair08: rgba(255, 255, 255, 0.08);
  --hair12: rgba(255, 255, 255, 0.12);
  --hair18: rgba(255, 255, 255, 0.18);
  --hair28: rgba(255, 255, 255, 0.28);
  --bar: rgba(11, 11, 12, 0.92);

  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-control: 8px;
  --r-button: 9px;
  --touch: 44px;
  --gutter: clamp(16px, 4vw, 32px);
  --content-max: 1080px;
  --measure: 60ch;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 120ms;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--surface2) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p {
  margin: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--hair28);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
a:hover {
  text-decoration-color: currentColor;
}

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

::selection {
  background: var(--accent-tint);
  color: var(--ink);
}

/* ---------- Shell ---------- */

.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-button);
  background: var(--ink);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible {
  transform: none;
  outline-color: var(--ink);
}

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.main:focus {
  outline: none;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 10px calc(var(--gutter) - 6px);
  background: var(--bar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.top::after {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--hair08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: var(--touch);
  padding: 0 6px;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--r-control);
}
.brand__mark {
  width: 28px;
  height: 35px;
  object-fit: contain;
}
.brand__word {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.top__right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.top__lang a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 10px;
  color: var(--text2);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--r-control);
}
.top__lang a:hover {
  color: var(--ink);
}
.top .top__cta {
  display: none;
}
@media (min-width: 560px) {
  .top .top__cta {
    display: inline-flex;
  }
}

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-button);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.button:active {
  background: var(--accent-pressed);
  transform: translateY(1px);
}
.button:focus-visible {
  outline-color: var(--ink);
}
.button--compact {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9375rem;
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 4px;
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--hair28);
}
.textlink:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 7vw, 88px);
}
@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 48px;
  }
}

.hero__heading {
  max-width: 16ch;
  font-size: clamp(2.375rem, 1.4rem + 4.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__lead {
  max-width: var(--measure);
  margin-top: clamp(20px, 3vw, 28px);
  color: var(--text2);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: clamp(28px, 4vw, 40px);
}
.hero__note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero__art {
  display: flex;
  justify-content: center;
  order: -1;
}
@media (min-width: 820px) {
  .hero__art {
    order: 0;
    justify-content: flex-end;
  }
}
.cards {
  width: min(100%, 220px);
  height: auto;
}
@media (min-width: 820px) {
  .cards {
    width: min(100%, 360px);
  }
}
.cards__back {
  stroke: var(--hair12);
  stroke-width: 1;
}
.cards__mid {
  stroke: var(--hair18);
  stroke-width: 1;
}
.cards__front {
  fill: var(--bg);
  stroke: var(--hair28);
  stroke-width: 1.5;
}
.cards__window {
  stroke: var(--hair12);
  stroke-width: 1;
}
.cards__scan {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 0;
}

/* One authored moment: the amber diagonal draws across the front card once. */
@media (prefers-reduced-motion: no-preference) {
  .cards__scan {
    animation: scan 900ms var(--ease-out) 240ms both;
  }
  .hero__copy > * {
    animation: rise 560ms var(--ease-out) both;
  }
  .hero__copy > :nth-child(2) {
    animation-delay: 60ms;
  }
  .hero__copy > :nth-child(3) {
    animation-delay: 120ms;
  }
  .hero__copy > :nth-child(4) {
    animation-delay: 180ms;
  }
}
@keyframes scan {
  from {
    stroke-dashoffset: 400;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Uses: three short statements on hairlines, not cards ---------- */

.uses {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair12);
}
@media (min-width: 720px) {
  .uses {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
  }
}
.uses__item {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--hair08);
}
@media (min-width: 720px) {
  .uses__item {
    padding: 36px 0 44px;
    border-bottom: 0;
  }
}
.uses__heading {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.uses__body {
  max-width: 38ch;
  margin-top: 12px;
  color: var(--text2);
  text-wrap: pretty;
}

/* ---------- Facts ---------- */

.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair12);
  margin-bottom: clamp(56px, 9vw, 112px);
}
@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
}
.facts__item {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--hair08);
}
@media (min-width: 720px) {
  .facts__item {
    padding: 36px 0 44px;
    border-bottom: 0;
  }
}
.facts__heading {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.facts__body {
  max-width: 48ch;
  margin-top: 12px;
  color: var(--text2);
  text-wrap: pretty;
}

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

.foot {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--hair08);
}
.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.foot__mark {
  width: 28px;
  height: 35px;
  object-fit: contain;
}
.foot__disclaimer {
  max-width: var(--measure);
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.foot__lang {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 24px;
}
.foot__lang a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--text2);
  font-weight: 600;
  font-size: 0.9375rem;
}
.foot__lang a[aria-current='page'] {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Root redirect page ---------- */

.root__main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 64px var(--gutter);
}
.root__text {
  color: var(--text2);
}
.root__links {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
.root__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
