/* Papertrail landing page.
   Swiss/minimal: white ground, generous whitespace, one accent — the blue
   sampled from the logo mark (#0a70df). */

:root {
  --brand: #0a70df;
  --brand-dark: #0857ab;
  --brand-deep: #06407c;
  --brand-tint: #e9f2fd;
  --brand-wash: #f5f9ff;

  --ink: #0f172a;
  --ink-soft: #475569;
  --border: #e2e8f0;

  --maxw: 1120px;
  --radius: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Anchored sections clear the fixed navbar. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* Decorative shapes are positioned beyond the fold; never scroll sideways. */
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

h3 {
  font-size: 1.14rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--brand-tint);
  color: var(--brand-dark);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
}

/* Keep body copy in the readable 65–75 character band. */
.lede,
.body-lg {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 62ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.muted {
  color: var(--ink-soft);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 60;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

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

/* Navbar ------------------------------------------------------------------ */

.nav {
  position: fixed;
  inset: 12px 12px auto;
  z-index: 50;
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 14px 10px 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 220ms var(--ease), background 220ms var(--ease);
}

.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 200ms var(--ease);
}

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

/* Buttons ----------------------------------------------------------------- */

.btn {
  --btn-bg: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 44px minimum touch target. */
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 200ms var(--ease), color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.btn-primary {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 112, 223, 0.28);
}

.btn-primary:hover {
  --btn-bg: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(10, 112, 223, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

.btn-ghost:hover {
  background: var(--brand-tint);
}

.btn-invert {
  background: #fff;
  color: var(--brand-dark);
}

.btn-invert:hover {
  background: var(--brand-tint);
}

.btn-lg {
  min-height: 52px;
  padding: 0 30px;
  font-size: 1.02rem;
}

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

.hero {
  position: relative;
  padding: 190px 0 130px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-wash) 0%, #fff 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.accent {
  color: var(--brand);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-visual {
  position: absolute;
  right: max(4vw, 24px);
  top: 44%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.14;
  pointer-events: none;
}

.hero-logo {
  width: clamp(260px, 30vw, 420px);
}

/* Abstract shapes --------------------------------------------------------- */

.shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  display: block;
  will-change: transform;
}

/* Soft blue blob, top-left of hero. */
.shape-1 {
  width: 460px;
  height: 460px;
  left: -160px;
  top: -120px;
  background: radial-gradient(circle at 34% 34%, #cfe4fb, rgba(207, 228, 251, 0));
  border-radius: 50%;
}

/* Rotated rounded square, mid-right. */
.shape-2 {
  width: 240px;
  height: 240px;
  right: 6%;
  bottom: -70px;
  background: linear-gradient(140deg, var(--brand), #4a9bfd);
  border-radius: 64px;
  transform: rotate(22deg);
  opacity: 0.16;
}

/* Wide pale sweep behind the copy. */
.shape-3 {
  width: 620px;
  height: 300px;
  left: 34%;
  top: 8%;
  background: radial-gradient(ellipse at center, #e3eefc, rgba(227, 238, 252, 0));
  border-radius: 50%;
}

/* Outlined ring. */
.shape-ring {
  width: 300px;
  height: 300px;
  right: 20%;
  top: 12%;
  border: 2px solid rgba(10, 112, 223, 0.16);
  border-radius: 50%;
}

/* Faint dot grid. */
.shape-grid {
  width: 300px;
  height: 260px;
  left: 5%;
  bottom: 6%;
  background-image: radial-gradient(rgba(10, 112, 223, 0.22) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.55;
}

.shapes-soft .shape {
  opacity: 0.5;
}

.shape-4 {
  width: 320px;
  height: 320px;
  right: -110px;
  top: 10%;
  background: radial-gradient(circle at 50% 50%, #dbe9fb, rgba(219, 233, 251, 0));
  border-radius: 50%;
}

.shape-5 {
  width: 180px;
  height: 180px;
  left: -60px;
  bottom: 12%;
  border: 2px solid rgba(10, 112, 223, 0.14);
  border-radius: 42px;
  transform: rotate(16deg);
}

.shape-6 {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -140px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  border-radius: 50%;
}

.shape-7 {
  width: 260px;
  height: 260px;
  right: -70px;
  bottom: -90px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 70px;
  transform: rotate(28deg);
}

/* Sections ---------------------------------------------------------------- */

.band {
  position: relative;
  padding: 104px 0;
  overflow: hidden;
}

.band-tint {
  background: var(--brand-wash);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}

/* Cards ------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  /* Colour + shadow only: no transform, so hover never shifts layout. */
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.card:hover {
  border-color: rgba(10, 112, 223, 0.42);
  box-shadow: 0 12px 32px rgba(10, 112, 223, 0.1);
}

.card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.97rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Steps ------------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
  position: relative;
  z-index: 1;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

.step p {
  color: var(--ink-soft);
  margin: 0;
}

/* CTA --------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 108px 0;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  text-align: center;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta .body-lg {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 30px;
}

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

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

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

.footer .muted {
  margin: 0;
  font-size: 0.92rem;
}

.footer-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Scroll reveal ----------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

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

/* Responsive -------------------------------------------------------------- */

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

  .nav-cta {
    margin-left: auto;
  }

  .hero {
    padding: 150px 0 90px;
  }

  .hero-visual {
    display: none;
  }

  .band,
  .cta {
    padding: 76px 0;
  }
}

/* Motion preferences ------------------------------------------------------ */

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

  /* Content must not depend on animation to become visible. */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .shape {
    /* Parallax is disabled in JS too; this covers the initial paint. */
    transform: none !important;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
