/* ————————————————————————————————————————————————
   iHatePDF — unified design system
   One set of tokens, nav, footer, and buttons
   shared by every page.
   ———————————————————————————————————————————————— */

:root {
  /* Color */
  --ink: #0a0a0a;
  --ink-2: rgba(10, 10, 10, 0.64);
  --ink-3: rgba(10, 10, 10, 0.44);
  --paper: #ffffff;
  --wash: #f5f5f6;
  --wash-2: #ececee;
  --line: rgba(10, 10, 10, 0.08);
  --line-2: rgba(10, 10, 10, 0.16);
  --red: #dd202a;
  --red-deep: #bc1620;
  --red-wash: rgba(221, 32, 42, 0.07);

  /* Type */
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  /* Layout */
  --maxw: 1120px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.05);
  --shadow-md: 0 10px 28px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 28px 64px rgba(10, 10, 10, 0.14);

  /* Motion system — one set of curves and durations used everywhere */
  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* premium decelerate, used for color/shadow/opacity */
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1); /* light, bounce-free lift for transforms */
  --dur-fast: 150ms; /* micro-interactions: hover, press, focus, icon nudge */
  --dur-med: 260ms; /* component transitions: nav, cards, dropdowns */
  --dur-slow: 550ms; /* section reveals */
  --dur-hero: 700ms; /* hero storytelling */
  --nav-h: 60px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

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

button {
  font: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
  transition: outline-offset var(--dur-fast) var(--ease);
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 2.5rem);
}

/* —— Utilities —— */
.container {
  width: min(var(--maxw), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.eyebrow-red {
  color: var(--red);
}

.accent {
  color: var(--red); /* fallback for browsers without text gradient-clip support */
}

/* A one-time light sweep across the accent word right after it reveals —
   restrained, never loops, purely celebratory of the headline's key phrase. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .accent {
    background: linear-gradient(90deg, var(--red) 45%, #ff9298 50%, var(--red) 55%);
    background-size: 220% 100%;
    background-position: 160% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }

  html.js [data-reveal="lg"].is-in .accent {
    animation: shimmer-sweep 1.4s var(--ease) 0.5s 1 both;
  }
}

@keyframes shimmer-sweep {
  from {
    background-position: 160% 0;
  }
  to {
    background-position: -20% 0;
  }
}

/* —— Scroll reveals (motion hierarchy: sm = tertiary, default = secondary, lg = primary) —— */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}

html.js [data-reveal="lg"] {
  transform: translateY(22px);
  transition-duration: var(--dur-hero);
}

html.js [data-reveal="sm"] {
  transform: translateY(8px);
  transition-duration: 420ms;
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* —— Buttons —— */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 0;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform var(--dur-fast) var(--ease-spring),
    background var(--dur-med) var(--ease),
    border-color var(--dur-med) var(--ease),
    box-shadow var(--dur-med) var(--ease);
}

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

.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 90ms;
}

/* Magnetic buttons (see site.js) own their own `transform` every frame via
   rAF, so the CSS transform transition is dropped for them to avoid the two
   fighting — the JS lerp already supplies all the smoothing it needs. */
.js-magnetic {
  transition:
    background var(--dur-med) var(--ease),
    border-color var(--dur-med) var(--ease),
    box-shadow var(--dur-med) var(--ease);
}

.js-magnetic:hover,
.js-magnetic:active {
  transform: none;
}

/* Tactile press ripple — a quick radial pulse from the pointer's exact
   down-position, clipped to the pill. Native-feeling, not decorative. */
.btn-ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  animation: btn-ripple 550ms var(--ease) forwards;
}

.btn-ghost .btn-ripple {
  background: rgba(10, 10, 10, 0.12);
}

@keyframes btn-ripple {
  to {
    transform: scale(20);
    opacity: 0;
  }
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-deep);
  box-shadow: 0 8px 20px rgba(221, 32, 42, 0.28);
}

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

.btn-dark:hover {
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.btn-ghost:hover {
  background: var(--wash);
  border-color: rgba(10, 10, 10, 0.24);
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

/* —— Nav (shared, floating pill) —— */
.nav-wrap {
  position: fixed;
  top: 0.875rem;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: calc(100% - 2rem);
  max-width: 920px;
  height: var(--nav-h);
  padding: 0 0.625rem 0 1.125rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition:
    box-shadow var(--dur-slow) var(--ease),
    border-color var(--dur-slow) var(--ease),
    background var(--dur-slow) var(--ease);
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--line-2);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
}

/* Nav settles into place on load — quick, subtle, never a "slide from off-page" */
html.js .nav {
  animation: nav-in 500ms var(--ease) both;
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name em {
  font-style: normal;
  color: var(--red);
}

.nav-links {
  position: relative;
  display: none;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: 32px;
  width: 0;
  transform: translate(0, -50%);
  border-radius: var(--r-pill);
  background: rgba(10, 10, 10, 0.06);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition:
    transform var(--dur-med) var(--ease-spring),
    width var(--dur-med) var(--ease-spring),
    opacity var(--dur-fast) var(--ease);
}

.nav-links a {
  position: relative;
  z-index: 1;
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease);
}

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

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

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

.nav-links + .btn {
  margin-left: 0;
}

/* —— Footer (shared) —— */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}

