/* Macwan Apps — shared design system (Linear-inspired, light theme) */

/* Self-hosted Inter (latin subset) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }


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

:root {
  --bg: #ffffff;
  --bg-alt: #f9f8f9;
  --bg-card: #ffffff;
  --text: #0d0e10;
  --text-secondary: #3e4249;
  --text-muted: #6b6f76;
  --text-light: #8a8f98;
  --border: #e9e8ea;
  --border-strong: #d9d8db;
  --accent: #5e6ad2;
  --accent-hover: #6e79d6;
  --accent-soft: rgba(94, 106, 210, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.8);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
  --btn-text: #ffffff;
  --btn-hover: #2a2c33;
  color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 15px;
}

::selection { background: var(--accent-soft); }

/* ---------- Animations ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* Slide-in-from-left variant (timeline items) */
.fade-in-left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-left.delay-1 { transition-delay: 0.1s; }
.fade-in-left.delay-2 { transition-delay: 0.2s; }
.fade-in-left.delay-3 { transition-delay: 0.3s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim {
  opacity: 0;
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-anim.stagger-1 { animation-delay: 0.1s; }
.hero-anim.stagger-2 { animation-delay: 0.25s; }
.hero-anim.stagger-3 { animation-delay: 0.4s; }
.hero-anim.stagger-4 { animation-delay: 0.55s; }
.hero-anim.stagger-5 { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in-left, .hero-anim {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }
  .exp-card.current::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ?noanim=1 — same as reduced motion (debugging / screenshots) */
html.noanim .fade-in, html.noanim .fade-in-left, html.noanim .hero-anim {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
  animation: none;
}

/* ---------- Nav ---------- */

nav {
  background: transparent;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
  padding: 0 24px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
nav.scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--border);
}
nav .nav-inner {
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}
nav .brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
nav .nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  padding: 6px 12px;
  border-radius: 6px;
}
nav .nav-links a:hover { color: var(--text); background: var(--bg-alt); }
nav .nav-links a.active { color: var(--text); }
nav .nav-links a.nav-cta {
  color: var(--btn-text);
  background: var(--text);
  margin-left: 8px;
  padding: 6px 14px;
}
nav .nav-links a.nav-cta:hover { background: var(--btn-hover); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }
  nav .nav-links.open { display: flex; }
  nav .nav-links a { padding: 10px 12px; font-size: 14px; }
  nav .nav-links a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 168px 24px 96px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(94, 106, 210, 0.09), transparent),
    var(--bg);
  position: relative;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 5px 14px 5px 8px;
  margin-bottom: 28px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  box-shadow: var(--shadow-sm);
}
.hero-pill:hover { border-color: var(--border-strong); color: var(--text); }
.hero-pill .pill-tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.hero h1 {
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 20px;
  color: var(--text);
}
.hero .subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Compact hero for subpages */
.hero.hero-sub { padding: 148px 24px 56px; }
.hero.hero-sub h1 { font-size: 44px; }

/* Hero product preview */
.hero-preview { margin-top: 64px; }
.hero-preview .phone-frame { max-width: 82vw; }
.hero-preview .phone-frame img { max-width: 100%; }

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--btn-hover); }
.btn-primary svg { width: 15px; height: 15px; fill: var(--btn-text); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  letter-spacing: -0.01em;
}
.btn-secondary:hover { color: var(--text); background: var(--bg-alt); }

/* ---------- Sections ---------- */

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: -0.01em;
}
.section-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.15;
  color: var(--text);
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.65;
}

/* ---------- Keyline grid (values) ---------- */

