/* Plant Delta Feed v8 */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --ink-4: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #007aff;
  --accent-hover: #0066d6;
  --w: min(100% - 2rem, 680px);
  --w-wide: min(100% - 2rem, 820px);
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 100px;
  --blur: blur(50px) saturate(190%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding-top: 52px;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: #e2e8f2;
  background-image:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(140, 175, 255, 0.45), transparent 60%),
    radial-gradient(ellipse 60% 45% at 80% 100%, rgba(210, 160, 255, 0.35), transparent 55%);
  background-attachment: fixed;
}

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

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

.shell { width: var(--w); margin-inline: auto; }
.shell-wide { width: var(--w-wide); margin-inline: auto; }

/* ——— Glass ——— */
.glass {
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  width: var(--w-wide);
  margin-inline: auto;
  padding: 0 1rem;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand { display: flex; line-height: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.015em;
}

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

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  padding: 0.35rem 0.875rem;
  border-radius: var(--pill);
  letter-spacing: -0.015em;
}

.nav-cta:hover {
  background: #333;
  text-decoration: none;
}

/* ——— Hero ——— */
.hero {
  padding: 2.5rem 1rem 2rem;
  text-align: center;
}

.hero-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2.125rem, 6.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 auto 0.875rem;
  max-width: 14ch;
}

.hero p {
  margin: 0 auto 1.5rem;
  max-width: 26rem;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1.25rem;
  border-radius: var(--pill);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.018em;
  text-decoration: none;
  border: none;
}

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

.btn-fill {
  background: var(--accent);
  color: #fff;
}

.btn-fill:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

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

.btn-text {
  background: none;
  color: var(--accent);
  padding: 0;
  min-height: auto;
  font-weight: 500;
}

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

/* ——— Apple stat ribbon ——— */
.stat-ribbon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 auto 2rem;
  max-width: var(--w-wide);
  padding: 0 1rem;
}

.stat-ribbon .stat {
  flex: 1 1 0;
  min-width: 5.5rem;
  text-align: center;
  padding: 0.75rem 0.5rem;
  position: relative;
}

.stat-ribbon .stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--line);
}

.stat-num {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-cap {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-4);
  margin-top: 0.3rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* ——— Pipeline status ——— */
.pipeline-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: var(--w-wide);
  margin: -0.5rem auto 1.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.015em;
}

.pipeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pipeline-bar.pipeline-ok .pipeline-dot {
  background: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
}

.pipeline-bar.pipeline-warn .pipeline-dot {
  background: #ff9f0a;
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.2);
}

/* ——— Spec list (Apple tech-spec style) ——— */
.spec-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.spec-head {
  padding: 1.125rem 1.25rem 0.75rem;
}

.spec-head h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.spec-head p {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-4);
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6875rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.spec-list li:last-child { border-bottom: none; }

.spec-list .k {
  color: var(--ink-3);
  font-weight: 400;
  flex-shrink: 0;
}

.spec-list .v {
  font-weight: 600;
  text-align: right;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.spec-list .v.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ink-2);
  word-break: break-all;
  max-width: 58%;
}

.spec-foot {
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.45;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
}

.spec-foot a { font-weight: 500; }

/* ——— Section ——— */
.section {
  padding: 2rem 1rem;
}

.section-tight { padding: 1.25rem 1rem 2rem; }

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
  text-align: center;
}

.section > p.lead {
  text-align: center;
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 24rem;
  margin: 0 auto 1.25rem;
}

/* ——— Feature row ——— */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.feat {
  border-radius: var(--radius);
  padding: 1.125rem;
}

.feat h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feat p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ——— Pricing ——— */
.pricing {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
}

.pricing-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  max-width: 20rem;
  margin-inline: auto;
}

.pricing-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 0.25rem;
}

.pricing-card .sub {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin: 0 0 1.25rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.price span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-4);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.pricing-card li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.pricing-card li:last-child { border-bottom: none; }

.pricing-card .btn-fill { width: 100%; }

/* ——— Product / detail page ——— */
.page-hero {
  padding: 2rem 1rem 1.25rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.625rem;
}

.page-hero p {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.detail-block {
  margin-bottom: 1.5rem;
}

.detail-block h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  text-align: left;
}

.detail-block p {
  margin: 0 0 0.75rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.45;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
}

.steps li::before {
  content: counter(step);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--accent);
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 50%;
}

.steps li strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.callout {
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.45;
  margin: 1rem 0;
}

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

/* ——— Sample page ——— */
.prose { padding: 2rem 1rem 2.5rem; }

.prose h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
}

.prose > p {
  color: var(--ink-2);
  font-size: 1rem;
  margin: 0 0 1.5rem;
  line-height: 1.45;
}

.signal {
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  margin-bottom: 0.5rem;
}

.signal h3 {
  margin: 0 0 0.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.signal .meta {
  font-size: 0.8125rem;
  color: var(--ink-3);
  margin-bottom: 0.625rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.tag {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink-4);
  border-radius: var(--pill);
}

/* ——— Footer ——— */
.footer {
  padding: 1.25rem 1rem 1.75rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: var(--w-wide);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.6875rem;
  color: var(--ink-4);
}

.footer nav { display: flex; gap: 1rem; }
.footer a { color: var(--ink-4); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: none; }

/* ——— Responsive ——— */
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .nav-inner {
    flex-wrap: wrap;
    padding-block: 0.5rem;
    row-gap: 0.35rem;
  }
  .nav-links {
    order: 3;
    flex: 1 1 100%;
    display: flex;
    gap: 0.875rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 0.75rem; }
  .nav-cta { margin-left: auto; }
  .stat-ribbon .stat { min-width: 45%; }
  .stat-ribbon .stat:nth-child(odd)::before { display: none; }
  .stat-ribbon .stat:nth-child(3)::before { display: block; }
}

@media (max-width: 400px) {
  .stat-ribbon .stat { min-width: 50%; }
  .stat-ribbon .stat::before { display: none !important; }
}

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