/* =====================================================
   VIDEN — Shared Stylesheet
   Apple-inspired, premium, product-led
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────── */
:root {
  --white:        #FFFFFF;
  --near-white:   #F5F5F7;
  --text-primary: #1D1D1F;
  --text-secondary:#6E6E73;
  --accent:       #2563EB;
  --gradient:     linear-gradient(135deg, #2563EB, #7C3AED);
  --border:       #D2D2D7;
  --divider:      #E2E8F0;
  --dark-bg:      #1D1D1F;
  --dark-text:    #F5F5F7;
  --nav-height:   52px;
  --max-w:        980px;
  --max-w-wide:   1400px;
  --radius-pill:  9999px;
  --radius-phone: 44px;

  /* Transitions */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: transparent;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── Blob background ───────────────────────────────── */
.bg-blobs {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background: #F8FAFC;
}
.bg-blobs__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.bg-blobs__blob:nth-child(1) {
  width: 700px; height: 700px;
  background: rgba(37,99,235,0.22);
  left: -15%; top: -10%;
  animation: blob1 14s ease-in-out infinite alternate;
}
.bg-blobs__blob:nth-child(2) {
  width: 600px; height: 600px;
  background: rgba(99,102,241,0.18);
  left: 55%; top: 5%;
  animation: blob2 17s ease-in-out infinite alternate;
}
.bg-blobs__blob:nth-child(3) {
  width: 550px; height: 550px;
  background: rgba(14,165,233,0.16);
  left: 15%; top: 55%;
  animation: blob3 13s ease-in-out infinite alternate;
}
.bg-blobs__blob:nth-child(4) {
  width: 450px; height: 450px;
  background: rgba(59,130,246,0.20);
  left: 65%; top: 65%;
  animation: blob4 16s ease-in-out infinite alternate;
}
@keyframes blob1 { from { transform: translate(0,0) scale(0.9); } to { transform: translate(40px,60px) scale(1.1); } }
@keyframes blob2 { from { transform: translate(0,0) scale(0.9); } to { transform: translate(-50px,70px) scale(1.1); } }
@keyframes blob3 { from { transform: translate(0,0) scale(0.9); } to { transform: translate(60px,-40px) scale(1.1); } }
@keyframes blob4 { from { transform: translate(0,0) scale(0.9); } to { transform: translate(-35px,-55px) scale(1.1); } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Navigation ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav__logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.85;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav__links a:hover { opacity: 1; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--text-primary);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: transform 0.15s var(--ease), background 0.15s;
  flex-shrink: 0;
}
.nav__cta:hover { background: #333; transform: scale(1.02); }

.nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav__cta--shopify {
  background: #008060;
  color: #fff;
}
.nav__cta--shopify:hover { background: #006a50; }

/* Mobile nav */
.nav__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.nav__menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__menu-toggle.open span:nth-child(2) { opacity: 0; }
.nav__menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-panel {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  gap: 20px;
}
.nav__mobile-panel.open { display: flex; }
.nav__mobile-panel a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--text-primary);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 600;
  border: none;
  transition: transform 0.2s var(--ease), background 0.2s;
  letter-spacing: -0.01em;
}
.btn-primary:hover { background: #333; transform: translateY(-1px) scale(1.01); }
.btn-primary:active { transform: scale(0.98); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: none;
  transition: gap 0.2s var(--ease);
}
.btn-link:hover { gap: 8px; }

/* ── Gradient Text ───────────────────────────────────── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Section Shared ──────────────────────────────────── */
section {
  position: relative;
}

.overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ── Scroll Reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Above-fold hero content: always visible, no animation */
.hero__content .reveal,
.hero__content .reveal-delay-1,
.hero__content .reveal-delay-2,
.hero__content .reveal-delay-3,
.hero__phone-wrap.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

/* ── Hero Section ─────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: calc(var(--nav-height) + 48px) clamp(24px, 6vw, 80px) 80px;
  background: transparent;
  overflow: hidden;
}

.hero__content {
  max-width: 520px;
  margin: 0 0 0 auto;
  text-align: left;
}

.hero__headline {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero__subhead {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 0 36px;
}

.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ── CSS iPhone Mockup ────────────────────────────────── */
.phone {
  position: relative;
  width: 300px;
  height: 610px;
  border-radius: var(--radius-phone);
  background: #0F0F0F;
  border: 2.5px solid #3A3A3C;
  box-shadow:
    0 0 0 1px #000,
    0 30px 80px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.phone::before {
  /* Dynamic Island */
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone__screen {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius-phone) - 2px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 60px 0 16px;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.phone__header {
  padding: 8px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.phone__header-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.phone__header-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

.phone__messages {
  flex: 1;
  overflow: hidden;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg--in { align-items: flex-start; }
.msg--out { align-items: flex-end; }

.msg__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.msg__bubble {
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 85%;
}
.msg--in .msg__bubble {
  background: #1C1C1E;
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 6px;
}
.msg--out .msg__bubble {
  background: #2563EB;
  color: #FFFFFF;
  border-bottom-right-radius: 6px;
}

.msg__ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  color: #7C3AED;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.msg__ai-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.phone__takeover {
  margin: 8px 14px;
  padding: 10px 14px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phone__takeover-text {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
}

.phone__takeover-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  background: #2563EB;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* ── Phone float animation ─ */
@keyframes phone-float {
  0%   { transform: translateY(0px) rotate(-1.5deg); }
  50%  { transform: translateY(-18px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(-1.5deg); }
}
@keyframes phone-float-alt {
  0%   { transform: translateY(0px) rotate(1.5deg); }
  50%  { transform: translateY(-14px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(1.5deg); }
}

/* ── Hero Phone layout ─ */
.hero__phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__phone-wrap .phone,
.hero__phone-wrap .phone-frame {
  animation: phone-float 5s ease-in-out infinite;
  transform-origin: center bottom;
}

.feature-row__phone .phone,
.feature-row__phone .phone-frame {
  animation: phone-float-alt 6s ease-in-out infinite;
  transform-origin: center bottom;
}
.feature-row:nth-child(2) .phone-frame { animation-delay: -2s; }
.feature-row:nth-child(3) .phone-frame { animation-delay: -4s; }

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Scroll indicator ─ */
.scroll-indicator {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.45;
  animation: bounce 2s ease-in-out infinite;
  z-index: 10;
  pointer-events: none;
}
.scroll-indicator span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Features Overview Section ─────────────────────── */
.features-overview {
  background: transparent;
  padding: 100px 24px;
  text-align: center;
}

.features-overview__headline {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 600px;
  margin: 0 auto 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.feature-item {
  padding: 40px 32px;
  text-align: left;
  border-right: 1px solid var(--divider);
}
.feature-item:last-child { border-right: none; }

.feature-item__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
}

.feature-item__icon svg {
  width: 22px;
  height: 22px;
}

.feature-item__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-item__body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Feature Detail Rows ────────────────────────────── */
.feature-rows {
  background: transparent;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 100px 80px;
}


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

.feature-row__text { max-width: 440px; }

.feature-row__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-row__headline {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.feature-row__body {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-row__phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.feature-row__phone::before {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 60px;
  background: radial-gradient(circle at 50% 50%, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Steps Section ──────────────────────────────────── */
.steps-section {
  background: transparent;
  padding: 100px 24px;
  text-align: center;
}

.steps-section__headline {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.steps-section__sub {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 72px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
}

.step {
  padding: 44px 36px;
  text-align: left;
  position: relative;
}

.step__number {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 24px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.35;
}

.step__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step__body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.2s var(--ease);
}
.step__link:hover { gap: 8px; }

/* ── CTA Section ────────────────────────────────────── */
.cta-section {
  background: transparent;
  padding: 120px 24px;
  text-align: center;
}

.cta-section__headline {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-section__sub {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

.cta-section__note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Support Section ────────────────────────────────── */
.support-section {
  background: transparent;
  padding: 100px 24px;
}

.support-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
}

.support-section__headline {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.support-section__body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.support-section__btn {
  display: inline-flex;
}

.support-section__faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
}
.faq-item:first-child { border-top: 1px solid var(--divider); }

.faq-item__q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.faq-item__a {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item__a a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: transparent;
  color: var(--text-primary);
  padding: 60px 24px 40px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 40px;
  margin-bottom: 28px;
}

.footer__logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer__links {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-primary); }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 16px;
  flex-direction: column;
}

.footer__copy {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ── Privacy Page ─────────────────────────────────── */
.privacy-page {
  padding: calc(var(--nav-height) + 64px) 24px 100px;
  max-width: 740px;
  margin: 0 auto;
}

.privacy-page h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.privacy-page .last-updated {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 56px;
}

.privacy-page h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  color: var(--text-primary);
}

.privacy-page p {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 14px;
}

.privacy-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.privacy-page ul li {
  font-size: 17px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 6px;
}

.privacy-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-divider {
  width: 40px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 56px 0 0;
}

/* ── CSS iPhone Photo Frame ─────────────────────────── */
/*
 * .phone-frame replaces the old CSS-drawn .phone mockup.
 * It renders a minimal bezel with rounded corners, a thin
 * dark border, a Dynamic Island pill at the top, and fills
 * the interior entirely with the supplied screenshot.
 */
.phone-frame {
  position: relative;
  width: 300px;
  flex-shrink: 0;
  border-radius: 44px;
  border: 2.5px solid #3A3A3C;
  background: #000;
  box-shadow:
    0 0 0 1px #000,
    0 30px 80px rgba(0,0,0,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  /* Maintain the ~19.5:9 iPhone aspect ratio */
  aspect-ratio: 9 / 19.5;
}

.phone-frame__island {
  /* Dynamic Island */
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
}

.phone-frame__screenshot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(44px - 2.5px);
}

/* ── Shopify Admin App Section ───────────────────────── */
.shopify-admin-section {
  background: transparent;
}

.shopify-admin-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: 72px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 100px 80px;
}

.shopify-admin-section__headline {
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.shopify-admin-section__body {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 36px;
}

.shopify-admin-section__btn {
  background: var(--accent);
}
.shopify-admin-section__btn:hover {
  background: #1d52d0;
}

/* ── Browser frame float ─ */
@keyframes browser-float {
  0%   { transform: translateY(0px) rotate(0.4deg); }
  50%  { transform: translateY(-12px) rotate(-0.3deg); }
  100% { transform: translateY(0px) rotate(0.4deg); }
}

.shopify-admin-section .browser-frame {
  animation: browser-float 7s ease-in-out infinite;
  transform-origin: center bottom;
}

/* ── CSS Browser / Laptop Frame ─────────────────────── */
.browser-frame {
  border-radius: 12px;
  background: #F0F0F2;
  border: 1.5px solid rgba(0,0,0,0.1);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.12),
    0 0 0 1px rgba(0,0,0,0.06);
  overflow: hidden;
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #E8E8EA;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.browser-frame__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-frame__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  display: block;
}
.browser-frame__dots span:nth-child(1) { background: #FF5F57; }
.browser-frame__dots span:nth-child(2) { background: #FEBC2E; }
.browser-frame__dots span:nth-child(3) { background: #28C840; }

.browser-frame__url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0,0,0,0.4);
  background: rgba(255,255,255,0.7);
  border-radius: 6px;
  padding: 4px 12px;
  letter-spacing: 0.01em;
  max-width: 320px;
  margin: 0 auto;
}

.browser-frame__screen {
  overflow: hidden;
  line-height: 0;
}

.browser-frame__screenshot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__menu-toggle { display: flex; }

  /* Hero: revert to single column stack on mobile */
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: calc(var(--nav-height) + 32px) 24px 64px;
    text-align: center;
    max-width: 100%;
  }
  .hero__content {
    text-align: center;
    margin: 0 auto;
  }
  .hero__subhead {
    margin: 0 auto 36px;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__phone-wrap {
    /* Constrain phone height so it peeks above fold on mobile */
    max-height: 380px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  /* Phone frame — smaller on mobile */
  .phone-frame {
    width: 220px;
  }

  /* Shopify admin section — stack on mobile */
  .shopify-admin-section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 24px;
  }
  .shopify-admin-section__body {
    max-width: 100%;
  }

  /* Support section — stack on mobile */
  .support-section__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--divider);
  }
  .feature-item:last-child { border-bottom: none; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 24px;
  }
  .feature-row--reverse { direction: ltr; }

  .steps-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }
  .step {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .step:last-child { border-bottom: none; }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__links { justify-content: flex-start; }

  .phone {
    width: 220px;
    height: 448px;
  }
}

/* 768px tablet: widen phone in feature rows */
@media (min-width: 600px) and (max-width: 860px) {
  .feature-row__phone .phone,
  .feature-row__phone .phone-frame {
    width: min(280px, 70vw);
  }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .btn-primary { width: 100%; max-width: 320px; justify-content: center; }
}
