/* duolla.app: one stylesheet for every page. Brand: blue #2F6FED to pink #DB2777. */
:root {
  --blue: #2F6FED; --pink: #DB2777; --purple: #7C4DDB; --gold: #C98A0E;
  --text: #17171C; --muted: #5E5E6B; --faint: #8C8C99; --bg: #FBFAF7; --card: #FFFFFF; --line: #E8E5DF; --soft: #F3F1EC;
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--purple) 50%, var(--pink) 100%);
  --radius: 20px; --shadow: 0 20px 50px -20px rgba(40, 20, 90, .25); --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 900; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 850; }
h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--grad); }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--faint); }
section { padding: 88px 0; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 16px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.wm { font-weight: 850; font-size: 24px; letter-spacing: -0.035em; }
.wm .ll { background: linear-gradient(90deg, var(--blue) 15%, var(--pink) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-weight: 550; font-size: 15.5px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15.5px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff !important; box-shadow: 0 10px 24px -10px rgba(124, 77, 219, .7); }
.btn-ghost { background: var(--card); color: var(--text) !important; border: 1px solid var(--line); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--text); }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* ---------- Store badges ---------- */
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stores a { display: block; transition: transform .15s; }
.stores a:hover { transform: translateY(-2px); }
.stores img { width: 164px; height: auto; }
.center .stores { justify-content: center; }

/* ---------- Phones ---------- */
.phone { position: relative; width: 300px; aspect-ratio: 390 / 844; border-radius: 48px; padding: 11px; background: #121216; box-shadow: var(--shadow), 0 0 0 1.5px rgba(255, 255, 255, .08) inset; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone::after { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 30%; height: 26px; border-radius: 14px; background: #000; }
.phone.sm { width: 250px; }

/* ---------- Hero ---------- */
/* overflow: clip (not hidden) so a #download jump scrolls the page, not a hidden box inside it. */
.hero { position: relative; overflow: hidden; overflow: clip; padding: 64px 0 96px; }
.hero::before { content: ''; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(219, 39, 119, .16), transparent 62%); pointer-events: none; }
.hero::after { content: ''; position: absolute; width: 800px; height: 800px; left: -360px; bottom: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 111, 237, .14), transparent 62%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero .stores { margin-top: 32px; }
.hero .note { margin-top: 16px; font-size: 14.5px; color: var(--faint); }
.hero-visual { position: relative; width: 100%; max-width: 560px; aspect-ratio: 560 / 640; margin-left: auto; }
.hero-visual .phone { position: absolute; width: 52%; border-radius: 13% / 6%; padding: clamp(6px, 1.9%, 11px); }
.hero-visual .phone img { border-radius: 11% / 5%; }
.hero-visual .phone::after { top: 3.2%; height: 4%; }
.hero-visual .front { right: 6%; top: 0; z-index: 2; }
.hero-visual .back { right: 44%; top: 9%; transform: rotate(-6deg) translateZ(0); backface-visibility: hidden; width: 47%; }
.float-card { position: absolute; z-index: 3; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; padding: 12px 14px; box-shadow: 0 18px 40px -16px rgba(40, 20, 90, .35); display: flex; gap: 11px; align-items: center; font-size: 14px; line-height: 1.35; animation: bob 6s ease-in-out infinite; white-space: nowrap; }
.float-card b { display: block; font-size: 14.5px; }
.float-card .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.float-card .ico svg { width: 20px; height: 20px; }
.float-card.one { right: -2%; top: 3%; }
.float-card.two { left: 8%; bottom: 4%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin: 0 auto; }
  .hero .stores { justify-content: center; }
  .hero-visual { margin: 8px auto 0; }
}
@media (max-width: 520px) {
  .hero { padding-top: 40px; }
  .float-card { font-size: 12px; padding: 8px 10px; gap: 8px; border-radius: 14px; }
  .float-card b { font-size: 12.5px; }
  .float-card .ico { width: 28px; height: 28px; border-radius: 8px; }
  .float-card.one { right: 0; top: 2%; }
}