.values-section { padding: 24px 24px 88px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.value-item {
  padding: 28px 28px 30px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}
.value-item:last-child { border-right: none; }
.value-item:hover { background: var(--bg-alt); }
.value-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.value-icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Icon color variants — soft tinted tile + matching stroke */
.icon-indigo { background: rgba(94, 106, 210, 0.10); }
.icon-indigo svg { stroke: #5e6ad2; }
.icon-green  { background: rgba(35, 165, 90, 0.10); }
.icon-green svg  { stroke: #1d9d54; }
.icon-amber  { background: rgba(234, 158, 8, 0.12); }
.icon-amber svg  { stroke: #d98a06; }
.icon-blue   { background: rgba(59, 130, 246, 0.10); }
.icon-blue svg   { stroke: #3b82f6; }
.icon-purple { background: rgba(139, 92, 246, 0.10); }
.icon-purple svg { stroke: #8b5cf6; }
.icon-pink   { background: rgba(236, 72, 153, 0.10); }
.icon-pink svg   { stroke: #db2777; }
.icon-teal   { background: rgba(20, 184, 166, 0.10); }
.icon-teal svg   { stroke: #0d9488; }
.icon-orange { background: rgba(249, 115, 22, 0.10); }
.icon-orange svg { stroke: #ea7317; }
.value-item h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.value-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
@media (max-width: 700px) {
  .values-grid { grid-template-columns: 1fr; }
  .value-item { border-right: none; border-bottom: 1px solid var(--border); }
  .value-item:last-child { border-bottom: none; }
}

/* ---------- Stats strip ---------- */

.stats-section {
  padding: 0 24px 88px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.stat-item {
  padding: 26px 20px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--bg);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.stat-icon svg {
  width: 16px; height: 16px;
  fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.stat-value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(n+3) { border-bottom: none; }
}

/* ---------- App cards ---------- */

.apps-section {
  padding: 88px 24px;
  max-width: 1024px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.app-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.app-card-inner { padding: 28px 28px 24px; flex: 1; }
.app-card .app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.app-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.app-card .app-category {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.app-card .app-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.app-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.app-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 168, 83, 0.09);
  color: #1d7a3d;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.app-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34a853;
}
.app-preview {
  background: linear-gradient(180deg, var(--bg-alt), #f3f2f4);
  border-top: 1px solid var(--border);
  padding: 24px 24px 0;
  display: flex;
  gap: 14px;
  justify-content: center;
  overflow: hidden;
}
.app-preview img {
  width: 128px;
  height: auto;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -1px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-card:hover .app-preview img { transform: translateY(-5px); }

/* Official Apple App Store badge (artwork must stay unmodified) */
.appstore-badge-img {
  display: block;
  height: 40px;
  width: auto;
}
.appstore-badge-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.15s;
}
.appstore-badge-link:hover { opacity: 0.85; }
.appstore-badge-link img {
  height: 54px;
  width: auto;
}

.learn-more {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
}
.app-card:hover .learn-more { color: var(--accent); }

.apps-footnote {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.apps-footnote a { color: var(--accent); text-decoration: none; font-weight: 500; }
.apps-footnote a:hover { text-decoration: underline; }

/* ---------- Generic cards / pills ---------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.tag {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- About ---------- */

.about-section {
  padding: 88px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}
.about-section .inner { max-width: 620px; margin: 0 auto; }
.about-section p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.about-founder {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(94, 106, 210, 0.06), transparent),
    var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}
.about-founder .hero-avatar {
  width: 72px;
  height: 72px;
  font-size: 26px;
  margin: 0 0 14px;
  animation: none;
}
.about-founder .founder-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.about-founder .founder-role {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.about-text {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
  text-align: left;
}
.about-text p:last-child { margin-bottom: 0; }
.about-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
@media (max-width: 700px) {
  .about-card { grid-template-columns: 1fr; }
  .about-founder { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 24px; }
  .about-text { padding: 26px 26px 28px; }
}

/* ---------- Newsletter ---------- */

.newsletter-section {
  padding: 88px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.newsletter-form input::placeholder { color: var(--text-light); }
.newsletter-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 14px;
}
@media (max-width: 500px) { .newsletter-form { flex-direction: column; } }

/* ---------- Contact ---------- */

.contact-section {
  padding: 88px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--text);
  color: var(--btn-text);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.contact-btn:hover { background: var(--btn-hover); }
.contact-btn svg { width: 16px; height: 16px; fill: var(--btn-text); }
.contact-hint {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-light);
}
.social-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
}
.social-row a:hover { border-color: var(--border-strong); background: var(--bg-alt); }
.social-row a svg { width: 16px; height: 16px; fill: var(--text-muted); transition: fill 0.15s; }
.social-row a:hover svg { fill: var(--text); }

/* ---------- Prose pages (legal, support, press) ---------- */

.prose-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 88px;
}
.prose-section h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  color: var(--text);
}
.prose-section h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
  color: var(--text);
}
.prose-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}
.prose-section ul, .prose-section ol {
  padding-left: 22px;
  margin-bottom: 14px;
}
.prose-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}
.prose-section li::marker { color: var(--accent); }
.prose-section a { color: var(--accent); text-decoration: none; }
.prose-section a:hover { text-decoration: underline; }
.prose-section .updated {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
}
.prose-section hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg);
}
.faq-item summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-item summary:hover { background: var(--bg-alt); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--text-light);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item .faq-answer a { color: var(--accent); text-decoration: none; }
.faq-item .faq-answer a:hover { text-decoration: underline; }

/* ---------- Profile page ---------- */

.hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #8b94e8);
  color: white;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-md);
}
.hero .role {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.hero-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 5px 13px;
  box-shadow: var(--shadow-sm);
}
.hero-chip svg {
  width: 13px; height: 13px;
  stroke: var(--accent); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.skills-section {
  padding: 88px 24px;
  max-width: 1024px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.skill-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.skill-card .value-icon { margin: 0 0 14px; }
.skill-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.experience-section {
  padding: 88px 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.experience-inner { max-width: 780px; margin: 0 auto; }
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 60%, var(--border) 100%);
  border-radius: 2px;
}
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.exp-card::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 40px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  transform: translateX(-1px);
}
.exp-card.current::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
  50% { box-shadow: 0 0 0 9px rgba(94, 106, 210, 0.04); }
}
.exp-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.exp-duration {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 999px;
}
.exp-card.current .exp-duration {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: transparent;
}
.exp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.exp-id {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.exp-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exp-icon svg {
  width: 19px; height: 19px;
  fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.exp-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.exp-dates {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.exp-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.exp-company {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.exp-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.exp-highlights {
  margin-top: 10px;
  padding-left: 0;
  list-style: none;
}
.exp-highlights li {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
}
.exp-highlights li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  opacity: 0.75;
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
@media (max-width: 540px) {
  .exp-top { flex-direction: column; gap: 10px; }
}

.currently-section {
  padding: 88px 24px;
  max-width: 1024px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.currently-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.currently-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.currently-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.currently-badge.shipped {
  background: rgba(52, 168, 83, 0.09);
  color: #1d7a3d;
}
.currently-badge.shipped::before { background: #34a853; }
.currently-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.currently-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.currently-card .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: block;
  box-shadow: var(--shadow-sm);
}
.currently-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.currently-card .tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}
.currently-card .learn-more { color: var(--accent); }

/* ---------- Blog ---------- */

.post-list {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px 88px;
}
.post-date {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-light);
}
.post-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.post-byline .mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b94e8);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.post-byline span { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* Featured (latest) post — large horizontal card */
.featured-post {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-bottom: 40px;
}
.featured-post:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.featured-post .post-cover {
  aspect-ratio: 16 / 9;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  width: 100%;
  border-right: 1px solid var(--border);
}
.featured-post .featured-body {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-post h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.25;
  margin: 14px 0 10px;
  color: var(--text);
}
.featured-post p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}
.featured-post:hover h2 { color: var(--accent); }
@media (max-width: 820px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .post-cover { border-right: none; border-bottom: 1px solid var(--border); height: auto; }
  .featured-post .featured-body { padding: 26px 26px 24px; }
  .featured-post h2 { font-size: 21px; }
}

/* Section divider label */
.post-list .all-posts-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

/* Post grid — vertical cards with covers */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.post-card .post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}
.post-card-body { padding: 22px 24px 24px; flex: 1; }
.post-card h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 12px 0 8px;
  color: var(--text);
  line-height: 1.35;
}
.post-card:hover h2 { color: var(--accent); }
.post-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Blog subscribe box (index) */
.blog-subscribe {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(94, 106, 210, 0.06), transparent),
    var(--bg);
}
.blog-subscribe h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.blog-subscribe > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.blog-subscribe .newsletter-note a { color: var(--accent); text-decoration: none; }

