/* ============================================================
   YarnWiz — marketing site styles
   Palette + type from the iOS app design system (Theme.swift)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&family=Caveat:wght@500;600;700&display=swap');

:root {
  /* Periwinkle scale */
  --peri-50:  #F4F6FF;
  --peri-100: #E8ECFF;
  --peri-200: #C4CCFF;
  --peri-300: #A5AFF8;
  --peri-400: #9BADF8;
  --peri-500: #8A9CF8;
  --peri-600: #7B8FF5;
  --peri-700: #5567E0;
  --peri-900: #1E2875;

  --cream:   #F4F6FF;
  --cream-2: #EDF0FF;
  --paper:   #FFFFFF;
  --ink:     #1E2875;
  --ink-2:   #5A66A8;
  --ink-3:   #9098C4;

  --coral: #F2A78A;  --coral-soft: #FBDFD0;  --coral-ink: #B85838;
  --butter:#F2D58A;  --butter-soft:#FBEFD0;  --butter-ink:#8C6920;
  --pink:  #F2A8BC;  --pink-soft:  #FBDCE5;  --pink-ink:  #B83858;
  --mint:  #4E9E6B;  --mint-soft:  #DDEFE4;

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 100px;

  --font-ui:      'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Nunito', sans-serif;
  --font-serif:   'Fraunces', 'Space Grotesk', serif;
  --font-script:  'Caveat', cursive;

  --shadow-sm: 0 2px 8px rgba(85, 103, 224, 0.08);
  --shadow-md: 0 12px 32px rgba(85, 103, 224, 0.12);
  --shadow-lg: 0 30px 70px rgba(85, 103, 224, 0.20);
  --shadow-card: 0 14px 40px rgba(85, 103, 224, 0.10);

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.center { text-align: center; }

/* ---- type ---- */
.eyebrow {
  font-family: var(--font-script);
  font-size: 30px;
  font-weight: 600;
  color: var(--peri-600);
  line-height: 1;
  display: inline-block;
}
.kicker {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--peri-600);
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.display {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-2);
  line-height: 1.55;
  font-weight: 500;
}
.muted { color: var(--ink-2); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--r-pill);
  border: none; transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--peri-600); color: #fff; box-shadow: 0 10px 24px rgba(123,143,245,0.35); }
.btn-primary:hover { background: var(--peri-700); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(123,143,245,0.42); }
.btn-soft { background: var(--peri-100); color: var(--peri-700); }
.btn-soft:hover { background: var(--peri-200); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--peri-700); }
.btn-ghost:hover { background: var(--peri-100); }
.btn-lg { padding: 18px 32px; font-size: 17px; }

/* ---- store badges (coming soon) ---- */
.badges { display: flex; gap: 14px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 16px;
  position: relative; transition: transform .14s ease;
}
.badge:hover { transform: translateY(-2px); }
.badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.badge .b-small { font-size: 11px; font-weight: 600; opacity: .8; line-height: 1; }
.badge .b-big { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.1; }
.badge .b-soon {
  position: absolute; top: -9px; right: -8px;
  background: var(--coral); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px; box-shadow: var(--shadow-sm);
}

/* ---- chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: var(--peri-100); color: var(--peri-700);
  font-size: 14px; font-weight: 700;
}
.chip.coral  { background: var(--coral-soft);  color: var(--coral-ink); }
.chip.butter { background: var(--butter-soft); color: var(--butter-ink); }
.chip.pink   { background: var(--pink-soft);   color: var(--pink-ink); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,246,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(123,143,245,0.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand .wordmark { font-family: var(--font-serif); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a.link {
  padding: 9px 16px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; color: var(--ink-2);
  transition: background .14s, color .14s;
}
.nav-links a.link:hover { color: var(--peri-700); background: var(--peri-100); }
.nav-links a.link.active { color: var(--peri-700); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--ink); }

/* ---- cards ---- */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

/* feature icon tile */
.tile-icon {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--peri-100); color: var(--peri-700);
}
.tile-icon svg { width: 32px; height: 32px; }
.tile-icon.coral  { background: var(--coral-soft);  color: var(--coral-ink); }
.tile-icon.butter { background: var(--butter-soft); color: var(--butter-ink); }
.tile-icon.pink   { background: var(--pink-soft);   color: var(--pink-ink); }
.tile-icon.mint   { background: var(--mint-soft);   color: var(--mint); }

