/* Brand tokens: FlipLit-IOS/Styles/Colors.swift and StyleConstants.swift. */
:root { color-scheme: dark; --slate: #1f2937; --amber: #f59e0b; --emerald: #10b981; --text: #f3f4f6; --muted: #c2c8d0; --button-radius: 12px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; color: var(--text); background: var(--slate); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
p { line-height: 1.65; }
h1, h2, p { margin: 0; }
.wrap { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: -80px; left: 16px; background: var(--amber); color: var(--slate); padding: 16px; }
.skip-link:focus { top: 12px; }
.opening { background: var(--slate); overflow: hidden; }
section.opening { background: radial-gradient(ellipse at 85% 55%, #f59e0b14, transparent 65%), var(--slate); }
.header { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 750; letter-spacing: -1px; }
.brand img { border-radius: var(--button-radius); }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
nav a { display: inline-flex; min-height: 44px; align-items: center; }
nav a:hover, .tour-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding-block: 68px 112px; }
h1 { margin-block: 25px; font-size: clamp(80px, 9vw, 128px); line-height: .91; letter-spacing: -.065em; font-weight: 750; }
h1 span { color: var(--amber); }
.intro { font-size: 21px; line-height: 1.5; letter-spacing: -.4px; }
.description { color: var(--muted); max-width: 360px; margin-block: 16px 32px; font-size: 17px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 24px; padding: 16px 24px; background: var(--amber); color: var(--slate); border-radius: var(--button-radius); font-size: 17px; font-weight: 600; transition: box-shadow .2s; }
.button:hover { box-shadow: 0 0 0 4px #f59e0b26; }
.tour-link { display: flex; align-items: center; min-height: 44px; width: fit-content; gap: 16px; color: var(--muted); font-size: 13px; margin-top: 24px; padding-block: 8px; }
.device-stage { display: grid; place-items: center; position: relative; padding: 36px; isolation: isolate; }
.device-stage::before { content: ""; position: absolute; z-index: -1; inset: 10% 0; border-radius: 50%; background: radial-gradient(ellipse, #f59e0b14, transparent 68%); }
.phone { width: min(100%, 270px); border: 7px solid var(--slate); border-radius: 42px; background: var(--slate); overflow: hidden; box-shadow: 0 32px 64px -24px #0009, 0 0 0 1px #f3f4f633; }
.phone img { width: 100%; aspect-ratio: 6 / 13; object-fit: cover; }
.hero-stage { padding: 24px 0; }
.hero-stage::before { display: none; }
.hero-stage .phone { width: min(100%, 310px); border-color: #0b1018; transform: rotate(10deg); box-shadow: 0 45px 80px #0006, 0 0 0 2px #657080; }
.hero-stage .phone img { border-radius: 34px; }
.features { background: radial-gradient(ellipse at 5% 50%, #10b9810d, transparent 65%), var(--slate); border-block: 1px solid #f59e0b24; }
/* Keep the sticky column inside the entire story, with no scrolling ancestor. */
.feature-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; }
.sticky-device { position: sticky; top: 0; align-self: start; height: 100svh; padding: 24px; }
.demo-player { display: grid; justify-items: center; gap: 16px; width: min(100%, 300px, calc((100svh - 160px) * 6 / 13)); }
.sticky-device .phone { width: 100%; }
.story-screens { display: grid; }
.story-screens video { display: block; width: 100%; height: auto; aspect-ratio: 6 / 13; object-fit: contain; grid-area: 1 / 1; opacity: 0; transition: opacity .45s ease; }
.story-screens video.is-active { opacity: 1; z-index: 1; }
.feature-chapters { min-width: 0; }
.feature { display: flex; align-items: center; min-height: 100svh; padding-block: 64px; }
.feature + .feature { border-top: 1px solid #f3f4f614; }
.feature-copy { max-width: 390px; }
h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.05em; font-weight: 700; text-wrap: balance; }
.feature h2 { font-size: clamp(28px, 3.3vw, 44px); }
.accent { color: var(--amber); }
.accent-green { color: var(--emerald); }
.accent-line { white-space: nowrap; }
.is-centered .accent { animation: accent-glow .9s ease-out both; }
@keyframes accent-glow {
  0%, 100% { text-shadow: 0 0 0 transparent; }
  40% { text-shadow: 0 0 24px currentColor; }
}
.feature-copy > p:last-child { color: var(--muted); margin-top: 24px; font-size: 17px; max-width: 350px; }
.closing { background: radial-gradient(ellipse at 50% 100%, #f59e0b26, transparent 74%), var(--slate); text-align: center; padding-top: 96px; overflow: hidden; }
.closing-icon { border-radius: 22px; margin: 0 auto 34px; box-shadow: 0 0 70px #f59e0b33; }
.closing h2 { margin-top: 22px; font-size: clamp(40px, 5.5vw, 68px); }
.closing h2 + p { margin: 24px auto 32px; color: var(--muted); }
.closing .availability { margin-top: 16px; color: var(--muted); font-size: 12px; }
.closing-phones { height: 340px; margin-top: 76px; position: relative; }
.closing-phones .phone { position: absolute; width: 250px; left: calc(50% - 215px); top: 20px; transform: rotate(-14deg); }
.closing-phones .phone + .phone { left: calc(50% - 20px); top: 65px; transform: rotate(14deg); }
.footer { color: var(--muted); background: var(--slate); border-top: 1px solid #f3f4f614; }
.footer-inner { min-height: 120px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer .brand { color: white; font-size: 20px; }
.footer small { font-size: 12px; }
.reading-links { padding-block: 80px; }
.eyebrow { color: var(--amber); font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.guide-card { padding: 28px; border: 1px solid #f3f4f626; border-radius: 20px; background: #ffffff03; }
a.guide-card:hover { border-color: var(--amber); }
.guide-card h3 { margin: 0 0 16px; font-size: 23px; line-height: 1.3; }
.guide-card p { color: var(--muted); }
.article { max-width: 800px; padding-bottom: 80px; }
.breadcrumb { flex-wrap: wrap; gap: 12px; color: var(--muted); padding-block: 20px; }
.article-heading { padding-block: 32px 48px; }
.article h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -.05em; margin: 0 0 28px; text-wrap: balance; }
.article h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.article p:not(.eyebrow) { color: var(--muted); }
.article .intro { color: var(--text); margin-bottom: 20px; }
.article-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.article-steps li { counter-increment: step; position: relative; padding: 32px 0 32px 64px; border-top: 1px solid #f3f4f626; }
.article-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 35px; color: var(--amber); font-size: 20px; font-weight: 650; }
.article-steps p, .article-section p, .workflow-cards p:not(.eyebrow) { margin-top: 16px; }
.profit-example { margin-top: 24px; padding: 32px; border: 1px solid #10b98166; background: #10b9810a; border-radius: 20px; }
.profit-example dl { margin-block: 24px; }
.profit-example dl div { display: flex; justify-content: space-between; gap: 20px; padding-block: 12px; }
.profit-example dd { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.profit-total { color: var(--emerald); border-top: 1px solid #10b98166; font-weight: 700; }
.profit-example > p:last-child { font-size: 14px; }
.article-section { margin-block: 48px; }
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 16px; }
.comparison-table caption { text-align: left; color: var(--muted); margin-bottom: 16px; font-size: 14px; }
.comparison-table th, .comparison-table td { text-align: left; padding: 18px 12px; border-bottom: 1px solid #f3f4f626; vertical-align: top; }
.comparison-table thead { color: var(--amber); }
.comparison-table tbody th { font-weight: 500; }
.article-demo { margin: 48px 0; text-align: center; }
.article-demo video { display: block; width: min(100%, 280px); height: auto; margin-inline: auto; border-radius: 24px; }
.article-demo figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; }
.article-cta { padding-top: 48px; margin-top: 48px; border-top: 1px solid #f3f4f626; }
.article-cta p { margin-block: 20px 24px; }
.related-link { display: block; width: fit-content; padding-block: 14px; margin-top: 20px; color: var(--amber); text-decoration: underline; text-underline-offset: 5px; line-height: 1.5; }
@media (max-width: 760px) {
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card, .profit-example { padding: 24px; }
  .article-steps li { padding-left: 44px; }
  .wrap { width: calc(100% - 40px); }
  .header { padding-block: 18px; gap: 12px; flex-wrap: wrap; }
  .header nav { flex-wrap: wrap; gap: 4px 16px; }
  .brand { font-size: 21px; }
  nav { gap: 16px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 44px 70px; }
  h1 { font-size: clamp(76px, 19vw, 110px); }
  .hero-copy { max-width: 480px; }
  .hero-stage .phone { width: 235px; }
  .device-stage { padding: 25px; }
  .feature-story { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); gap: 24px; }
  .sticky-device { padding: 8px 1px; }
  .sticky-device .phone { border-width: 4px; border-radius: 24px; }
  .feature h2 { font-size: clamp(24px, 4.5vw, 36px); letter-spacing: -.035em; }
  .feature h2 br { display: none; }
  .accent-line { white-space: normal; }
  .feature-copy > p:last-child { font-size: 15px; }
  .closing { padding-top: 70px; }
  .closing-phones { height: 270px; }
  .closing-phones .phone { width: 205px; left: calc(50% - 170px); }
  .closing-phones .phone + .phone { left: calc(50% - 25px); }
  .footer-inner { flex-wrap: wrap; justify-content: center; padding-block: 28px; gap: 12px 30px; }
  .footer small { width: 100%; text-align: center; }
}
@media (max-width: 360px) {
  .feature-story { gap: 16px; }
  .header { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .story-screens video { transition: none; }
  .is-centered .accent { animation: none; }
}