/* Read next (post pages) */
.read-next {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 56px;
}
.read-next .all-posts-label { margin-bottom: 14px; }
.read-next a {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.read-next a:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.read-next img {
  width: 132px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
}
.read-next h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
}
.read-next a:hover h3 { color: var(--accent); }
.read-next .post-date { font-size: 12px; }
@media (max-width: 480px) {
  .read-next a { grid-template-columns: 1fr; }
  .read-next img { width: 100%; }
}

/* Article page */
.post-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-light);
}
.post-cover-figure {
  max-width: 760px;
  margin: 0 auto 16px;
  padding: 0 24px;
}
.post-cover-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
}
.post-screens {
  margin: 28px 0;
  background: linear-gradient(180deg, var(--bg-alt), #f3f2f4);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px 0;
  display: flex;
  gap: 16px;
  justify-content: center;
  overflow: hidden;
}
.post-screens img {
  width: 180px;
  height: auto;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -1px 24px rgba(0, 0, 0, 0.08);
}
.post-screens + figcaption, .post-screens-caption {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-light);
  margin: -16px 0 28px;
}
@media (max-width: 540px) { .post-screens img { width: 128px; } }
.post-tldr {
  background: var(--accent-soft);
  border: 1px solid rgba(94, 106, 210, 0.16);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 28px;
}
.post-tldr p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.post-tldr strong { color: var(--accent); }
.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 40px;
  background: var(--bg);
}
.author-card .hero-avatar {
  width: 52px;
  height: 52px;
  font-size: 19px;
  margin: 0;
  flex-shrink: 0;
  animation: none;
}
.author-card .author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.author-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.author-card a { color: var(--accent); text-decoration: none; }
.author-card a:hover { text-decoration: underline; }
.prose-section .post-cta {
  background:
    radial-gradient(ellipse 70% 100% at 50% -20%, rgba(94, 106, 210, 0.07), transparent),
    var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  margin-top: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.prose-section .post-cta p {
  margin-bottom: 20px;
  font-size: 15px;
}
.prose-section .post-cta .btn-primary,
.prose-section .post-cta .btn-primary:hover {
  color: var(--btn-text);
  text-decoration: none;
  font-size: 14px;
  padding: 11px 22px;
}
.prose-section .post-cta .btn-primary svg { width: 15px; height: 15px; fill: var(--btn-text); }
.post-footer-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 88px;
  text-align: center;
}

/* ---------- Press ---------- */

.press-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0 8px;
}
.press-asset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: var(--bg);
}
.press-asset img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 12px;
}
.press-asset.wide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.press-asset h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.press-asset a {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.press-asset a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

footer {
  background: var(--bg);
  color: var(--text-muted);
  padding: 48px 24px 40px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.footer-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 12px;
}
.footer-brand img { width: 20px; height: 20px; border-radius: 5px; opacity: 0.9; }
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--text); }
.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-social { display: flex; gap: 8px; align-items: center; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background 0.15s;
}
.footer-social a:hover { background: var(--bg-alt); }
.footer-social a svg { width: 15px; height: 15px; fill: var(--text-light); transition: fill 0.15s; }
.footer-social a:hover svg { fill: var(--text); }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
  .hero { padding: 132px 20px 72px; }
  .hero h1 { font-size: 40px; letter-spacing: -0.03em; }
  .hero.hero-sub h1 { font-size: 32px; }
  .hero .subtitle { font-size: 15px; }
  .section-title { font-size: 30px; }
  .apps-grid { grid-template-columns: 1fr; }
  .app-preview img { width: 108px; }
}

