:root {
  --blue: #0a84ff;
  --blue-dark: #0066d6;
  --blue-soft: #e6f1ff;
  --orange: #ff9f0a;
  --red: #ff3b30;
  --navy: #1e2230;
  --navy-2: #272c3b;
  --grey-900: #1c2230;
  --grey-700: #3f4757;
  --grey-500: #6b7385;
  --grey-300: #b9c0cf;
  --grey-200: #e3e6ec;
  --grey-100: #f4f5f8;
  --white: #ffffff;
  --radius: 18px;
  --max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Scroll progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--blue); transform-origin: 0 50%; transform: scaleX(0);
  z-index: 100;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--grey-200); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--grey-900); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--blue);
  display: grid; place-items: center;
}
.logo-mark::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 0 2.5px var(--blue), 0 0 0 4.5px var(--white);
}

.nav { display: flex; gap: 24px; }
.nav a { color: var(--grey-700); font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; transition: transform .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { color: var(--blue); border: 1.5px solid var(--blue); }

/* Hero */
.hero { padding: 80px 0 100px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow { color: var(--blue); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 20px; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: 1.2rem; color: var(--grey-500); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Phone mockup (matches the app's camera screen) ---------- */
.phone {
  width: 270px; height: 560px; margin: 0 auto; border-radius: 46px;
  background: #0b0d12; padding: 11px; position: relative;
  box-shadow: 0 40px 80px -30px rgba(10, 132, 255, .45), inset 0 0 0 2px #2b303d;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  background: #000; color: var(--white);
}
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; background: #000; border-radius: 20px; z-index: 6; box-shadow: 0 0 0 1px #111; }

.ui-top { position: absolute; top: 44px; left: 16px; right: 16px; display: flex; gap: 14px; align-items: center; z-index: 4; }
.ui-top svg { width: 20px; height: 20px; }
.ui-top .spacer { flex: 1; }
.ui-top .yellow { color: #ffd60a; }
.ui-top .rotate-btn { padding: 4px; border-radius: 8px; border: 2px solid transparent; margin: -6px; transition: border-color .4s; }

/* Camera feed (fake room) */
.feed {
  position: absolute; left: 0; right: 0; top: 150px; height: 210px; z-index: 1;
  background:
    radial-gradient(ellipse 60px 34px at 50% 100%, #2c3343 98%, transparent 100%),
    linear-gradient(180deg, #8fa6bf 0%, #b7aa94 55%, #6e5f4f 100%);
  transition: all .7s cubic-bezier(.2, .7, .2, 1);
}
.feed::after {
  content: ""; position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%);
  width: 46px; height: 52px; border-radius: 50%; background: #3a3f4c; opacity: .9;
}
.feed-badge {
  position: absolute; top: 8px; right: 10px; font-size: .65rem; font-weight: 700;
  background: var(--orange); color: #000; padding: 1px 7px; border-radius: 6px;
  opacity: 0; transition: opacity .4s;
}

/* Paragraph card */
.pcard {
  position: absolute; left: 10px; right: 10px; top: 82px; z-index: 3;
  background: rgba(40, 42, 48, .88); border-radius: 18px; padding: 12px 14px 12px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pcard-meta { display: flex; gap: 8px; font-size: .68rem; color: #a7acb8; align-items: center; }
.pcard-meta .aa { margin-left: auto; color: var(--white); letter-spacing: 4px; }
.pcard-line {
  font-weight: 700; font-size: 1rem; line-height: 1.3; text-align: center;
  min-height: 84px; display: grid; place-items: center; margin: 6px 0 4px;
  transition: opacity .35s, transform .35s;
}
.pcard-line.swap { opacity: 0; transform: translateY(8px); }
.pcard-nav { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; }
.pcard-nav span { padding: 2px 8px; border-radius: 8px; transition: background .25s, color .25s; }
.pcard-nav .tap { background: var(--blue); color: var(--white); }

.zoom { position: absolute; bottom: 104px; left: 0; right: 0; text-align: center; font-size: .78rem; font-weight: 700; z-index: 2; word-spacing: 16px; }
.zoom b { color: #ffd60a; }
.rec {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 60px; height: 60px; border-radius: 50%; border: 4px solid var(--white);
  display: grid; place-items: center;
}
.rec::after { content: ""; width: 46px; height: 46px; border-radius: 50%; background: var(--red); transition: all .3s; }
.flip { position: absolute; bottom: 42px; right: 26px; z-index: 2; color: var(--white); }
.flip svg { width: 24px; height: 24px; }
/* Recording controls: timer pill (top) and pause/play (bottom-left) */
.ui-top .spacer { text-align: center; }
.rec-timer {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 12px; border-radius: 999px;
  background: var(--red); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .4s, background .4s;
}
.pause-btn {
  position: absolute; bottom: 36px; left: 24px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(60, 60, 64, .85); color: var(--white); display: grid; place-items: center;
  opacity: 0; transition: opacity .4s, box-shadow .3s;
}
.pause-btn svg { width: 16px; height: 16px; grid-area: 1 / 1; transition: opacity .25s; }
.pause-btn .icon-play { opacity: 0; }

/* Script editor overlay */
.editor {
  position: absolute; inset: 40px 8px 8px; z-index: 5; border-radius: 26px;
  background: #1c1c1f; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(30px); pointer-events: none;
  transition: opacity .5s, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.editor-head { display: flex; justify-content: center; position: relative; font-weight: 700; font-size: .85rem; }
.editor-head .done { position: absolute; right: 0; top: -3px; font-size: .72rem; background: #3a3a3f; padding: 3px 10px; border-radius: 999px; }
.editor-title { background: #3a3a3f; border-radius: 10px; padding: 7px 10px; font-weight: 700; font-size: .8rem; }
.editor-body {
  flex: 1; border: 2px solid var(--orange); border-radius: 10px; padding: 10px;
  font-size: .72rem; line-height: 1.45; background: #111114;
}
.editor-body p { margin-bottom: 10px; }
.editor-body p:nth-child(n+2) { opacity: 0; animation: type-in .4s forwards; }
.editor-hint { font-size: .62rem; color: #a7acb8; }
.editor-slider { display: flex; align-items: center; gap: 8px; font-size: .68rem; }
.editor-slider i { flex: 1; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) 60%, #555 60%); position: relative; }
.editor-slider i::after { content: ""; position: absolute; left: 58%; top: -6px; width: 22px; height: 14px; border-radius: 8px; background: var(--white); }
@keyframes type-in { to { opacity: 1; } }

/* Scroll-driven phone states */
.phone[data-state="edit"] .editor { opacity: 1; transform: none; }
.phone[data-state="edit"] .editor-body p:nth-child(2) { animation-delay: .5s; }
.phone[data-state="edit"] .editor-body p:nth-child(3) { animation-delay: 1s; }
.phone:not([data-state="edit"]) .editor-body p:nth-child(n+2) { animation: none; opacity: 1; }
.phone:is([data-state="retake"], [data-state="next"], [data-state="pause"]) .rec-timer,
.phone:is([data-state="retake"], [data-state="next"], [data-state="pause"]) .pause-btn { opacity: 1; }
.phone:is([data-state="retake"], [data-state="next"], [data-state="pause"]) .rec::after { width: 22px; height: 22px; border-radius: 6px; }
.phone[data-state="retake"] .pcard { box-shadow: 0 0 0 2px var(--red); }
.phone[data-state="next"] .next { background: var(--blue); color: var(--white); }
.phone[data-state="pause"] .rec-timer { background: var(--orange); }
.phone[data-state="pause"] .pause-btn { box-shadow: 0 0 0 2px var(--orange); }
.phone[data-state="pause"] .pause-btn .icon-pause { opacity: 0; }
.phone[data-state="pause"] .pause-btn .icon-play { opacity: 1; }
.phone[data-state="rotate"] .rotate-btn { border-color: var(--orange); }
.phone[data-state="rotate"] .feed { top: 238px; height: 140px; left: 0; right: 0; }
.phone[data-state="rotate"] .feed-badge { opacity: 1; }

/* Sections */
section { padding: 100px 0; }
.section-grey { background: var(--grey-100); }
.section-dark { background: var(--navy); color: var(--white); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.02em; line-height: 1.15; margin: 10px 0 14px; }
.section-head p { color: var(--grey-500); font-size: 1.1rem; }
.section-dark .section-head p { color: var(--grey-300); }

/* Difference banner */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-col { border-radius: var(--radius); padding: 32px; }
.compare-col h3 { font-size: 1.2rem; margin-bottom: 14px; }
.compare-col ul { list-style: none; }
.compare-col li { padding: 8px 0 8px 30px; position: relative; }
.compare-col li::before { position: absolute; left: 0; top: 8px; font-weight: 700; }
.compare-old { background: var(--white); border: 1px solid var(--grey-200); color: var(--grey-500); }
.compare-old li::before { content: "✕"; color: var(--grey-500); }
.compare-new { background: var(--blue); color: var(--white); }
.compare-new li::before { content: "✓"; color: var(--white); }

/* Scrollytelling */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.story-phone { position: sticky; top: 90px; height: 600px; display: grid; place-items: center; }
.story-steps { padding: 10vh 0 20vh; }
.story-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s; }
.story-step.active { opacity: 1; }
.story-step .num { color: var(--orange); font-weight: 700; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.story-step h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; margin: 10px 0 14px; }
.story-step p { color: var(--grey-300); font-size: 1.15rem; max-width: 440px; }
.story-step p b { color: var(--white); }
.pill { display: inline-block; margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--orange); background: rgba(255, 159, 10, .14); padding: 5px 14px; border-radius: 999px; align-self: flex-start; }

/* Features */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius);
  padding: 30px;
}
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--grey-500); }

/* Apps list */
.app-list { display: grid; gap: 22px; }
.app-item {
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
  background: var(--navy); color: var(--white); border-radius: 28px; padding: 44px;
}
.app-icon {
  width: 112px; height: 112px; border-radius: 26px; overflow: hidden;
  display: grid; place-items: center; box-shadow: 0 20px 40px -15px rgba(10, 132, 255, .6);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon .dot {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 10px var(--orange);
}
.app-item h3 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 8px; }
.app-item p { color: var(--grey-300); margin-bottom: 16px; max-width: 600px; }
.app-item ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.app-item li { font-size: .85rem; background: rgba(255, 255, 255, .08); padding: 4px 12px; border-radius: 999px; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(10, 132, 255, .2); color: #7dbbff; margin-bottom: 12px; }
.app-more { text-align: center; color: var(--grey-500); margin-top: 26px; }

/* Company / contact */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.company h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -.02em; margin: 10px 0 16px; line-height: 1.15; }
.company p { color: var(--grey-500); margin-bottom: 14px; }
.info-list { list-style: none; background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 10px 28px; }
.info-list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--grey-200); }
.info-list li:last-child { border-bottom: 0; }
.info-list span:first-child { color: var(--grey-500); }
.info-list span:last-child { font-weight: 600; text-align: right; }

/* Document pages (privacy, support) */
.page-hero { padding: 80px 0 40px; background: var(--grey-100); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.02em; line-height: 1.1; margin: 10px 0 12px; }
.page-hero p { color: var(--grey-500); font-size: 1.1rem; }
.doc { max-width: 760px; margin: 0 auto; padding: 60px 20px 100px; }
.doc h2 { font-size: 1.45rem; margin: 44px 0 12px; letter-spacing: -.01em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--grey-700); }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 14px 22px; }
.doc li { margin-bottom: 8px; }
.callout { background: var(--blue-soft); border-radius: var(--radius); padding: 22px 26px; margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }

.contact-card {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 32px;
  margin-bottom: 50px;
}
.contact-card h2 { margin: 0 0 4px; color: var(--white); font-size: 1.4rem; }
.contact-card p { color: var(--grey-300); margin: 0; }

details { border-bottom: 1px solid var(--grey-200); padding: 18px 0; }
details summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; }

/* Footer */
.site-footer { background: var(--grey-900); color: var(--grey-300); padding: 50px 0 40px; font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer .logo { color: var(--white); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--grey-300); }
.footer-links a:hover { color: var(--white); }

/* Scroll reveal animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom-in { transform: scale(.92); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .phone * { transition: none !important; animation: none !important; }
  .editor-body p { opacity: 1 !important; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 50px 0 70px; }
  .hero .container, .company, .app-item, .compare { grid-template-columns: 1fr; }
  .hero { text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .app-item { padding: 32px 22px; text-align: center; }
  .app-item .app-icon { margin: 0 auto; }
  .app-item p { margin-left: auto; margin-right: auto; }
  .app-item ul { justify-content: center; }
  section { padding: 70px 0; }
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }

  /* Phone pins to the top while steps scroll underneath */
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-phone { top: 64px; height: auto; padding: 10px 0; z-index: 2; background: var(--navy); }
  .story-phone .phone { transform: scale(.62); transform-origin: top center; margin-bottom: -213px; }
  .story-steps { padding: 0 0 10vh; }
  .story-step { min-height: 60vh; text-align: center; align-items: center; justify-content: flex-end; padding-bottom: 6vh; }
  .story-step p { margin: 0 auto; }
  .pill { align-self: center; }
}
