:root {
  --paper: #f3f1eb;
  --ink: #102033;
  --ink-soft: #3c4b5a;
  --muted: #5d6b78;
  --line: rgba(16, 32, 51, 0.14);
  --navy: #0c1e30;
  --cyan: #00c2ff;
  --cyan-ink: #075f86;
  --amber: #b45309;
  --cream: #f4f0e6;
  --sans: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cyan); color: #071421; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.section { padding: 5.5rem 0; }

#product, #merchants, #features, #download { scroll-margin-top: 5rem; }

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-ink);
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.045em;
  color: var(--ink);
}

h2 {
  font-size: clamp(2.15rem, 4.3vw, 3.6rem);
  line-height: 0.98;
}

h3 { letter-spacing: -0.03em; line-height: 1.15; }

p { color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 0.9rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--cyan); color: #071421; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(16, 32, 51, 0.28);
}
.btn-secondary:hover { border-color: var(--ink); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.topbar .btn { padding: 0.62rem 0.9rem; font-size: 0.88rem; }

.hero { padding: 1.6rem 0 2rem; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  align-items: baseline;
  padding-bottom: 0.85rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-ink);
}

.hero-meta span:last-child { color: var(--muted); }

.hero h1 {
  font-size: clamp(2.7rem, 6.5vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin: 0 0 1.5rem;
  max-width: 11em;
}

.h1-break { display: inline; }

.hero-layout {
  display: grid;
  gap: 2rem 2.75rem;
  align-items: start;
}

.hero .sub {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  max-width: 28ch;
  margin-bottom: 0.85rem;
}

.hero .body {
  max-width: 38ch;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.hero-visual { position: relative; margin-top: 8px; }

.hero-phones {
  position: relative;
  height: 560px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 26px 18px 0;
  background-color: var(--navy);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.055) 0 1px,
    transparent 1px 32px
  );
  box-shadow: inset 3px 0 0 var(--cyan);
}

.hero-visual::before,
.merchants::before,
.trust::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230c1e30' d='M0 8 L6 0 L12 8 Z'/></svg>");
  background-repeat: repeat-x;
  background-size: 12px 8px;
  pointer-events: none;
}

.phone-card {
  background: #07111b;
  border-radius: 28px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: min(78%, 292px);
}

.phone-card img { border-radius: 22px; width: 100%; }

.phone-card.back { display: none; }

.phone-card.front {
  position: relative;
  z-index: 1;
  transform: translateY(22px);
}

.intro, .pain-head {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 2.4rem;
  max-width: none;
  text-align: left;
}

.intro h2, .pain-head h2 { margin: 0; }
.intro .section-lead, .pain-head > p { margin: 0; max-width: 38ch; }

.pain { background: transparent; }

.pain-grid {
  border-top: 1px solid var(--line);
  counter-reset: pain;
}

.pain-item {
  counter-increment: pain;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.2rem 0.85rem;
  align-items: start;
  padding: 1.2rem 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}

.pain-item .mark { display: none; }

.pain-item::before {
  content: counter(pain, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  padding-top: 0.35rem;
}

.pain-item h3 {
  font-size: 1.28rem;
  margin: 0 0 0.25rem;
}

.pain-item p { margin: 0; font-size: 0.98rem; }

.product { background: transparent; }

.story-stage {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 0.25rem;
}

.story-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  margin-bottom: 0.7rem;
}

.story-panel { display: none; }

.story-panel.is-active {
  display: block;
  animation: slip 320ms ease;
}