/* ---------- Dark theme (token overrides) ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f12;
    --bg-alt: #141519;
    --bg-card: #17181d;
    --text: #f2f3f5;
    --text-secondary: #c6c9d0;
    --text-muted: #979ba4;
    --text-light: #7b7f88;
    --border: #26282e;
    --border-strong: #363940;
    --accent: #7b87e6;
    --accent-hover: #8b96ec;
    --accent-soft: rgba(123, 135, 230, 0.14);
    --nav-bg: rgba(14, 15, 18, 0.8);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
    --btn-text: #0e0f12;
    --btn-hover: #d6d8dd;
    color-scheme: dark;
  }
  .app-status,
  .currently-badge {
    background: rgba(76, 195, 138, 0.13);
    color: #4cc38a;
  }
  .app-status::before,
  .currently-badge.shipped::before { background: #4cc38a; }
  .app-preview {
    background: linear-gradient(180deg, var(--bg-alt), #101116);
  }
}

/* ---------- WalkFirst product page: how-it-works & feature rows ---------- */

.how-section {
  max-width: 1024px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  text-align: center;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}
.how-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.how-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.how-step p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.features-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}
.feature-row {
  display: flex;
  align-items: center;
  gap: 96px;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.feature-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.feature-shot { flex-shrink: 0; }
.feature-text .section-label { text-align: inherit; }

@media (max-width: 820px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    gap: 56px;
    text-align: center;
  }
  .feature-shot .phone-frame img { width: 240px; }
}
@media (max-width: 480px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ---------- Split hero with iPhone mockup ---------- */

.hero-split { text-align: left; }
.hero-split-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero-split-text { flex: 1; }
.hero-split-shot { flex-shrink: 0; }
.hero-split .subtitle { margin-left: 0; }
.hero-split .hero-actions { justify-content: flex-start; }

/* CSS iPhone 17 Pro mockup: thin uniform bezel, flat titanium edge, dynamic island */
.phone-frame {
  position: relative;
  display: inline-block;
  padding: 10px;
  background: #101114;
  border-radius: 56px;
  box-shadow:
    0 0 0 2.5px #3d3f45,
    0 0 0 3.5px #17181b,
    inset 0 0 3px rgba(255, 255, 255, 0.06),
    var(--shadow-lg);
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  background: #050506;
  border-radius: 999px;
  z-index: 2;
}
.phone-frame img {
  display: block;
  width: 280px;
  height: auto;
  border-radius: 46px;
}

@media (max-width: 900px) {
  .hero-split { text-align: center; }
  .hero-split-inner {
    flex-direction: column;
    gap: 48px;
  }
  .hero-split-text .hero-actions { justify-content: center; }
  .hero-split .subtitle { margin-left: auto; margin-right: auto; }
  .phone-frame img { width: 240px; border-radius: 40px; }
  .phone-frame { border-radius: 50px; }
  .phone-frame::before { top: 20px; width: 72px; height: 21px; }
}

/* Closing CTA */
.cta-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.65;
}
.contact-section .appstore-badge-link { margin-bottom: 4px; }
.contact-hint a { color: var(--accent); text-decoration: none; }
.contact-hint a:hover { text-decoration: underline; }

/* ---------- WalkFirst product theme (scoped, warm orange/cream) ---------- */

.theme-walkfirst {
  --accent: #c2580a;
  --accent-hover: #a84b06;
  --accent-soft: rgba(249, 115, 22, 0.10);
  --bg-alt: #faf6ef;
}

