/* Flow Builder - Apple-Inspired Minimalist Design */

video::cue {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

/* Skip navigation link - accessibility */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-nav:focus {
  top: 0;
}

:root {
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-body: #424245;
  --bg-white: #ffffff;
  --bg-light: #faf9f7;
  --bg-gray: #f5f3f0;
  --bg-dark: #1d1d1f;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.06);
  --white: #ffffff;
  --border: #d8d5d0;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

.text-gradient {
  background: linear-gradient(135deg, #7c3aed, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body {
  font-family: var(--font);
  font-weight: 200;
  line-height: 1.47059;
  color: var(--text-body);
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, strong, b,
.btn-primary, .btn-secondary, .btn-pricing,
.btn-cta-primary, .btn-cta-secondary, .btn-nav-primary, .btn-nav-secondary,
.pricing-badge, .feature-badge, .logo, .nav-links a {
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

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

a:hover {
  color: var(--accent-hover);
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== NAVIGATION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
}

.nav-brand .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-suffix {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--accent);
  margin-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-body);
  transition: color 0.3s ease;
}

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

.btn-nav-primary {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 400;
  transition: background 0.3s ease;
}

.btn-nav-primary:hover {
  background: var(--accent-hover);
  color: var(--white) !important;
}

.btn-nav-secondary {
  background: var(--text-primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 400;
  transition: background 0.3s ease;
}

.btn-nav-secondary:hover {
  background: #333336;
  color: var(--white) !important;
}

/* ========== HERO ========== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: #ffffff;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.07143;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.381;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  border: 1px solid var(--accent);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

.hero-label {
  font-size: 56px;
  font-weight: 100;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: lowercase;
}

.hero-devices {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
}

.hero-device-main {
  width: 65%;
  animation: gentleFloat 6s ease-in-out infinite;
  overflow: hidden;
  border-radius: 16px;
}

.hero-device-main img,
.hero-device-main video {
  width: 102%;
  margin: -0.5% 0 -0.5% -1%;
  pointer-events: none;
  display: block;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.hero-device-side {
  width: 16%;
  animation: gentleFloat 6s ease-in-out infinite;
  animation-delay: -2s;
}

.hero-device-side img {
  width: 100%;
}

/* ========== VIDEO SECTION ========== */
.video-section {
  padding: 120px 0;
  background: var(--bg-white);
  text-align: center;
}

.video-section .section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.video-section h2 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.08349;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.video-section .section-subtitle {
  font-size: 21px;
  color: var(--text-secondary);
  margin: 0 auto 48px;
  max-width: 600px;
}

.video-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
}

.video-wrapper video {
  width: 100%;
  display: block;
}

/* ========== DEVICE SHOWCASE ========== */
.device-showcase {
  padding: 140px 0;
  background: var(--bg-gray);
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.device-showcase .section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.device-showcase h2 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.device-showcase .section-subtitle {
  font-size: 21px;
  color: var(--text-secondary);
  margin-bottom: 64px;
}

.device-grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
}

.device-grid .device-laptop {
  width: 65%;
}

.device-grid .device-laptop img {
  width: 100%;
  transition: transform 0.4s ease;
}

.device-grid .device-laptop img:hover {
  transform: scale(1.02);
}

.device-grid .device-ipad {
  width: 55%;
}

.device-grid .device-ipad img {
  width: 100%;
  transition: transform 0.4s ease;
}

.device-grid .device-ipad img:hover {
  transform: scale(1.02);
}

.device-grid .device-iphone {
  width: 18%;
}

.device-grid .device-iphone img {
  width: 100%;
  transition: transform 0.4s ease;
}

.device-grid .device-iphone img:hover {
  transform: scale(1.02);
}

/* ========== FEATURES — STICKY PHONE ========== */
.features-section {
  padding: 140px 0;
  background: var(--bg-white);
}

.features-section .section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Sticky phone + scrolling text grid */
.sticky-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left column — sticky, vertically centered in viewport */
.sticky-phone-col {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-phone {
  width: 340px;
  max-width: 90%;
  animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Phone screen — holds stacked screenshots (images include the device frame) */
.phone-screen {
  position: relative;
  aspect-ratio: 509 / 1000;
}

.phone-screenshot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.phone-screenshot.active {
  opacity: 1;
}

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

/* Right column — scrolling text panels */
.scroll-text-col {
  padding-bottom: 140px;
}

/* Inline phone images — hidden on desktop (sticky phone used instead) */
.panel-phone {
  display: none;
}

.scroll-panel {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.scroll-panel.active {
  opacity: 1;
}

.scroll-panel h3 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.scroll-panel p {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Legacy feature rows (still used on features.html) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-text h3 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.scale-on-scroll {
  transition: transform 0.8s ease-in-out;
  cursor: pointer;
}

.scale-on-scroll:hover {
  transform: scale(1.5);
  z-index: 10;
  position: relative;
}

/* ========== INFINITE SCROLL ========== */
.infinite-scroll-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.infinite-scroll-track {
  display: flex;
  gap: 24px;
  width: max-content;
}

.infinite-scroll-track img {
  height: 420px;
  width: auto;
  border-radius: 24px;
  flex-shrink: 0;
}


.light-text h3 {
  color: #ffffff;
}

.light-text p {
  color: rgba(255, 255, 255, 0.7);
}

.light-text .feature-badge {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ========== CAROUSEL ========== */
.carousel-section {
  background: linear-gradient(180deg, #2d1654 0%, #2d1654 80%, #2d1654 100%);
  padding: 100px 0;
  overflow: hidden;
}

.carousel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 22px;
  text-align: center;
}

.carousel-section h2 {
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.carousel-subtitle {
  font-size: 21px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 60px;
}

.carousel-container {
  display: flex;
  align-items: center;
  gap: 48px;
}

.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 48px 40px;
  text-align: center;
}

.carousel-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #c4b5fd;
}

.carousel-slide-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: left;
}

.carousel-slide-split .carousel-image {
  flex-shrink: 0;
  max-width: 320px;
  animation: float 4s ease-in-out infinite;
}

.carousel-slide-split .carousel-slide-text {
  max-width: 400px;
}

.carousel-image img {
  width: 100%;
  border-radius: 24px;
}

.fade-images {
  position: relative;
  width: 100%;
}

.fade-img {
  width: 100%;
  border-radius: 24px;
}

.fade-img:first-child {
  position: relative;
  opacity: 1;
}

.fade-img:not(:first-child) {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.fade-img:not(:first-child).fade-img-active {
  opacity: 1;
}

.carousel-slide h3 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.carousel-slide p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: #a78bfa;
  transform: scale(1.3);
}

.feature-image img {
  width: 100%;
  transition: transform 0.4s ease;
}

.feature-image img:hover {
  transform: scale(1.02);
}

.feature-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 980px;
}

.alpha-beta-tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}

/* Icon feature cards (side by side, no images) */
.icon-features-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 120px;
}

.icon-features-row:last-child {
  margin-bottom: 0;
}

.icon-feature-card {
  background: var(--bg-gray);
  border-radius: 20px;
  padding: 48px 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.icon-feature-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.icon-feature-card h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.icon-feature-card p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Extras grid */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.extra-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.extra-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.extra-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.extra-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.extra-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== PRICING ========== */
.pricing-section {
  padding: 140px 0;
  background: var(--bg-gray);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.pricing-section .section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  text-align: center;
}

.pricing-section h2 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pricing-section .section-subtitle {
  font-size: 21px;
  color: var(--text-secondary);
  margin-bottom: 64px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 48px 32px 40px;
  margin-top: 18px;
  text-align: center;
  position: relative;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.12);
  margin-top: 0;
}

.pricing-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 980px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.pricing-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  min-height: 44px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.pricing-price span {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-body);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.btn-pricing {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  white-space: nowrap;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.pricing-card.featured .btn-pricing {
  background: var(--accent);
  color: var(--white);
}

.pricing-card.featured .btn-pricing:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.pricing-card:not(.featured) .btn-pricing {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.pricing-card:not(.featured) .btn-pricing:hover {
  background: var(--accent);
  color: var(--white);
}

/* ========== CTA SECTION ========== */
.cta-section {
  padding: 120px 0;
  background: var(--bg-dark);
  text-align: center;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.cta-section .section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.cta-section h2 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 21px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  transition: background 0.3s ease;
}

.btn-cta-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-gray);
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
}

.footer .footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========== SUBPAGE STYLES ========== */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--bg-light);
}

.page-hero .hero-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px;
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 21px;
  color: var(--text-secondary);
  line-height: 1.381;
}

