/* YouPrint website — shared styles */
:root {
  color-scheme: dark;
  --bg: #0c0c12;
  --bg-2: #12111c;
  --surface: #17152a;
  --surface-2: #1f1c38;
  --border: rgba(167, 139, 250, 0.16);
  --border-strong: rgba(167, 139, 250, 0.34);
  --text: #f4f2ff;
  --text-2: #b9b4d6;
  --text-3: #8a85a8;
  --brand: #8b5cf6;
  --brand-2: #a78bfa;
  --brand-3: #c4b5fd;
  --brand-deep: #5b21b6;
  --accent: #e879f9;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
  --shadow: 0 30px 80px -30px rgba(124, 58, 237, 0.55);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-3); text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 12px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { left: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 18, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span b { color: var(--brand-2); font-weight: 800; }
.nav-links { display: none; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(139, 92, 246, 0.14); }
.nav-cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: #fff;
}
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--border); padding: 12px 0 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 4px; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { color: #fff; box-shadow: 0 30px 90px -25px rgba(139, 92, 246, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); color: #fff; }
.btn-ghost:hover { background: rgba(139, 92, 246, 0.14); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; border-radius: 12px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px;
  background: #000; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; color: #fff;
  transition: transform .18s ease, border-color .18s ease;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--brand-2); color: #fff; }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn small { display: block; font-size: 0.68rem; line-height: 1.1; opacity: .8; letter-spacing: .02em; }
.store-btn strong { display: block; font-size: 1.1rem; line-height: 1.15; font-weight: 700; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(139, 92, 246, 0.38), transparent 70%),
    radial-gradient(500px 340px at 10% 10%, rgba(232, 121, 249, 0.16), transparent 70%),
    radial-gradient(700px 400px at 50% 100%, rgba(91, 33, 182, 0.30), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 110px; } .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.12); border: 1px solid var(--border-strong);
  color: var(--brand-3); font-size: 0.85rem; font-weight: 600;
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 999px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: .7rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); font-weight: 800; margin: 20px 0 18px; }
.grad { background: linear-gradient(100deg, var(--brand-2) 0%, var(--accent) 60%, var(--brand-3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 560px; margin: 0 0 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--text-3); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--brand-2); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 72vw); border-radius: 34px; overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow), 0 0 0 8px rgba(139,92,246,.06);
  transform: rotate(-3deg);
}
.phone.back { position: absolute; width: min(250px, 58vw); right: 2%; top: 40px; transform: rotate(7deg); opacity: .55; filter: blur(.5px); z-index: -1; display: none; }
@media (min-width: 560px) { .phone.back { display: block; } }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 14px; background: rgba(23, 21, 42, 0.86); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .85rem; font-weight: 700;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7); animation: bob 5s ease-in-out infinite;
}
.float-chip i { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); font-style: normal; }
.float-chip i svg { width: 18px; height: 18px; }
.float-chip small { display: block; font-weight: 500; color: var(--text-3); font-size: .74rem; }
.chip-1 { left: 0; top: 18%; }
.chip-2 { right: 0; bottom: 16%; animation-delay: -2.5s; }
@media (max-width: 480px) { .chip-1 { left: -4px; } .chip-2 { right: -4px; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } html { scroll-behavior: auto; } .btn:hover, .store-btn:hover, .card:hover { transform: none; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 110px 0; } }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.kicker { display: inline-block; color: var(--brand-2); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-2); font-size: 1.08rem; margin: 0; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--border); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 26px 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; }
.stat span { color: var(--text-3); font-size: .9rem; }

