/* ============================================================
   AppCrunchStudio — styles.css
   Design system: minimal, refined, content-focused
   ============================================================ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #760031;
  --brand-dark: #5E0027;
  --brand-darker: #45001D;
  --brand-light: #8F0B44;
  --brand-mid: #A82A5B;

  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --border: #E8E8E8;
  --border-light: #F0F0F0;

  --text-primary: #111111;
  --text-secondary: #666666;
  --text-tertiary: #999999;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);

  --nav-height: 64px;
  --max-width: 1100px;
  --content-width: 720px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-logo-text {
  display: inline-flex;
}

.nav-logo-text span {
  color: var(--brand);
  font-weight: 700;
}

.nav-logo-text .nav-logo-gray {
  color: #5A5A5A;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--brand);
  transition: width 0.2s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Active page state */
.nav-links a[aria-current="page"] {
  color: var(--text-primary);
}

.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-mobile a[aria-current="page"] {
  color: var(--brand);
}

.nav-github {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary) !important;
}

.nav-github svg {
  width: 16px;
  height: 16px;
}

/* External-link arrow (↗) — signals the link opens in a new tab */
.ext-arrow {
  width: 11px !important;
  height: 11px !important;
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

a:hover>.ext-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.25s ease;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-mobile a:hover {
  color: var(--text-primary);
}

.nav-mobile.open {
  display: flex;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 1px 4px rgba(118, 0, 49, 0.18), 0 0 0 0 rgba(118, 0, 49, 0);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(94, 0, 39, 0.32), 0 2px 6px rgba(94, 0, 39, 0.16);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: #c8c8c8;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ── Official Google Play badge ──
   Google-supplied asset (646x250). Aspect ratio is preserved and the source is
   ~3.6x the rendered width, so it stays crisp on 2x/3x high-DPI displays.
   Google brand guidelines: never recolor, distort, or fall below 40px height. */
.gplay-badge {
  display: inline-block;
  line-height: 0;
  border: none;
  background: none;
  padding: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gplay-badge img {
  display: block;
  width: 180px;
  height: auto;
  /* preserve Google's aspect ratio */
  max-width: 100%;
}

.gplay-badge:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.gplay-badge:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .gplay-badge:hover {
    transform: none;
  }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 48px) 0 80px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 38px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--brand);
}

.scribble-wrap {
  position: relative;
  display: inline-block;
}

.scribble {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.12em;
  top: auto;
  width: 104%;
  height: 0.48em;
  overflow: visible;
  z-index: -1;
  pointer-events: none;
  transform: rotate(-2.5deg);
  transform-origin: left center;
}

.scribble path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.21;
  filter: blur(0.35px);
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  animation: scribble-draw 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

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

@media (prefers-reduced-motion: reduce) {
  .scribble path {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Marker highlight behind "Thoughtfully" */
.highlight-wrap {
  position: relative;
  display: inline;
}

.highlight-wrap::before {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 0.06em;
  height: 0.52em;
  background: var(--brand);
  border-radius: 2px;
  opacity: 0;
  z-index: -1;
  transform: rotate(-1.2deg) scaleX(0);
  transform-origin: left center;
  filter: blur(1.8px);
  animation: marker-draw 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes marker-draw {
  0% {
    opacity: 0;
    transform: rotate(-1.2deg) scaleX(0);
  }

  15% {
    opacity: 0.17;
  }

  100% {
    opacity: 0.17;
    transform: rotate(-1.2deg) scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .highlight-wrap::before {
    animation: none;
    opacity: 0.17;
    transform: rotate(-1.2deg) scaleX(1);
  }
}

.hero h1 {
  margin-bottom: 32px;
  max-width: 720px;
  line-height: 1.08;
}

.hero-sub {
  font-size: 1.09rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 13.3px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.025em;
}

.trust-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand-dark);
  opacity: 0.45;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Philosophy Section ── */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.philosophy-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.philosophy-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
  border-color: #d4d4d4;
}

/* Card text content sits above the illustration */
.card-body {
  position: relative;
  z-index: 1;
}

/* Shared illustration styles */
.card-illustration {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.philosophy-card:hover .card-illustration {
  opacity: 0.25;
  transform: scale(1.03) translate(4px, 4px);
}

/* Per-card illustration placement */
.card-illus-focus {
  right: -68px;
  bottom: -68px;
  width: 260px;
  height: 260px;
}

.card-illus-privacy {
  right: -62px;
  bottom: -52px;
  width: 240px;
  height: 240px;
}

.card-illus-offline {
  right: -28px;
  bottom: -14px;
  width: 280px;
  height: 180px;
}

.principle-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.philosophy-card h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text-primary);
}

.philosophy-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 280px;
}

/* No Ads — featured card: white with thin burgundy top border */
.philosophy-card.featured {
  background: var(--surface);
  border-color: var(--border-light);
  border-top: 2px solid var(--brand);
  box-shadow: 0 -1px 0 rgba(94, 0, 39, 0.05), 0 10px 30px rgba(0, 0, 0, 0.05);
}

.philosophy-card.featured:hover {
  border-color: #d4d4d4;
  border-top-color: var(--brand);
}

