/* measureStack - Minimal custom styles on top of Pico CSS */

:root {
  --pico-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pico-font-size: 15px;
  --pico-border-radius: 4px;
}

/* Prevent horizontal scroll on mobile */
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  overflow-x: hidden;
  width: 100%;
}

/* Narrower container with consistent padding */
.container {
  max-width: 1020px;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  width: 100%;
  box-sizing: border-box;
}

/* Smaller code blocks */
code, pre, kbd {
  font-size: 0.85em;
}

/* Allow word break without space */
wbr {
  display: inline-block;
  width: 0;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
  margin-bottom: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  min-width: 100vw;
  max-width: 1400px;
  height: 350px;
  background-image: url('../assets/hero-bg.svg?v=6');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: auto 100%;
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  font-size: 3.25rem;
  margin-bottom: 3.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.3;
}

.hero h1 .title-block {
  display: inline-block;
  background-color: rgba(160, 200, 130, 0.8);
  color: #2d3e1f;
  padding: 0.2rem 0.6rem;
  text-align: left;
}

.hero h1 .title-top {
  border-radius: 4px 4px 0 0;
}

.hero h1 .title-bottom {
  border-radius: 0 4px 4px 4px;
}

.hero hgroup p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

/* Badges */
.badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: white;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--pico-muted-color);
  letter-spacing: 0.02em;
}

/* CTA buttons */
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-group a[role="button"] {
  margin: 0;
}

/* Lead paragraph - border-top provided by hero background SVG */
.why {
  text-align: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color);
  margin: 0rem 0 2rem 0;
}

.lead {
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  line-height: 1.7;
}

/* Section spacing */
section {
  margin-bottom: 3rem;
}

section h2 {
  margin-bottom: 1.5rem;
}

/* Bordered sections */
.bordered-section {
  padding-top: 2rem;
  border-top: 1px solid var(--pico-muted-border-color);
}

/* Feature cards - 3 per row on desktop */
#features .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#features .grid article {
  padding: 1.5rem;
  margin: 0;
}

#features .grid article h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

#features .grid article p {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

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

@media (max-width: 576px) {
  #features .grid {
    grid-template-columns: 1fr;
  }
}

/* Code blocks */
pre {
  margin: 1rem 0;
}

/* Architecture diagram */
.architecture-diagram {
  text-align: center;
  margin: 1.5rem 0;
}

.architecture-diagram img {
  max-width: 100%;
  height: auto;
}

.architecture-note {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto;
}

/* Simplicity section */
.simplicity-content {
  max-width: 640px;
}

.simplicity-content p {
  margin-bottom: 1rem;
}

.simplicity-content ul {
  margin-bottom: 0;
}

.simplicity-content li {
  margin-bottom: 0.5rem;
}

/* Privacy grid */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.privacy-grid article {
  padding: 1.5rem;
  margin: 0;
}

.privacy-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.privacy-grid ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.privacy-grid li {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.privacy-note {
  text-align: center;
  margin-top: 1rem;
}

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

/* Comparison table */
#comparison table {
  font-size: 0.9rem;
}

/* Tech stack */
#stack {
  text-align: center;
  padding: 1.5rem;
  background: var(--pico-card-background-color);
  border-radius: var(--pico-border-radius);
}

#stack h2 {
  margin-bottom: 1rem;
}

#stack p {
  margin-bottom: 0.5rem;
}

.stack-note {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
  margin-top: 3rem;
}

.final-cta h2 {
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--pico-muted-border-color);
}

footer p {
  margin-bottom: 0.5rem;
}

/* Navigation */
header nav {
  padding: 1rem 0;
}

.logo {
  height: 24px;
  width: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero hgroup p {
    font-size: 1rem;
  }

  .lead {
    font-size: 0.95rem;
  }
}
