@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #171a1f;
  --muted: #656a70;
  --line: #dedfe2;
  --porcelain: #f7f8fa;
  --warm-white: #fcfaf7;
  --paper: #ffffff;
  --cobalt-deep: #0a1748;
  --cobalt: #2148b8;
  --cobalt-bright: #2b5ad2;
  --moss-deep: #123c32;
  --moss: #2c6553;
  --amber: #9a640f;
  --danger: #b42318;
  --focus: #7db4ff;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--porcelain);
  font-size: 16px;
  line-height: 1.55;
}

body,
button,
input {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cobalt);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.shell,
.story-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(23, 26, 31, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.site-header-home {
  position: absolute;
  width: 100%;
  border-bottom-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  backdrop-filter: none;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.site-header-home .brand,
.site-header-home .nav-links a,
.site-header-home .mobile-menu summary {
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #52565b;
  font-size: 15px;
  text-decoration: none;
}

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

.site-header-home .nav-links a:hover {
  color: #d8e2ff;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  min-width: 48px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(290px, calc(100vw - 32px));
  display: grid;
  border: 1px solid rgba(23, 26, 31, 0.12);
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(10, 23, 72, 0.18);
  padding: 12px;
}

.mobile-menu nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  color: var(--ink);
  padding: 0 12px;
  text-decoration: none;
}

.story-main {
  overflow: clip;
}

.story-hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: var(--cobalt-deep);
}

.hero-photo,
.handoff-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-photo {
  object-position: center center;
  transform: scale(1.025);
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 19, 61, 0.98) 0%, rgba(12, 28, 87, 0.92) 31%, rgba(25, 57, 141, 0.66) 53%, rgba(10, 23, 72, 0.08) 82%),
    linear-gradient(180deg, rgba(10, 23, 72, 0.42) 0%, rgba(10, 23, 72, 0.04) 52%, rgba(10, 23, 72, 0.62) 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 116px;
  padding-bottom: 156px;
}

.hero-content {
  width: min(610px, 58%);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 68px;
  font-weight: 600;
  line-height: 1.02;
}

.hero-copy {
  max-width: 590px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions,
.handoff-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 24px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.button-light {
  color: var(--cobalt-deep);
  background: #ffffff;
}

.button-light:hover {
  color: var(--cobalt);
  background: #f1f4ff;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.text-link-light {
  color: rgba(255, 255, 255, 0.9);
}

.hero-next {
  position: absolute;
  left: 0;
  bottom: 30px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  text-decoration: none;
}

.hero-product-peek {
  position: absolute;
  z-index: -1;
  right: 2%;
  bottom: -90px;
  width: 44%;
  height: 250px;
  max-width: 920px;
  object-fit: cover;
  object-position: top center;
  opacity: 0.3;
  filter: saturate(0.7);
  transform: perspective(1200px) rotateX(6deg) rotateY(-4deg);
  transform-origin: bottom right;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
  will-change: transform;
}

.receipt-story {
  min-height: 860px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
  background: var(--warm-white);
}

.receipt-photo {
  position: relative;
  min-height: 720px;
  margin: 0;
  overflow: hidden;
}

.receipt-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.receipt-photo figcaption {
  position: absolute;
  left: 32px;
  bottom: 32px;
  max-width: 330px;
  color: #ffffff;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.3;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.receipt-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 92px max(48px, calc((100vw - 1180px) / 2)) 72px 64px;
}

.receipt-copy h2,
.security-copy h2,
.handoff-copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.08;
}

.receipt-copy p,
.security-copy p,
.handoff-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.68;
}

.receipt-copy p {
  color: #555a5f;
}

.receipt-simulation {
  position: relative;
  min-height: 360px;
  margin-top: 44px;
}

.paper-receipt,
.stack-sheet {
  background: #fffdf8;
  border: 1px solid rgba(23, 26, 31, 0.1);
  box-shadow: 0 16px 44px rgba(61, 48, 30, 0.12);
}

.paper-receipt {
  position: absolute;
  width: 184px;
  padding: 15px 17px;
  color: #414449;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.7;
  will-change: transform;
}

.paper-receipt span {
  color: #656a70;
}

.paper-receipt-a {
  top: 28px;
  left: 0;
  transform: rotate(-7deg);
}

.paper-receipt-b {
  top: 166px;
  left: 72px;
  transform: rotate(5deg);
}

.month-stack {
  position: absolute;
  top: 70px;
  right: 0;
  width: min(270px, 48%);
  height: 160px;
  will-change: transform, opacity;
}

