/* RPile marketing site — hand-written CSS, no framework, no build step. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px -12px rgba(15, 23, 42, 0.14);

  --hero-bg: #0a0f1c;
  --hero-bg-2: #0f1830;
  --hero-grid-line: rgba(148, 163, 184, 0.12);
  --hero-ink: #e2e8f0;
  --hero-ink-soft: #94a3b8;

  --accent: #2dd4bf;
  --accent-strong: #14b8a6;
  --accent-ink: #042f2c;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --amber-ink: #78350f;

  --free: #22c55e;
  --free-ink: #15803d;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-alt: #0e1526;
    --ink: #f1f5f9;
    --ink-soft: #b6c2d4;
    --ink-faint: #64748b;
    --border: #1e293b;
    --card-bg: #111a2e;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 32px -16px rgba(0, 0, 0, 0.6);
    --amber-bg: #241a06;
    --amber-border: #7c5a10;
    --amber-ink: #fbbf24;
    --free-ink: #4ade80;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Announcement bar ---------- */

.announce-bar {
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  color: var(--accent-ink);
}

.announce-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

.announce-bar__text {
  min-width: 0;
}

.announce-bar a {
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .announce-bar__inner {
    font-size: 12.5px;
  }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--beta {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

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

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--secondary {
  background: transparent;
  border-color: color-mix(in srgb, var(--hero-ink) 25%, transparent);
  color: var(--hero-ink);
}

.btn--secondary:hover {
  border-color: var(--hero-ink);
  background: rgba(226, 232, 240, 0.06);
}

.btn--ghost {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink-faint);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 13.5px;
}

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

.hero {
  position: relative;
  background: radial-gradient(ellipse 120% 100% at 50% -10%, var(--hero-bg-2), var(--hero-bg) 60%);
  color: var(--hero-ink);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 96px 24px 88px;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 56px 24px 48px;
    gap: 40px;
  }
  .hero__visual {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero .lead {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--hero-ink-soft);
  max-width: 52ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__note {
  font-size: 13px;
  color: var(--hero-ink-soft);
}

.hero__note strong {
  color: var(--hero-ink);
}

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

section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.015em;
  margin: 8px 0 12px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 6px;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.alt-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ---------- Feature grid ---------- */

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

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 20px 36px -16px rgba(15, 23, 42, 0.22);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- AI assistant grid (2-up variant of .feature-grid) ---------- */

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

@media (max-width: 640px) {
  .ai-feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card--wide {
  grid-column: 1 / -1;
}

/* ---------- Requirements ---------- */

.requirements {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .req-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .req-grid {
    grid-template-columns: 1fr;
  }
}

.req-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.req-item .req-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.req-item .req-value {
  font-size: 15px;
  font-weight: 600;
}

.req-item .req-detail {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ---------- Beta callout ---------- */

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  color: var(--amber-ink);
}

.callout__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.callout h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
}

.callout p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.callout--privacy {
  margin-top: 40px;
  background: color-mix(in srgb, var(--accent) 7%, var(--card-bg));
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  color: var(--ink);
}

.callout--privacy .callout__icon {
  color: var(--accent-strong);
}

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

/* ---------- Support ---------- */

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 700px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.support-card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--card-shadow);
}

.support-card .support-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

.support-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.support-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 20px;
}

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

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

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  display: flex;
  align-items: center;
}

.footer__links a {
  text-decoration: none;
  color: var(--ink-soft);
}

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

.footer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.footer__icon svg {
  width: 20px;
  height: 20px;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 800px) {
  .trust-strip__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 19px;
  height: 19px;
}

.trust-item h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  letter-spacing: -0.005em;
}

.trust-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Specifications ---------- */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

.spec-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.spec-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.spec-card .tier-list {
  gap: 9px;
}

.spec-card .tier-list li {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.spec-card--stat {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--card-bg));
}

.spec-card--stat h3 {
  font-size: 26px;
  color: var(--accent-strong);
  line-height: 1.25;
}

.spec-stat-detail {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.spec-ref {
  color: var(--accent-strong);
  font-weight: 700;
  margin-left: 1px;
}

.spec-refs {
  margin: 36px 0 0;
  padding: 24px 0 0 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-faint);
  line-height: 1.7;
}

.spec-refs li {
  margin-bottom: 4px;
}

/* ---------- Showcase ---------- */

.section-head p.showcase-note {
  font-style: italic;
  color: var(--ink-faint);
  font-size: 13.5px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 800px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.shot-card {
  margin: 0;
}

.shot-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.shot-frame__bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.shot-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.shot-dot--r {
  background: #f87171;
}

.shot-dot--y {
  background: #fbbf24;
}

.shot-dot--g {
  background: #34d399;
}

.shot-frame__body {
  padding: 16px;
  background: var(--card-bg);
}

.shot-frame__body svg {
  width: 100%;
  height: auto;
}

.shot-card figcaption {
  padding: 16px 2px 0;
}

.shot-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.shot-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Pricing / free-forever ---------- */

.pledge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 40px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.pledge-callout {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: color-mix(in srgb, var(--accent) 7%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.pledge-callout h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.pledge-callout p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.pledge-callout p a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Pro tier teaser ---------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .tier-grid {
    grid-template-columns: 1fr;
  }
}

.tier-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.tier-card--preview {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--border));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 40px -16px color-mix(in srgb, var(--amber) 35%, transparent);
}

.tier-card--pro {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.tier-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tier-badge--free {
  background: color-mix(in srgb, var(--free) 16%, transparent);
  color: var(--free-ink);
}

.tier-badge--preview {
  background: color-mix(in srgb, var(--amber) 20%, transparent);
  color: var(--amber-ink);
}

.tier-badge--pro {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-strong);
}

.tier-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.tier-card > p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--ink);
}

.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.tier-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 7px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(-45deg);
}

/* ---------- Scroll to top ---------- */

.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 60%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}

.scroll-top:hover {
  background: var(--accent-strong);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
}
