/* ── RailChop Shared Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --walnut: #5C3D2E;
  --espresso: #3B2417;
  --cream: #FAF6F1;
  --copper: #BF6A3A;
  --copper-hover: #a85a2f;
  --copper-glow: rgba(191,106,58,0.25);
  --amber: #D4940A;
  --sage: #4A8C5C;
  --red: #C43528;
  --text: #2E1E14;
  --text-light: #5E4B3F;
  --text-muted: #7A6A5E;
  --divider: #E0D5CB;
  --card: #FFFFFF;
  --card-border: #EDE6DD;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text); background: var(--cream);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--copper); color: #fff;
  padding: 8px 16px; border-radius: 0 0 8px 8px;
  z-index: 200; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--espresso);
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-brand {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.45rem;
  color: #fff; text-decoration: none; letter-spacing: 0.5px;
}
.nav-brand span { color: var(--copper); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links > a, .nav-drop > .nav-drop-label {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.85rem; font-weight: 600; transition: color 0.2s;
  padding: 8px 12px; border-radius: 6px; cursor: pointer;
  background: none; border: none; font-family: inherit;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav-links > a:hover, .nav-drop:hover > .nav-drop-label { color: #fff; background: rgba(255,255,255,0.08); }
.nav-drop { position: relative; }
.nav-drop-label svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.nav-drop-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--espresso); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 8px 0; min-width: 220px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.nav-drop-menu::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block; padding: 10px 20px; color: rgba(255,255,255,0.75);
  text-decoration: none; font-size: 0.85rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-drop-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-drop-menu .drop-desc {
  display: block; font-size: 0.72rem; color: rgba(255,255,255,0.4);
  font-weight: 400; margin-top: 2px;
}
.nav-cta {
  background: var(--copper) !important; color: #fff !important;
  padding: 7px 18px; border-radius: 8px; font-weight: 700 !important;
  font-size: 0.85rem !important; transition: background 0.2s !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--copper-hover) !important; }
.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-btn svg { display: block; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--copper); color: #fff;
  box-shadow: 0 4px 16px var(--copper-glow);
}
.btn-primary:hover { background: var(--copper-hover); box-shadow: 0 6px 24px var(--copper-glow); }
.btn-outline {
  background: transparent; color: var(--copper);
  border: 2px solid var(--copper);
}
.btn-outline:hover { background: rgba(191,106,58,0.06); }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); }

/* ── PAGE HERO (subpage style) ── */
.page-hero {
  padding: 100px 24px 56px;
  background: linear-gradient(170deg, var(--espresso) 0%, #4a2e1e 60%, var(--cream) 100%);
  color: #fff;
}
.page-hero-inner {
  max-width: 720px; margin: 0 auto;
}
.page-hero .breadcrumb {
  font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600; line-height: 1.12; margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.page-hero h1 em { font-style: italic; color: var(--copper); }
.page-hero .hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.7;
  max-width: 600px;
}

/* ── SECTION SHARED ── */
.section { padding: 64px 24px; }
.section-inner { max-width: 760px; margin: 0 auto; }
.section-wide { max-width: 960px; margin: 0 auto; }
.feature-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start;
}
.feature-sidebar {
  background: var(--cream); border-radius: 16px; padding: 32px;
  text-align: center; flex-shrink: 0;
}
.section-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--copper); margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600; color: var(--espresso);
  margin-bottom: 12px; line-height: 1.15;
  letter-spacing: -0.3px;
}
.bg-white { background: var(--card); }
.bg-cream { background: var(--cream); }
.border-top { border-top: 1px solid var(--card-border); }
.border-bottom { border-bottom: 1px solid var(--card-border); }

/* ── CONTENT PROSE ── */
.prose { max-width: 680px; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem; font-weight: 600; color: var(--espresso);
  margin: 44px 0 14px; line-height: 1.2;
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 600; color: var(--espresso);
  margin: 32px 0 10px;
}
.prose p {
  font-size: 1rem; color: var(--text-light);
  line-height: 1.75; margin-bottom: 16px;
}
.prose ul, .prose ol {
  margin: 0 0 20px 0; padding-left: 0; list-style: none;
}
.prose li {
  padding: 6px 0; font-size: 0.95rem; color: var(--text);
  display: flex; align-items: flex-start; gap: 10px;
}
.prose li::before {
  content: "\2713"; color: var(--sage); font-weight: 900; flex-shrink: 0; margin-top: 2px;
}
.prose blockquote {
  border-left: 3px solid var(--copper); padding: 16px 20px;
  margin: 24px 0; background: rgba(191,106,58,0.04); border-radius: 0 8px 8px 0;
}
.prose blockquote p { color: var(--text); font-size: 0.95rem; margin-bottom: 0; }

/* ── FEATURE GRID (for subpages) ── */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0;
}
.feature-card {
  background: var(--card); border-radius: 14px;
  border: 1px solid var(--card-border); padding: 24px;
  transition: box-shadow 0.25s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 6px 24px rgba(92,61,46,0.08); transform: translateY(-1px);
}
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 600; color: var(--espresso); margin-bottom: 6px;
}
.feature-card p {
  font-size: 0.9rem; color: var(--text-light); line-height: 1.6;
}

