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

:root {
  --bg: #0f0f12;
  --surface: #1a1a1f;
  --text: #e8e8ed;
  --muted: #8b8b96;
  --accent: #6366f1;
  --accent-hover: #818cf8;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.hero {
  text-align: center;
  max-width: 32rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.sub {
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0.85;
  margin: 0;
}

.blog-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.blog-link:hover {
  color: var(--accent-hover);
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface);
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

footer code {
  background: var(--surface);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Blog */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--surface);
  z-index: 10;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.site-nav a:hover {
  color: var(--accent);
}

.blog-layout,
.article-layout {
  max-width: 42rem;
  margin: 0 auto;
  padding: 6rem 2rem 3rem;
  text-align: left;
}

.blog-header {
  margin-bottom: 2.5rem;
}
.blog-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}
.blog-intro {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--surface);
}
.blog-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.blog-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.blog-card h2 a {
  color: var(--text);
  text-decoration: none;
}
.blog-card h2 a:hover {
  color: var(--accent);
}
.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.article-header {
  margin-bottom: 2rem;
}
.article-header time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.article-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}
.article-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.article-body {
  line-height: 1.7;
}
.article-body h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.article-body p {
  margin: 0 0 1rem;
  color: var(--text);
}
.article-body p:last-child {
  margin-bottom: 0;
}

/* Article body: images, blockquotes, code, lists, typography */
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.article-body figure {
  margin: 2rem 0;
}

.article-body figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body pre,
.article-body code {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.9em;
}

.article-body code {
  background: var(--surface);
  padding: 0.2em 0.5em;
  border-radius: 6px;
  color: var(--accent);
}

.article-body pre {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.article-body pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 0.85rem;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-body li {
  margin: 0.35rem 0;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body strong {
  font-weight: 700;
  color: var(--text);
}

.article-body em {
  font-style: italic;
}

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

.article-body a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.article-body hr {
  border: none;
  height: 1px;
  background: var(--surface);
  margin: 2.5rem 0;
}

.article-body h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

/* Typography size utilities (for showcase) */
.article-body .text-small {
  font-size: 0.875rem;
  color: var(--muted);
}

.article-body .text-large {
  font-size: 1.2rem;
  line-height: 1.6;
}

.article-body .text-huge {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

/* ===== Apple Liquid Glass Homepage ===== */
.liquid-glass {
  min-height: 100vh;
  background: linear-gradient(160deg, #2a2a2e 0%, #23262d 35%, #1a1f2e 70%, #141824 100%);
  color: #f5f5f7;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  margin: 0;
  overflow-x: clip; /* clip avoids breaking position:sticky on mobile/iOS */
}

body.liquid-glass {
  display: block;
  align-items: unset;
  justify-content: unset;
}

/* Floating glass orbs */
.glass-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(90, 110, 140, 0.35) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(70, 95, 130, 0.3) 0%, transparent 70%);
  bottom: -5%;
  right: -5%;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(110, 120, 150, 0.3) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  margin-left: -150px;
  margin-top: -150px;
  animation: float 20s ease-in-out infinite -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.glass-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(at 40% 20%, rgba(255,255,255,0.03) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(255,255,255,0.02) 0px, transparent 50%);
  pointer-events: none;
}

/* Glass nav */
.glass-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-brand {
  font-family: "Goldman", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #f5f5f7;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

/* Hero */
.glass-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 0;
  text-align: center;
}

.hero-card {
  max-width: 36rem;
  margin-bottom: 0.5rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card h1 {
  font-family: "Goldman", sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-card .tagline {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.glass-btn-primary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-btn-primary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Pricing page */
.pricing-page {
  padding: 8rem 1.5rem 4rem;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.pricing-header h1 {
  font-family: "Goldman", sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 56rem;
  width: 100%;
  margin: 0 auto 2rem;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.pricing-card-featured {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: "Goldman", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #fff;
}

.pricing-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.25rem;
  line-height: 1.4;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-family: "Goldman", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.pricing-period {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.pricing-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: left;
  width: 100%;
}

.pricing-features li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.pricing-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Feature cards */
.glass-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  max-width: 48rem;
  width: 100%;
}

.feature-card {
  text-align: center;
  padding: 1.75rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
}

.feature-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.4;
}

/* Customer review quote */
.review-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.review-quote {
  margin: 0;
  padding: 2rem 2.5rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.review-quote-text {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.25rem;
  font-style: italic;
}

.review-quote-text::before {
  content: "“";
  margin-right: 0.05em;
}

.review-quote-text::after {
  content: """;
  margin-left: 0.05em;
}

.review-attribution {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  font-style: normal;
  font-family: "DM Sans", system-ui, sans-serif;
}

/* Footer */
.glass-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1rem 2rem;
  margin-top: 0.5rem;
}

.glass-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-made-in-america {
  font-family: "Goldman", sans-serif;
}

.footer-flag {
  display: inline-block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-right: 0.35em;
  vertical-align: middle;
}

/* ===== Feature scroll: phone only, screen changes with scroll ===== */
.feature-scroll {
  position: relative;
  width: 100%;
  max-width: 48rem;
  margin: 0 auto 0;
  padding: 0 1.5rem;
}

.feature-scroll-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 7rem;
  min-height: calc(100vh - 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.5rem;
  padding-bottom: 0;
  overflow: visible;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .feature-scroll-sticky {
    top: 5.5rem;
    min-height: calc(100vh - 5.5rem);
  }
}

.feature-cards-under-phone {
  margin-top: 0;
}

.store-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.store-badge {
  display: inline-block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge img {
  display: block;
  width: auto;
  object-fit: contain;
}

.store-badge-google img {
  height: 72px;
  max-width: 215px;
}

.store-badge-apple img {
  height: 52px;
  max-width: 155px;
}

.feature-scroll-phone-wrap {
  position: relative;
}

@keyframes feature-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-scroll-phone {
  position: relative;
  width: 280px;
  background: #1a1a1a;
  border-radius: 50px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.feature-scroll-phone-inner {
  position: relative;
  background: #000;
  border-radius: 40px;
  overflow: hidden;
}

.feature-scroll-dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 32px;
  background: #000;
  border-radius: 999px;
  z-index: 20;
}

.feature-scroll-screen {
  position: relative;
  background: #0f0f12;
  overflow: hidden;
}

.feature-scroll-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.hidden {
  display: none !important;
}

.feature-scroll-screen-img.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.feature-scroll-screen-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 15, 18, 0.95);
  animation: feature-fade-in-up 0.3s ease;
}

.feature-scroll-screen-placeholder.hidden {
  display: none;
}

.feature-scroll-placeholder-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-scroll-placeholder-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8e8ed;
  margin: 0;
}

.feature-scroll-phone-side {
  position: absolute;
  background: #1a1a1a;
}

.feature-scroll-phone-side.right {
  right: -3px;
  top: 7rem;
  width: 4px;
  height: 4rem;
  border-radius: 0 4px 4px 0;
}

.feature-scroll-phone-side.left {
  left: -3px;
  border-radius: 4px 0 0 4px;
}

.feature-scroll-phone-side.left.one {
  top: 5rem;
  height: 2rem;
  width: 4px;
}

.feature-scroll-phone-side.left.two {
  top: 8rem;
  height: 3rem;
  width: 4px;
}

.feature-scroll-phone-side.left.three {
  top: 12rem;
  height: 3rem;
  width: 4px;
}

.feature-scroll-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  pointer-events: none;
}
