/* ============================================================
   landing-ios.css — iOS app marketing page (/ios)
   Layered on top of landing.css. Reuses its design tokens
   (--teal-*, --gray-*, --shadow-*, .btn, .section-container,
   .section-title, .faq, .feat-eyebrow-badge).
   ============================================================ */

/* ---------- body context ---------- */
body.ios-landing {
  background: var(--white, #ffffff);
}

/* ============================================================
   HERO
   Two-column layout, decorative SVG flourishes around the phone
   to echo the Paytime visual rhythm.
   ============================================================ */
.ios-hero {
  position: relative;
  padding: clamp(40px, 8vw, 96px) 24px clamp(48px, 8vw, 80px);
  background: linear-gradient(180deg, var(--teal-50, #f0fdfa) 0%, var(--white, #ffffff) 100%);
  overflow: hidden;
}

.ios-hero-flourish {
  position: absolute;
  width: 120px;
  height: 120px;
  color: var(--teal-400, #2dd4bf);
  opacity: 0.55;
  pointer-events: none;
}

.ios-hero-flourish--left {
  top: 14%;
  left: 4%;
}

.ios-hero-flourish--right {
  bottom: 8%;
  right: 4%;
}

.ios-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.ios-hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ios-hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-700, #0f766e);
  background: var(--white, #ffffff);
  border: 1px solid var(--teal-200, #99f6e4);
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.ios-hero-badge svg,
.ios-hero-badge i {
  width: 14px;
  height: 14px;
}

.ios-hero-title {
  margin: 0;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--gray-900, #0f172a);
}

.ios-hero-accent {
  background: linear-gradient(130deg, var(--teal-600, #0d9488) 0%, var(--teal-300, #5eead4) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ios-hero-sub {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--gray-600, #475569);
  max-width: 520px;
}

.ios-hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ios-hero-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700, #334155);
  text-decoration: none;
  transition: color 0.18s;
}

.ios-hero-link:hover {
  color: var(--teal-600, #0d9488);
}

.ios-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--gray-500, #64748b);
}

.ios-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ios-hero-meta svg,
.ios-hero-meta i {
  width: 14px;
  height: 14px;
  color: var(--teal-500, #14b8a6);
}

.ios-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ============================================================
   APP STORE BADGE
   Real Apple badge SVG goes in /static/images/app/. Falls back
   to a CSS-rendered pill if the SVG is missing.
   ============================================================ */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.18s, opacity 0.18s;
}

.app-store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.app-store-badge img {
  display: block;
  height: 56px;
  width: auto;
}

.app-store-badge--large img {
  height: 68px;
}

.app-store-badge-fallback {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--gray-900, #0f172a);
  color: var(--white, #ffffff);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid var(--gray-900, #0f172a);
}

.app-store-badge-fallback svg,
.app-store-badge-fallback i {
  width: 22px;
  height: 22px;
}

.app-store-badge--large .app-store-badge-fallback {
  padding: 16px 32px;
  font-size: 17px;
}

/* ============================================================
   COMING SOON PILL — pre-launch substitute for the App Store
   badge. Used until the app is approved and live; swap in the
   official badge after approval (see comment in ios.html).
   ============================================================ */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--gray-900, #0f172a);
  color: var(--white, #ffffff);
  border-radius: 14px;
  font-weight: 600;
  cursor: default;
  user-select: none;
  box-shadow: var(--shadow-md);
}

.coming-soon-badge--large {
  padding: 18px 28px;
  gap: 16px;
}

.coming-soon-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal-300, #5eead4);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55);
  animation: coming-soon-pulse 1.9s ease-in-out infinite;
}

@keyframes coming-soon-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 8px rgba(94, 234, 212, 0);
  }
}

.coming-soon-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.coming-soon-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-300, #5eead4);
}

.coming-soon-main {
  font-size: 15px;
  font-weight: 600;
  color: var(--white, #ffffff);
}

.coming-soon-badge--large .coming-soon-main {
  font-size: 17px;
}

/* ============================================================
   PHONE MOCKUP
   Pure-CSS iPhone frame. Holds an <img> at the standard
   portrait App Store aspect ratio (~9:19.5 ≈ 1290x2796).
   ============================================================ */
.ios-phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  background: linear-gradient(155deg, #1f2937 0%, #0f172a 100%);
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(15, 23, 42, 0.35),
    0 12px 24px -8px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}

.ios-phone--hero {
  width: 300px;
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}

.ios-phone--hero:hover {
  transform: rotate(0deg) translateY(-4px);
}

.ios-phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 999px;
  z-index: 2;
}

.ios-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
  background: linear-gradient(180deg, var(--teal-50, #f0fdfa) 0%, var(--white, #ffffff) 100%);
  display: block;
}

/* ============================================================
   FEATURE ROWS
   Alternating layout: screenshot left → copy right, then flip.
   Backgrounds alternate subtly for visual rhythm.
   ============================================================ */
.ios-features {
  padding: clamp(48px, 8vw, 96px) 24px;
  background: var(--white, #ffffff);
}

.ios-features-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 72px);
}

.ios-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 80px) 0;
  border-top: 1px solid var(--gray-100, #f1f5f9);
}

.ios-feature-row:first-of-type {
  border-top: none;
}

.ios-feature-row--reverse .ios-feature-visual {
  order: 2;
}

.ios-feature-row--reverse .ios-feature-copy {
  order: 1;
}

.ios-feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ios-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
}

.ios-feature-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700, #0f766e);
  background: var(--teal-50, #f0fdfa);
  border: 1px solid var(--teal-200, #99f6e4);
  border-radius: 999px;
}

.ios-feature-tag svg {
  color: var(--teal-600, #0d9488);
}

.ios-feature-heading {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--gray-900, #0f172a);
}

.ios-feature-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-600, #475569);
}

.ios-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ios-feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-700, #334155);
  line-height: 1.5;
}

.ios-feature-bullets svg,
.ios-feature-bullets i {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--teal-500, #14b8a6);
}

/* ============================================================
   BUILT FOR IPHONE — craft signal grid
   ============================================================ */
.ios-craft {
  padding: clamp(48px, 8vw, 96px) 24px;
  background: var(--gray-50, #f8fafc);
}

.ios-craft-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.ios-craft-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ios-craft-card {
  background: var(--white, #ffffff);
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ios-craft-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ios-craft-card svg,
.ios-craft-card i {
  width: 28px;
  height: 28px;
  color: var(--teal-600, #0d9488);
  padding: 8px;
  background: var(--teal-50, #f0fdfa);
  border-radius: 10px;
  box-sizing: content-box;
}

.ios-craft-card h4 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900, #0f172a);
}

.ios-craft-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-600, #475569);
}

/* ============================================================
   PRIVACY CALLOUT
   ============================================================ */
.ios-privacy {
  padding: clamp(32px, 5vw, 56px) 24px;
  background: var(--white, #ffffff);
}

.ios-privacy-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 28px;
  background: var(--teal-50, #f0fdfa);
  border: 1px solid var(--teal-200, #99f6e4);
  border-radius: 16px;
}

.ios-privacy-inner svg,
.ios-privacy-inner i {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--teal-600, #0d9488);
}

.ios-privacy-inner p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-800, #1e293b);
}

/* ============================================================
   FOUNDER SECTION
   ============================================================ */
.ios-founder {
  padding: clamp(56px, 9vw, 112px) 24px;
  background: var(--gray-50, #f8fafc);
}

.ios-founder-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.ios-founder-photo {
  display: flex;
  justify-content: center;
}

.ios-founder-photo img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.ios-founder-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ios-founder-copy .section-title {
  text-align: left;
  margin: 4px 0 0;
}

.ios-founder-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700, #334155);
}

.ios-founder-sig {
  font-size: 14px !important;
  font-weight: 600;
  color: var(--gray-600, #475569) !important;
  font-style: italic;
  margin-top: 4px !important;
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.ios-cta {
  padding: clamp(56px, 9vw, 112px) 24px;
  background: linear-gradient(180deg, var(--teal-50, #f0fdfa) 0%, var(--white, #ffffff) 100%);
  text-align: center;
}

.ios-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ios-cta-inner .cta-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700, #0f766e);
  background: var(--white, #ffffff);
  border: 1px solid var(--teal-200, #99f6e4);
  border-radius: 999px;
}

.ios-cta-inner h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--gray-900, #0f172a);
}

.ios-cta-inner p {
  margin: 0;
  font-size: 17px;
  color: var(--gray-600, #475569);
}

.ios-cta-inner .app-store-badge {
  margin-top: 12px;
}

/* ============================================================
   REVEAL ANIMATION (mirrors homepage)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .ios-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .ios-hero-text {
    align-items: center;
  }

  .ios-hero-badge {
    align-self: center;
  }

  .ios-hero-sub {
    margin: 0 auto;
  }

  .ios-hero-cta {
    justify-content: center;
  }

  .ios-hero-meta {
    justify-content: center;
  }

  .ios-feature-row,
  .ios-feature-row--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .ios-feature-row--reverse .ios-feature-visual,
  .ios-feature-row--reverse .ios-feature-copy {
    order: initial;
  }

  .ios-feature-copy {
    align-items: center;
    margin: 0 auto;
  }

  .ios-feature-tag {
    align-self: center;
  }

  .ios-feature-bullets li {
    text-align: left;
  }

  .ios-craft-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ios-founder-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ios-founder-copy .section-title {
    text-align: center;
  }

  .ios-founder-copy {
    align-items: center;
  }

  .ios-hero-flourish {
    display: none;
  }
}

@media (max-width: 520px) {
  .ios-craft-grid {
    grid-template-columns: 1fr;
  }

  .ios-phone {
    width: 240px;
  }

  .ios-phone--hero {
    width: 260px;
  }

  .ios-privacy-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 18px 22px;
  }
}