/* ── STAT STRIP ── */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 32px 0; text-align: center;
}
.stat-item {}
.stat-value { font-size: 2rem; font-weight: 900; line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ── TIER BADGES ── */
.tier-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}
.tier-pro { background: rgba(191,106,58,0.12); color: var(--copper); }
.tier-biz { background: rgba(92,61,46,0.12); color: var(--walnut); }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--espresso); text-align: center; padding: 56px 24px;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600; font-style: italic; color: #fff; margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,0.7); font-size: 1rem;
  margin-bottom: 24px; max-width: 440px; margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── RELATED LINKS ── */
.related {
  padding: 48px 24px; background: var(--cream);
  border-top: 1px solid var(--card-border);
}
.related-inner { max-width: 760px; margin: 0 auto; }
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px;
}
.related-card {
  background: var(--card); border-radius: 12px;
  border: 1px solid var(--card-border); padding: 20px;
  text-decoration: none; color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.related-card:hover {
  box-shadow: 0 4px 16px rgba(92,61,46,0.08); transform: translateY(-1px);
  color: inherit;
}
.related-card h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--espresso); margin-bottom: 4px;
}
.related-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ── FOOTER ── */
footer {
  background: var(--espresso);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  padding: 48px 24px 32px; font-size: 0.82rem;
}
footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px; max-width: 860px; margin: 0 auto 32px;
}
.footer-brand {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem;
  color: #fff; letter-spacing: 0.5px; margin-bottom: 10px;
}
.footer-brand span { color: var(--copper); }
.footer-tagline {
  font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.55;
}
.footer-platforms {
  font-size: 0.72rem; color: rgba(255,255,255,0.55);
  margin-top: 8px; letter-spacing: 0.3px;
  font-weight: 500;
}
.footer-col h4 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.65); margin-bottom: 12px;
}
.footer-col a {
  display: block; padding: 3px 0; color: rgba(255,255,255,0.5);
  font-size: 0.82rem; transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  text-align: center; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.35); font-size: 0.78rem;
}
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; }