/* Hero: warm layered gradients + dot grid + glow behind the phone */
.theme-walkfirst .hero {
  background:
    radial-gradient(ellipse 70% 65% at 18% -12%, rgba(249, 115, 22, 0.12), transparent),
    radial-gradient(ellipse 55% 50% at 88% 8%, rgba(253, 186, 116, 0.16), transparent),
    linear-gradient(180deg, #fdf7ef 0%, var(--bg) 88%);
  overflow: hidden;
}
.theme-walkfirst .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(194, 88, 10, 0.13) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.theme-walkfirst .hero-split-inner { position: relative; z-index: 1; }

/* Glow + step-ring echo behind the phone mockup */
.theme-walkfirst .hero-split-shot { position: relative; }
.theme-walkfirst .hero-split-shot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16) 0%, rgba(253, 186, 116, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.theme-walkfirst .hero-split-shot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  width: 420px;
  height: 420px;
  border: 2.5px dashed rgba(249, 115, 22, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.theme-walkfirst .phone-frame { position: relative; z-index: 1; }

/* Section rhythm: warm tint on alternating bands */
.theme-walkfirst .how-section {
  background: linear-gradient(180deg, var(--bg) 0%, #fbf7f0 30%, #fbf7f0 70%, var(--bg) 100%);
  max-width: none;
}
.theme-walkfirst .how-grid { max-width: 976px; margin-left: auto; margin-right: auto; }
.theme-walkfirst .step-num {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}
.theme-walkfirst .contact-section {
  background:
    radial-gradient(ellipse 60% 80% at 50% 110%, rgba(249, 115, 22, 0.10), transparent),
    var(--bg-alt);
}

@media (prefers-color-scheme: dark) {
  .theme-walkfirst {
    --accent: #fb923c;
    --accent-hover: #fdba74;
    --accent-soft: rgba(251, 146, 60, 0.14);
    --bg-alt: #16130e;
  }
  .theme-walkfirst .hero {
    background:
      radial-gradient(ellipse 70% 65% at 18% -12%, rgba(249, 115, 22, 0.14), transparent),
      radial-gradient(ellipse 55% 50% at 88% 8%, rgba(194, 88, 10, 0.12), transparent),
      linear-gradient(180deg, #17120c 0%, var(--bg) 88%);
  }
  .theme-walkfirst .hero::before {
    background-image: radial-gradient(rgba(251, 146, 60, 0.16) 1px, transparent 1.4px);
  }
  .theme-walkfirst .how-section {
    background: linear-gradient(180deg, var(--bg) 0%, #14110c 30%, #14110c 70%, var(--bg) 100%);
  }
  .theme-walkfirst .hero-split-shot::before {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.14) 0%, rgba(194, 88, 10, 0.07) 45%, transparent 70%);
  }
  .theme-walkfirst .hero-split-shot::after {
    border-color: rgba(251, 146, 60, 0.18);
  }
  .theme-walkfirst .contact-section {
    background:
      radial-gradient(ellipse 60% 80% at 50% 110%, rgba(249, 115, 22, 0.08), transparent),
      var(--bg-alt);
  }
}

@media (max-width: 900px) {
  .theme-walkfirst .hero-split-shot::before { width: 360px; height: 360px; }
  .theme-walkfirst .hero-split-shot::after { width: 320px; height: 320px; }
}

/* WalkFirst theme: differentiated header, filled feature background */
.theme-walkfirst nav {
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(194, 88, 10, 0.12);
  box-shadow: 0 1px 12px rgba(194, 88, 10, 0.05);
}
.theme-walkfirst nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border);
}

.theme-walkfirst .features-section {
  max-width: none;
  overflow: clip;
  background:
    radial-gradient(ellipse 45% 32% at 6% 22%, rgba(249, 115, 22, 0.06), transparent),
    radial-gradient(ellipse 45% 32% at 94% 52%, rgba(253, 186, 116, 0.09), transparent),
    radial-gradient(ellipse 45% 32% at 6% 82%, rgba(249, 115, 22, 0.05), transparent);
}
.theme-walkfirst .feature-row {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.theme-walkfirst .feature-shot { position: relative; }
.theme-walkfirst .feature-shot::before {
  content: '';
  position: absolute;
  inset: -48px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.11) 0%, transparent 68%);
  pointer-events: none;
}
.theme-walkfirst .feature-shot .phone-frame { position: relative; z-index: 1; }

@media (prefers-color-scheme: dark) {
  .theme-walkfirst nav {
    background: rgba(14, 15, 18, 0.55);
    border-bottom: 1px solid rgba(251, 146, 60, 0.12);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  }
  .theme-walkfirst nav.scrolled {
    background: rgba(14, 15, 18, 0.85);
    border-bottom-color: var(--border);
  }
  .theme-walkfirst .features-section {
    background:
      radial-gradient(ellipse 45% 32% at 6% 22%, rgba(249, 115, 22, 0.07), transparent),
      radial-gradient(ellipse 45% 32% at 94% 52%, rgba(194, 88, 10, 0.08), transparent),
      radial-gradient(ellipse 45% 32% at 6% 82%, rgba(249, 115, 22, 0.05), transparent);
  }
  .theme-walkfirst .feature-shot::before {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.09) 0%, transparent 68%);
  }
}

/* WalkFirst theme: visible art behind every feature screenshot */
.theme-walkfirst .feature-shot::before {
  inset: -64px;
  background-image:
    radial-gradient(rgba(194, 88, 10, 0.16) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(249, 115, 22, 0.14) 0%, rgba(253, 186, 116, 0.07) 45%, transparent 70%);
  background-size: 22px 22px, 100% 100%;
  background-position: center, center;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 74%);
}
.theme-walkfirst .feature-shot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(9deg);
  width: 380px;
  height: 380px;
  border: 2.5px dashed rgba(249, 115, 22, 0.24);
  border-radius: 50%;
  pointer-events: none;
}
.theme-walkfirst .feature-row.reverse .feature-shot::after {
  transform: translate(-50%, -50%) rotate(-9deg);
}

/* Closing CTA link row: spaced, scannable */
.cta-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 32px;
  font-size: 14px;
}
.cta-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.15s;
}
.cta-links a:hover { color: var(--accent); }
.cta-links .dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}
@media (max-width: 540px) {
  .cta-links { flex-direction: column; gap: 6px; }
  .cta-links .dot-sep { display: none; }
}

