/* The company site (drwop.com): the marketplace's brand (midnight #272757, coral #ff6b57), light and dark, phones first. */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #15151c;
  --muted: #5c5c6b;
  --line: #e4e2dd;
  --accent: #3550e6;
  --brand: #272757;
  --coral: #ff6b57;
  --ok: #18865a;
  --soft: #eceaf8;
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.06), 0 8px 24px rgba(20, 20, 40, 0.06);
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13;
    --surface: #17181e;
    --ink: #f3f3f6;
    --muted: #a6a7b4;
    --line: #272932;
    --accent: #8fa2ff;
    --ok: #4fd39a;
    --soft: #1f2030;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pulse { animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; border-radius: 8px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.sections { margin-left: auto; }
.sections ul { display: flex; gap: 4px; }
.sections a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.sections a:hover { color: var(--ink); background: var(--soft); }
.languages { display: flex; gap: 2px; font-size: 13px; font-weight: 700; }
.languages a, .languages span { display: inline-block; min-width: 32px; padding: 6px 6px; text-align: center; border-radius: 8px; text-decoration: none; color: var(--muted); }
.languages a:hover { background: var(--soft); color: var(--ink); }
.languages span { color: var(--ink); background: var(--soft); }
@media (max-width: 900px) { .sections { display: none; } .bar { justify-content: space-between; } }
@media (max-width: 420px) { .languages a, .languages span { min-width: 26px; padding: 6px 3px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--coral) 28%, transparent), transparent),
    radial-gradient(closest-side at 30% 70%, color-mix(in srgb, var(--accent) 26%, transparent), transparent);
  filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .phone { display: none; } }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 color-mix(in srgb, var(--coral) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); margin: 0 0 18px; font-weight: 850; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.button.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
@media (prefers-color-scheme: dark) { .button.primary { background: var(--accent); color: #0e0f13; } }
.button.ghost { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.button:hover { transform: translateY(-1px); }

/* The phone drawn in CSS */
.phone { justify-self: center; width: 270px; aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 42px; background: #111218; box-shadow: 0 30px 60px rgba(20, 20, 50, 0.25); transform: rotate(4deg); }
.phone-screen { height: 100%; border-radius: 34px; background: var(--bg); padding: 26px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ph-search { height: 34px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.ph-chips { display: flex; gap: 6px; }
.ph-chips span { height: 22px; flex: 1; border-radius: 999px; background: var(--soft); }
.ph-chips span:first-child { background: color-mix(in srgb, var(--accent) 30%, var(--soft)); }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.ph-card { background: var(--surface); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.ph-photo { flex: 1; min-height: 70px; border-radius: 10px; }
.ph-a { background: linear-gradient(135deg, #ff9f7a, #ff6b57); }
.ph-b { background: linear-gradient(135deg, #8fa2ff, #3550e6); }
.ph-c { background: linear-gradient(135deg, #7be0b5, #18865a); }
.ph-d { background: linear-gradient(135deg, #b4a7ff, #272757); }
.ph-line { height: 7px; border-radius: 4px; background: var(--soft); }
.w60 { width: 60%; } .w40 { width: 40%; background: color-mix(in srgb, var(--ink) 25%, transparent); }
.ph-tabs { display: flex; justify-content: space-around; padding: 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.ph-tabs span { width: 18px; height: 18px; border-radius: 6px; background: var(--soft); }
.ph-tabs .on { background: var(--brand); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 48px; }
.stats li { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stats strong { display: block; font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; }
.stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Sections */
.band { padding: 72px 0; }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.band h2 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 12px; max-width: 22ch; }
.intro { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0 0 32px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin: 16px 0 6px; }
.card p { margin: 0; color: var(--muted); }
.tile { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--soft); color: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.big { width: 40px; height: 40px; color: var(--coral); margin-bottom: 12px; }
.countries { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.countries li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); font-weight: 600; }
.code { display: inline-grid; place-items: center; width: 38px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.label { margin: 20px 0 8px; color: var(--muted); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li, .pills a { padding: 6px 14px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 14px; text-decoration: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--line); }
.step.done { border-top-color: var(--ok); }
.step.now { border-top-color: var(--coral); }
.dot { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); font-weight: 800; }
.done .dot { background: var(--ok); color: #fff; }
.now .dot { background: var(--coral); color: #fff; }
.step h3 { margin: 2px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.state { font-size: 12px !important; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink) !important; }

/* Document pages */
.doc-page { max-width: 780px; padding-top: 40px; padding-bottom: 72px; }
.crumb { color: var(--muted); font-size: 14px; }
.crumb a { color: var(--muted); }
.doc-page h1 { font-size: clamp(32px, 5vw, 46px); margin: 8px 0 6px; }
.updated { color: var(--muted); margin: 0 0 20px; }
.doc-page h2 { font-size: 22px; margin: 36px 0 8px; }
.doc-page p { margin: 0 0 12px; overflow-wrap: anywhere; }

/* Footer */
.foot { background: var(--brand); color: #d9d9ee; padding: 48px 0 28px; }
.foot .brand { color: #fff; }
.foot .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 32px; }
.tagline { margin: 8px 0 0; letter-spacing: 0.08em; color: #b9b9da; }
.foot-title { margin: 0 0 8px; color: #fff; font-weight: 700; }
.foot p { margin: 0; }
.foot-links li { margin: 4px 0; }
.foot-links a, .foot-links span { display: inline-block; min-height: 24px; }
.foot-links span { color: #9fa0c4; }
.copy { margin-top: 32px !important; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 14px; color: #9fa0c4; }

/* Phones: one centred column, the company as a card, the legal links as pills that wrap. */
@media (max-width: 800px) {
  .foot { padding: 36px 0 24px; text-align: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .foot-grid > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .foot-grid > div:nth-child(2) { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); line-height: 1.55; font-size: 15px; }
  .foot-grid > div:nth-child(2) .foot-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #b9b9da; }
  .foot-grid > nav .foot-title { display: none; }
  .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .foot-links li { margin: 0; }
  .foot-links a, .foot-links span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 15px; font-weight: 600; }
  .foot-links a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.18); }
  .foot-links span { background: rgba(255, 255, 255, 0.04); }
  .copy { margin-top: 20px !important; text-align: center; }
}
