/* ============================================================
   No — landing page
   Same palette and type scale as the app: near-monochrome, one
   accent held back for the moments that deserve friction.
   ============================================================ */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --sunken: #efede8;
  --ink: #111110;
  --ink-soft: #3d3b37;
  --muted: #78756e;
  --faint: #aaa69d;
  --line: #e2dfd8;
  --line-soft: #edeae4;
  --inverted: #111110;
  --on-inverted: #f7f6f3;
  --signal: #b23f27;
  --signal-soft: #f2e1db;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --shell: 1120px;
  --gutter: clamp(22px, 5vw, 48px);
  --band: clamp(72px, 11vw, 148px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0b;
    --surface: #161615;
    --sunken: #1f1f1d;
    --ink: #f4f2ed;
    --ink-soft: #c9c5bc;
    --muted: #8b8880;
    --faint: #5e5b55;
    --line: #262623;
    --line-soft: #1c1c1a;
    --inverted: #f4f2ed;
    --on-inverted: #0c0c0b;
    --signal: #e0785e;
    --signal-soft: #2a1a15;
  }
}

/* ── Reset ────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
figure,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: italic;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--gutter);
  top: 12px;
  z-index: 50;
  background: var(--inverted);
  color: var(--on-inverted);
  padding: 10px 16px;
  border-radius: 999px;
}

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

/* ── Layout ───────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

.band {
  padding: var(--band) 0;
  border-top: 1px solid var(--line);
}

.band.alt {
  background: var(--surface);
}

/* ── Type ─────────────────────────────────────────────────── */

h1 {
  font-size: clamp(2.2rem, 6.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.043em;
  font-weight: 500;
}

/* The turn in the headline switches to the serif, the app's editorial voice.
   Without this the browser fakes an oblique Inter, which looks slanted rather
   than italic. */
h1 em {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.03em;
  color: var(--muted);
}

/* Polish hero lines run longer than English — keep each phrase on one line
   and ease the size so they still fit beside the phone. */
html[lang='pl'] .hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
}

html[lang='pl'] .hero h1 .hero-line {
  display: inline-block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-top: 14px;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
  margin-top: 26px;
}

.lede strong {
  color: var(--ink);
  font-weight: 500;
}

.aside {
  color: var(--muted);
  max-width: 62ch;
  margin-top: 40px;
  font-size: 1rem;
}

.aside em {
  color: var(--ink-soft);
  font-style: normal;
}

.fineprint {
  margin-top: 22px;
  font-size: 0.8125rem;
  color: var(--faint);
}

.ord {
  font-variant-numeric: tabular-nums;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* ── Header ───────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.wordmark.small {
  font-size: 0.9375rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-header nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

@media (max-width: 560px) {
  .site-header nav a:not(.nav-cta) {
    display: none;
  }
}

/* ── Buttons ──────────────────────────────────────────────── */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 38px;
}

.cta-row.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  opacity: 0.8;
}

.btn-primary {
  background: var(--inverted);
  color: var(--on-inverted);
}

.btn-quiet {
  color: var(--muted);
  padding: 0 12px;
}

.btn-quiet:hover {
  color: var(--ink);
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  padding: clamp(56px, 9vw, 108px) 0 var(--band);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-device {
    justify-self: center;
  }
}

/* ── Phone mockup ─────────────────────────────────────────── */

.phone {
  width: 300px;
  height: 638px;
  border-radius: 46px;
  padding: 11px;
  background: var(--ink);
  box-shadow:
    0 40px 80px -30px rgba(17, 17, 16, 0.42),
    0 0 0 1px rgba(17, 17, 16, 0.06);
}

@media (prefers-color-scheme: dark) {
  .phone {
    background: #2a2a27;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  }
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  background: var(--bg);
  padding: 26px 22px 0;
  overflow: hidden;
  font-size: 13px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.app-counter {
  font-size: 11px;
  color: var(--faint);
}

.app-counter b {
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.app-dots {
  display: flex;
  gap: 3.5px;
}

.app-dots i {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--faint);
}

.app-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.app-slots li {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding: 7px 0;
}

.app-slots .ord {
  font-size: 9px;
  width: 14px;
  flex: none;
}

.slot-body {
  display: block;
}

.slot-title {
  display: block;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
}

.slot-title.open {
  color: var(--faint);
  font-weight: 400;
}

.slot-meta {
  display: block;
  font-size: 10px;
  color: var(--faint);
  margin-top: 3px;
}

.app-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.app-section-head .app-label {
  margin-bottom: 0;
}

.app-count {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.app-share {
  margin-left: auto;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-ideas {
  margin-top: 14px;
}

.app-ideas li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}

.app-ideas li:first-child {
  border-top: 0;
}

.app-ideas em {
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
  flex: none;
}

.app-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-top: 20px;
}

.app-fab {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--inverted);
  display: grid;
  place-items: center;
}

.app-fab span {
  position: absolute;
  width: 15px;
  height: 1.4px;
  border-radius: 1px;
  background: var(--on-inverted);
}

.app-fab span:last-child {
  transform: rotate(90deg);
}

/* ── Credo ────────────────────────────────────────────────── */

/* ── Nameplate ────────────────────────────────────────────── */

.nameplate-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(2.6rem, 6vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: 0;
  color: var(--ink-soft);
}

.nameplate-title s {
  color: var(--faint);
  text-decoration-line: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--faint);
}

/* Instrument Serif is single-weight — thicken only “no”. */
.nameplate-title strong {
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  text-shadow: 0.004em 0 0 currentColor, -0.002em 0 0 currentColor;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}

.nameplate-lede {
  margin: 18px auto 0;
  max-width: 54ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--muted);
}

.nameplate-lede u {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

.credo blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.credo blockquote footer {
  margin-top: 26px;
  font-size: 0.8125rem;
  color: var(--faint);
}

/* ── Cost list ────────────────────────────────────────────── */

.cost-list {
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.cost-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  letter-spacing: -0.025em;
  color: var(--ink-soft);
}

.cost-list .ord {
  width: 22px;
  flex: none;
}

/* ── Steps ────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(30px, 4vw, 56px);
  margin-top: 58px;
}

.step .ord {
  display: block;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 0.9688rem;
}

/* Inter ships no true italic here, so emphasis reads as colour instead. */
.step p em {
  color: var(--ink-soft);
  font-style: normal;
}

.step .question {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ink);
  margin-top: 14px;
}

/* ── Quotes ───────────────────────────────────────────────── */

.rotating-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  /* Two lines' worth, so cycling a longer quote never shifts the page. */
  min-height: 2.5em;
  transition: opacity 0.5s ease;
}

.rotating-quote.fading {
  opacity: 0;
}

.quote-list {
  margin-top: 54px;
  border-top: 1px solid var(--line);
}

.quote-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

/* ── Split section ────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}

@media (max-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.code-card {
  background: var(--sunken);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
}

.code-card figcaption {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.code-card pre {
  margin: 0;
  overflow-x: auto;
}

.code-card code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  white-space: pre;
}

/* ── Facts ────────────────────────────────────────────────── */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(28px, 4vw, 52px);
  margin-top: 54px;
}

.fact h3 {
  margin-bottom: 10px;
}

.fact p {
  color: var(--muted);
  font-size: 0.9688rem;
}

/* ── CTA + footer ─────────────────────────────────────────── */

.cta-band h2 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-tag {
  font-size: 0.8125rem;
  color: var(--faint);
}

/* ── Reveal on scroll ─────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .rotating-quote,
  .btn {
    transition: none;
  }
}