@keyframes slip {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.story-panel h3 {
  font-size: clamp(1.65rem, 2.5vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 0.7rem;
}

.story-panel p { max-width: 42ch; font-size: 1.02rem; }

.story-rail {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 1.6rem 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.story-rail button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.story-rail button.is-active {
  color: var(--ink);
  border-bottom-color: var(--cyan);
  background: transparent;
}

.story-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.story-nav button {
  border: 0;
  border-radius: 0;
  padding: 0.15rem 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}

.story-nav button:hover { color: var(--cyan-ink); }
.story-nav [data-prev]::before { content: "←  "; }
.story-nav [data-next]::after { content: "  →"; }

.story-progress {
  height: 2px;
  background: var(--line);
  border-radius: 0;
  margin-top: 0.9rem;
  overflow: hidden;
}

.story-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan);
  transition: width 180ms linear;
}

.device {
  width: min(100%, 300px);
  margin: 0.5rem auto 0;
  background: var(--navy);
  border-radius: 34px;
  padding: 12px 10px 14px;
  box-shadow: 8px 8px 0 var(--cyan);
}

.device-bar {
  width: 84px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin: 2px auto 10px;
}

.device-screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #e7eef2;
  aspect-ratio: 9 / 19.5;
}

.device-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 280ms ease;
}

.device-screen img.is-active { opacity: 1; }

.merchants {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  margin-top: 8px;
  margin-bottom: 8px;
  border: 0;
  padding: 4.6rem 0 4.2rem;
}

.merchants h2,
.merchants h3 { color: var(--cream); }

.merchants p { color: rgba(244, 240, 230, 0.72); }

.merchants .eyebrow,
.merchants .story-kicker { color: #8adfff; }

.merchants .feature-grid {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  counter-reset: merch;
  margin-top: 0.4rem;
}

.merchants .feature {
  counter-increment: merch;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.25rem 0.85rem;
  align-items: start;
  background: transparent;
  border-radius: 0;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.merchants .feature .icon { display: none; }

.merchants .feature::before {
  content: counter(merch, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #8adfff;
  padding-top: 0.3rem;
}

.merchants .feature::before { grid-row: 1 / span 2; }
.merchants .feature h3,
.merchants .feature p { grid-column: 2; }
.merchants .feature h3 { font-size: 1.22rem; margin: 0; }
.merchants .feature p { margin: 0; font-size: 0.98rem; }

.merchants .story-switch-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.merchants .story-switch-tabs button {
  border: 0;
  border-top: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: rgba(244, 240, 230, 0.55);
  text-align: left;
  padding: 1.15rem 0 1.2rem;
  cursor: pointer;
  margin-top: -1px;
}

.merchants .story-switch-tabs button strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: inherit;
}

.merchants .story-switch-tabs button span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(244, 240, 230, 0.55);
}

.merchants .story-switch-tabs button.is-active {
  background: transparent;
  color: var(--cream);
  border-top-color: var(--cyan);
}

.merchants .story-switch-tabs button.is-active span { color: rgba(244, 240, 230, 0.72); }

.merchants .story-rail { border-bottom-color: rgba(255, 255, 255, 0.16); }

.merchants .story-rail button { color: rgba(244, 240, 230, 0.5); }

.merchants .story-rail button.is-active {
  color: var(--cream);
  border-bottom-color: var(--cyan);
  background: transparent;
}

.merchants .story-nav button { color: rgba(244, 240, 230, 0.82); }
.merchants .story-nav button:hover { color: var(--cyan); }

.merchants .story-progress { background: rgba(255, 255, 255, 0.14); }

.merchants .device { box-shadow: 8px 8px 0 var(--cyan); }

[data-story-pane] { display: none; }
[data-story-pane].is-active { display: block; }

.features { background: transparent; }

#features .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 2.4rem;
  border-top: 1px solid var(--line);
  counter-reset: feat;
}

#features .feature {
  counter-increment: feat;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.3rem 0 1.35rem;
}

#features .feature .icon { display: none; }

#features .feature h3 {
  font-size: 1.22rem;
  margin: 0 0 0.4rem;
}

#features .feature h3::before {
  content: counter(feat, decimal-leading-zero);
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan-ink);
}

#features .feature p { font-size: 0.98rem; margin: 0; }

.trust {
  position: relative;
  background: var(--navy);
  margin-top: 8px;
  padding: 4.4rem 0 2.4rem;
}

.trust-head { text-align: left; margin-bottom: 1.8rem; }

