/* AMZ Partner - single stylesheet, mobile first. Clean monochrome layout with a few details in the logo red. */

:root {
  --bg: #FFFFFF;
  --soft: #F7F7F7;
  --soft-2: #F0F0F0;
  --ink: #0D0D0D;
  --muted: #5D5D5D;
  --subtle: #6E6E6E;
  --line: #E5E5E5;
  --field: #D4D4D4;
  --red: #E00814;        /* logo red: keywords, numbers, small details */
  --error: #B3261E;
  /* theme tokens (27/10/2026): light here, dark below when the device asks for it, as on comiteg.it */
  --surface: #FFFFFF;
  --soft-3: #E4E4E4;
  --text2: #333333;
  --on: #FFFFFF;
  --brand: #E00814;      /* "Contact" in the menu */
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --section: clamp(80px, 12vw, 160px);
  --radius: 12px;
  --radius-lg: 20px;
}

:lang(zh) {
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:lang(zh) body, body:lang(zh) { letter-spacing: 0; }

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

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; font-weight: 600; }
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--red);
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.btn-primary { background: var(--ink); color: var(--on); }
.btn-primary:hover { background: var(--red); color: var(--on); }
.btn-primary::after { content: "↗"; font-size: .9em; }
.btn-secondary { background: var(--soft-2); color: var(--ink); }
.btn-secondary:hover { background: var(--soft-3); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
.btn-sm::after { content: none; }
.btn[disabled] { opacity: .55; cursor: progress; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.logo img { width: 128px; }
@media (min-width: 720px) { .logo img { width: 140px; } }

.nav { display: none; }
.nav a {
  font-size: .9375rem;
  text-decoration: none;
  color: var(--ink);
}
.nav a:hover { color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: flex;
  padding: 3px;
  background: var(--soft-2);
  border-radius: 999px;
}
.lang a {
  display: inline-block;
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
}
.lang a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.lang a:not([aria-current="true"]):hover { color: var(--ink); }

.header-cta { display: none; }
@media (min-width: 720px) { .header-cta { display: inline-flex; } }
@media (min-width: 1020px) { .nav { display: flex; gap: 32px; } }

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

.section { padding: var(--section) 0; }
.section-soft, .section-dark { background: var(--bg); }

.eyebrow {
  margin-bottom: 16px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--subtle);
}
.eyebrow { color: var(--red); }
.eyebrow span { color: var(--subtle); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 {
  font-size: clamp(2rem, 5.6vw, 3.25rem);
  line-height: 1.1;
}
:lang(zh) .section-head h2 { line-height: 1.3; }
.section-head p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 620px;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(72px, 14vw, 180px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  line-height: 1.04;
}
:lang(zh) .hero h1 { line-height: 1.2; }
.hero-lead {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--muted);
}
.hero-lead strong { color: var(--ink); font-weight: 500; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

/* ---------- Facts ---------- */

.band { padding-bottom: clamp(40px, 6vw, 72px); }
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 24px 20px;
  background: var(--soft);
  border-radius: var(--radius);
}
.fact-num {
  display: block;
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.fact-num b { font-weight: 500; color: var(--red); }
.fact-label {
  display: block;
  margin-top: 10px;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--muted);
}
@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .facts li { padding: 32px 28px; }
}

/* ---------- Problems ---------- */