/* ---------- Pills row ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.pill svg { width: 18px; height: 18px; color: var(--purple); }

/* ---------- Cards and grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.icon-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(47, 111, 237, .12), rgba(219, 39, 119, .12)); color: var(--purple); margin-bottom: 16px; }
.icon-box svg { width: 24px; height: 24px; }
.card h3 + p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.feature-list { list-style: none; padding: 0; margin: 14px 0 0; }
.feature-list li { position: relative; padding-left: 28px; margin: 9px 0; color: var(--muted); font-size: 16px; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 6.8-6.8 1.8 1.8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 6.8-6.8 1.8 1.8z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Feature rows (text + phone) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: -1; }
.feature-media { position: relative; display: grid; place-items: center; padding: 40px 0; }
.feature-media::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--grad); opacity: .14; filter: blur(10px); }
.feature-media .phone { position: relative; }
.feature h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 16px; }
.tag-premium { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(201, 138, 14, .13); color: var(--gold); font-size: 12.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.tag-premium::before { content: ''; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); border-radius: 1.5px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .feature.flip .feature-media { order: 0; }
  .feature .feature-list { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 26px; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 19px; display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(124, 77, 219, .8); }
.step.card { padding-top: 84px; }
.step.card::before { top: 26px; }

/* ---------- Bands ---------- */
.band { background: var(--soft); }
.band-dark { background: #15131F; color: #fff; }
.band-dark .lede, .band-dark .muted { color: rgba(255, 255, 255, .72); }
.cta { position: relative; overflow: hidden; overflow: clip; border-radius: 32px; padding: 72px 32px; background: var(--grad); color: #fff; text-align: center; }
.cta::after { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta .lede { color: rgba(255, 255, 255, .88); margin: 14px auto 30px; }
.cta .stores { justify-content: center; position: relative; z-index: 1; }

/* ---------- Pricing ---------- */
.price-card { position: relative; }
.price-card.best { border: 2px solid var(--gold); box-shadow: 0 24px 60px -30px rgba(201, 138, 14, .55); }
.price-card .badge { position: absolute; top: -13px; left: 26px; background: var(--gold); color: #fff; font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em; }
.price { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { background: var(--soft); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 120px; }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: #1F9D55; font-weight: 800; }
.no { color: var(--faint); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 700; font-size: 17.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 16px; font-size: 26px; font-weight: 400; color: var(--purple); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }

/* ---------- Simple pages (legal, support) ---------- */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); margin-top: 12px; }
.prose { max-width: 760px; padding-bottom: 88px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.prose .card { margin: 16px 0; padding: 20px 22px; }
.prose .muted { color: var(--muted); }

/* ---------- Press ---------- */
.swatch { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.swatch div { height: 96px; }
.swatch p { padding: 12px 14px; font-size: 14px; }
.asset { display: flex; flex-direction: column; gap: 12px; }
.asset .thumb { height: 150px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); padding: 16px; }
.asset .thumb.dark { background: #15131F; }
.asset .thumb img { max-height: 118px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.footer-grid a { display: block; color: var(--muted); padding: 4px 0; }
.footer-grid a:hover { color: var(--text); text-decoration: none; }
.footer-grid .stores img { width: 134px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Legal pages keep their own first heading. */
.prose > h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 900; margin: 8px 0 8px; }
.prose > h1 + .muted { margin-bottom: 24px; }
@media (max-width: 420px) { .stores { gap: 10px; } .stores img { width: 146px; } }
.grid > * { min-width: 0; }
.compare td { overflow-wrap: break-word; }
/* Press kit fact sheet: labels on one line, values wrap. */
.facts td { text-align: left !important; width: auto !important; vertical-align: top; }
.facts td:first-child { white-space: nowrap; width: 1% !important; padding-right: 24px; color: var(--muted); font-weight: 600; }
.facts td:last-child { overflow-wrap: anywhere; }

/* The launch video, inside a phone. */
.video-phone { background: #121216; }
.video-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; display: block; background: #1b1b22; }

/* The launch reel: the current app screens, one after another, with a caption each (18 s loop). */
.reel { position: relative; }
.reel .slides { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #F6F5F2; }
.reel .slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 0; animation: reel-slide 18s infinite; }
.reel .captions { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); width: 120%; height: 64px; z-index: 3; pointer-events: none; }
.reel .captions span { position: absolute; left: 50%; top: 0; transform: translate(-50%, 10px); white-space: nowrap; background: rgba(23, 23, 28, .88); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; padding: 12px 20px; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); opacity: 0; animation: reel-cap 18s infinite; }
.reel .slides img:nth-child(2), .reel .captions span:nth-child(2) { animation-delay: 3s; }
.reel .slides img:nth-child(3), .reel .captions span:nth-child(3) { animation-delay: 6s; }
.reel .slides img:nth-child(4), .reel .captions span:nth-child(4) { animation-delay: 9s; }
.reel .slides img:nth-child(5), .reel .captions span:nth-child(5) { animation-delay: 12s; }
.reel .slides img:nth-child(6), .reel .captions span:nth-child(6) { animation-delay: 15s; }
@keyframes reel-slide { 0% { opacity: 0; transform: scale(1.04); } 3% { opacity: 1; transform: scale(1); } 16.6% { opacity: 1; } 19.6% { opacity: 0; } 100% { opacity: 0; } }
@keyframes reel-cap { 0%, 2% { opacity: 0; transform: translate(-50%, 10px); } 5% { opacity: 1; transform: translate(-50%, 0); } 15.6% { opacity: 1; transform: translate(-50%, 0); } 18% { opacity: 0; transform: translate(-50%, -6px); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .reel .slides img, .reel .captions span { animation: none; }
  .reel .slides img:first-child, .reel .captions span:first-child { opacity: 1; transform: translate(-50%, 0); }
  .reel .slides img:first-child { transform: none; }
}
@media (max-width: 520px) { .reel .captions span { font-size: 15px; padding: 10px 16px; } }
@media (max-width: 520px) { .facts td { padding: 11px 8px; font-size: 15px; } .facts td:first-child { padding-right: 14px; } }
/* Jumps (like Get the app → #download) stop below the sticky header. */
#download { scroll-margin-top: 68px; }

/* The 30-second promo video on Home. */
.promo-video { max-width: 960px; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(40, 20, 90, .22); background: #1b1b22; }
.promo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #1b1b22; }