.philosophy-card.featured h3 {
  color: var(--brand-dark);
}

/* ── Shared subtle grid overlay for brand-colored bands ──
   Echoes the hero grid. Used by both the Apps and Features sections. */
.section-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 45%, #000 25%, transparent 65%);
  mask-image: radial-gradient(120% 100% at 50% 45%, #000 25%, transparent 65%);
}

/* ── Apps Section — dark inverted palette ── */
.apps-section {
  position: relative;
  overflow: hidden;
  background: var(--brand);
}

.apps-section .container {
  position: relative;
  z-index: 1;
}

.apps-section .section-label {
  color: rgba(250, 250, 248, 0.52);
}

.apps-section h2 {
  color: #FAFAF8;
}

.apps-section .section-subheading {
  color: rgba(250, 250, 248, 0.66);
}

.apps-section .divider {
  background: rgba(250, 250, 248, 0.22);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

/* ── App card ── */
.app-card {
  /* Solid (not translucent) so the section grid never shows through the card */
  background: #80123F;
  border: 1px solid #8A254E;
  border-radius: 16px;
  padding: 34px 32px 46px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease-out, transform 0.2s ease-out, border-color 0.2s ease-out;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: #9B3A61;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Illustrations — confined to bottom 22% of card */
.app-card-illustration {
  position: absolute;
  pointer-events: none;
  opacity: 0.025;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 38%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 38%);
}

.app-card:hover .app-card-illustration {
  opacity: 0.044;
}

/* Per-card illustration positioning */
.app-card-illus-library {
  right: -10px;
  bottom: -140px;
  width: 300px;
  height: 220px;
}

.app-card-illus-docs {
  right: -20px;
  bottom: -72px;
  width: 240px;
  height: 200px;
}

.app-card-illus-radial {
  left: 50%;
  margin-left: -120px;
  bottom: -148px;
  width: 240px;
  height: 240px;
}

.app-card.placeholder:hover .app-card-illustration {
  transform: scale(1.02);
}

/* Card content — single flex column, all children share left edge */
.app-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header row: icon left, title+subtitle right, vertically centered */
.app-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

/* App icon */
.app-icon-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  transition: transform 0.2s ease-out;
}

.app-icon-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.36), 0 1px 3px rgba(0, 0, 0, 0.16);
  display: block;
}

.app-card:hover .app-icon-wrap {
  transform: scale(1.05);
}

/* Title + subtitle: tightly grouped */
.app-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #FAFAF8;
  line-height: 1.2;
}

.app-subtitle {
  font-size: 0.73rem;
  font-weight: 400;
  color: rgba(250, 250, 248, 0.4);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Description — full content width, 3–4 natural lines */
.app-desc {
  font-size: 0.86rem;
  color: rgba(250, 250, 248, 0.62);
  line-height: 1.72;
  margin-bottom: 26px;
  flex: 1;
}

/* Tags row — single line, consistent caps height */
.app-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
  flex-wrap: nowrap;
  align-items: center;
}

.app-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.38);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  padding: 4px 8px;
  line-height: 1;
  white-space: nowrap;
}

/* CTA row — equal-width buttons, same row, pinned to the card bottom so every
   card ends identically regardless of description length. */
.app-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: auto;
}

.app-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 9px 12px;
  font-size: 0.83rem;
  white-space: nowrap;
  min-width: 0;
}

/* Play Store icon used inside text buttons */
.btn-play-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Buttons inside dark section */
.apps-section .btn-primary {
  background: rgba(255, 255, 255, 0.92);
  color: #5E0027;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.apps-section .btn-primary:hover {
  background: #ffffff;
  color: #45001D;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.apps-section .btn-secondary {
  background: transparent;
  color: rgba(250, 250, 248, 0.6);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.apps-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(250, 250, 248, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  transform: translateY(-1px);
}

/* ── Placeholder cards ── */
.app-card.placeholder {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 400px;
  border-style: dashed;
  /* Solid values — an `opacity` here would make the grid show through */
  border-color: #8A254E;
  background: #790636;
}

.app-card.placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: #9B3A61;
}

.placeholder-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.placeholder-badge {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.placeholder-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(250, 250, 248, 0.52);
  margin-bottom: 7px;
}

.placeholder-sub {
  font-size: 0.82rem;
  color: rgba(250, 250, 248, 0.32);
}

/* ── About Section ── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: 380px;
}

/* Left column */
.about-left {
  padding-right: 80px;
  position: relative;
}

/* Body paragraphs */
.about-body {
  font-size: 1.05rem;
  line-height: 1.88;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 28px;
}

.about-body:last-of-type {
  margin-bottom: 0;
}

/* Right column — architectural brand element */
.about-right {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  pointer-events: none;
}

/* Radial burgundy glow — blurred, behind the logo */
.about-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 0, 39, 0.09) 0%, rgba(94, 0, 39, 0.04) 40%, transparent 70%);
  filter: blur(32px);
  pointer-events: none;
  transition: opacity 300ms ease-out;
}

