:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --muted: #5b6578;
  --accent: #0284c7;
  --accent-2: #7c3aed;
  --accent-3: #db2777;
  --grad: linear-gradient(135deg, #0ea5e9, #8b5cf6 55%, #ec4899);
  --radius: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(820px 460px at 88% -4%, rgba(236, 72, 153, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(14, 165, 233, 0.25);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

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

nav {
  position: sticky;
  top: 0.75rem;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0 0;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px -18px rgba(15, 23, 42, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  font-size: 1.02rem;
}

.brand:hover {
  text-decoration: none;
}

.brand .logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
  color: #ffffff;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.92rem;
}

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

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--text);
  color: #f8fafc !important;
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.9;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero h1 {
  margin: 1.1rem 0 0;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lede {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.13rem;
  max-width: 34rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  font-weight: 650;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary {
  background: var(--text);
  color: #f8fafc;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-ghost {
  background: var(--bg-soft);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.04);
}

.hero-note {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Hero mockup: a polished screenshot on a gradient canvas */

.stage {
  position: relative;
  padding: 1rem 0 1.5rem;
}

.shot {
  position: relative;
  border-radius: 22px;
  padding: 34px;
  background:
    radial-gradient(120% 140% at 15% 10%, rgba(56, 189, 248, 0.55), transparent 55%),
    radial-gradient(120% 150% at 90% 15%, rgba(167, 139, 250, 0.5), transparent 55%),
    radial-gradient(140% 130% at 60% 100%, rgba(244, 114, 182, 0.42), transparent 60%),
    #101322;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  transform: rotate(1.2deg);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: rotate(1.2deg) translateY(0);
  }
  50% {
    transform: rotate(1.2deg) translateY(-10px);
  }
}

.shot-window {
  border-radius: 12px;
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.shot-bar i:nth-child(1) {
  background: #f87171;
}
.shot-bar i:nth-child(2) {
  background: #fbbf24;
}
.shot-bar i:nth-child(3) {
  background: #34d399;
}

.shot-body {
  padding: 18px 16px 20px;
  display: grid;
  gap: 10px;
}

.shot-line {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.shot-line.w60 {
  width: 60%;
}
.shot-line.w85 {
  width: 85%;
}
.shot-line.w40 {
  width: 40%;
}

.shot-line.accent {
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  width: 48%;
  height: 12px;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.35);
  white-space: nowrap;
}

.chip svg {
  color: var(--accent);
}

.chip-a {
  top: 0.5rem;
  right: 6%;
}

.chip-b {
  bottom: 2.4rem;
  left: -0.5rem;
}

.chip-c {
  bottom: -0.4rem;
  right: 10%;
}

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

section {
  padding: 3.2rem 0 1rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2,
section h2 {
  margin: 0.6rem 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 750;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem 1.35rem 1.35rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Feature grid */

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-3px);
}

.card .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--accent);
  margin-bottom: 1rem;
}

.card:nth-child(3n + 2) .icon {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.24);
  color: var(--accent-2);
}

.card:nth-child(3n) .icon {
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.22);
  color: var(--accent-3);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Pricing ---------- */

.price {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.price-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem 1.7rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.price-card .tier {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card .amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-card .amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.price-card .per-note {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.price-card ul {
  list-style: none;
  margin: 0.9rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.price-card ul li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}

.price-card ul li::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  transform: translateY(2px);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--accent);
}

.price-card ul li.limit {
  color: var(--muted);
}

.price-card ul li.limit::before {
  color: #c2410c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.price-card .btn {
  margin-top: auto;
}

.price-card .fine {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.price-card.pro {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 20px 50px -28px rgba(14, 165, 233, 0.35);
}

.badge {
  position: absolute;
  top: -0.8rem;
  right: 1.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--grad);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0.8rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.05rem 1.25rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0.7rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Screenshots / figures ---------- */

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
}

.figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.75rem;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.compare-note {
  margin: 1.5rem auto 0;
  max-width: 46rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.compare-note a {
  color: var(--accent);
  font-weight: 600;
}

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

.cta-band {
  margin: 3.5rem 0 1rem;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  padding: 3rem 2rem;
  text-align: center;
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(600px 220px at 80% 100%, rgba(244, 114, 182, 0.14), transparent 60%),
    var(--bg-soft);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0.8rem auto 0;
  color: var(--muted);
  max-width: 32rem;
}

.cta-band .actions {
  justify-content: center;
}

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

footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.4rem;
}

footer .brand {
  font-size: 0.95rem;
  margin-right: auto;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---------- Prose (support / legal pages) ---------- */

.prose {
  max-width: 46rem;
  padding-top: 2.5rem;
}

.prose h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.prose h2 {
  margin: 2.4rem 0 0.5rem;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

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

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.3rem;
}

.prose strong {
  color: var(--text);
}

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

/* ---------- Install (sideload) page ---------- */

.install-hero {
  padding-top: 2.75rem;
  max-width: 40rem;
}

.install-hero h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.install-hero .lede {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.install-hero .actions {
  margin-top: 1.35rem;
}

.install-hero .hero-note {
  margin-top: 1rem;
}

.install-steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.install-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem 2rem;
  align-items: start;
  margin: 0;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
}

.install-step-copy {
  min-width: 0;
}

.install-step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--grad);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
}

.install-step h2 {
  margin: 0.75rem 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.install-step p,
.install-step .install-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.install-sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.install-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.4;
}

.install-lines li {
  position: relative;
  padding-left: 1rem;
}

.install-lines li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text);
  opacity: 0.45;
}

.install-browser-hint {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.15rem;
}

.install-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  vertical-align: middle;
}

.install-step code {
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.install-step-figure {
  margin: 0;
  min-height: 12rem;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(236, 72, 153, 0.05)),
    var(--bg);
}

.install-step-figure img {
  min-height: 10rem;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.03);
}

.install-after {
  margin-top: 2.75rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-soft);
}

.install-after h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.install-after ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.install-after li + li {
  margin-top: 0.45rem;
}

@media (max-width: 780px) {
  .install-step {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .shot {
    animation: none;
  }
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3.5rem 0 3rem;
    gap: 2.5rem;
  }

  .stage {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .chip-b {
    left: 0;
  }
}