.problems {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.problem {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--soft);
  border-radius: var(--radius);
}
.problem-tag {
  font-size: .875rem;
  font-weight: 500;
  color: var(--subtle);
}
.problem-tag i { display: none; }
.problem blockquote {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
:lang(zh) .problem blockquote { letter-spacing: 0; line-height: 1.7; }
@media (min-width: 720px) {
  .problems { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1020px) {
  .problems { grid-template-columns: repeat(6, 1fr); }
  .problem { grid-column: span 2; padding: 32px 28px; }
  .problem:nth-child(4), .problem:nth-child(5) { grid-column: span 3; }
}

/* ---------- Services ---------- */

.services {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service-num {
  font-size: .875rem;
  font-weight: 600;
  color: var(--red);
}
.service h3 {
  margin: 28px 0 16px;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.service ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.service li {
  padding: 6px 0;
  font-size: 1rem;
  color: var(--muted);
}
@media (min-width: 720px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1020px) {
  .services { grid-template-columns: repeat(6, 1fr); }
  .service { grid-column: span 2; padding: 32px 28px; }
  .service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
}

/* ---------- Method ---------- */

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding: 28px 24px;
  background: var(--soft);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--on);
  font-size: .875rem;
  font-weight: 500;
}
.step h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 10px; }
.step p { color: var(--muted); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step { padding: 32px 28px; }
  .step-num { margin-bottom: 64px; }
}

/* ---------- Why us ---------- */

.reasons {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.reason {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.reason h3 {
  margin-bottom: 8px;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.reason p { color: var(--muted); max-width: 520px; }
@media (min-width: 860px) {
  .reason { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; padding: 32px 0; }
  .reason h3 { margin: 0; }
}

.placeholder {
  margin-top: 40px;
  padding: 28px 24px;
  border: 1px dashed var(--field);
  border-radius: var(--radius);
  color: var(--muted);
}
.placeholder h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 6px; }

/* ---------- Markets ---------- */

.markets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.market {
  padding: 24px 20px;
  background: var(--soft);
  border-radius: var(--radius);
}
.market-name {
  display: block;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.market-domain {
  display: block;
  margin-top: 4px;
  font-size: .875rem;
  color: var(--subtle);
}
.markets-more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.markets-more li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .9375rem;
}
.markets-more li span { color: var(--subtle); }
.market { border-top: 3px solid var(--red); }
.markets-note { margin-top: 28px; color: var(--muted); max-width: 620px; }
@media (min-width: 860px) {
  .markets { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .market { padding: 32px 28px; }
  .market-name { font-size: 1.75rem; }
}

/* ---------- Contact ---------- */

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1020px) {
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .contact-grid .section-head { position: sticky; top: 112px; margin-bottom: 0; }
}

.form-card {
  padding: 28px 20px;
  background: var(--soft);
  border-radius: var(--radius-lg);
}
@media (min-width: 720px) { .form-card { padding: 40px; } }

.form-grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .field-full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: .9375rem;
  font-weight: 500;
}
.req { color: var(--red); }
.field-hint { display: block; margin-top: 6px; font-size: .8125rem; color: var(--subtle); }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--field);
  border-radius: var(--radius);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #737373; }
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230D0D0D' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #A3A3A3; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(13, 13, 13, .12);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error {
  display: block;
  margin-top: 6px;
  font-size: .875rem;
  color: var(--error);
}
.field-error:empty { display: none; }

.field .check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .9375rem;
  font-weight: 400;
  color: var(--muted);
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.form-actions .btn { flex: 1 1 100%; }
.form-actions p { font-size: .875rem; color: var(--subtle); }
@media (min-width: 520px) { .form-actions .btn { flex: 0 0 auto; } }

.form-alert {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #FCECEB;
  color: var(--error);
  font-size: .9375rem;
}

.form-success { padding: 8px 0; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 2rem; line-height: 1.15; margin-bottom: 12px; }
.form-success p { color: var(--muted); font-size: 1.0625rem; }

/* ---------- Cookie banner ---------- */

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  max-width: 520px;
  padding: 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
  font-size: .875rem;
  line-height: 1.55;
}
.cookie[hidden] { display: none; }
.cookie p { color: var(--muted); }
.cookie a { color: var(--ink); }
.cookie-actions { display: flex; gap: 8px; margin-top: 16px; }
.cookie-actions .btn {
  flex: 1 1 0;
  min-height: 42px;
  background: var(--soft-2);
  color: var(--ink);
  font-size: .9375rem;
}
.cookie-actions .btn:hover { background: var(--soft-3); }
@media (min-width: 640px) { .cookie { left: 24px; bottom: 24px; } }