.trust-head p {
  color: #8adfff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  text-align: left;
}

.trust-list li {
  background: none;
  border: 0;
  border-radius: 0;
  border-left: 2px solid var(--cyan);
  padding: 0.15rem 0 0.15rem 1rem;
}

.trust-title {
  display: block;
  margin-bottom: 0.4rem;
  color: #8adfff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-copy {
  display: block;
  color: var(--cream);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.download { padding: 0; margin-bottom: 11px; text-align: left; background: var(--navy); }

.download-sheet {
  position: relative;
  background: var(--navy);
  padding: 2.4rem 0 3.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.merchants::after,
.download-sheet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230c1e30' d='M0 0 L6 8 L12 0 Z'/></svg>");
  background-repeat: repeat-x;
  background-size: 12px 8px;
  pointer-events: none;
}

.download .eyebrow { color: #8adfff; }

.download h2 {
  color: var(--cream);
  margin: 0;
}

.download-layout p {
  max-width: 36ch;
  margin: 0.85rem 0 0;
  color: rgba(244, 240, 230, 0.72);
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.4rem;
}

.download-buttons .btn { width: 100%; justify-content: space-between; }

.download-buttons .btn::after { content: "→"; font-weight: 500; }

.download .btn-primary { background: var(--cyan); color: #071421; }
.download .btn-primary:hover { background: var(--cream); color: #071421; }

.download .btn-secondary {
  color: var(--cream);
  border-color: rgba(244, 240, 230, 0.35);
}
.download .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--cream);
}

footer {
  position: relative;
  padding: 2rem 0 1.6rem;
  background: transparent;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--cyan-ink); }

.foot-links { display: flex; gap: 1.15rem; }

@media (max-width: 719px) {
  .nav-wrap { flex-wrap: wrap; padding-top: 0.45rem; min-height: 0; }
  .nav-links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 1rem;
    padding: 0.1rem 0 0.75rem;
    overflow-x: auto;
  }
  .nav-links a { font-size: 0.84rem; white-space: nowrap; }
  .hero-phones { height: 460px; }
  .phone-card { width: min(70%, 230px); }
  .section { padding: 3.6rem 0; }
  .merchants { padding: 3.2rem 0 2.8rem; }
}

@media (min-width: 720px) {
  .h1-break { display: block; }

  .nav-wrap { flex-wrap: nowrap; }
  .nav-links { display: flex; }
  .topbar .btn { padding: 0.78rem 1.05rem; }

  .hero-layout { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 2.5rem; }

  .intro, .pain-head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1rem 3rem;
    align-items: end;
  }

  .pain-item,
  .merchants .feature {
    grid-template-columns: 3.2rem minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: baseline;
  }

  .pain-item > div {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    grid-column: 2 / -1;
    gap: 1.25rem;
    align-items: baseline;
  }

  .pain-item h3,
  .pain-item p { margin: 0; }

  .merchants .feature::before { grid-row: auto; }
  .merchants .feature h3 { grid-column: 2; }
  .merchants .feature p { grid-column: 3; }

  .merchants .story-switch-tabs { grid-template-columns: 1fr 1fr; }
  .merchants .story-switch-tabs button + button {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    padding-left: 1.35rem;
  }

  .story-stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.82fr);
    gap: 3rem;
  }

  .device { margin: 0 auto; }

  #features .feature-grid { grid-template-columns: 1fr 1fr; }

  .trust-list { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

  .download-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.72fr);
    gap: 2.5rem;
    align-items: center;
  }

  .download-buttons { margin-top: 0; }
}

@media (min-width: 1040px) {
  .section { padding: 6.25rem 0; }
  .pain.section { padding-top: 3.25rem; }
  .merchants.section { padding: 5.1rem 0 4.5rem; }
  .trust.section { padding: 4.8rem 0 2.5rem; }
  #features .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero-phones { height: 600px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-panel.is-active { animation: none; }
  .device-screen img { transition: none; }
}