.stack-sheet {
  position: absolute;
  inset: 0;
}

.stack-sheet-back {
  transform: translate(8px, 8px) rotate(2deg);
}

.stack-sheet-middle {
  transform: translate(4px, 4px) rotate(-1deg);
}

.stack-sheet-front {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.stack-sheet-front small {
  color: var(--moss);
  font-size: 11px;
  font-weight: 600;
}

.stack-sheet-front strong {
  margin-top: 5px;
  font-size: 22px;
}

.stack-sheet-front span {
  margin-top: 5px;
  color: #6c7074;
  font-size: 13px;
}

.product-story {
  position: relative;
  height: 430vh;
  background: var(--porcelain);
}

.product-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(250px, 0.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 54px;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0 46px;
}

.product-intro h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.1;
}

.product-intro > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.product-rail {
  display: grid;
  gap: 2px;
  margin-top: 42px;
}

.product-tab {
  min-height: 52px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  border: 0;
  border-left: 2px solid #d4d7de;
  color: #5f646a;
  background: transparent;
  padding: 0 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.product-tab span,
.product-screen figcaption span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.product-tab.is-active {
  border-left-color: var(--cobalt);
  color: var(--ink);
  background: rgba(33, 72, 184, 0.06);
}

.product-stage {
  position: relative;
  min-height: 76svh;
  perspective: 1400px;
}

.product-screen {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.975);
  pointer-events: none;
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.product-screen.is-active {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.product-screen figcaption {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #656a70;
  font-size: 14px;
}

.product-screen img {
  width: 100%;
  height: calc(76svh - 46px);
  object-fit: contain;
  object-position: top center;
  filter: drop-shadow(0 28px 40px rgba(10, 23, 72, 0.16));
}

.security-story {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--moss-deep);
}

.security-light {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 78% 38%, rgba(85, 153, 128, 0.46), rgba(18, 60, 50, 0) 53%);
  pointer-events: none;
  will-change: transform;
}

.security-copy {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 100px;
}

.security-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.security-copy .security-note {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
  font-family: "Newsreader", Georgia, serif;
  font-size: 21px;
  font-style: italic;
}

.handoff-story {
  position: relative;
  min-height: 920px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #ffffff;
  background: var(--moss-deep);
}

.handoff-photo {
  object-position: center;
}

.handoff-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(18, 60, 50, 0.98) 0%, rgba(18, 60, 50, 0.88) 37%, rgba(18, 60, 50, 0.45) 65%, rgba(18, 60, 50, 0.06) 100%);
}

.handoff-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 70px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.handoff-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.handoff-files {
  position: relative;
  align-self: end;
  min-height: 400px;
  pointer-events: none;
}