.features-hero-device {
  margin-top: 30px;
  margin-bottom: 30px;
}

.features-hero-img {
  max-width: 100%;
  border-radius: 16px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.page-content {
  padding: 80px 0 120px;
  background: var(--bg-white);
}

.page-content .content-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Contact page */
.contact-form-minimal {
  margin-top: 20px;
}

.contact-alternatives {
  text-align: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.contact-alternatives p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact-alternatives a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-alternatives a:hover {
  color: var(--accent-hover);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-size: 17px;
  font-family: var(--font);
  font-weight: 200;
  transition: border-color 0.3s ease;
  background: transparent;
  color: var(--text-primary);
  -webkit-user-select: text;
  user-select: text;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--border);
  font-weight: 200;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 4px;
}

.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236e6e73'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  cursor: pointer;
}

.btn-form {
  background: var(--accent);
  color: var(--white);
  padding: 16px 32px;
  border: none;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-family: var(--font);
  margin-top: 12px;
  letter-spacing: -0.01em;
}

.btn-form:hover {
  background: var(--accent-hover);
  transform: scale(1.01);
}

/* FAQ styles */
.faq-container {
  max-width: 680px;
  margin: 0 auto;
}

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 24px 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-answer {
  padding: 0 0 24px;
}

.faq-answer p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.faq-answer a {
  color: var(--accent);
  font-weight: 500;
}

