/* ============================================================================
   Rinus landing — v3 rebrand
   Anchored on the v3 design system: Outfit display (no italics), pitch/paper
   palette, one amber per page, borders not shadows, 4px corners.
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  /* Pitch — primary scale */
  --pitch-950: #0B1410;
  --pitch-900: #0F1C17;
  --pitch-800: #15261F;
  --pitch-700: #1C3329;
  --pitch-600: #234234;
  --pitch-500: #2D5442;
  --pitch-400: #4A7860;
  --pitch-300: #7CA892;
  --pitch-200: #B4D3C3;
  --pitch-100: #DCEAE2;
  --pitch-50:  #EEF4F0;

  /* Paper — neutrals */
  --paper-50:  #FAF8F3;
  --paper-100: #F3EFE6;
  --paper-200: #E8E2D4;
  --paper-300: #D4CCB9;
  --paper-400: #A89E88;
  --paper-500: #7A7260;
  --paper-600: #524C3F;
  --paper-700: #34302A;

  /* Accents */
  --patina:     #D9E5DA;
  --signal:     #E8613C;
  --signal-ink: #B8421F;

  /* Semantic */
  --ink:        var(--pitch-950);
  --ink-muted:  var(--paper-600);
  --ink-subtle: var(--paper-500);
  --line:        var(--paper-200);
  --line-strong: var(--paper-300);

  /* Type */
  --font-sans:    "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Motion */
  --ease-out:    cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.5, 0, 0.2, 1);
  --dur-fast:    140ms;
  --dur-med:     240ms;
  --dur-slow:    420ms;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--paper-50);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

/* Paper grain — almanac/newsprint feel, very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) {
  body::before { opacity: 0.1; }
}

::selection { background: var(--pitch-700); color: var(--paper-50); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
}
h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }

/* Color-shift accent — replaces the old serif-italic. Same family/weight,
   just a pitch-tinted lift. The v3 rule: italics are dead. */
em.pitch {
  font-style: normal;
  color: var(--pitch-400);
}
em.signal {
  font-style: normal;
  color: var(--signal);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-sans);
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  min-height: 40px;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--pitch-700);
  outline-offset: 2px;
}
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--signal);
  color: var(--paper-50);
}
.btn.primary:hover { background: var(--signal-ink); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover { background: var(--paper-100); }

.btn.secondary {
  background: var(--paper-50);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.secondary:hover { background: var(--paper-100); }

.btn.lg {
  padding: 14px 22px;
  font-size: 15px;
  min-height: 48px;
}

.btn .arrow {
  display: inline-block;
  transition: transform var(--dur-med) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ── Nav ─────────────────────────────────────────────────────── */
nav.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklch, var(--paper-50) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(150%);
}
nav.top .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 40px;
  max-width: 1240px;
  margin: 0 auto;
}
nav.top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
nav.top .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}
nav.top .links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  justify-self: center;
}
nav.top .links a {
  position: relative;
  padding: 4px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
nav.top .links a:hover { color: var(--ink); }
nav.top .links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 280ms var(--ease-out);
}
nav.top .links a:hover::after { width: 100%; }
nav.top .nav-cta { display: flex; gap: 8px; align-items: center; justify-self: end; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}
.hero .wrap.hero-text {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 64px;
}
.hero-kicker {
  display: inline-block;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(64px, 9.5vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 28px auto 0;
}
.hero-lede {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 32px auto 0;
}
.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
  justify-content: center;
}
.hero-link {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding: 4px 2px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.hero-link:hover { border-bottom-color: var(--ink); }

.hero-pipeline-wrap {
  padding: 0 40px;
  margin-bottom: 32px;
}

/* The 960×540 native canvas, responsively scaled */
.hero-pipeline {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  aspect-ratio: 960 / 540;
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--paper-50);
  overflow: hidden;
  border-radius: 4px;
}
.hero-pipeline-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 960px;
  height: 540px;
  transform-origin: top left;
}

/* ── Section heads ───────────────────────────────────────────── */
.section-head {
  padding-bottom: 56px;
  position: relative;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 0;
}
.section-head-label { margin-bottom: 14px; }
.section-head-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 500;
  max-width: 920px;
}
.section-head-lede {
  margin: 28px 0 0;
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-muted);
  max-width: 600px;
}