.footer-brand p {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-3);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
}

.footer-label {
  margin-bottom: 0.375rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-col a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* —— Store badge —— */
.store-badge {
  display: inline-block;
  border-radius: 12px;
  transition:
    transform var(--dur-fast) var(--ease-spring),
    opacity var(--dur-med) var(--ease),
    box-shadow var(--dur-med) var(--ease);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(10, 10, 10, 0.22);
}

.store-badge:active {
  transform: translateY(0);
}

.store-badge.js-magnetic {
  transition:
    opacity var(--dur-med) var(--ease),
    box-shadow var(--dur-med) var(--ease);
}

.store-badge.js-magnetic:hover,
.store-badge.js-magnetic:active {
  transform: none;
}

.store-badge img {
  height: 48px;
  width: auto;
}

/* —— Studio home —— */
.studio-hero {
  padding: calc(var(--nav-h) + 5.5rem) 0 4.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.studio-hero h1 {
  margin: 1.25rem 0 0;
  max-width: 17ch;
  font-size: clamp(2.75rem, 6.5vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.studio-hero h1 .accent {
  color: var(--red);
}

.studio-hero .lede {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.studio-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* App card */
.app-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--wash);
  margin-bottom: 5rem;
  transition:
    transform var(--dur-med) var(--ease-spring),
    box-shadow var(--dur-slow) var(--ease),
    border-color var(--dur-slow) var(--ease);
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lg);
}

/* Cursor spotlight, matching .feature-card — tracked via site.js */
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(221, 32, 42, 0.08), transparent 72%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
}

.app-card-copy {
  padding: 2.25rem 2.25rem 0;
  position: relative;
  z-index: 1;
}

.app-card-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.06);
  box-shadow: 0 10px 28px rgba(221, 32, 42, 0.2);
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card h3 {
  margin: 1.5rem 0 0;
  font-size: clamp(1.875rem, 4vw, 2.375rem);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.app-card .tagline {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  color: var(--ink-2);
  line-height: 1.5;
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.45;
}

.check-list svg {
  flex: none;
  margin-top: 2px;
  color: var(--red);
}

.app-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.75rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--red);
}

.app-card-cta svg {
  transition: transform var(--dur-fast) var(--ease-spring);
}

.app-card:hover .app-card-cta svg {
  transform: translateX(4px);
}

.app-card-phone {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem 0;
  overflow: hidden;
}

/* Phone mockup — a real device-frame image (same asset as the hero), with a
   faint ambient float suggesting the product is alive, not a static image. */
.app-card-phone-img {
  width: min(230px, 60vw);
  height: auto;
  margin-bottom: -56px;
  filter: drop-shadow(0 28px 48px rgba(10, 10, 10, 0.22));
}

html.js .app-card-phone-img {
  animation: float-y 7s ease-in-out infinite;
  animation-delay: 1.4s;
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* —— App landing —— */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3.5rem) 0 0;
  background:
    radial-gradient(44rem 30rem at 76% 30%, rgba(221, 32, 42, 0.09), transparent 65%),
    linear-gradient(to bottom, var(--wash) 0%, var(--wash) 62%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero-sub {
  margin: 1.25rem 0 0;
  max-width: 30rem;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease);
}

.hero-link svg {
  transition: transform var(--dur-fast) var(--ease-spring);
}

.hero-link:hover {
  color: var(--ink);
}

