/* DuelBuds — shared stylesheet. No external requests. */
:root {
  --accent: #FF8800;
  --accent-2: #F74A19;
  --pink: #DB97B3;
  --lav: #D1B8E6;
  --cream: #F6E6D3;
  --bg: #FFF9F2;
  --surface: #FFFFFF;
  --surface-2: #FBF1E6;
  --text: #1C1521;
  --muted: #5C5163;
  --border: #EADDCF;
  --link: #B23A0B;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(40, 20, 10, .10);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0B12;
    --surface: #18131D;
    --surface-2: #211A27;
    --text: #F7F0E9;
    --muted: #BDB2C6;
    --border: #2E2636;
    --link: #FFB061;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #1a0d00; padding: .6rem 1rem; z-index: 99; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(14, 11, 18, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a { color: #E9DFF0; text-decoration: none; font-size: .95rem; font-weight: 600; }
.site-nav a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 640px) { .site-nav .opt { display: none; } }

/* Dark brand band (hero, CTA) */
.band-dark {
  color: #F7F0E9;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(209,184,230,.18), transparent 60%),
    radial-gradient(700px 380px at 10% 90%, rgba(247,74,25,.28), transparent 60%),
    linear-gradient(180deg, #0E0B12 0%, #1A1218 70%, #2A1510 100%);
}
.band-dark a { color: #FFC58A; }
.band-dark .muted { color: #CFC3D8; }
.hl {
  display: inline-block;
  padding: .02em .32em .08em;
  border-radius: .45em;
  color: #17101B;
  background: linear-gradient(90deg, #F7B59B 0%, #E7C5E0 50%, #F6E6D3 100%);
  box-shadow: 0 0 40px rgba(247,181,155,.35);
}

/* Hero */
.hero { padding: 3.5rem 0 4rem; overflow: hidden; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.app-id { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.app-id img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.app-id strong { display: block; font-size: 1.15rem; }
.app-id span { font-size: .92rem; color: #CFC3D8; }
.hero p.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: #E4D9EA; max-width: 36em; }
.hero-shot { justify-self: center; width: min(100%, 360px); }
.hero-shot img { border-radius: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: 1.6rem; }
.note { font-size: .9rem; }

/* App Store button */
.store-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .7rem 1.25rem .7rem 1rem;
  min-height: 56px;
  border-radius: 14px;
  background: #000; color: #fff !important;
  text-decoration: none; line-height: 1.1;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 8px 22px rgba(0,0,0,.3);
}
.store-btn svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store-btn small { display: block; font-size: .72rem; font-weight: 500; opacity: .85; }
.store-btn b { display: block; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.store-btn.is-soon { cursor: default; border: 1.5px dashed rgba(255, 136, 0, .85); background: #0b0809; }
.pill { display: inline-block; padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 700; background: rgba(255,136,0,.14); color: #FFB061; border: 1px solid rgba(255,136,0,.35); }

/* Sections */
section { padding: 4.5rem 0; }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; }
.alt { background: var(--surface-2); }

/* Download block */
.download-card {
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 30px;
  background: linear-gradient(135deg, #1A1218 0%, #2B1612 55%, #3A1A10 100%);
  color: #F7F0E9;
  box-shadow: var(--shadow);
}
@media (min-width: 860px) { .download-card { grid-template-columns: 1fr 1fr; } }
.download-card h2 { color: #fff; }
.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.reasons li { padding-left: 2rem; position: relative; color: #EADFF0; }
.reasons li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px rgba(255,136,0,.6); }
.reasons strong { color: #fff; }

/* Feature clips (animated previews built from the real screenshots) */
.clips-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.clips-toggle {
  font: inherit; font-size: .9rem; font-weight: 700;
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
}
.clips-toggle:hover { border-color: var(--accent); }
.clips {
  display: flex; gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: .5rem .25rem 1.5rem;
  margin: 0; list-style: none;
}
.clip { flex: 0 0 min(70vw, 250px); scroll-snap-align: start; margin: 0; }
.clip-frame {
  position: relative; overflow: hidden;
  border-radius: 28px; aspect-ratio: 1320 / 2868;
  background: #0E0B12;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.clip-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: var(--ox, 50%) var(--oy, 55%);
  animation: clip-zoom 10s ease-in-out infinite;
  will-change: transform;
}
.clip-bar {
  position: absolute; left: 14px; right: 14px; bottom: 12px; height: 4px;
  border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden;
}
.clip-bar::after {
  content: ""; display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--pink));
  transform-origin: left center;
  animation: clip-progress 10s linear infinite;
}
.clip-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .25rem .55rem; border-radius: 999px;
  color: #fff; background: rgba(0,0,0,.55);
}
.clip figcaption { padding: .9rem .2rem 0; font-size: .95rem; color: var(--muted); }
.clip figcaption strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: .15rem; }
.clips > li { flex: 0 0 min(70vw, 250px); scroll-snap-align: start; }
.clips > li > .clip { flex: none; }
.clips > li:nth-child(2) img, .clips > li:nth-child(2) .clip-bar::after { animation-delay: -1.2s; }
.clips > li:nth-child(3) img, .clips > li:nth-child(3) .clip-bar::after { animation-delay: -2.4s; }
.clips > li:nth-child(4) img, .clips > li:nth-child(4) .clip-bar::after { animation-delay: -3.6s; }
.clips > li:nth-child(5) img, .clips > li:nth-child(5) .clip-bar::after { animation-delay: -4.8s; }
.clips > li:nth-child(6) img, .clips > li:nth-child(6) .clip-bar::after { animation-delay: -6s; }
.clips > li:nth-child(7) img, .clips > li:nth-child(7) .clip-bar::after { animation-delay: -7.2s; }
.clips > li:nth-child(8) img, .clips > li:nth-child(8) .clip-bar::after { animation-delay: -8.4s; }
.is-paused .clip-frame img, .is-paused .clip-bar::after { animation-play-state: paused; }
@keyframes clip-zoom {
  0%, 12% { transform: scale(1) translateY(0); }
  40%, 70% { transform: scale(var(--z, 1.6)) translateY(0); }
  90%, 100% { transform: scale(1) translateY(0); }
}
@keyframes clip-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  margin-bottom: .8rem; font-weight: 800; color: #1a0d00;
  background: linear-gradient(135deg, var(--accent), #FFB061);
}
.steps p { margin: 0; color: var(--muted); }

/* Cards (guides) */
.cards { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .more { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--link); }

/* FAQ */
.faq { display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 1.25rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .9rem; font-size: 1.4rem; color: var(--accent-2); }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.faq .answer { padding-bottom: 1.1rem; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Final CTA */
.final-cta { text-align: center; padding: 5rem 0; }
.final-cta img.icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 1.4rem; box-shadow: 0 12px 34px rgba(0,0,0,.5); }
.final-cta .cta-row { justify-content: center; }

/* Footer */
.site-footer { background: #0B090E; color: #CFC3D8; padding: 3rem 0 2.5rem; font-size: .95rem; }
.site-footer a { color: #F2E6F7; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .7rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.langs { display: flex !important; flex-wrap: wrap; gap: .4rem .9rem !important; }
.legal-line { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.4rem; font-size: .85rem; color: #A99DB3; }

/* Article (guides, legal) */
.article-hero { padding: 3rem 0 2.5rem; }
.article-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.breadcrumb { font-size: .9rem; margin-bottom: 1.2rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; opacity: .7; }
.answer-box { font-size: 1.15rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 1.2rem 1.4rem; margin-top: 1.2rem; }
.article { padding: 3rem 0 4rem; }
.article h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin-top: 2.4rem; }
.article h3 { margin-top: 1.6rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .45rem; }
.article table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .98rem; }
.article th, .article td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); }
.article th { background: var(--surface-2); }
.shot { margin: 2rem auto; max-width: 320px; }
.shot img { border-radius: 30px; box-shadow: var(--shadow), 0 0 0 1px var(--border); }
.shot figcaption { font-size: .92rem; color: var(--muted); text-align: center; margin-top: .8rem; }
.inline-cta { margin: 2.2rem 0; padding: 1.5rem; border-radius: 22px; background: linear-gradient(135deg, #1A1218, #3A1A10); color: #F7F0E9; display: grid; gap: 1rem; }
.inline-cta p { margin: 0; }
.inline-cta strong { color: #fff; }
.app-steps { counter-reset: s; list-style: none; padding: 0 !important; }
.app-steps li { counter-increment: s; position: relative; padding-left: 2.6rem; margin-bottom: 1rem; }
.app-steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #1a0d00; background: linear-gradient(135deg, var(--accent), #FFB061); }
.related { margin-top: 3rem; }
.legal h2 { font-size: 1.35rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .clip-bar { display: none; }
}