/* The logo — architectural watermark */
.about-logo-mark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-46%) rotate(0deg);
  width: 380px;
  max-width: none;
  opacity: 0.09;
  display: block;
  transition: opacity 300ms ease-out;
  will-change: transform, opacity;
  pointer-events: none;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer-logo-img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-logo-text {
  display: inline-flex;
}

.footer-logo-text span {
  color: var(--brand);
  font-weight: 700;
}

.footer-logo-text .footer-logo-gray {
  color: #5A5A5A;
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ── Scroll animations ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger>* {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.stagger.visible>*:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.stagger.visible>*:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.stagger.visible>*:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

.stagger.visible>*:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

.stagger.visible>*:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

.stagger.visible>*:nth-child(6) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.40s;
}

/* Divider */
.divider {
  width: 48px;
  height: 1.5px;
  background: var(--brand);
  margin-bottom: 40px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }

  .about-left {
    padding-right: 0;
  }

  .about-right {
    min-height: 220px;
  }

  .about-logo-mark {
    width: 260px;
    right: -20px;
  }

  .about-glow {
    width: 320px;
    height: 320px;
    right: -60px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 32px);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .stagger>* {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }

  .app-card:hover,
  .philosophy-card:hover {
    transform: none;
  }
}

/* ============================================================
   PRODUCT PAGE — Book Library
   Built on the same tokens/components as the homepage.
   ============================================================ */

/* ── Product hero ── */
.product-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 96px) 0 112px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 80px;
  align-items: center;
}

.product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.product-eyebrow img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.product-eyebrow-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-eyebrow-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.product-eyebrow-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.product-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 620px;
}

.product-hero-sub {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 512px;
  line-height: 1.78;
  margin-bottom: 40px;
}

.product-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Phone mockup ── */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 336px;
  margin: 0 auto;
  aspect-ratio: 1220 / 2712;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(150deg, #1c1c1e 0%, #050505 55%, #141416 100%);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.22), 0 8px 24px rgba(0, 0, 0, 0.12);
  animation: phone-float 6s ease-in-out infinite;
}

.phone-mockup::after {
  /* side button hint */
  content: '';
  position: absolute;
  right: -2px;
  top: 30%;
  width: 3px;
  height: 64px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2a2a2c, #131315);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 8px;
  border-radius: 100px;
  background: #000;
  z-index: 2;
}

@keyframes phone-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

/* ── Generic centered section head ── */
.section-head-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}

.section-head-center .section-label {
  margin-bottom: 16px;
}

.section-head-center .section-subheading {
  margin: 0 auto;
  max-width: 512px;
}

.section-head-center .divider {
  margin: 24px auto 0;
}

/* ── Features section — brand-colored band ── */
.features-section {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  padding: 144px 0;
}

.features-section .container {
  position: relative;
  z-index: 1;
}

/* Dark-section typography */
.features-section .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.features-section .section-heading {
  color: #FFFFFF;
}

.features-section .section-subheading {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 18px 44px rgba(69, 0, 29, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
  border-color: rgba(118, 0, 49, 0.28);
}

/* Subtle background illustration — bottom-right, intensifies on hover */
.feature-bg {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.045;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 120% at 100% 100%, #000 40%, transparent 78%);
  mask-image: radial-gradient(120% 120% at 100% 100%, #000 40%, transparent 78%);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.feature-card:hover .feature-bg {
  opacity: 0.1;
  transform: scale(1.06) translate(-5px, -5px);
}

/* Header row: icon inline with title */
.feature-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(118, 0, 49, 0.055);
  color: var(--brand);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

.feature-card p {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Download band ── */
.download-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.download-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.download-inner h2 {
  margin-bottom: 16px;
}

.download-inner p {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.download-inner .btn {
  padding: 13px 30px;
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.2s ease;
  list-style: none;
}

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

.faq-question::marker {
  content: '';
}

.faq-question:hover {
  color: var(--brand);
}

.faq-question:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
  transition: transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--brand);
  border-radius: 2px;
  transition: opacity 0.25s ease;
}

.faq-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

.faq-icon::after {
  left: 8px;
  top: 0;
  width: 2px;
  height: 18px;
}

.faq-item[open] .faq-icon::after {
  opacity: 0;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-item[open] .faq-answer {
  max-height: 320px;
}

.faq-answer p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-secondary);
  padding: 0 4px 24px;
  max-width: 640px;
}

/* ── Product page responsive ── */
@media (max-width: 900px) {
  .product-hero {
    padding: calc(var(--nav-height) + 64px) 0 80px;
  }

  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .product-hero-visual {
    order: -1;
  }

  .product-hero h1,
  .product-hero-sub {
    max-width: 100%;
  }

  .features-section {
    padding: 104px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .product-hero {
    padding-top: calc(var(--nav-height) + 40px);
  }

  .features-section {
    padding: 80px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    max-width: 264px;
  }

  .product-hero-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card:hover {
    transform: none;
  }

  .feature-card:hover .feature-bg {
    transform: none;
  }

  .faq-answer,
  .faq-icon {
    transition: none;
  }

  .phone-mockup {
    animation: none;
  }
}