/* Privacy styles */
.privacy-content {
  max-width: 680px;
  margin: 0 auto;
}

.privacy-section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.privacy-section:last-child {
  border-bottom: none;
}

.privacy-section h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.privacy-section p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.privacy-section ul {
  margin: 12px 0;
  padding-left: 24px;
}

.privacy-section li {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.privacy-section a {
  color: var(--accent);
  font-weight: 500;
}

.privacy-contact-box {
  background: var(--bg-gray);
  padding: 24px;
  border-radius: 12px;
  margin-top: 12px;
}

.privacy-contact-box p {
  margin-bottom: 4px;
}

.privacy-contact-box p:last-child {
  margin-bottom: 0;
}

/* Success page */
.success-icon {
  width: 64px;
  height: 64px;
  background: #30d158;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.5;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  /* Nav */
  .nav-links a:not(.btn-nav-primary):not(.btn-nav-secondary) {
    display: none;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    padding: 100px 0 48px;
  }

  .hero-inner {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .hero .subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 36px;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    text-align: center;
    padding: 12px 24px;
    font-size: 15px;
  }

  .hero-devices {
    gap: 8px;
  }

  .hero-device-main {
    width: 70%;
  }

  .hero-device-side {
    width: 22%;
  }

  /* Sections */
  .video-section,
  .device-showcase,
  .features-section,
  .pricing-section,
  .cta-section {
    padding: 60px 0;
  }

  .video-section .section-inner,
  .device-showcase .section-inner,
  .features-section .section-inner,
  .pricing-section .section-inner,
  .cta-section .section-inner {
    padding: 0 20px;
  }

  .video-section h2,
  .device-showcase h2,
  .pricing-section h2,
  .cta-section h2 {
    font-size: 28px;
  }

  .video-section .section-subtitle,
  .device-showcase .section-subtitle,
  .pricing-section .section-subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .video-wrapper {
    border-radius: 12px;
  }

  /* Device showcase */
  .device-grid {
    gap: 12px;
  }

  .device-grid .device-ipad,
  .device-grid .device-laptop {
    width: 80%;
  }

  .device-grid .device-iphone {
    width: 28%;
  }

  /* Mobile: hide sticky phone, show inline per-panel phones */
  .sticky-phone-col {
    display: none;
  }

  .sticky-features {
    display: block;
  }

  .scroll-text-col {
    padding-top: 0;
    padding-bottom: 20px;
  }

  /* Each panel: centered phone + text */
  .scroll-panel {
    min-height: auto;
    padding: 40px 20px;
    text-align: center;
    opacity: 1;
  }

  .scroll-panel h3 {
    font-size: 26px;
  }

  .scroll-panel p {
    font-size: 16px;
  }

  /* Show inline phone images on mobile with entrance animation */
  .panel-phone {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(60px) scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .scroll-panel.active .panel-phone {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .panel-phone img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
  }

  /* Features */
  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 60px;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .feature-text h3 {
    font-size: 26px;
  }

  .feature-text p {
    font-size: 16px;
  }

  .feature-image img {
    max-width: 60%;
    margin: 0 auto;
    display: block;
  }

  /* Pricing */
  .pricing-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    max-width: 100%;
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .pricing-card {
    min-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 32px 20px 28px;
  }

  .pricing-price {
    font-size: 30px;
  }

  /* CTA */
  .cta-section p {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta-buttons .btn-cta-primary,
  .cta-buttons .btn-cta-secondary {
    text-align: center;
    padding: 12px 24px;
    font-size: 15px;
  }

  /* Icon feature cards */
  .icon-features-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 60px;
  }

  .icon-feature-card {
    padding: 28px 20px;
  }

  .icon-feature-card h3 {
    font-size: 22px;
  }

  /* Extras grid */
  .extras-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .extra-card {
    padding: 20px 16px;
  }

  .extra-card h4 {
    font-size: 15px;
  }

  .extra-card p {
    font-size: 13px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer .footer-inner {
    padding: 0 20px;
  }

  /* Carousel / Flow YOUR Way */
  .carousel-section {
    padding: 60px 0;
  }

  .carousel-section h2 {
    font-size: 28px;
  }

  .carousel-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .carousel-container {
    gap: 12px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

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

  .carousel-slide {
    padding: 24px 12px;
  }

  .carousel-slide-split {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .carousel-slide-split .carousel-image {
    max-width: 200px;
    margin: 0 auto;
  }

  .carousel-slide-split .carousel-slide-text {
    max-width: 100%;
    text-align: center;
  }

  .carousel-slide-split .carousel-slide-text p {
    margin: 0 auto;
  }

  .carousel-slide h3 {
    font-size: 22px;
  }

  .carousel-slide p {
    font-size: 15px;
  }

  .carousel-image img,
  .fade-img {
    border-radius: 16px;
  }

  /* Subpages */
  .page-hero {
    padding: 100px 0 40px;
  }

  .page-hero .hero-inner {
    padding: 0 20px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-hero p {
    font-size: 16px;
  }

  .page-content {
    padding: 48px 0 80px;
  }

  .page-content .content-inner {
    padding: 0 20px;
  }

  /* Contact */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 12px 0;
  }

  .form-group textarea {
    padding: 12px 14px;
  }

  /* FAQ */
  .faq-question {
    font-size: 16px;
    padding: 18px 0;
  }

  .faq-answer p {
    font-size: 15px;
  }

  /* Privacy */
  .privacy-section h2 {
    font-size: 22px;
  }

  .privacy-section p,
  .privacy-section li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero-device-main {
    width: 75%;
  }

  .panel-phone img {
    width: 150px;
  }

  .scroll-panel {
    padding: 32px 16px;
  }

  .scroll-panel h3 {
    font-size: 22px;
  }

  .scroll-panel p {
    font-size: 15px;
  }

  .feature-text h3 {
    font-size: 22px;
  }

  .feature-image img {
    max-width: 55%;
  }

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

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

  .page-hero h1 {
    font-size: 26px;
  }

  .btn-nav-primary,
  .btn-nav-secondary {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .pricing-card {
    min-width: 240px;
  }
}
