:root {
  --bg: #e9f1f4;
  --bg-alt: #dde8ee;
  --ink: #102231;
  --ink-soft: #3a5366;
  --ink-faint: #6a8396;
  --line: rgba(16, 34, 49, 0.12);
  --forest: #0f7a62;
  --forest-deep: #0a5545;
  --signal: #1a6fb7;
  --sky: #cfe4f0;
  --mist: #d5ece4;
  --surface: rgba(255, 255, 255, 0.7);
  --shadow: 0 18px 40px rgba(16, 34, 49, 0.08);
  --radius: 18px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--sky), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, var(--mist), transparent 55%),
    linear-gradient(180deg, #f2f7f9 0%, var(--bg) 42%, #e2ecf0 100%);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: rgba(18, 32, 44, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: rgba(233, 241, 244, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  background: var(--forest);
  clip-path: polygon(50% 0%, 100% 78%, 50% 100%, 0% 78%);
}

.nav-links {
  display: none;
  gap: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: #eef6fa;
}

@media (min-width: 820px) {
  .nav-links {
    display: flex;
  }
}

/* HERO */
.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 2.5rem) 1.5rem;
}

.audience {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--forest-deep);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 1rem;
}

.lede {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 1.6rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-row.center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--signal);
  color: #f4f9fc;
}

.btn-primary:hover {
  background: #155a96;
}

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

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

.btn.block {
  width: 100%;
}

button.btn {
  font: inherit;
  cursor: pointer;
}

/* Checkout modal */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 34, 49, 0.45);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #f7fbfc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.modal-copy {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.modal-error {
  margin-top: 0.75rem;
  color: #b42318;
  font-size: 0.9rem;
}

.hero-stage {
  position: relative;
  min-height: 42vh;
  margin-top: -1rem;
}

.hero-art {
  width: 100%;
  height: 100%;
  min-height: 42vh;
  display: block;
}

.rings {
  transform-origin: 780px 300px;
  animation: ring-breathe 9s ease-in-out infinite;
}

.pulse-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-pulse 2.8s ease forwards 0.3s;
}

.drift {
  animation: drift-x 18s ease-in-out infinite alternate;
}

.drift.delay {
  animation-delay: -6s;
  animation-duration: 22s;
}

@keyframes draw-pulse {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ring-breathe {
  0%,
  100% {
    transform: translate(780px, 300px) scale(1);
  }
  50% {
    transform: translate(780px, 300px) scale(1.03);
  }
}

@keyframes drift-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-24px);
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: 1fr;
    align-items: stretch;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 0;
  }

  .hero-stage {
    min-height: calc(100svh - 64px);
    margin-top: 0;
  }

  .hero-art {
    min-height: calc(100svh - 64px);
  }
}

.strip {
  border-block: 1px solid var(--line);
  padding: 0.95rem 1.2rem;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.35);
}

.snippet-section {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.code-snippet {
  margin: 0;
  max-width: 720px;
  overflow-x: auto;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #122231 0%, #0f2a3a 100%);
  color: #d7e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.82rem, 1.6vw, 0.92rem);
  line-height: 1.55;
  box-shadow: var(--shadow);
}

.code-snippet code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* SECTIONS */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}