@media (prefers-color-scheme: dark) {
  .theme-walkfirst .feature-shot::after { border-color: rgba(251, 146, 60, 0.20); }
  .theme-walkfirst .feature-shot::before {
    background-image:
      radial-gradient(rgba(251, 146, 60, 0.14) 1px, transparent 1.4px),
      radial-gradient(circle, rgba(249, 115, 22, 0.11) 0%, rgba(194, 88, 10, 0.06) 45%, transparent 70%);
  }
}
@media (max-width: 820px) {
  .theme-walkfirst .feature-shot::after { width: 320px; height: 320px; }
}

/* Product-scoped nav: brand group + "by Macwan Apps" */
.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.nav-home {
  display: flex;
  align-items: center;
  opacity: 0.55;
  transition: opacity 0.15s;
}
.nav-home:hover { opacity: 1; }
.nav-home img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.nav-sep {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
}

/* ---------- WalkFirst hero: mesh blobs, ring stack, floating stat chips ---------- */

/* Mesh gradient wash behind the phone (replaces single glow) */
.theme-walkfirst .hero-split-shot::before {
  width: 560px;
  height: 560px;
  background:
    radial-gradient(circle at 30% 22%, rgba(249, 115, 22, 0.20) 0%, transparent 42%),
    radial-gradient(circle at 74% 68%, rgba(253, 186, 116, 0.22) 0%, transparent 46%),
    radial-gradient(circle at 18% 78%, rgba(234, 88, 12, 0.12) 0%, transparent 40%),
    radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(2px);
}
/* Retire the old single dashed ring — the ring stack replaces it */
.theme-walkfirst .hero-split-shot::after { content: none; }

.deco-rings {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  pointer-events: none;
}
.deco-rings::before,
.deco-rings::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.deco-rings::before {
  width: 430px;
  height: 430px;
  border: 2.5px dashed rgba(249, 115, 22, 0.28);
  animation: ring-spin 90s linear infinite;
}
.deco-rings::after {
  width: 545px;
  height: 545px;
  border: 1.5px solid rgba(249, 115, 22, 0.12);
}
@keyframes ring-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating glass stat chips */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 28px rgba(194, 88, 10, 0.16);
  border-radius: 999px;
  padding: 9px 16px;
  white-space: nowrap;
  z-index: 3;
  animation: chip-float 5s ease-in-out infinite alternate;
}
.chip-ico { font-size: 15px; }
.chip-1 { top: 6%; left: -74px; animation-delay: 0s; }
.chip-2 { top: 42%; right: -92px; animation-delay: 1.6s; }
.chip-3 { bottom: 7%; left: -58px; animation-delay: 3.2s; }
@keyframes chip-float {
  from { transform: translateY(-7px); }
  to   { transform: translateY(7px); }
}

/* Feature shots: tilted gradient squircle card replaces the plain circle */
.theme-walkfirst .feature-shot::after {
  border: none;
  border-radius: 26%;
  width: 316px;
  height: 316px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.17) 0%, rgba(253, 186, 116, 0.12) 55%, rgba(234, 88, 12, 0.07) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(249, 115, 22, 0.14);
  transform: translate(-50%, -50%) rotate(8deg);
}
.theme-walkfirst .feature-row.reverse .feature-shot::after {
  transform: translate(-50%, -50%) rotate(-8deg);
}

@media (prefers-color-scheme: dark) {
  .theme-walkfirst .hero-split-shot::before {
    background:
      radial-gradient(circle at 30% 22%, rgba(249, 115, 22, 0.16) 0%, transparent 42%),
      radial-gradient(circle at 74% 68%, rgba(194, 88, 10, 0.16) 0%, transparent 46%),
      radial-gradient(circle at 18% 78%, rgba(234, 88, 12, 0.10) 0%, transparent 40%),
      radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  }
  .deco-rings::before { border-color: rgba(251, 146, 60, 0.24); }
  .deco-rings::after { border-color: rgba(251, 146, 60, 0.10); }
  .float-chip {
    background: rgba(23, 24, 29, 0.72);
    border-color: rgba(251, 146, 60, 0.18);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  }
  .theme-walkfirst .feature-shot::after {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14) 0%, rgba(194, 88, 10, 0.10) 55%, rgba(234, 88, 12, 0.05) 100%);
    box-shadow: inset 0 0 0 1.5px rgba(251, 146, 60, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .deco-rings::before { animation: none; }
  .float-chip { animation: none; }
}
html.noanim .deco-rings::before, html.noanim .float-chip { animation: none; }

@media (max-width: 900px) {
  .deco-rings::before { width: 330px; height: 330px; }
  .deco-rings::after { width: 420px; height: 420px; }
  .float-chip { font-size: 12px; padding: 7px 13px; }
  .chip-1 { left: -10px; top: 2%; }
  .chip-2 { right: -14px; top: 46%; }
  .chip-3 { left: -6px; bottom: 4%; }
  .theme-walkfirst .feature-shot::after { width: 268px; height: 268px; }
}

/* ---------- Studio theme (homepage): indigo design language ---------- */

