/* ==========================================================================
   Showing Mobile — showingmobile.com
   Marketing site styles
   Palette + type are aligned with the app design system + the App Store
   screenshot template (ivory bg, brand green, hunter-jumper gold).
   ========================================================================== */

:root {
  /* Brand (mirrors mobile/src/theme/colors.ts) */
  --brand-green:        #2D5A3D;
  --brand-green-dark:   #1F3F2A;
  --brand-green-tint:   #E8F0EB;
  --brand-gold:         #C9A84C;
  --brand-gold-dark:    #8B7016;
  --brand-red:          #E8503A;

  /* Ivory — matches the App Store screenshot canvas. The site's signature surface. */
  --ivory:              #F2EBD8;
  --ivory-deep:         #E8DEC4;

  /* Surfaces */
  --surface:            #FFFFFF;
  --surface-muted:      #F9FAFB;

  /* Text */
  --text-primary:       #111827;
  --text-secondary:     #4B5563;
  --text-muted:         #9CA3AF;
  --text-on-dark:       #FFFFFF;
  --text-on-dark-muted: rgba(255,255,255,0.72);

  /* Borders */
  --border:             #E5E7EB;
  --border-strong:      #D1D5DB;
  --border-ivory:       rgba(45, 90, 61, 0.12);

  /* Status (matches the ACTIVE pill in the app) */
  --status-active-bg:   #DCFCE7;
  --status-active-fg:   #166534;

  /* Type */
  --font-sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-2xl: 28px;

  /* Shadows */
  --shadow-subtle: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:     0 8px 24px rgba(31, 63, 42, 0.10);
  --shadow-lg:     0 18px 48px rgba(31, 63, 42, 0.16);

  --transition: 0.2s ease;
}

/* --- Reset --- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--ivory);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-green); text-decoration: none; }
a:hover { color: var(--brand-green-dark); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

/* --- Container --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-lg);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              box-shadow var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand-green);
  color: var(--text-on-dark);
  border-color: var(--brand-green);
}
.btn-primary:hover {
  background: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  box-shadow: var(--shadow-md);
  color: var(--text-on-dark);
}

.btn-outline {
  background: transparent;
  color: var(--brand-green);
  border-color: var(--brand-green);
}
.btn-outline:hover {
  background: var(--brand-green);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-subtle);
}

.btn-full { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 16px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  border: 1.5px solid #111;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 180px;
}
.btn-store:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-store .store-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}
.btn-store .store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}
.btn-store .store-text small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.85;
  text-transform: uppercase;
}
.btn-store .store-text strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 235, 216, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(242, 235, 216, 0.94);
  border-bottom-color: var(--border-ivory);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-green);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.logo:hover { color: var(--brand-green-dark); }
.logo svg, .logo img { width: 40px; height: 40px; flex-shrink: 0; border-radius: 9px; display: block; object-fit: contain; }
.logo-text { letter-spacing: 0.5px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.78;
  transition: opacity var(--transition);
}
.nav-links a:hover { opacity: 1; color: var(--brand-green); }
.nav-cta { margin-left: 4px; }

/* ==========================================================================
   HERO
   Two-column on desktop: copy + iPhone screen (no bezel — clean inset look).
   On mobile, screenshot stacks below.
   ========================================================================== */

.hero {
  position: relative;
  padding: 56px 0 96px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green);
  background: rgba(45, 90, 61, 0.08);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--brand-green);
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 500px;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-secondary);
}
.hero-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--brand-green);
  flex-shrink: 0;
}

/* Hero screenshot — the source PNG already includes its own headline,
   cream background, and device frame. Just display it. */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}
.hero-screenshot {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(20, 40, 30, 0.18))
          drop-shadow(0 8px 18px rgba(20, 40, 30, 0.10));
}

/* ==========================================================================
   SECTION CHROME
   ========================================================================== */
section { position: relative; }
.section { padding: 96px 0; }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 14px;
}
.section-eyebrow.on-dark { color: var(--brand-gold); }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--brand-green);
  margin-bottom: 16px;
  text-wrap: balance;
}
.section.on-dark h2 { color: var(--text-on-dark); }
.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  text-wrap: pretty;
}
.section.on-dark .section-sub { color: var(--text-on-dark-muted); }

/* ==========================================================================
   FEATURES — three columns of compact cards with Lucide icons
   ========================================================================== */