/* Feature cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(31, 28, 56, 0.85), rgba(23, 21, 42, 0.85));
  border: 1px solid var(--border); transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card h3 { font-size: 1.18rem; font-weight: 700; margin: 18px 0 8px; }
.card p { color: var(--text-2); margin: 0; font-size: .97rem; }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 14px 30px -12px rgba(139, 92, 246, 0.8);
}
.icon svg { width: 26px; height: 26px; }

/* Split showcase */
.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 70px; } .split.reverse > :first-child { order: 2; } }
.split h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.split p { color: var(--text-2); font-size: 1.05rem; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.showcase-img { border-radius: var(--radius-lg); border: 1px solid var(--border-strong); box-shadow: var(--shadow); margin: 0 auto; max-width: 380px; width: 100%; }

/* Screenshot gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 24px; margin: 0 -16px; scrollbar-width: thin; scrollbar-color: var(--brand) transparent; }
.gallery figure { margin: 0; flex: 0 0 auto; width: min(240px, 66vw); scroll-snap-align: center; }
.gallery img { border-radius: 22px; border: 1px solid var(--border); transition: transform .25s ease; }
.gallery figure:hover img { transform: translateY(-6px); }
.gallery figcaption { margin-top: 12px; text-align: center; color: var(--text-2); font-size: .9rem; font-weight: 600; }
@media (min-width: 1100px) { .gallery { justify-content: center; } }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-block; font-weight: 800; font-size: 2.6rem; line-height: 1;
  background: linear-gradient(135deg, var(--brand-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 500; color: var(--brand-2); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--text-2); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 52px 24px; text-align: center;
  background: radial-gradient(600px 300px at 20% 0%, rgba(232,121,249,.28), transparent 70%), linear-gradient(135deg, #2a1660 0%, #160d36 60%, #0f0a24 100%);
  border: 1px solid var(--border-strong);
}
@media (min-width: 760px) { .cta-band { padding: 72px 48px; } }
.cta-band img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--text-2); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-band .store-row { justify-content: center; }

/* Share (SMO) */
.share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.share span { color: var(--text-3); font-size: .9rem; margin-right: 4px; }
.share a, .share button {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-2); font: inherit;
}
.share a:hover, .share button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.share svg { width: 18px; height: 18px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 40px; position: relative; isolation: isolate; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 260px at 50% 0%, rgba(139, 92, 246, 0.3), transparent 70%); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin: 14px 0 12px; }
.page-hero p { color: var(--text-2); margin: 0 auto; max-width: 640px; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: .88rem; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }

/* ---------- Legal document ---------- */
.doc-wrap { display: grid; gap: 32px; padding-bottom: 90px; }
@media (min-width: 1000px) { .doc-wrap { grid-template-columns: 270px 1fr; gap: 48px; align-items: start; } }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
@media (min-width: 1000px) { .toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; } }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-2); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: .9rem; }
.toc a { color: var(--text-2); }
.toc a:hover { color: #fff; }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 20px; min-width: 0; }
@media (min-width: 720px) { .doc { padding: 44px 48px; } }
.doc h2 { font-size: 1.35rem; font-weight: 800; margin: 44px 0 14px; padding-top: 8px; scroll-margin-top: 90px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.05rem; font-weight: 700; margin: 26px 0 10px; color: var(--brand-3); }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc .in-short { background: rgba(139, 92, 246, 0.1); border-left: 3px solid var(--brand); padding: 12px 16px; border-radius: 0 12px 12px 0; color: var(--text); }
.doc .updated { display: inline-block; font-size: .85rem; color: var(--brand-3); background: rgba(139,92,246,.12); border: 1px solid var(--border-strong); padding: 4px 12px; border-radius: 999px; margin-bottom: 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text); background: rgba(139,92,246,.08); }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.address { font-style: normal; color: var(--text-2); }

/* ---------- Support ---------- */
.contact-card { display: grid; gap: 18px; align-items: center; text-align: center; padding: 36px 24px; }
@media (min-width: 760px) { .contact-card { grid-template-columns: auto 1fr auto; text-align: left; padding: 36px 40px; } }
.contact-card .icon { margin: 0 auto; width: 64px; height: 64px; border-radius: 20px; }
.contact-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--text-2); }
.email-link { font-weight: 700; color: var(--brand-3); word-break: break-all; }
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: .92rem; display: grid; gap: 8px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.note { font-size: .86rem; color: var(--text-3); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-grid p { color: var(--text-3); font-size: .93rem; max-width: 330px; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text-3); font-size: .94rem; }
.footer-grid ul a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-3); font-size: .85rem; }
.disclaimer { font-size: .8rem; color: var(--text-3); margin-top: 18px; max-width: 900px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); 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; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