/* ---- phone frame ---- */
.phone {
  width: 300px; flex-shrink: 0;
  background: #11163a;
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #11163a; border-radius: 16px; z-index: 5;
}
.phone-screen {
  background: var(--cream);
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 300 / 640;
  position: relative;
}

/* ---- footer ---- */
.footer { background: var(--peri-900); color: #fff; padding: 70px 0 38px; }
.footer a { color: rgba(255,255,255,0.72); font-weight: 600; }
.footer a:hover { color: #fff; }
.footer .wordmark { color: #fff; }

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- decorative dashed (stitch) divider ---- */
.stitch {
  height: 0; border: none;
  border-top: 3px dashed var(--peri-200);
  opacity: .7; margin: 0;
}

/* ============================================================
   In-phone app mockup UI (built by site.js)
   ============================================================ */
.ap { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--cream); font-family: var(--font-ui); color: var(--ink); }
.ap-status { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px 4px; font-size: 13px; font-weight: 800; }
.ap-status .dots { display: flex; gap: 5px; align-items: center; }
.ap-status .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: inline-block; opacity: .85; }
.ap-body { flex: 1; overflow: hidden; padding: 6px 18px 0; }
.ap-eyebrow { font-family: var(--font-script); font-size: 22px; font-weight: 600; color: var(--peri-600); line-height: 1; }
.ap-title { font-family: var(--font-serif); font-size: 28px; font-weight: 600; letter-spacing: -.02em; line-height: 1; margin: 2px 0 14px; }
.ap-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 100px; padding: 11px 16px; box-shadow: var(--shadow-sm); color: var(--ink-3); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.ap-search svg { width: 17px; height: 17px; }
.ap-chips { display: flex; gap: 8px; margin-bottom: 16px; }
.ap-chip { padding: 7px 13px; border-radius: 100px; font-size: 12.5px; font-weight: 700; background: #fff; color: var(--ink-2); box-shadow: var(--shadow-sm); white-space: nowrap; }
.ap-chip.on { background: var(--peri-600); color: #fff; box-shadow: 0 6px 14px rgba(123,143,245,.4); }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ap-ycard { background: #fff; border-radius: 20px; padding: 13px; box-shadow: var(--shadow-sm); }
.ap-sw { width: 100%; aspect-ratio: 1.4; border-radius: 14px; position: relative; overflow: hidden; margin-bottom: 10px; }
.ap-sw::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(125deg, rgba(255,255,255,0) 0 9px, rgba(255,255,255,0.22) 9px 13px); }
.ap-yname { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.1; }
.ap-ymeta { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 3px; }
.ap-tabbar { display: flex; justify-content: space-around; align-items: center; padding: 12px 14px 16px; background: #fff; border-top: 1px solid rgba(123,143,245,.1); }
.ap-tabbar svg { width: 24px; height: 24px; color: var(--ink-3); }
.ap-tabbar .on svg { color: var(--peri-600); }
.ap-tabbar .fab { width: 50px; height: 50px; border-radius: 50%; background: var(--peri-600); display: grid; place-items: center; margin-top: -22px; box-shadow: 0 10px 22px rgba(123,143,245,.5); }
.ap-tabbar .fab svg { color: #fff; width: 26px; height: 26px; }

/* scan screen */
.ap.scan { background: #11163a; color: #fff; }
.ap.scan .ap-status .dots i { background: #fff; }
.ap-scanview { flex: 1; position: relative; margin: 8px 16px; border-radius: 28px; overflow: hidden; background:
  radial-gradient(120% 80% at 30% 20%, rgba(123,143,245,.35), transparent),
  radial-gradient(120% 90% at 80% 90%, rgba(242,167,138,.30), transparent), #1a1f47; }
.ap-bracket { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; }
.ap-bracket.tl { top: 26px; left: 26px; border-right: none; border-bottom: none; border-radius: 14px 0 0 0; }
.ap-bracket.tr { top: 26px; right: 26px; border-left: none; border-bottom: none; border-radius: 0 14px 0 0; }
.ap-bracket.bl { bottom: 26px; left: 26px; border-right: none; border-top: none; border-radius: 0 0 0 14px; }
.ap-bracket.br { bottom: 26px; right: 26px; border-left: none; border-top: none; border-radius: 0 0 14px 0; }
.ap-scanball { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-55%); width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffd9c4, var(--coral)); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.ap-scanball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-linear-gradient(120deg, rgba(255,255,255,0) 0 11px, rgba(255,255,255,0.25) 11px 16px); }
.ap-scanline2 { position: absolute; left: 26px; right: 26px; height: 3px; background: #fff; box-shadow: 0 0 14px #fff, 0 0 24px var(--peri-400); border-radius: 3px; animation: scanY2 2.6s ease-in-out infinite; }
@keyframes scanY2 { 0%,100% { top: 60px; } 50% { bottom: 140px; top: auto; } }
.ap-result { background: #fff; color: var(--ink); margin: 0 16px 16px; border-radius: 22px; padding: 16px; box-shadow: 0 -10px 30px rgba(0,0,0,.25); }
.ap-result .tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.ap-result .nm { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 4px 0 2px; }
.ap-result .mt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ap-result .pill { margin-top: 12px; background: var(--peri-600); color: #fff; border-radius: 100px; text-align: center; padding: 12px; font-weight: 700; font-size: 14px; }

/* matches screen */
.ap-matchcard { background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.ap-pair { display: flex; align-items: center; }
.ap-pair .b { width: 38px; height: 38px; border-radius: 50%; position: relative; overflow: hidden; box-shadow: inset 0 0 0 2px #fff; }
.ap-pair .b:nth-child(2) { margin-left: -12px; }
.ap-pair .b::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255,255,255,0) 0 6px, rgba(255,255,255,0.25) 6px 9px); }
.ap-matchinfo { flex: 1; }
.ap-matchinfo .nm { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.ap-matchinfo .mt { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.ap-score { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--mint); background: var(--mint-soft); border-radius: 100px; padding: 6px 11px; }

/* detail screen */
.ap-hero-sw { height: 200px; border-radius: 24px; position: relative; overflow: hidden; margin: 4px 0 16px; }
.ap-hero-sw::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(125deg, rgba(255,255,255,0) 0 14px, rgba(255,255,255,0.20) 14px 20px); }
.ap-detail-name { font-family: var(--font-serif); font-weight: 600; font-size: 24px; line-height: 1.05; }
.ap-detail-brand { font-size: 14px; font-weight: 700; color: var(--ink-3); margin: 4px 0 14px; }
.ap-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.ap-stat { background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); text-align: center; }
.ap-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.ap-stat .l { font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.ap-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* float anim */
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float { animation: floatY 5.5s ease-in-out infinite; }
.float-slow { animation: floatY 7s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .float, .float-slow { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---- subpage: page hero ---- */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 40px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 4px; }
.page-hero .lead { max-width: 600px; margin: 18px auto 0; }

/* ---- feature rows (alternating) ---- */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.frow:nth-child(even) .frow-media { order: 2; }
.frow-copy .tile-icon { margin-bottom: 18px; }
.frow-copy h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 14px; }
.frow-copy .lead { margin: 0 0 20px; }
.frow-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.frow-list li { position: relative; padding-left: 30px; font-weight: 600; color: var(--ink-2); }
.frow-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--peri-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235567E0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E") center/13px no-repeat; }
.frow-media { display: flex; justify-content: center; position: relative; }
.frow-media .phone { width: 270px; }
.frow-divider { border: none; border-top: 3px dashed var(--peri-200); opacity: .6; margin: 0; }

/* extra capability grid */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 12px; }
.cap { background: var(--paper); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); }
.cap .tile-icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px; }
.cap .tile-icon svg { width: 26px; height: 26px; }
.cap h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0 0 6px; }
.cap p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---- about ---- */
.about-mark { display: flex; justify-content: center; margin-bottom: 28px; }
.about-mark img { width: 96px; height: 96px; border-radius: 26px; box-shadow: var(--shadow-md); }
.about-story { max-width: 720px; margin: 0 auto; }
.about-story p { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin: 0 0 22px; font-weight: 500; }
.about-story p .lead-in { font-family: var(--font-serif); color: var(--ink); font-weight: 600; }
.pullquote { font-family: var(--font-serif); font-weight: 600; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.2; letter-spacing: -.02em; color: var(--peri-700); text-align: center; max-width: 800px; margin: 12px auto; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: var(--paper); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); }
.value .tile-icon { margin-bottom: 16px; }
.value h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.value p { margin: 0; color: var(--ink-2); font-size: 15px; }
.founder { display: flex; align-items: center; gap: 18px; justify-content: center; margin-top: 8px; }
.founder-ava { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffd1bd, var(--coral)); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.founder-name { font-family: var(--font-display); font-weight: 700; }
.founder-role { font-size: 14px; color: var(--ink-3); font-weight: 600; }

/* ---- prose (privacy) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose .updated { font-size: 14px; font-weight: 700; color: var(--peri-600); margin-bottom: 28px; }
.prose h2 { font-family: var(--font-serif); font-weight: 600; font-size: 26px; letter-spacing: -.01em; margin: 38px 0 12px; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; line-height: 1.7; font-weight: 500; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--peri-700); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.prose .callout { background: var(--peri-100); border-radius: var(--r-md); padding: 20px 24px; margin: 0 0 22px; }
.prose .callout p { margin: 0; color: var(--ink); font-weight: 600; }
.prose-placeholder { border: 3px dashed var(--peri-200); border-radius: var(--r-md); padding: 28px; background: rgba(255,255,255,.5); color: var(--ink-2); }
.prose .ishort { background: var(--peri-100); border-radius: var(--r-md); padding: 12px 18px; margin: 0 0 16px; font-style: italic; color: var(--ink); font-weight: 500; }
.prose .ishort strong { font-style: normal; }
.prose .toc { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: toc; }
.prose .toc li { counter-increment: toc; margin-bottom: 8px; padding-left: 0; }
.prose .toc li::before { content: counter(toc) ". "; font-weight: 700; color: var(--ink-3); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 22px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--peri-200); padding: 11px 14px; text-align: left; vertical-align: top; color: var(--ink-2); }
.prose th { background: var(--peri-100); color: var(--ink); font-weight: 700; }
.prose td.yn { text-align: center; font-weight: 800; color: var(--peri-700); white-space: nowrap; }
.prose .lead-note { background: var(--butter-soft); border-radius: var(--r-md); padding: 20px 24px; margin: 26px 0; }
.prose .lead-note p { margin: 0; color: var(--butter-ink); font-weight: 600; }
.prose .lead-note a { color: var(--butter-ink); }

@media (max-width: 860px) {
  .frow { grid-template-columns: 1fr; gap: 30px; padding: 36px 0; }
  .frow:nth-child(even) .frow-media { order: 0; }
  .frow-media { order: -1; }
  .cap-grid, .values { grid-template-columns: 1fr; }
}

/* ---- mobile menu ---- */
.mobile-menu {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 12px 20px 22px;
  background: var(--cream);
  border-bottom: 1px solid rgba(123,143,245,0.12);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 14px; border-radius: 14px; font-weight: 700; color: var(--ink-2); }
.mobile-menu a:hover { background: var(--peri-100); }
.mobile-menu .btn { margin-top: 8px; }

/* ---- decorative blobs ---- */
.blob { position: absolute; border-radius: 50%; filter: blur(50px); z-index: 0; pointer-events: none; }
.blob-1 { width: 460px; height: 460px; background: rgba(165,175,248,0.45); top: -120px; right: -80px; }
.blob-2 { width: 360px; height: 360px; background: rgba(242,167,138,0.30); bottom: -120px; left: -100px; }
.blob-3 { width: 380px; height: 380px; background: rgba(255,255,255,0.18); top: -140px; right: -120px; filter: blur(60px); }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 56px 0 80px; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 6px; }
.hero-copy .display { margin: 4px 0 22px; color: var(--ink); }
.hero-copy .lead { max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-badges { margin-bottom: 14px; }
.hero-note { font-size: 14px; font-weight: 600; color: var(--ink-3); margin: 0; }

.hero-phone { position: relative; display: flex; justify-content: center; align-items: center; }
.orbit { position: absolute; border-radius: 50%; z-index: 2; box-shadow: var(--shadow-md); }
.orbit-a { width: 72px; height: 72px; background: radial-gradient(circle at 32% 30%, #ffd1bd, var(--coral)); top: 8px; left: -10px; }
.orbit-b { width: 56px; height: 56px; background: radial-gradient(circle at 32% 30%, #fff0b8, var(--butter)); bottom: 40px; right: -14px; }

/* ---- stat strip ---- */
.strip { background: var(--peri-900); color: #fff; }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 30px 0; flex-wrap: wrap; }
.strip-item { text-align: center; }
.strip-num { font-family: var(--font-serif); font-weight: 600; font-size: 30px; line-height: 1; }
.strip-lbl { font-size: 13px; font-weight: 700; color: var(--peri-300); margin-top: 6px; }
.strip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--peri-700); }

/* ---- section heads ---- */
.sec-head { max-width: 720px; margin: 0 auto 56px; }
.sec-head .kicker { display: block; margin-bottom: 14px; }
.sec-head .eyebrow { margin-bottom: 2px; }

/* ---- feature grid ---- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat { display: flex; flex-direction: column; gap: 14px; transition: transform .18s ease, box-shadow .18s ease; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat .h3 { margin-top: 2px; }
.feat .muted { font-size: 15px; }

/* ---- how it works ---- */
.how { background: var(--cream-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { background: var(--paper); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-card); position: relative; }
.step-num {
  position: absolute; top: -16px; left: 30px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--peri-600); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(123,143,245,.4);
}
.step-art { height: 150px; border-radius: var(--r-md); margin: 14px 0 20px; display: grid; place-items: center; overflow: hidden; position: relative; }
.art-scan { background: var(--peri-100); }
.scan-card { position: relative; }
.scan-frame { width: 110px; height: 110px; border: 3px dashed var(--peri-300); border-radius: 20px; position: relative; overflow: hidden; }
.scan-line { position: absolute; left: 8%; right: 8%; height: 3px; background: var(--peri-600); border-radius: 3px; box-shadow: 0 0 10px var(--peri-500); animation: scanY 2.4s ease-in-out infinite; }
@keyframes scanY { 0%,100% { top: 14%; } 50% { top: 82%; } }
.scan-skein { position: absolute; inset: 26px; border-radius: 50% 50% 48% 52% / 52% 50% 50% 48%; background: radial-gradient(circle at 34% 30%, #ffd6c2, var(--coral)); overflow: hidden; box-shadow: 0 8px 18px rgba(242,167,138,.4); }
.scan-skein::before { content: ""; position: absolute; inset: 0; background:
  repeating-linear-gradient(118deg, rgba(255,255,255,0) 0 9px, rgba(255,255,255,0.28) 9px 13px),
  repeating-linear-gradient(58deg, rgba(184,88,56,0) 0 11px, rgba(184,88,56,0.14) 11px 15px); }
.scan-skein::after { content: ""; position: absolute; right: -8px; bottom: 8px; width: 30px; height: 30px; border: 4px solid var(--coral); border-radius: 50%; border-right-color: transparent; transform: rotate(20deg); }
.art-confirm { background: var(--butter-soft); flex-direction: column; gap: 12px; padding: 22px; }
.mini-row { display: flex; align-items: center; gap: 12px; width: 80%; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.mini-sw { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.mini-bars { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.mini-bars span { height: 6px; border-radius: 4px; background: var(--peri-100); }
.mini-bars span:first-child { width: 70%; }
.mini-bars span:last-child { width: 45%; }
.art-magic { background: var(--pink-soft); flex-direction: column; gap: 10px; padding: 18px; }
.shot-card { display: flex; align-items: center; gap: 10px; width: 86%; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.shot-pair { display: flex; align-items: center; flex-shrink: 0; }
.shot-b { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; }
.shot-b:nth-child(2) { margin-left: -9px; }
.shot-info { flex: 1; min-width: 0; }
.shot-name { font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.1; }
.shot-meta { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.shot-score { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--mint); background: var(--mint-soft); border-radius: 100px; padding: 4px 9px; flex-shrink: 0; }
.shot-tags { display: flex; gap: 7px; }
.shot-tags .chip { font-size: 12px; padding: 6px 12px; box-shadow: var(--shadow-sm); }
.magic-chip { box-shadow: var(--shadow-sm); }

/* ---- showcase rail ---- */
.showcase { overflow: hidden; }
.showcase-rail { display: flex; gap: 26px; justify-content: center; padding: 10px 28px 20px; flex-wrap: wrap; }
.showcase-rail .phone { width: 248px; }
.showcase-rail .phone:nth-child(even) { transform: translateY(20px); }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 860px; margin: 0 auto; }
.price { display: flex; flex-direction: column; position: relative; }
.price.featured { background: var(--peri-900); color: #fff; box-shadow: var(--shadow-lg); }
.price.featured .muted { color: var(--peri-200); }
.price-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--coral); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 6px 16px; border-radius: 100px; box-shadow: 0 8px 18px rgba(242,167,138,.5); white-space: nowrap; }
.price.featured { padding-top: 38px; }
.price-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.price.featured .price-top .h3 { color: #fff; }
.price-amt { font-family: var(--font-serif); font-weight: 600; font-size: 38px; letter-spacing: -.02em; }
.price-amt span { font-family: var(--font-ui); font-size: 15px; font-weight: 700; color: var(--ink-3); }
.price.featured .price-amt span { color: var(--peri-300); }
.price-sub { font-size: 15px; margin: 0 0 20px; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.price-list li { position: relative; padding-left: 30px; font-weight: 600; font-size: 15px; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--peri-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235567E0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E") center/13px no-repeat;
}
.price.featured .price-list li::before { background-color: var(--peri-700); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-11'/%3E%3C/svg%3E"); }
.price .btn { width: 100%; }
.price-foot { margin: 32px 0 0; font-weight: 600; }

/* ---- waitlist ---- */
.waitlist-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--peri-600), var(--peri-700));
  border-radius: var(--r-xl); padding: 64px 40px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.waitlist-card > * { position: relative; z-index: 1; }
.waitlist-card .eyebrow { margin-bottom: 4px; }
.wl-form { display: flex; gap: 12px; max-width: 520px; margin: 30px auto 0; flex-wrap: wrap; justify-content: center; }
.wl-input {
  flex: 1; min-width: 220px;
  border: none; border-radius: var(--r-pill);
  padding: 17px 24px; font-family: var(--font-ui); font-size: 16px; font-weight: 600;
  color: var(--ink); background: #fff; outline: none;
  box-shadow: 0 6px 18px rgba(30,40,117,0.18);
}
.wl-input::placeholder { color: var(--ink-3); }
.wl-btn { background: var(--ink); color: #fff; }
.wl-btn:hover { background: #141b54; transform: translateY(-2px); }
.wl-msg { margin: 18px auto 0; font-weight: 700; color: #fff; background: rgba(255,255,255,0.16); display: inline-block; padding: 10px 20px; border-radius: 100px; }
.wl-fine { margin: 18px 0 0; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.78); }

/* ---- faq ---- */
.faq-wrap { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--peri-600); border-radius: 2px; transition: transform .25s ease; }
.faq-mark::before { top: 8px; left: 0; width: 18px; height: 3px; }
.faq-mark::after { left: 8px; top: 0; width: 3px; height: 18px; }
.faq-item[open] .faq-mark::after { transform: rotate(90deg); opacity: 0; }
.faq-item p { margin: 0; padding: 0 26px 24px; color: var(--ink-2); font-weight: 500; font-size: 15.5px; line-height: 1.6; }
.faq-item p a { color: var(--peri-700); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---- footer ---- */
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-tag { font-family: var(--font-script); font-size: 22px; color: var(--peri-300); margin: 14px 0 0; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-family: var(--font-display); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--peri-300); margin: 0 0 14px; }
.footer-col a { display: block; padding: 6px 0; font-size: 15px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 26px; font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 600; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-phone { order: -1; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .feat-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .waitlist-card { padding: 44px 24px; }
}