/* ---------- WeChat dialog (shown again when the WeChat ID is available) ---------- */

.dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.dialog::backdrop { background: rgba(0, 0, 0, .35); }
.dialog h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 10px; padding-right: 32px; }
.dialog p { color: var(--muted); }
.wechat-id {
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--soft);
  border-radius: var(--radius);
  font-weight: 500;
  word-break: break-all;
}
.dialog-actions { display: flex; gap: 8px; }
.dialog-actions .btn { flex: 1 1 0; }
.dialog-actions .btn-primary::after { content: none; }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft-2);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Legal pages ---------- */

.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); line-height: 1.1; }
.legal h2 { margin: 48px 0 12px; font-size: 1.375rem; line-height: 1.3; }
.legal h3 { margin: 28px 0 8px; font-size: 1.0625rem; }
.legal p, .legal li { color: var(--text2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal code { font-size: .9em; background: var(--soft-2); padding: 1px 6px; border-radius: 4px; }
.legal-updated { margin-top: 12px; font-size: .875rem; color: var(--subtle) !important; }
.legal .eyebrow { color: var(--red); }

/* ---------- Footer in the style of the new comiteg.it (dark, mono column titles, a Comiteg service; written by footer.py) ---------- */
.site-footer { background: #08090A; color: #A9B0BA; padding: 64px 0 28px; font-size: .88rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-about { display: grid; gap: 18px; align-content: start; justify-items: start; }
.footer-claim { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; color: #fff; }
.footer-claim em { font-style: normal; color: #FF6B72; }
.footer-h { margin: 0 0 14px; font: 500 .72rem/1.3 "Geist Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: #E6E8EB; }
.footer-items { display: grid; gap: 6px 28px; }
.footer-item { display: block; padding: 4px 0; }
.footer-item strong { display: block; color: #fff; font-weight: 500; font-size: .9rem; }
.footer-item span { display: block; font-size: .8rem; color: #8E949C; }
.footer-item:hover strong { color: #FF6B72; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; margin-top: 40px; }
.footer-col { display: grid; gap: 9px; align-content: start; justify-items: start; }
.footer-col a, .footer-col .link-button { color: #A9B0BA; font-size: .88rem; text-decoration: none; text-align: left; }
.footer-col a:hover, .footer-col .link-button:hover { color: #fff; }
.footer-col .footer-named { display: grid; gap: 1px; }
.footer-col .footer-named strong { color: #fff; font-weight: 500; }
.footer-col .footer-named span { font-size: .78rem; color: #8E949C; }
/* the Comiteg group line, with the C mark of comiteg.it */
.footer-group { display: flex; align-items: center; gap: 16px; margin-top: 44px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; transition: border-color .2s, background .2s; }
.footer-group:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.03); }
.footer-group > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.footer-group strong { color: #fff; font-weight: 500; }
.footer-group > span:nth-child(2) > span { font-size: .82rem; color: #8E949C; }
.footer-group .bi { color: #8E949C; }
.footer-group:hover .bi { color: #FF6B72; }
.footer-mark { flex: none; width: 34px; height: 34px; background: #fff; -webkit-mask: url(/assets/comiteg-mark.png) center / contain no-repeat; mask: url(/assets/comiteg-mark.png) center / contain no-repeat; }
.footer-bottom { margin-top: 28px; display: grid; gap: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; font-size: .8rem; color: #8E949C; }
.footer-guide { color: #A9B0BA !important; }
.footer-guide .bi { font-size: .7rem; }
.footer-legal { margin: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-legal span span { white-space: nowrap; }
@media (min-width: 640px) { .footer-items { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 36px; } }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--ink); }
.site-footer .btn-light { background: #fff; color: #0D0D0D; gap: 8px; }
.site-footer .btn-light:hover { background: var(--soft-2); color: var(--ink); }
.footer-col a, .footer-col .link-button { font: inherit; font-size: .88rem; }

/* Markets: every country with the same weight, flag and link to its Amazon store (24/10/2026) */
.markets-all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.markets-all li { display: flex; }
.markets-all .market { flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.markets-all .market:hover { border-color: var(--ink); box-shadow: 0 6px 18px rgba(13,13,13,.06); }
.markets-all .market-flag { grid-row: 1 / 3; width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.markets-all .market-name { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.markets-all .market-domain { margin-top: 0; font-size: .8125rem; }
@media (min-width: 640px) { .markets-all { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .markets-all { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } .markets-all .market { padding: 18px; } .markets-all .market-name { font-size: 1.0625rem; } }

/* =====================================================================
   27/10/2026, same work as renegadeos.it: light or dark like the device (switch in the menu), type and labels
   as on comiteg.it, the same menu (the sections, Contact apart, language and theme). The header is written by header.py.
   ===================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090A; --surface: #0F1011; --soft: #141516; --soft-2: #1C1D1F; --soft-3: #26272A;
    --ink: #F7F8F8; --text2: #D0D6E0; --muted: #A3A9B2; --subtle: #8A8F98; --line: #1F2022; --field: #2E2F33;
    --on: #08090A; --red: #FF4B55; --brand: #FF4B55; --error: #FF6B62;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090A; --surface: #0F1011; --soft: #141516; --soft-2: #1C1D1F; --soft-3: #26272A;
  --ink: #F7F8F8; --text2: #D0D6E0; --muted: #A3A9B2; --subtle: #8A8F98; --line: #1F2022; --field: #2E2F33;
  --on: #08090A; --red: #FF4B55; --brand: #FF4B55; --error: #FF6B62;
  color-scheme: dark;
}
body { transition: background-color .3s, color .3s; }
/* the logo, drawn in the page (header.py): red square with the white "A", "AMZ" in red, "Partner" in the text colour */
.logo { flex-direction: row; align-items: center; gap: 9px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-text { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.logo-text b { margin-right: 3px; font-weight: 800; color: #E00814; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-text b { color: #FF3B47; } }
:root[data-theme="dark"] .logo-text b { color: #FF3B47; }
.site-footer { border-top: 1px solid var(--line); }

/* ---------- type and labels as on comiteg.it ---------- */
.eyebrow { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
:lang(zh) .eyebrow { font-family: var(--sans); font-size: .875rem; letter-spacing: .04em; }
.hero h1, .section-head h2 { font-weight: 500; letter-spacing: -0.035em; }
:lang(zh) .hero h1, :lang(zh) .section-head h2 { letter-spacing: 0; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--ink); color: var(--bg); opacity: .88; }
.btn-secondary { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- header: the same as comiteg.it ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 64px; gap: 16px; }
.nav { display: none; align-items: center; gap: 26px; margin-left: auto; }
.nav .nav-link {
  display: inline-flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--subtle); text-decoration: none;
  transition: color .15s;
}
.nav .nav-link:hover { color: var(--ink); }
.nav .nav-contact { font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.nav .nav-contact:hover { color: var(--brand); opacity: .8; }
:lang(zh) .nav .nav-link { font-family: var(--sans); font-size: 13px; letter-spacing: .04em; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.thm-group, .lang { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: none; }
.thm { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--subtle); cursor: pointer; transition: color .15s, background-color .15s; }
.thm:hover { color: var(--ink); }
.thm[aria-pressed="true"], .thm[aria-pressed="true"]:hover { background: var(--ink); color: var(--bg); }
.lang a { min-width: 32px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--subtle); box-shadow: none; text-decoration: none; }
.lang a[lang="zh-Hans"] { font-family: var(--sans); font-size: 12px; letter-spacing: 0; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.lang a:not([aria-current="true"]):hover { color: var(--ink); }
.header-tools .thm-group, .header-tools .lang { display: none; }
.header-legal .header-tools .thm-group, .header-legal .header-tools .lang { display: inline-flex; }
@media (max-width: 419px) { .header-legal .header-tools .thm-group { display: none; } }
@media (min-width: 1020px) {
  .nav { display: flex; }
  .header-tools { margin-left: 12px; }
  .header-tools .thm-group, .header-tools .lang { display: inline-flex; }
}

/* menu button on phones: two lines, an X when the menu is open */
.burger { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.burger span { grid-area: 1 / 1; display: block; width: 22px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .3s ease; }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
@media (min-width: 1020px) { .burger { display: none; } }

/* ---------- full screen menu on phones, as on comiteg.it ---------- */
.mob { position: fixed; inset: 64px 0 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); animation: mob-in .2s ease; }
.mob[hidden] { display: none; }
@keyframes mob-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mob-inner { min-height: 100%; display: flex; flex-direction: column; padding: 24px 24px calc(32px + env(safe-area-inset-bottom)); }
.mob-item { display: flex; align-items: center; padding: 12px 0; font: 500 20px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.mob-item:hover { color: var(--ink); }
:lang(zh) .mob-item { font-family: var(--sans); letter-spacing: .04em; }
.mob-space { flex: 1; min-height: 96px; display: flex; align-items: center; }
.mob-contact, .mob-contact:hover { font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mob-foot { display: grid; gap: 16px; }
.mob-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mob-row > span { min-width: 52px; font-size: 12px; color: var(--subtle); }
.mob-row .lang a { min-height: 30px; padding: 0 12px; }
.thm-labels .thm { width: auto; height: 30px; display: inline-flex; gap: 6px; padding: 0 12px; font-size: 12px; }
html.mob-open { overflow: hidden; }
html.mob-open body { overflow: visible; }
html.mob-open .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) { .mob { animation: none; } .burger span { transition: none; } }

/* =====================================================================
   Cards like comiteg.it (27/10/2026, written by cards.py): soft gradient, icon in a circle, label in Geist Mono,
   big title, text, link with the arrow in a black circle. On phones each group scrolls sideways with dots (main.js),
   on computers the cards sit in a grid. The colours stay the same on the dark theme, as on comiteg.it.
   ===================================================================== */
.cards {
  list-style: none; display: flex; gap: 12px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 82%; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 250px; padding: 24px;
  border-radius: 16px; color: #0B0B0C; transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
@media (min-width: 768px) {
  .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
  .card { min-height: 280px; padding: 28px; }
}
@media (min-width: 1020px) {
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.g-lilac { background: linear-gradient(180deg, #D4E4FF, #ECE4FB); }
.g-sky   { background: linear-gradient(180deg, #BFE6FF, #E3F4FF); }
.g-mint  { background: linear-gradient(180deg, #C9F0DD, #E8F8EF); }
.g-peach { background: linear-gradient(180deg, #FFD9B0, #FBEBDA); }
.g-pink  { background: linear-gradient(180deg, #FFD3DC, #FAE8EE); }
.g-gold  { background: linear-gradient(180deg, #F3D98B, #ECC66F); }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.6); color: #0B0B0C; }
.card-kicker { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(11,11,12,.6); }
:lang(zh) .card-kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .04em; }
.card-title { margin: 24px 0 0; font-size: clamp(1.3rem, 2.4vw, 1.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.022em; color: #0B0B0C; }
:lang(zh) .card-title { line-height: 1.4; letter-spacing: 0; }
blockquote.card-title { margin-left: 0; margin-right: 0; }
.card-text { margin-top: 12px; font-size: 15px; line-height: 1.5; color: rgba(11,11,12,.72); }
.card-list { list-style: none; display: grid; gap: 6px; margin: 14px 0 0; padding: 0; font-size: 15px; line-height: 1.4; color: rgba(11,11,12,.72); }
.card-list li { position: relative; padding-left: 14px; }
.card-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: rgba(11,11,12,.45); }
.card-go { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; color: #0B0B0C; text-decoration: none; }
.card-go:hover { color: #0B0B0C; }
.card-arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0B0B0C; color: #FFFFFF; transition: transform .2s ease; }
.card-go:hover .card-arrow { transform: translateX(4px); }
/* dots under a row on phones */
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 22%, transparent); cursor: pointer; transition: all .3s; }
.dots button.on { width: 18px; background: var(--ink); }
@media (min-width: 768px) { .dots { display: none; } }

/* =====================================================================
   Neutral cards, as the panels comiteg.it uses most (27/10/2026): light or dark like the theme, no bright colours,
   the icon in the red of the logo. Coloured cards stay on Problems and Why us (like the doors and "Noi" of comiteg.it).
   ===================================================================== */
/* Services: panels with the icon next to the title */
.cards-panel .card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-content: start;
  background: linear-gradient(180deg, var(--soft), var(--surface)); border: 1px solid var(--line); color: var(--ink); min-height: 0;
}
.cards-panel .card:hover { transform: none; border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.cards-panel .card-top { grid-column: 1; }
.cards-panel .card-ico { width: auto; height: auto; background: none; color: var(--red); }
.cards-panel .card-ico svg { width: 20px; height: 20px; }
.cards-panel .card-title { grid-column: 2; align-self: center; margin: 0; font-size: 1.125rem; color: var(--ink); }
.cards-panel .card-list { grid-column: 1 / -1; color: var(--muted); }
.cards-panel .card-list li::before { background: var(--red); }
.cards-panel .card-go { grid-column: 1 / -1; color: var(--ink); align-self: end; }
.cards-panel .card-go:hover { color: var(--ink); }
.cards-panel .card-arrow { background: var(--ink); color: var(--bg); }
@media (min-width: 768px) { .cards-panel .card { min-height: 300px; } }

/* How it works: a line with a point for each step, the first one red (as the Metodo of comiteg.it);
   on phones each step is a card that scrolls sideways */
.cards-steps .card {
  position: relative; min-height: 0; padding: 52px 24px 24px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink);
}
.cards-steps .card:hover { transform: none; }
.cards-steps .card::before { content: ""; position: absolute; left: 24px; right: 0; top: 28px; height: 1px; background: var(--line); }
.cards-steps .card::after { content: ""; position: absolute; left: 24px; top: 23px; width: 10px; height: 10px; border-radius: 50%; background: var(--subtle); }
.cards-steps .card:first-child::after { background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.cards-steps .card-top { gap: 10px; }
.cards-steps .card-ico { width: auto; height: auto; background: none; color: var(--red); }
.cards-steps .card-kicker { color: var(--subtle); }
.cards-steps .card-title { margin-top: 16px; font-size: 1.25rem; color: var(--ink); }
.cards-steps .card-text { color: var(--muted); }
@media (min-width: 768px) {
  .cards-steps { gap: 0; }
  .cards-steps .card { padding: 40px 28px 0 0; border: 0; border-radius: 0; background: none; }
  .cards-steps .card::before { left: 0; top: 12px; }
  .cards-steps .card::after { left: 0; top: 7px; }
}

/* The numbers: one panel with thin dividers (as "Cosa cambia per te" of comiteg.it) */
.facts { gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, var(--soft), var(--surface)); }
.facts li { background: none; border-radius: 0; box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); }
.fact-label { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
:lang(zh) .fact-label { font-family: var(--sans); font-size: .875rem; letter-spacing: 0; text-transform: none; }
@media (min-width: 860px) { .facts { gap: 0; } }

/* The markets: neutral panels, the red line on top goes */
.market { border-top: 0; border: 1px solid var(--line); background: linear-gradient(180deg, var(--soft), var(--surface)); transition: border-color .2s; }
.market:hover { border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.cards-panel .card { grid-template-rows: auto auto 1fr; }
.cards-panel .card-go { align-self: end; }
/* dividers of the numbers panel: only between the cells */
.facts li { box-shadow: none; }
.facts li:nth-child(2n) { border-left: 1px solid var(--line); }
.facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .facts li:nth-child(n+3) { border-top: 0; }
  .facts li + li { border-left: 1px solid var(--line); }
}