.section-alt {
  max-width: none;
  background: rgba(255, 255, 255, 0.42);
  border-block: 1px solid var(--line);
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.section-alt > * {
  max-width: var(--max);
  margin-inline: auto;
}

.section-contrast {
  max-width: none;
  background:
    linear-gradient(145deg, #0f2a3a 0%, #163d32 55%, #1c4e80 120%);
  color: #f3f7f5;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.section-contrast > * {
  max-width: var(--max);
  margin-inline: auto;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.section-head.light h2,
.section-head.light p {
  color: inherit;
}

.section-head.light p {
  opacity: 0.75;
}

.section-head h2,
.closing h2,
.compare h3,
.feature h3,
.showcase article h3,
.price-card .tier {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.section-head p,
.lede-sm {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.lede-sm {
  margin-top: 0.8rem;
  max-width: 36ch;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

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

.feature {
  padding: 1.35rem 1.25rem;
  border-top: 2px solid var(--forest);
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.feature-bullets {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.feature-bullets li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.feature-bullets li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--forest);
}

.checklist {
  list-style: none;
  max-width: 38rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.checklist li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  column-gap: 0.9rem;
  align-items: start;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.45;
}

.checklist li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.38em;
  background: var(--forest);
  clip-path: polygon(50% 0%, 100% 78%, 50% 100%, 0% 78%);
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.metric-list {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.metric-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.metric-list li:last-child {
  border-bottom: 0;
}

.metric-list li span:last-child {
  color: var(--ink-faint);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.showcase {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .showcase {
    grid-template-columns: repeat(6, 1fr);
  }

  .showcase .showcase-card:nth-child(1),
  .showcase .showcase-card:nth-child(2),
  .showcase .showcase-card:nth-child(3) {
    grid-column: span 2;
  }

  .showcase .showcase-card:nth-child(4),
  .showcase .showcase-card:nth-child(5) {
    grid-column: span 3;
  }
}

.showcase .showcase-card {
  padding: 1.3rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.showcase .showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 111, 183, 0.35);
  box-shadow: var(--shadow);
}

.showcase .app-icon {
  width: 56px;
  height: 56px;
  /* iOS-like continuous corner (approx. 22.5% of edge) */
  border-radius: 22.5%;
  object-fit: cover;
  display: block;
  margin-bottom: 0.85rem;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 8px 18px rgba(16, 34, 49, 0.14);
}

.showcase h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.showcase p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-row span {
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
}

.compare {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .compare {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.compare h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.compare ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.compare li {
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.28);
  opacity: 0.9;
  font-size: 0.98rem;
}

.compare > div:last-child li {
  border-left-color: #7dffc5;
}

/* PRICING — interactive containers OK as cards */
.pricing {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.price-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem 1.45rem 1.45rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  background: linear-gradient(165deg, #fff 0%, #eef6f1 100%);
  border-color: rgba(11, 110, 79, 0.35);
  outline: 2px solid rgba(11, 110, 79, 0.18);
  outline-offset: 3px;
}

.price-card .tier {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.price {
  margin-bottom: 0.25rem;
}

.price span {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-note {
  color: var(--ink-faint);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.tax-note {
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin-bottom: 1.1rem;
}

.price-card ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  flex: 1;
}

.price-card li {
  font-size: 0.94rem;
  color: var(--ink-soft);
  padding-left: 1.05rem;
  position: relative;
}

.price-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--forest);
}

.license-note {
  margin-top: 1rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.88rem;
}

.license-note a,
.upgrade-note a,
.faq a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.upgrade-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.compare-table-wrap {
  margin-top: 2.25rem;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.compare-table th,
.compare-table td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.compare-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
}

.compare-table thead th:first-child,
.compare-table tbody th {
  text-align: left;
}

.compare-table thead th:not(:first-child),
.compare-table td {
  text-align: center;
}

.compare-table tbody th {
  font-weight: 500;
  color: var(--ink);
  width: 55%;
}

.compare-table td {
  width: 22.5%;
  color: var(--ink-soft);
}

.compare-table .yes {
  color: var(--forest);
  font-weight: 700;
}

.compare-table .no {
  color: var(--ink-faint);
}

.not-for {
  max-width: 760px;
  margin-bottom: 1.25rem;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--forest);
  color: var(--ink-soft);
  font-size: 0.96rem;
  background: rgba(255, 255, 255, 0.35);
}

.not-for strong {
  color: var(--ink);
  font-weight: 600;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.65rem;
  max-width: 760px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0.2rem 1rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--ink-faint);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  color: var(--ink-soft);
  padding-bottom: 0.75rem;
  font-size: 0.96rem;
}

.faq-body {
  padding-bottom: 1rem;
}

.faq-body > :last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.faq-body ol,
.faq-body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  display: grid;
  gap: 0.45rem;
}

.faq-body li {
  line-height: 1.5;
}

.faq-body strong {
  color: var(--ink);
  font-weight: 600;
}

.section-head a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.closing {
  text-align: center;
  padding: clamp(4rem, 10vw, 7rem) 1.2rem;
}

.closing .brand-lockup {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  margin-bottom: 0.5rem;
}

.closing h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 1.4rem clamp(1.2rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.footer a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* MOTION: scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .pulse-line,
  .rings,
  .drift {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}