.archive-sheet,
.csv-sheet {
  position: absolute;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(23, 26, 31, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  padding: 22px 24px;
  will-change: transform, opacity;
}

.archive-sheet {
  left: 0;
  bottom: 120px;
  width: 270px;
  transform: rotate(-3deg);
}

.csv-sheet {
  right: 0;
  bottom: 0;
  width: min(480px, 86%);
  display: grid;
  gap: 7px;
}

.archive-sheet small,
.csv-sheet small {
  color: var(--moss);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.archive-sheet strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

.csv-sheet span {
  color: #555a5f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.legal-page main section {
  padding: 84px 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.08;
}

.section-heading .eyebrow {
  margin: 0 0 12px;
  color: var(--cobalt);
  font-size: 15px;
  font-weight: 600;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
}

.legal-content {
  display: grid;
  gap: 20px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 24px;
}

.legal-card h2 {
  margin: 0;
  font-size: 22px;
}

.legal-card h3 {
  margin: 0 0 8px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #686d72;
  background: var(--paper);
  padding: 34px 0;
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.placeholder-warning {
  border-bottom: 1px solid #f2c7bd;
  color: var(--danger);
  background: #fff3ef;
  padding: 10px 0;
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-page .hero-content > * {
    animation: hero-enter 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .motion-page .hero-content > :nth-child(2) {
    animation-delay: 90ms;
  }

  .motion-page .hero-content > :nth-child(3) {
    animation-delay: 170ms;
  }

  @supports (animation-timeline: view()) {
    .motion-page [data-reveal] {
      animation: section-reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
  }
}

.motion-fallback [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-fallback [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes section-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  h1 {
    font-size: 56px;
  }

  .hero-content {
    width: min(610px, 70%);
  }

  .receipt-story {
    grid-template-columns: 1fr;
  }

  .receipt-photo {
    min-height: 560px;
  }

  .receipt-copy {
    padding: 72px 48px;
  }

  .product-sticky {
    width: min(920px, calc(100% - 40px));
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 26px;
  }

  .handoff-layout {
    grid-template-columns: 1fr;
  }

  .handoff-copy {
    max-width: 660px;
  }

  .handoff-files {
    width: min(620px, 100%);
  }
}

@media (max-width: 700px) {
  .shell,
  .story-shell {
    width: min(100% - 32px, 620px);
  }

  .nav {
    min-height: 64px;
  }

  .story-hero,
  .hero-layout {
    min-height: 760px;
  }

  .hero-photo {
    object-position: 61% center;
  }

  .hero-wash {
    background:
      linear-gradient(180deg, rgba(8, 19, 61, 0.7) 0%, rgba(10, 23, 72, 0.18) 28%, rgba(10, 23, 72, 0.9) 64%, rgba(10, 23, 72, 0.98) 100%),
      linear-gradient(90deg, rgba(10, 23, 72, 0.72), rgba(10, 23, 72, 0.06));
  }

  .hero-layout {
    align-items: flex-end;
    padding-top: 96px;
    padding-bottom: 152px;
  }

  .hero-content {
    width: 100%;
  }

  h1 {
    font-size: 42px;
    line-height: 1.05;
  }

  .hero-copy {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .button {
    min-height: 48px;
    padding: 0 20px;
  }

  .hero-next {
    bottom: 20px;
  }

  .hero-product-peek {
    right: -12%;
    bottom: -34px;
    width: 74%;
    height: 116px;
    opacity: 0.24;
  }

  .receipt-photo {
    min-height: 430px;
  }

  .receipt-photo figcaption {
    left: 20px;
    bottom: 20px;
    font-size: 20px;
  }

  .receipt-copy {
    padding: 58px 20px 44px;
  }

  .receipt-copy h2,
  .security-copy h2,
  .handoff-copy h2,
  .section-heading h1,
  .section-heading h2 {
    font-size: 34px;
  }

  .receipt-copy p,
  .security-copy p,
  .handoff-copy p {
    font-size: 16px;
  }

  .receipt-simulation {
    min-height: 420px;
  }

  .paper-receipt-a {
    left: 0;
  }

  .paper-receipt-b {
    left: 24px;
  }

  .month-stack {
    top: 244px;
    left: 48px;
    right: auto;
    width: min(270px, calc(100% - 56px));
  }

  .product-story {
    height: auto;
    padding: 64px 0 74px;
  }

  .product-sticky {
    position: relative;
    min-height: 0;
    width: calc(100% - 32px);
    display: block;
    padding: 0;
  }

  .product-intro h2 {
    font-size: 34px;
  }

  .product-rail {
    display: flex;
    gap: 0;
    margin-top: 30px;
    overflow-x: auto;
    border-bottom: 1px solid #d4d7de;
  }

  .product-tab {
    min-width: max-content;
    min-height: 48px;
    display: flex;
    gap: 8px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 0 12px;
  }

  .product-tab.is-active {
    border-bottom-color: var(--cobalt);
    background: transparent;
  }

  .product-stage {
    min-height: 590px;
    margin-top: 18px;
  }

  .product-screen img {
    height: 540px;
    object-fit: contain;
    object-position: top center;
    filter: drop-shadow(0 20px 28px rgba(10, 23, 72, 0.14));
  }

  .security-story {
    min-height: 700px;
  }

  .security-copy {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .security-copy .security-note {
    font-size: 19px;
  }

  .handoff-story {
    min-height: 920px;
    align-items: flex-end;
  }

  .handoff-photo {
    object-position: 68% center;
  }

  .handoff-wash {
    background: linear-gradient(180deg, rgba(18, 60, 50, 0.1) 0%, rgba(18, 60, 50, 0.62) 38%, rgba(18, 60, 50, 0.98) 66%, rgba(18, 60, 50, 1) 100%);
  }

  .handoff-layout {
    display: block;
    padding-top: 310px;
    padding-bottom: 64px;
  }

  .handoff-actions {
    margin-top: 26px;
  }

  .handoff-files {
    min-height: 330px;
    margin-top: 38px;
  }

  .archive-sheet {
    bottom: 110px;
    width: 220px;
  }

  .csv-sheet {
    width: 90%;
  }

  .legal-page main section {
    padding: 58px 0;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