/* ── Features ────────────────────────────────────────────────── */
.features {
  padding: 96px 0;
  border-top: 1px solid var(--ink);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.feat {
  background: var(--paper-50);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-med) var(--ease-out);
}
.feat:hover { background: var(--paper-100); }
.feat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.feat-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pitch-400);
}
.feat-num {
  font-variant-numeric: tabular-nums;
  color: var(--ink-subtle);
}
.feat-diag {
  height: 112px;
  margin: 24px 0 28px;
  display: flex;
  align-items: center;
}
.feat h3 {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 500;
  max-width: 320px;
}
.feat p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  max-width: 340px;
}
.feat-corner {
  position: absolute;
  bottom: 28px;
  right: 28px;
  color: var(--pitch-400);
  display: inline-flex;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.feat:hover .feat-corner { opacity: 1; transform: translateX(0); }

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing {
  padding: 96px 0;
  border-top: 1px solid var(--ink);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border: 1px solid var(--ink);
}
.price {
  background: var(--paper-50);
  padding: 36px 32px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid var(--line);
  transition: background var(--dur-med) var(--ease-out);
}
.price:last-child { border-right: none; }
.price:hover { background: var(--paper-100); }
.price.is-featured {
  background: var(--pitch-950);
  color: var(--paper-50);
}
.price.is-featured:hover { background: var(--pitch-900); }
.price-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 28px;
  min-height: 24px;
}
.price-kind { color: var(--pitch-400); }
.price.is-featured .price-kind { color: var(--patina); }
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: color-mix(in oklch, var(--signal) 12%, transparent);
  color: var(--signal);
  border: 1px solid color-mix(in oklch, var(--signal) 40%, transparent);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.price-tag-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--signal) 50%, transparent);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklch, var(--signal) 50%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in oklch, var(--signal) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--signal) 0%, transparent); }
}
.price-name {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 500;
  max-width: 320px;
}
.price.is-featured .price-name em.pitch { color: var(--paper-50); }
.price-blurb {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 28px;
  max-width: 340px;
  min-height: 4.65em;
}
.price.is-featured .price-blurb { color: var(--paper-200); }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
}
.price.is-featured .price-amount { border-top-color: var(--pitch-700); }
.price-amount-n {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.price-amount-u {
  font-size: 13px;
  color: var(--ink-subtle);
  letter-spacing: 0.02em;
}
.price.is-featured .price-amount-u { color: var(--paper-300); }
.price-seats {
  margin-top: 12px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.price.is-featured .price-seats { color: var(--paper-300); }
.price-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.price-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.price.is-featured .price-list li { color: var(--paper-100); }
.price-list-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 20px;
  color: var(--pitch-400);
}
.price.is-featured .price-list-mark { color: var(--patina); }
.price-cta {
  align-self: stretch;
  justify-content: center;
}
.price.is-featured .price-cta.primary {
  background: var(--signal);
  color: var(--paper-50);
}
.price.is-featured .price-cta.primary:hover { background: var(--signal-ink); }
.price.is-featured .btn.secondary {
  background: transparent;
  color: var(--paper-50);
  border-color: var(--pitch-600);
}
.price.is-featured .btn.secondary:hover { background: var(--pitch-800); }

/* ── Final CTA ──────────────────────────────────────────────── */
.final-cta {
  padding: 96px 0 112px;
  border-top: 1px solid var(--ink);
  background: var(--paper-100);
  position: relative;
  overflow: hidden;
}
.final-cta-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.final-cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(72px, 10vw, 152px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 1100px;
}
.final-cta-lede {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 36px 0 0;
}
.final-cta-actions {
  display: flex;
  gap: 10px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 64px 0 36px;
  border-top: 1px solid var(--ink);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 3fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.foot-mark {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-mark-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-mark-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.foot-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--pitch-400);
  margin: 8px 0 0;
  letter-spacing: -0.01em;
}
.foot-tagline-ink { color: var(--ink); }
.foot-col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-subtle);
  margin: 0 0 18px;
  font-weight: 500;
  text-transform: uppercase;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-muted);
}
.foot-col a {
  transition: color var(--dur-fast) var(--ease-out);
}
.foot-col a:hover { color: var(--ink); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-subtle);
  text-transform: uppercase;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .price { border-right: none; border-bottom: 1px solid var(--line); }
  .price:last-child { border-bottom: none; }
  .section-head-title { font-size: clamp(40px, 8vw, 64px); }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  nav.top .inner { padding: 14px 24px; }
  nav.top .links { display: none; }
  nav.top .nav-cta .btn.ghost { display: none; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .hero-pipeline-wrap { padding: 0 24px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat { min-height: 0; padding: 28px 24px 32px; }
  .features, .pricing { padding: 72px 0; }
  .price { padding: 28px 24px 32px; }
  .final-cta { padding: 72px 0 80px; }
  .foot-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}