.theme-studio .hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 24% -10%, rgba(94, 106, 210, 0.14), transparent),
    radial-gradient(ellipse 50% 45% at 82% 4%, rgba(139, 148, 232, 0.12), transparent),
    linear-gradient(180deg, #f7f7fc 0%, var(--bg) 88%);
}
.theme-studio .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(94, 106, 210, 0.14) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.theme-studio .hero > * { position: relative; }

.theme-studio .hero-preview { position: relative; display: inline-block; }
.theme-studio .hero-preview::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 560px; height: 560px;
  background:
    radial-gradient(circle at 32% 24%, rgba(94, 106, 210, 0.18) 0%, transparent 44%),
    radial-gradient(circle at 72% 70%, rgba(139, 148, 232, 0.16) 0%, transparent 46%),
    radial-gradient(circle, rgba(94, 106, 210, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.theme-studio .deco-rings::before { border-color: rgba(94, 106, 210, 0.26); }
.theme-studio .deco-rings::after { border-color: rgba(94, 106, 210, 0.11); }
.theme-studio .float-chip {
  box-shadow: 0 8px 28px rgba(94, 106, 210, 0.18);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.theme-studio .float-chip:hover { box-shadow: 0 10px 32px rgba(94, 106, 210, 0.3); }
.chip-app-ico {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.theme-studio .chip-1 { top: 12%; left: -104px; }
.theme-studio .chip-2 { top: 58%; right: -96px; bottom: auto; }

/* Section washes */
.theme-studio .values-section {
  background:
    radial-gradient(ellipse 50% 70% at 12% 30%, rgba(94, 106, 210, 0.05), transparent),
    radial-gradient(ellipse 50% 70% at 90% 80%, rgba(139, 148, 232, 0.06), transparent);
}
.theme-studio .stats-section {
  background: linear-gradient(180deg, var(--bg) 0%, #f7f7fc 35%, #f7f7fc 65%, var(--bg) 100%);
  padding-top: 48px;
}
.theme-studio .about-section {
  background:
    radial-gradient(ellipse 60% 80% at 85% 15%, rgba(94, 106, 210, 0.06), transparent),
    var(--bg-alt);
}
.theme-studio .contact-section {
  background:
    radial-gradient(ellipse 60% 80% at 50% 115%, rgba(94, 106, 210, 0.09), transparent),
    var(--bg);
}

/* Per-app card identity */
.app-card { transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.card-walkfirst:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 12px 48px rgba(249, 115, 22, 0.14);
}
.card-rockiva:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 48px rgba(139, 92, 246, 0.14);
}

/* Closing CTA: both apps */
.cta-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cta-badge-labeled {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cta-badge-labeled:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.cta-app-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

@media (prefers-color-scheme: dark) {
  .theme-studio .hero {
    background:
      radial-gradient(ellipse 60% 55% at 24% -10%, rgba(94, 106, 210, 0.16), transparent),
      radial-gradient(ellipse 50% 45% at 82% 4%, rgba(139, 148, 232, 0.10), transparent),
      linear-gradient(180deg, #101118 0%, var(--bg) 88%);
  }
  .theme-studio .hero::before {
    background-image: radial-gradient(rgba(139, 148, 232, 0.16) 1px, transparent 1.4px);
  }
  .theme-studio .hero-preview::before {
    background:
      radial-gradient(circle at 32% 24%, rgba(94, 106, 210, 0.16) 0%, transparent 44%),
      radial-gradient(circle at 72% 70%, rgba(99, 91, 255, 0.12) 0%, transparent 46%),
      radial-gradient(circle, rgba(94, 106, 210, 0.06) 0%, transparent 70%);
  }
  .theme-studio .deco-rings::before { border-color: rgba(139, 148, 232, 0.22); }
  .theme-studio .deco-rings::after { border-color: rgba(139, 148, 232, 0.10); }
  .theme-studio .float-chip { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45); }
  .theme-studio .stats-section {
    background: linear-gradient(180deg, var(--bg) 0%, #12131a 35%, #12131a 65%, var(--bg) 100%);
  }
  .card-walkfirst:hover {
    border-color: rgba(251, 146, 60, 0.4);
    box-shadow: 0 12px 48px rgba(249, 115, 22, 0.12);
  }
  .card-rockiva:hover {
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 12px 48px rgba(139, 92, 246, 0.12);
  }
}

@media (max-width: 900px) {
  .theme-studio .chip-1 { left: -14px; top: 6%; }
  .theme-studio .chip-2 { right: -12px; top: 62%; }
  .theme-studio .hero-preview::before { width: 400px; height: 400px; }
}

/* ---------- Featured app showcase card (single-app layout) ---------- */

.app-card-featured {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}
.app-card-featured .app-card-inner {
  flex: 1;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.app-card-featured .app-tagline { max-width: 380px; }
.app-mini-list {
  list-style: none;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-mini-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.app-mini-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
}
.app-mini-list li::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 6.5px;
  width: 6px;
  height: 3.5px;
  border-left: 1.7px solid #ea580c;
  border-bottom: 1.7px solid #ea580c;
  transform: rotate(-45deg);
}
.app-card-featured .app-preview {
  border-top: none;
  border-left: 1px solid var(--border);
  width: 46%;
  padding: 44px 36px 0;
  align-items: flex-end;
  gap: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(249, 115, 22, 0.14), transparent),
    linear-gradient(160deg, #fdf7ef 0%, #fbeedd 100%);
}
.app-card-featured .app-preview img {
  width: 158px;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(194, 88, 10, 0.14);
  border-bottom: none;
  box-shadow: 0 -8px 32px rgba(194, 88, 10, 0.12);
}
.app-card-featured .app-preview img:last-child { margin-bottom: -28px; }

@media (prefers-color-scheme: dark) {
  .app-card-featured .app-preview {
    background:
      radial-gradient(ellipse 80% 60% at 50% 110%, rgba(249, 115, 22, 0.12), transparent),
      linear-gradient(160deg, #1a150e 0%, #17120c 100%);
  }
  .app-card-featured .app-preview img {
    border-color: rgba(251, 146, 60, 0.16);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 760px) {
  .app-card-featured { flex-direction: column; }
  .app-card-featured .app-card-inner { padding: 32px 28px 24px; }
  .app-card-featured .app-preview {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    justify-content: center;
    align-items: flex-end;
    padding: 32px 24px 0;
  }
  .app-card-featured .app-preview img { width: 132px; }
  .app-card-featured .app-preview img:last-child { margin-bottom: 0; }
}

/* ---------- Blog redesign: editorial list, polished detail ---------- */

/* Studio nav band (homepage + blog) — mirrors the WalkFirst treatment in indigo */
.theme-studio nav {
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(94, 106, 210, 0.12);
  box-shadow: 0 1px 12px rgba(94, 106, 210, 0.05);
}
.theme-studio nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border);
}

/* Unified editorial post list */
.post-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.post-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-item-cover {
  width: 300px;
  flex-shrink: 0;
  object-fit: cover;
  border-right: 1px solid var(--border);
}
.post-item-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-item h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 4px 0 10px;
  transition: color 0.15s;
}
.post-item:hover h2 { color: var(--accent); }
.post-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Subscribe band */
.blog-subscribe {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 32px;
  margin-top: 56px;
  background:
    radial-gradient(ellipse 70% 90% at 50% -20%, rgba(94, 106, 210, 0.08), transparent),
    var(--bg-card);
}
.subscribe-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.subscribe-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.subscribe-btn { margin-top: 18px; }

/* Post detail: small phone bezel for in-post screenshots */
.post-screens { align-items: flex-start; }
.phone-frame-sm {
  padding: 7px;
  border-radius: 38px;
  box-shadow:
    0 0 0 2px #3d3f45,
    0 0 0 3px #17181b,
    var(--shadow-md);
}
.phone-frame-sm::before { top: 15px; width: 56px; height: 16px; }
.phone-frame-sm img { width: 190px; border-radius: 31px; }

/* Editorial furniture polish */
.post-tldr {
  border-left: 3px solid var(--accent);
  background:
    linear-gradient(90deg, var(--accent-soft), transparent 70%),
    var(--bg-card);
}
.post-cta {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  background:
    radial-gradient(ellipse 70% 100% at 50% -20%, var(--accent-soft), transparent),
    var(--bg-card);
}
.author-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  .theme-studio nav {
    background: rgba(14, 15, 18, 0.55);
    border-bottom: 1px solid rgba(139, 148, 232, 0.12);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
  }
  .theme-studio nav.scrolled {
    background: rgba(14, 15, 18, 0.85);
    border-bottom-color: var(--border);
  }
}

@media (max-width: 700px) {
  .post-item { flex-direction: column; }
  .post-item-cover {
    width: 100%;
    height: 170px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .post-item-body { padding: 24px 22px; }
  .phone-frame-sm img { width: 148px; border-radius: 26px; }
  .phone-frame-sm { border-radius: 32px; }
  .phone-frame-sm::before { top: 12px; width: 46px; height: 14px; }
}

/* ---------- Editorial blog (text-only, left-aligned) ---------- */

.blog-head, .post-hero {
  text-align: left;
  padding-bottom: 40px;
}
.blog-head > *, .post-hero > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.blog-head h1, .post-hero h1 {
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.blog-head .subtitle, .post-hero .subtitle { margin: 0 auto 14px; }
.blog-head .subtitle { max-width: 760px; }
.blog-note {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  padding-right: 120px;
}
@media (max-width: 700px) {
  .blog-note { padding-right: 0; }
}
.post-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 22px;
}
.post-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--accent); }

.row-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 10px;
}
.post-hero .row-kicker { margin-bottom: 14px; }
.post-hero .post-hero-meta {
  justify-content: flex-start;
  margin-top: 18px;
  margin-bottom: 0;
}

/* Text-only post rows */
.post-row {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.post-row:last-of-type { border-bottom: 1px solid var(--border); }
.post-row h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.post-row:hover h2 { color: var(--accent); }
.post-row p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
  max-width: 640px;
}
.row-meta {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* Read next: text only */
.read-next a { display: block; }
.read-next h3 { margin-bottom: 4px; }

@media (max-width: 700px) {
  .blog-head h1, .post-hero h1 { font-size: 32px; }
  .post-row { padding: 26px 0; }
  .post-row h2 { font-size: 19px; }
}