/* ── NOTIFY FORM ── */
.notify-form {
  display: flex; gap: 10px; max-width: 440px;
}
.notify-form input[type="email"] {
  flex: 1; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff; font-family: inherit; font-size: 0.95rem;
  outline: none; transition: border-color 0.2s;
}
.notify-form input[type="email"]::placeholder { color: rgba(255,255,255,0.4); }
.notify-form input[type="email"]:focus { border-color: var(--copper); }
.notify-form-dark input[type="email"] {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
}
.notify-note {
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
  margin-top: 10px;
}
.notify-success {
  color: var(--sage); font-weight: 700; font-size: 0.95rem;
  padding: 12px 0; margin: 0;
}
.cta-banner .notify-form { margin: 0 auto; }
.cta-banner .notify-success { color: #fff; }

/* ── APP STORE CTA ── */
.cta-stack {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px; max-width: 440px;
}
.cta-banner .cta-stack { align-items: center; margin: 0 auto; }

.app-store-badge {
  display: inline-block; line-height: 0;
  border-radius: 10px; transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.app-store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.app-store-badge img {
  display: block; width: 180px; height: 60px;
}
@media (max-width: 480px) {
  .app-store-badge img { width: 156px; height: 52px; }
}

.android-waitlist {
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; max-width: 440px;
}
.cta-banner .android-waitlist { align-items: center; }
.android-waitlist-label {
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
  font-weight: 500; letter-spacing: 0.2px;
}
.cta-banner .android-waitlist-label { color: rgba(255,255,255,0.65); }

/* Light-background variant for CTAs that sit on cream backgrounds */
.cta-stack-light .android-waitlist-label {
  color: var(--text-muted);
}
.cta-stack-light .notify-form input[type="email"] {
  border-color: var(--card-border);
  background: #fff;
  color: var(--text);
}
.cta-stack-light .notify-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

/* ──────────────────────────────────────────────────────────────
   ANDROID SIGNUP — collapsed-by-default <details> pattern
   Demoted from full waitlist card to a quiet text link that
   expands on tap. Replaces .android-waitlist for the main CTA.
   ────────────────────────────────────────────────────────────── */
.android-signup {
  width: 100%; max-width: 360px;
  margin-top: 4px;
}
.cta-banner .android-signup,
.cta-stack .android-signup { margin-left: auto; margin-right: auto; }

/* Hide the native disclosure triangle (iOS Safari needs all three) */
.android-signup > summary {
  list-style: none !important;
  list-style-type: none !important;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 4px;
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.1px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 6px;
  transition: color 0.15s;
}
.android-signup > summary::-webkit-details-marker {
  display: none !important;
  content: "" !important;
}
.android-signup > summary::marker {
  display: none !important;
  content: "" !important;
}
.android-signup > summary::before { content: none !important; }
.android-signup > summary:hover { color: #fff; }
.android-signup > summary:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.android-signup > summary u {
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.4);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.android-signup > summary:hover u { border-bottom-color: var(--copper); }
.android-signup > summary svg {
  flex-shrink: 0;
  stroke: currentColor; fill: none;
  transition: transform 0.2s ease;
}
.android-signup[open] > summary svg { transform: rotate(180deg); }

/* Light-background variant (for cream/white sections) */
.cta-stack-light .android-signup > summary,
.android-signup-light > summary {
  color: var(--text-muted);
}
.cta-stack-light .android-signup > summary:hover,
.android-signup-light > summary:hover { color: var(--espresso); }
.cta-stack-light .android-signup > summary u,
.android-signup-light > summary u {
  border-bottom-color: rgba(91,61,46,0.4);
}

/* Expanded form card */
.android-signup-form {
  margin-top: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px;
}
.android-signup-form p {
  margin: 0 0 10px;
  font-size: 0.78rem; color: rgba(255,255,255,0.7);
  text-align: center;
  line-height: 1.5;
}
.android-signup-form .notify-form { margin: 0; max-width: 100%; }
.cta-stack-light .android-signup-form,
.android-signup-light .android-signup-form {
  background: rgba(91,61,46,0.04);
  border-color: var(--card-border);
}
.cta-stack-light .android-signup-form p,
.android-signup-light .android-signup-form p {
  color: var(--text-muted);
}

/* ──────────────────────────────────────────────────────────────
   HERO PROOF LIST — vertical stack for mobile, copper-tinted
   icon tiles. Uses <div>/<div> not <ul>/<li> to avoid iOS Safari
   list-style cascade leaks where disc bullets show through.
   ────────────────────────────────────────────────────────────── */
.hero-proof-list {
  margin: 32px auto 0;
  max-width: 300px;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
  padding: 0;
}
.hero-proof-list .proof-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.92rem; color: rgba(255,255,255,0.88);
  font-weight: 500;
  line-height: 1.35;
}
.hero-proof-list .proof-icon-bg {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(191,106,58,0.18);
  border: 1px solid rgba(191,106,58,0.35);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.hero-proof-list .proof-icon-bg svg {
  stroke: var(--copper); stroke-width: 2; fill: none;
  display: block;
}
@media (min-width: 700px) {
  .hero-proof-list {
    max-width: 100%;
    flex-direction: row; gap: 24px; flex-wrap: wrap;
    justify-content: center;
    margin: 28px auto 0;
  }
}

/* ── INLINE-STYLE REPLACEMENTS ── */
.link-arrow {
  font-weight: 700; font-size: 0.9rem;
}
.link-arrow-wrap {
  margin-top: 16px;
}
.section-subtitle-centered {
  margin-left: auto; margin-right: auto;
}
.quick-ref {
  margin-top: 2rem; padding: 1rem;
  background: var(--cream); border-radius: 6px;
}
.quick-ref p { margin: 0; font-size: 0.9rem; }
.quick-ref ul { margin: 0.5rem 0 0 0; }
.sidebar-stat {
  font-family: var(--font-serif); font-size: 2.8rem;
  font-weight: 600; color: var(--copper); line-height: 1;
}
.sidebar-stat-label {
  font-size: 0.85rem; color: var(--text-muted); margin-top: 8px;
}
.byline {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px;
}
.blog-callout {
  background: rgba(191,106,58,0.06); border-left: 3px solid var(--copper);
  padding: 16px 20px; margin: 28px 0; border-radius: 0 8px 8px 0;
}
.blog-callout p { margin: 0; color: var(--text); }
.photo-banner-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-banner-link {
  display: inline-block; margin-top: 16px; font-size: 0.9rem;
  font-weight: 700; color: var(--copper); text-decoration: none;
}
.photo-banner-link:hover { color: var(--copper-hover); }
.value-number-red { color: var(--red); }
.value-number-sage { color: var(--sage); }
.section-no-pt { padding-top: 0; }
.section-no-pb { padding-bottom: 0; }
.posts-heading {
  font-size: 1.1rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 24px;
}
.for-subhead { font-size: 1.3rem; margin-top: 0; }
.for-card-flat { background: transparent; border: none; padding: 0; margin-bottom: 16px; }
.prose-flush { margin: 0; }
.legal-note { margin-top: 32px; font-size: 0.85rem; color: var(--text-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-layout { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--espresso); padding: 20px 24px; gap: 4px;
    border-bottom: 2px solid var(--copper);
  }
  .nav-links.open .nav-drop-menu {
    display: block; position: static; box-shadow: none;
    border: none; margin: 0; padding: 0 0 0 12px; min-width: 0;
    background: transparent;
  }
  .nav-links.open .nav-drop-label svg { transform: rotate(90deg); }
  .nav-links.open .nav-drop-menu a { padding: 8px 12px; font-size: 0.82rem; }
  .page-hero { padding: 88px 20px 40px; }
  .section { padding: 48px 20px; }
  .cta-actions { flex-direction: column; align-items: center; }
}

/* Placeholder for screenshots temporarily removed */
.screenshot-placeholder {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 720 / 1564;
  margin: 0 auto;
  border-radius: 28px;
  background: linear-gradient(145deg, #f2ebe3 0%, #e6dcd0 100%);
  border: 1px dashed var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.screenshot-placeholder-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
}