.features {
  background: var(--ivory);
  border-top: 1px solid var(--border-ivory);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-green-tint);
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.gold {
  background: rgba(201, 168, 76, 0.18);
  color: var(--brand-gold-dark);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   SHOWCASE — App Store screenshots, full polished assets in a horizontal scroll
   ========================================================================== */

.showcase {
  background: var(--brand-green);
  color: var(--text-on-dark);
  padding: 96px 0 32px;
  position: relative;
  overflow: hidden;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,168,76,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(232,80,58,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.showcase > .container { position: relative; }

.showcase-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 16px 24px 56px;
  margin: 0 -24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.showcase-rail::-webkit-scrollbar { display: none; }
/* Showcase rail — the screenshots already have a cream background and frame baked in,
   so don't wrap them in another card. Just float them on the dark green section. */
.showcase-card {
  flex: 0 0 280px;
  border-radius: 24px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform var(--transition);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}
.showcase-card:hover { transform: translateY(-4px); }
.showcase-card img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.scroller-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: var(--text-on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.scroller-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}
.scroller-btn svg { width: 18px; height: 18px; }
.scroller-dots { display: flex; gap: 8px; }
.scroller-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.scroller-dot.active {
  background: var(--brand-gold);
  transform: scale(1.4);
}

/* ==========================================================================
   PRICING
   ========================================================================== */

.pricing {
  background: var(--ivory);
  padding: 96px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card--featured {
  border: 2px solid var(--brand-green);
  box-shadow: var(--shadow-md);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-green);
  color: var(--text-on-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 4px;
}
.plan-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 22px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.price-period {
  font-size: 14px;
  color: var(--text-secondary);
}
.plan-annual {
  font-size: 13px;
  color: var(--brand-green);
  font-weight: 600;
  margin-bottom: 24px;
  min-height: 18px;
}
.plan-annual.empty { visibility: hidden; }
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}
.plan-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.5;
}
.plan-features li svg {
  width: 18px;
  height: 18px;
  color: var(--brand-green);
  flex-shrink: 0;
  margin-top: 2px;
}
.plan-features li.muted { color: var(--text-muted); }
.plan-features li.muted svg { color: var(--text-muted); }
.plan-cta { margin-top: auto; }
.plan-fineprint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.4;
}

.pricing-footnote {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   FINAL CTA + FOOTER
   ========================================================================== */

.final-cta {
  background: var(--brand-green);
  color: var(--text-on-dark);
  padding: 96px 0;
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.final-cta p {
  font-size: 18px;
  color: var(--text-on-dark-muted);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta .store-badges { justify-content: center; }

.site-footer {
  background: #1A1A17;
  color: #9CA3AF;
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { color: #fff; }
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: #9CA3AF;
  line-height: 1.55;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer-links a {
  font-size: 14px;
  color: #D1D5DB;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #2C2C28;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #6B6B66;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
  .hero { padding: 40px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-meta { justify-content: center; flex-wrap: wrap; gap: 16px; }
  .store-badges { justify-content: center; }
  .hero-visual { min-height: 0; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .plan-card--featured { transform: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .container { padding: 0 18px; }

  .section, .pricing, .final-cta { padding: 72px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 48px; }

  .showcase { padding: 72px 0 24px; }
  .showcase-card { flex: 0 0 240px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .btn-store { min-width: 0; flex: 1; }
}

/* ==========================================================================
   LEGAL PAGES (privacy / terms / support / account-deletion)
   ========================================================================== */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--brand-green);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.legal-page .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-green);
  margin: 40px 0 12px;
  letter-spacing: -0.005em;
}
.legal-page h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 8px;
}
.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
}
.legal-page p { margin-bottom: 14px; }
.legal-page ul,
.legal-page ol { margin: 8px 0 16px 22px; }
.legal-page ul li { list-style: disc; margin-bottom: 6px; }
.legal-page ol li { list-style: decimal; margin-bottom: 6px; }
.legal-page strong { color: var(--text-primary); font-weight: 600; }
.legal-page em { color: var(--text-secondary); }
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 14px;
}
.legal-page th,
.legal-page td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-page th {
  background: var(--surface-muted);
  font-weight: 600;
  color: var(--text-primary);
}
.legal-page .all-caps { text-transform: uppercase; }
.legal-page .callout {
  background: var(--surface);
  border-left: 4px solid var(--brand-green);
  padding: 18px 22px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 24px 0;
  box-shadow: var(--shadow-subtle);
}
.legal-page .callout h3 { margin-top: 0; color: var(--brand-green); }
.legal-page .callout p:last-child,
.legal-page .callout ol:last-child { margin-bottom: 0; }
