/* DelDel website. One stylesheet for every page; light and dark themes. */

:root {
  --bg: #fffbfa;
  --surface: #ffffff;
  --surface-2: #fff1f1;
  --text: #17121a;
  --muted: #5d5664;
  --border: #ece4e6;
  --brand: #d91f35;
  --brand-text: #c01a2f;
  --brand-soft: rgba(217, 31, 53, 0.09);
  --on-brand: #ffffff;
  --shadow: 0 18px 50px rgba(60, 10, 20, 0.08);
  --hero-glow: radial-gradient(70% 60% at 80% 0%, rgba(241, 50, 63, 0.16), transparent 70%);
  --radius: 20px;
  --max: 1120px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d0b10;
  --surface: #17141b;
  --surface-2: #211b24;
  --text: #f6f1f3;
  --muted: #b6adb8;
  --border: #2e2832;
  --brand: #d91f35;
  --brand-text: #ff7380;
  --brand-soft: rgba(255, 92, 108, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --hero-glow: radial-gradient(70% 60% at 80% 0%, rgba(241, 50, 63, 0.22), transparent 70%);
  color-scheme: dark;
}

/* Without a saved choice (or without JavaScript), follow the system. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0b10;
    --surface: #17141b;
    --surface-2: #211b24;
    --text: #f6f1f3;
    --muted: #b6adb8;
    --border: #2e2832;
    --brand-text: #ff7380;
    --brand-soft: rgba(255, 92, 108, 0.12);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --hero-glow: radial-gradient(70% 60% at 80% 0%, rgba(241, 50, 63, 0.22), transparent 70%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav { display: none; margin-left: auto; gap: 4px; }
.nav a, .menu-panel a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover, .menu-panel a:hover { color: var(--text); background: var(--brand-soft); }
.nav a[aria-current="page"] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 860px) {
  .nav { display: flex; }
  .header-actions { margin-left: 8px; }
  .menu { display: none; }
}

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
/* The toggle needs JavaScript; without it the site follows the system theme. */
html:not(.js) .theme-toggle { display: none; }

.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
  display: grid; padding: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 28px rgba(217, 31, 53, 0.28); }
.btn-primary:hover { background: #c41a2f; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 0.92rem; }
.btn[aria-disabled="true"] { opacity: 0.75; cursor: default; transform: none; }
.btn-label { display: grid; line-height: 1.15; text-align: left; }
.btn-label small { font-weight: 500; font-size: 0.72rem; opacity: 0.85; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Home: hero ---------- */

.hero { position: relative; padding: 56px 0 40px; background: var(--hero-glow); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 72px; } .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-text);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: 0.85rem; margin-bottom: 20px;
}
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 36em; margin-bottom: 28px; }
.hero h1 .accent { color: var(--brand-text); }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 380px; }
.hero-visual img {
  width: min(46%, 250px); border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.hero-visual img:first-child { transform: rotate(-5deg) translate(18px, 26px); }
.hero-visual img:last-child { transform: rotate(5deg) translate(-18px, -8px); }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-alt { background: var(--surface-2); }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.card p { color: var(--muted); margin: 0; }
.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand-text);
}
.card-icon svg { width: 24px; height: 24px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  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 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks strong { display: block; }
.checks span { color: var(--muted); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 16px;
  overflow-x: auto; padding: 4px 16px 20px; margin: 0 -16px;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.gallery figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; text-align: center; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800;
}
.steps p { color: var(--muted); margin: 0; }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 14px 28px 14px 0; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.5rem; font-weight: 400; color: var(--brand-text);
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { color: var(--muted); padding-bottom: 14px; }
.faq details > div p:last-child { margin-bottom: 0; }

.languages { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.languages li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.9rem; }

.cta {
  text-align: center; border-radius: 28px; padding: 48px 24px;
  background: radial-gradient(120% 140% at 85% 10%, #3a0d16 0%, #16090d 55%, #0b0709 100%); color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: #f0d6da; max-width: 560px; margin: 0 auto 26px; }
.cta .store-buttons { justify-content: center; }
.cta .btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.22); }

/* ---------- Documents (privacy, terms, support, ...) ---------- */

.page-head { padding: 48px 0 24px; background: var(--hero-glow); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-head p { color: var(--muted); max-width: 46em; margin: 0; }
.updated { font-size: 0.9rem; font-weight: 600; color: var(--brand-text); margin-top: 12px !important; }

.doc { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 1000px) { .doc { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
  .toc p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); }
  .toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
  .toc a { display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 6px 10px; border-radius: 8px; }
  .toc a:hover { color: var(--text); background: var(--brand-soft); }
}
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--brand-text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose th { font-weight: 700; background: var(--surface-2); }
.note { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 14px; padding: 16px 18px; margin: 0 0 1.2em; }
.note p:last-child { margin: 0; }
.contact-card { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 0 0 1.2em; }
.contact-card a { font-weight: 700; font-size: 1.1rem; word-break: break-all; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--brand-text); text-decoration: underline; }
.footer-about p { color: var(--muted); max-width: 30em; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- 404 ---------- */

.not-found { text-align: center; padding: 96px 0; }
.not-found img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; }
.not-found .lead { margin-inline: auto; }
.not-found .store-buttons { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .toc, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}