.hero-link:hover svg {
  transform: translateX(3px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.hero-floater {
  display: inline-block;
}

.hero-phone {
  width: min(300px, 68vw);
  height: auto;
  filter: drop-shadow(0 40px 64px rgba(10, 10, 10, 0.28));
  transform-style: preserve-3d;
}

/* Layer 1 (.hero-visual): one-time entrance, arrives last in the hero sequence.
   Layer 2 (.hero-floater): continuous ambient float, starts once settled.
   Layer 3 (.hero-phone): JS mouse-parallax tilt. Independent elements, so the
   three transforms never fight each other. */
html.js .hero-visual {
  animation: hero-in var(--dur-hero) var(--ease) 360ms backwards;
}

html.js .hero-floater {
  animation: float-y 6.5s ease-in-out infinite;
  animation-delay: 1.1s;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 3.5rem 0 3rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.6;
}

.count-up {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

/* Features */
.features {
  padding: clamp(4.5rem, 9vw, 7rem) 0 0;
}

.features-head {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-head h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.features-lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.feature-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.25rem;
  transition:
    transform var(--dur-med) var(--ease-spring),
    box-shadow var(--dur-slow) var(--ease),
    border-color var(--dur-slow) var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

/* Cursor spotlight — a soft brand-tinted glow that tracks the pointer,
   set via --spot-x/--spot-y in site.js. Sits behind all card content. */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(221, 32, 42, 0.1), transparent 72%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15rem;
  border-radius: var(--r-md);
  background:
    radial-gradient(16rem 10rem at 50% 0%, rgba(221, 32, 42, 0.05), transparent 70%),
    var(--wash);
  overflow: hidden;
  padding: 1.75rem;
}

/* Native scroll-linked parallax (progressive enhancement) — as each card
   scrolls through the viewport its media settles into place, independent
   of the one-time reveal on the card itself. Ignored where unsupported. */
@supports (animation-timeline: view()) {
  html.js .feature-media {
    animation: media-parallax linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 55%;
  }

  @keyframes media-parallax {
    from {
      transform: translateY(16px) scale(1.03);
    }
    to {
      transform: translateY(0) scale(1);
    }
  }
}

/* Mini widgets — small, self-contained illustrations of each feature
   (not screenshots): a file list, a convert chip, a set of tool pills.
   Built from the same tokens as the rest of the UI so they read as part
   of the product, not stock art. */
.mini-widget {
  width: 100%;
  transition: transform var(--dur-slow) var(--ease-spring);
}

.feature-card:hover .mini-widget {
  transform: translateY(-4px);
}

.mini-file-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
}

.mini-file-pdf {
  background: var(--red);
}

.mini-file-doc {
  background: #2f6fed;
}

.mini-file-xls {
  background: #16a34a;
}

/* — Widget 1: file list — */
.mini-files {
  max-width: 15.5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.mini-files-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.mini-files-row:last-child {
  border-bottom: 0;
}

.mini-file-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  text-align: left;
}

.mini-file-info b {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-file-info small {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

.mini-file-check {
  flex: none;
  margin-left: auto;
  color: var(--red);
}

/* — Widget 2: convert chip — */
.mini-convert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
}

.mini-convert-chip {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 0.6875rem;
  box-shadow: var(--shadow-md);
}

.mini-convert-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--red);
  box-shadow: var(--shadow-sm);
}

html.js .mini-convert-arrow {
  animation: convert-pulse 2.4s var(--ease) infinite;
}

@keyframes convert-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

/* — Widget 3: tool chips — */
.mini-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 16rem;
  margin: 0 auto;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 30px;
  padding: 0 0.75rem 0 0.5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.mini-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--red));
}

@media (prefers-reduced-motion: reduce) {
  html.js .mini-convert-arrow {
    animation: none;
  }
}

.feature-card h3 {
  margin: 1.5rem 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.feature-card p {
  margin: 0.5rem 0.5rem 0.75rem;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Tools marquee — an infinite, seamless auto-scroll (two identical sets,
   translated by exactly one set-width) rather than a static wrapped line.
   Pauses on hover/focus and stands still for reduced motion. */
.tools-marquee {
  margin: 3rem auto 0;
  max-width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.tools-track {
  display: flex;
  width: max-content;
  animation: tools-scroll 26s linear infinite;
}

.tools-marquee:hover .tools-track,
.tools-marquee:focus-within .tools-track {
  animation-play-state: paused;
}

.tools-set {
  display: flex;
  flex: none;
  gap: 2.25rem;
  padding-right: 2.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--ink-3);
}

.tools-set b {
  font-weight: 500;
  color: var(--ink-2);
}

@keyframes tools-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tools-track {
    animation: none;
  }

  .tools-set--dup {
    display: none;
  }
}

/* Bottom CTA */
.cta {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(34rem 22rem at 50% -10%, rgba(221, 32, 42, 0.09), transparent 70%),
    var(--wash);
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  border: 1px solid rgba(10, 10, 10, 0.06);
  box-shadow: 0 12px 32px rgba(221, 32, 42, 0.22);
  margin-bottom: 2rem;
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.cta-panel p {
  margin: 1rem 0 2.25rem;
  max-width: 26rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* —— Responsive —— */
@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }

  .app-card-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .app-card-copy {
    padding: 3rem 1rem 3rem 3rem;
  }

  .app-card-phone {
    justify-content: flex-end;
    align-items: flex-end;
    padding: 2.5rem 3rem 0 0;
  }

  .app-card-phone-img {
    width: min(250px, 100%);
  }

  .hero {
    padding-top: calc(var(--nav-h) + 4.5rem);
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    justify-content: flex-end;
  }

  .hero-phone {
    width: min(300px, 100%);
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 400px) {
  .brand-name {
    display: none;
  }
}

/* —— Page transitions ——
   Native cross-document view transitions give a quick crossfade between pages
   in this multi-page site. Zero JS, zero risk: browsers without support just
   navigate instantly as before. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: var(--ease);
}

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

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

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
