/* Com.app - single stylesheet, mobile first. Clean monochrome layout with a few details in the orange of the logo dot. */

:root {
  --bg: #FFFFFF;
  --soft: #F7F7F7;
  --soft-2: #F0F0F0;
  --ink: #0D0D0D;
  --muted: #5D5D5D;
  --subtle: #6E6E6E;
  --line: #E5E5E5;
  --field: #D4D4D4;
  --red: #E25112;        /* orange of the logo dot: large text and details */
  --red-ink: #C2440E;    /* same orange, deeper: small text and fills under white text (WCAG AA) */
  --blue: #054597;       /* logo blue */
  --error: #B3261E;

  --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: #fff;
  padding: 10px 16px;
  border-radius: 999px;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- 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: #fff; }
.btn-primary:hover { background: var(--red-ink); color: #fff; }
.btn-primary::after { content: "↗"; font-size: .9em; }
.btn-secondary { background: var(--soft-2); color: var(--ink); }
.btn-secondary:hover { background: #E4E4E4; 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: rgba(255, 255, 255, .92);
  -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: #fff; 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-ink); }
.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-ink);
}
.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-ink);
  color: #fff;
  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); }

.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-ink); }
.field-hint { display: block; margin-top: 6px; font-size: .8125rem; color: var(--subtle); }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: #fff;
  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; }

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

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--subtle);
}
.site-footer p + p { margin-top: 10px; }
.site-footer .footer-claim {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}
.footer-legal span { white-space: nowrap; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--muted); }

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

.cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  max-width: 520px;
  padding: 20px;
  background: #fff;
  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: #E4E4E4; }
@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: #fff;
  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: #333; }
.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-ink); }

/* ---------- Com.app additions ---------- */

.logo img { width: 120px; }
@media (min-width: 720px) { .logo img { width: 148px; } }

.header-actions { gap: 6px; }
.header-link {
  padding: 8px 12px;
  border: 0;
  background: none;
  font: 500 .9375rem/1.2 var(--sans);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
}
.header-link:hover { background: var(--soft-2); color: var(--ink); }
.site-header .btn-sm { display: inline-flex; }

.btn-block { width: 100%; }
.hero-actions.left { justify-content: flex-start; margin-top: 28px; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--red-ink); }

/* login dialog */
.dialog .field { margin-bottom: 16px; }
.dialog form { margin-top: 20px; }
.dialog .form-alert { margin: 0 0 16px; }
.dialog-note { margin-top: 18px; font-size: .9375rem; }
.dialog-note a { color: var(--ink); }

/* a day with Com.app */
.day {
  margin-top: 48px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.day h3 { font-size: 1.375rem; margin-bottom: 18px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.timeline .time { font-weight: 600; color: var(--red-ink); }
.timeline li > span:last-child { color: var(--muted); }
@media (min-width: 720px) {
  .day { padding: 36px 40px; }
  .timeline li { grid-template-columns: 180px 1fr; gap: 24px; }
}

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soft-2);
  font-size: 1.125rem;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--red-ink); color: #fff; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 720px; }

/* contacts */
.contact-list {
  margin: 0;
  padding: 8px 24px;
  list-style: none;
  background: var(--soft);
  border-radius: var(--radius-lg);
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list li > span:first-child { color: var(--subtle); }
.contact-list a { color: var(--ink); font-weight: 500; }

/* registration and profile */
.auth { padding-top: clamp(48px, 9vw, 112px); }
.auth h1 { font-size: clamp(2.25rem, 6.4vw, 3.5rem); line-height: 1.08; }
.auth-grid { display: grid; gap: 40px; }
@media (min-width: 1020px) {
  .auth-grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .auth-grid .section-head { margin-bottom: 0; }
}
.form-note { margin-top: 18px; font-size: .875rem; color: var(--subtle); }
.form-note a { color: var(--ink); }

.profile { max-width: 760px; }
.status {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 28px 24px;
  background: var(--soft);
  border-radius: var(--radius-lg);
}
.status h2 { font-size: 1.375rem; line-height: 1.25; margin-bottom: 6px; }
.status p { color: var(--muted); }
.status .btn { margin-top: 20px; }
.status-dot {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: #1E8E3E;
}
.status-warn .status-dot { background: var(--red); }
.status-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red-ink);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
}
.profile .form-alert { margin-top: 24px; }
.profile-help { margin-top: 32px; color: var(--subtle); }
.profile-help a { color: var(--ink); }

.footer-social a { color: var(--ink); }

/* =====================================================================
   Com.app v2: richer layout. Logo palette used as soft gradient art.
   ===================================================================== */

:root {
  --c-teal: #18B2AE;
  --c-blue: #3B4FA0;
  --c-purple: #6B3089;
  --c-magenta: #C10C74;
  --c-red: #E3161B;
  --c-orange: #E87806;
  --c-yellow: #F7B205;
  --shadow-mock: 0 1px 2px rgba(0,0,0,.06), 0 12px 24px rgba(16,24,40,.10), 0 40px 80px rgba(16,24,40,.16);
}

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

/* ---------- header: mobile menu and progress ---------- */
.site-header { border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--ink);
  font-size: 1.375rem;
  cursor: pointer;
}
@media (min-width: 1020px) { .menu-toggle { display: none; } }
@media (max-width: 419px) { .header-actions .header-link { display: none; } }
.mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.mobile-menu .wrap { display: grid; padding-top: 8px; padding-bottom: 16px; }
.mobile-menu a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: 0; }
@media (min-width: 1020px) { .mobile-menu { display: none !important; } }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--c-yellow), var(--c-orange), var(--c-red), var(--c-magenta), var(--c-purple), var(--c-blue), var(--c-teal));
}

/* ---------- buttons ---------- */
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--field); }
.btn-ghost:hover { background: var(--soft-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft-2); color: var(--ink); }
.btn .bi { font-size: 1.1em; }

/* ---------- reveal on scroll (only with JS and motion allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- hero ---------- */
.hero2 { position: relative; overflow: hidden; padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(38% 42% at 78% 30%, rgba(24,178,174,.28), transparent 70%),
    radial-gradient(34% 40% at 92% 62%, rgba(59,79,160,.22), transparent 70%),
    radial-gradient(30% 36% at 62% 70%, rgba(193,12,116,.18), transparent 70%),
    radial-gradient(32% 38% at 70% 8%, rgba(247,178,5,.26), transparent 70%),
    radial-gradient(30% 34% at 48% 40%, rgba(232,120,6,.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero2-inner { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1020px) { .hero2-inner { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.hero2 h1 { font-size: clamp(2.6rem, 7.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; }
.hero2 .hero-lead { margin: 24px 0 0; max-width: 560px; }
.hero2 .hero-actions { justify-content: flex-start; margin-top: 32px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  backdrop-filter: blur(6px);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(226,81,18,.15); }

.facts2 {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.facts2 li { padding: 22px 20px; background: rgba(255,255,255,.92); }
.facts2 .fact-num { font-size: clamp(2rem, 5vw, 2.75rem); }
.facts2 .fact-num b { color: var(--red); font-weight: 500; }
@media (min-width: 860px) { .facts2 { grid-template-columns: repeat(4, 1fr); } .facts2 li { padding: 28px; } }

/* ---------- section nav ---------- */
.section-nav {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-nav .wrap { display: flex; align-items: center; gap: 12px; }
.section-nav-label { flex: none; font-size: .8125rem; font-weight: 600; color: var(--subtle); }
.section-nav-links {
  display: flex;
  gap: 6px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.section-nav-links::-webkit-scrollbar { display: none; }
.section-nav-links a {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.section-nav-links a:hover { background: var(--soft-2); color: var(--ink); }
.section-nav-links a.active { background: var(--ink); color: #fff; }
html { scroll-padding-top: 128px; }

/* ---------- feature sections ---------- */
.feature { padding: clamp(72px, 10vw, 128px) 0; }
.feature-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1020px) {
  .feature-grid { grid-template-columns: 1fr 1.15fr; gap: 72px; }
  .feature-alt .feature-text { order: 2; }
}
.feature-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--c-orange), var(--c-magenta));
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.feature .eyebrow { color: var(--red-ink); font-weight: 600; }
.feature h2 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; }
.feature-lead { margin-top: 18px; font-size: 1.125rem; color: var(--muted); max-width: 540px; }
.ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .25em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(226,81,18,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23C2440E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.feature-text .btn { margin-top: 28px; }

.feature-art {
  position: relative;
  padding: clamp(20px, 4vw, 48px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}
.feature-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M0 0l60 104L120 0z' fill='%23fff' fill-opacity='.06'/%3E%3C/svg%3E");
  background-size: 120px 104px;
}
.art-orange  { background: linear-gradient(135deg, #F7B205 0%, #E87806 55%, #E25112 100%); }
.art-red     { background: linear-gradient(135deg, #E87806 0%, #E3161B 60%, #C10C74 100%); }
.art-magenta { background: linear-gradient(135deg, #E3161B 0%, #C10C74 50%, #6B3089 100%); }
.art-purple  { background: linear-gradient(135deg, #C10C74 0%, #6B3089 50%, #3B4FA0 100%); }
.art-teal    { background: linear-gradient(135deg, #3B4FA0 0%, #1E86B0 50%, #18B2AE 100%); }
.art-sun     { background: linear-gradient(135deg, #18B2AE 0%, #8DBE3C 50%, #F7B205 100%); }

/* ---------- product mockups ---------- */
.mock {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-mock);
  overflow: hidden;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #FAFAFA;
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #E0E0E0; }
.dots i:nth-child(1) { background: #FF5F57; } .dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.mock-title { flex: 1; font-size: .8125rem; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-tag { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--soft-2); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--subtle); }
.mock-body { padding: 16px; }
.mock-split { display: grid; grid-template-columns: 1fr; padding: 0; }
.mock-split .mock-main { padding: 14px; }
.mock-menu { display: none; margin: 0; padding: 10px 8px; list-style: none; border-right: 1px solid var(--line); background: #FBFBFB; }
.mock-menu li { padding: 7px 10px; border-radius: 8px; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.mock-menu li.active { background: rgba(226,81,18,.10); color: var(--red-ink); font-weight: 600; }
@media (min-width: 640px) { .mock-split { grid-template-columns: 170px 1fr; } .mock-menu { display: block; } }
.muted { color: var(--subtle); font-size: .8125rem; }
.mock-thumb {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 1.5rem;
  color: var(--ink);
}
.mock-note { margin-top: 10px; font-size: .75rem; color: var(--subtle); }

/* hero mock */
.mock-hero .mock-body { display: grid; gap: 14px; }
.mh-product { display: flex; gap: 12px; align-items: center; }
.mh-product strong { display: block; font-size: 1rem; }
.mh-markets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mh-market { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--soft); }
.mh-market .lbl { font-size: .75rem; color: var(--subtle); }
.mh-market b { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.mh-market .sent { font-size: .75rem; color: #1E8E3E; font-weight: 500; }
.mk { display: inline-flex; width: fit-content; padding: 1px 7px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .6875rem; font-weight: 600; }
.mh-alert { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #E8F5EC; color: #1E6B34; font-weight: 500; }
.hero2-visual { position: relative; }
.hero2-visual .mock { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
@media (max-width: 1019px) { .hero2-visual .mock { transform: none; } }

/* roles mock */
.mock-tabs { display: flex; gap: 4px; margin: 12px 14px 0; padding: 4px; width: fit-content; border-radius: 999px; background: var(--soft-2); }
.mock-tabs button { padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; font: 500 .8125rem/1.2 var(--sans); color: var(--muted); cursor: pointer; }
.mock-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.mock-roles .mock-split { margin-top: 12px; border-top: 1px solid var(--line); }
.mock-product { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.mock-product + .mock-product { margin-top: 10px; }
.mock-info strong { font-size: .9375rem; }
.mock-info dl { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 6px 0 0; font-size: .75rem; }
.mock-info dt { color: var(--subtle); }
.mock-info dd { margin: 0; }
.mock-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.act { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 52px; }
.act .bi { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: .9375rem; }
.act small { font-size: .625rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); }
.act .badge { position: absolute; top: -4px; right: 6px; min-width: 18px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .625rem; font-style: normal; font-weight: 600; text-align: center; }
.act-red .bi { background: #DC3545; } .act-yellow .bi { background: #F4B400; } .act-green .bi { background: #28A745; } .act-blue .bi { background: #17A2B8; } .act-grey .bi { background: #6C757D; }
.mock-roles .only-mag { display: none; }
.mock-roles[data-view="magazzino"] .only-dir { display: none; }
.mock-roles[data-view="magazzino"] .only-mag { display: revert; }
@media (min-width: 640px) { .mock-product { grid-template-columns: 48px 1fr auto; align-items: center; } .mock-actions { grid-column: auto; } }

/* ledger mock */
.ledger-head, .ledger-row, .ledger-group summary, .ledger-total { display: grid; grid-template-columns: 1fr 56px 96px; gap: 8px; align-items: center; }
.ledger-head { padding: 0 10px 6px; font-size: .6875rem; font-weight: 600; color: var(--subtle); text-transform: uppercase; }
.ledger-head span:nth-child(n+2), .ledger-row span:nth-child(n+2), .ledger-group summary span:nth-child(n+2), .ledger-total span:nth-child(n+2) { text-align: right; }
.ledger-group { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.ledger-group summary { padding: 10px; cursor: pointer; list-style: none; font-weight: 600; }
.ledger-group summary::-webkit-details-marker { display: none; }
.ledger-group summary span:first-child::before { content: "▸"; display: inline-block; width: 16px; color: var(--subtle); transition: transform .2s; }
.ledger-group[open] summary span:first-child::before { transform: rotate(90deg); }
.ledger-row { padding: 7px 10px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); background: #FCFCFC; }
.pos { color: #1E8E3E; } .neg { color: #C5221F; }
.ledger-total { margin-top: 4px; padding: 12px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; }

/* eval mock */
.eval-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--field); border-radius: 999px; color: var(--subtle); }
.eval-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.eval-info strong { display: block; }
.eval-nums { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, auto); gap: 0 12px; margin: 0; font-size: .75rem; }
.eval-nums dt { grid-row: 1; color: var(--subtle); }
.eval-nums dd { grid-row: 2; margin: 0; font-weight: 500; }
.eval-margin { text-align: right; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.eval-margin small { display: block; font-size: .75rem; font-weight: 500; }
.eval-margin.pos { color: #1E8E3E; } .eval-margin.neg { color: #C5221F; }
@media (min-width: 640px) { .eval-row { grid-template-columns: 48px 1.2fr 2fr auto; } .eval-nums { grid-column: auto; } }

/* monitor mock */
.mon-head, .mon-row { display: grid; grid-template-columns: 1.6fr .7fr .7fr 1.2fr; gap: 8px; align-items: center; }
.mon-head { padding: 0 4px 8px; font-size: .6875rem; font-weight: 600; text-transform: uppercase; color: var(--subtle); }
.mon-row { padding: 10px 4px; border-top: 1px solid var(--line); }
.mon-row.todo { background: rgba(247,178,5,.10); border-radius: 8px; }
.mon-name { display: flex; align-items: center; gap: 6px; font-weight: 500; min-width: 0; }
.mon-name .bi { font-size: 1.05rem; }
.mon-name em { font-style: normal; font-size: .625rem; padding: 0 5px; border-radius: 4px; background: var(--soft-2); color: var(--muted); }
.mon-row select { width: 100%; padding: 5px 6px; border: 1px solid var(--field); border-radius: 8px; background: #fff; font: inherit; font-size: .75rem; pointer-events: none; }
@media (max-width: 480px) { .mon-head span:nth-child(2), .mon-row > span:nth-child(2) { display: none; } .mon-head, .mon-row { grid-template-columns: 1.6fr .7fr 1.2fr; } }

/* tariff mock */
.tariff-status { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: var(--soft); font-weight: 500; transition: background-color .4s, color .4s; }
.tariff-status.alert { background: #FFF4E5; color: #9A4A00; }
.tariff-head, .tariff-row { display: grid; grid-template-columns: .8fr 1fr 1fr 1.1fr; gap: 8px; align-items: center; }
.tariff-head { padding: 0 6px 6px; font-size: .6875rem; font-weight: 600; text-transform: uppercase; color: var(--subtle); }
.tariff-row { padding: 12px 6px; border-top: 1px solid var(--line); }
.tariff-row b { font-size: 1rem; }
.tariff-row .changed { color: #C5221F; transition: color .4s; }
.tariff-row b.changed { color: #1E8E3E; }
.tariff-sent { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #E8F5EC; color: #1E6B34; font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.tariff-sent.show { opacity: 1; transform: none; }

/* idea card */
.idea-card { padding: 28px 24px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-mock); text-align: center; }
.idea-card > .bi { font-size: 2rem; color: var(--red); }
.idea-card p { margin-top: 12px; font-size: 1.25rem; line-height: 1.4; letter-spacing: -.015em; }
.idea-arrow { display: block; margin: 16px auto; color: var(--subtle); font-size: 1.25rem; }
.idea-result { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #E8F5EC; color: #1E6B34; }
.idea-result .bi { font-size: 1.25rem; }

/* ---------- tiles, steps, timeline ---------- */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
.section .eyebrow { color: var(--red-ink); font-weight: 600; }
.tiles { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.tile { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(16,24,40,.08); }
.tile > .bi { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(226,81,18,.10); color: var(--red-ink); font-size: 1.3rem; }
.tile h3 { margin: 18px 0 8px; font-size: 1.1875rem; letter-spacing: -.02em; }
.tile p { color: var(--muted); font-size: .9688rem; }
.tile a { color: var(--ink); }

.section-tint { background: linear-gradient(180deg, #fff 0%, #F7F7F5 100%); }
.steps2 { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 860px) { .steps2 { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.steps2 li { padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.steps2 .step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--c-orange), var(--c-magenta)); color: #fff; font-weight: 600; }
.steps2 h3 { font-size: 1.375rem; margin-bottom: 8px; }
.steps2 p { color: var(--muted); }
.day2 { margin-top: 24px; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.day2 h3 { display: flex; align-items: center; gap: 10px; font-size: 1.375rem; margin-bottom: 14px; }
.day2 h3 .bi { color: var(--c-yellow); }
.timeline2 { margin: 0; padding: 0; list-style: none; }
.timeline2 li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.timeline2 .time { font-weight: 600; color: var(--c-yellow); }
.timeline2 li > span:last-child { color: #CFCFCF; }
@media (min-width: 720px) { .day2 { padding: 36px 40px; } .timeline2 li { grid-template-columns: 160px 1fr; gap: 24px; } }

/* ---------- FAQ layout ---------- */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 1020px) { .faq-wrap { grid-template-columns: 4fr 7fr; gap: 72px; } .faq-wrap .section-head { margin-bottom: 0; } }

/* ---------- final CTA ---------- */
.cta-band { padding: 0 0 clamp(72px, 10vw, 120px); }
.cta-card {
  position: relative;
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  border-radius: 32px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(247,178,5,.55), transparent 60%),
    radial-gradient(60% 80% at 100% 0%, rgba(24,178,174,.55), transparent 60%),
    radial-gradient(70% 90% at 50% 110%, rgba(193,12,116,.65), transparent 60%),
    linear-gradient(135deg, #3B4FA0, #6B3089);
}
.cta-card h2 { font-size: clamp(2.1rem, 6vw, 3.5rem); line-height: 1.05; }
.cta-card h2 em { color: #FFD166; }
.cta-card p { margin: 16px auto 0; max-width: 560px; font-size: 1.125rem; color: rgba(255,255,255,.88); }
.cta-card .hero-actions { margin-top: 32px; justify-content: center; }
.cta-card .btn-primary { background: #fff; color: var(--ink); }
.cta-card .btn-primary:hover { background: var(--soft-2); }
.cta-card .btn-light { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.cta-card .btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.cta-mark { width: 72px; height: 72px; margin: 0 auto 20px; padding: 10px; border-radius: 20px; background: #fff; }

/* ---------- v2 fixes ---------- */
.feature { padding: clamp(56px, 8vw, 104px) 0; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
@media (min-width: 1020px) {
  .feature-alt .feature-grid { grid-template-columns: 1.15fr 1fr; }
}
/* product rows: actions always on their own line */
.mock-product, .mock-product { grid-template-columns: 48px 1fr !important; align-items: start; }
.mock-actions { grid-column: 1 / -1 !important; justify-content: flex-start; gap: 4px 10px; padding-top: 4px; border-top: 1px dashed var(--line); }
@media (min-width: 640px) { .mock-actions { padding-left: 60px; border-top: 0; padding-top: 0; } }
/* product evaluation rows */
.eval-row { grid-template-columns: 48px 1fr auto !important; }
.eval-nums { grid-column: 2 / -1 !important; }
.eval-margin { white-space: nowrap; }
.eval-info strong { white-space: nowrap; }
/* long-storage table */
.mon-head, .mon-row { grid-template-columns: 1.9fr .55fr .65fr 1.15fr; }
.mon-row > span { white-space: nowrap; }
.mon-name { white-space: nowrap; }
/* final call to action: cleaner gradient */
.cta-card {
  background:
    radial-gradient(55% 75% at 0% 0%, rgba(232,120,6,.70), transparent 62%),
    radial-gradient(55% 75% at 100% 0%, rgba(24,178,174,.60), transparent 62%),
    radial-gradient(70% 90% at 50% 115%, rgba(193,12,116,.70), transparent 62%),
    linear-gradient(135deg, #3B4FA0, #6B3089);
}
.eval-margin { grid-column: 3; grid-row: 1; align-self: center; }
.eval-nums { grid-row: 2; }
.mon-name { overflow: hidden; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-actions { padding-left: 0 !important; }
.act { min-width: 46px; }
@media (min-width: 640px) { .mock-actions { padding-left: 60px !important; } }
@media (max-width: 479px) { .hide-sm { display: none; } }
.act { flex: 1 1 0; min-width: 0; }
.act small { font-size: .5625rem; white-space: nowrap; }
@media (min-width: 640px) { .act { flex: 0 0 auto; min-width: 52px; } .act small { font-size: .625rem; } }
@media (max-width: 480px) {
  .mon-head, .mon-row { grid-template-columns: minmax(0, 1fr) auto 104px !important; }
  .mon-row select { font-size: .75rem; }
}
.mobile-menu .mobile-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; }
.mobile-menu .mobile-auth a { padding: 0; border: 0; }
.mobile-menu .mobile-auth .btn { display: inline-flex; padding: 12px 18px; }

/* ---------- v3: account links only in the menu and footer ---------- */
.menu-toggle { width: auto; gap: 6px; padding: 0 16px 0 12px; font: 500 .9375rem/1 var(--sans); }
.menu-toggle .bi { font-size: 1.25rem; }
@media (min-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: block !important; }
  .mobile-menu[hidden] { display: none !important; }
  .mobile-menu .wrap { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
  .mobile-menu .mobile-auth { grid-column: 1 / -1; display: flex; justify-content: flex-start; }
}
.footer-account .link-button { color: var(--ink); }

/* ---------- v3: "Vai a" ---------- */
.section-nav-current { display: none; }
@media (min-width: 1020px) {
  .section-nav-links { flex-wrap: nowrap; -webkit-mask-image: none; mask-image: none; }
  .section-nav-links a { padding: 7px 11px; font-size: .8438rem; }
}
@media (max-width: 1019px) {
  .section-nav .wrap { position: relative; display: block; }
  .section-nav-label { display: none; }
  .section-nav-current {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 12px 0;
    border: 0;
    background: none;
    font: 500 .9688rem/1.2 var(--sans);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
  }
  .section-nav-current strong { font-weight: 600; flex: 1; }
  .section-nav-current .bi { transition: transform .2s ease; }
  .section-nav-current[aria-expanded="true"] .bi { transform: rotate(180deg); }
  .section-nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gutter) 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(16,24,40,.12);
    max-height: 70vh;
    overflow-y: auto;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .section-nav-links.open { display: flex; }
  .section-nav-links a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  .section-nav-links a:last-child { border-bottom: 0; }
  .section-nav-links a.active { background: none; color: var(--red-ink); font-weight: 600; }
}

/* ---------- v3: contact section ---------- */
.contact-card { display: grid; gap: 32px; text-align: left; align-items: start; }
@media (min-width: 1020px) { .contact-card { grid-template-columns: 5fr 7fr; gap: 56px; } .contact-intro { position: sticky; top: 140px; } }
.contact-card .cta-mark { margin: 0 0 20px; }
.contact-card p { margin-left: 0; }
.contact-alt { margin-top: 24px !important; font-size: 1rem !important; }
.contact-alt a { color: #fff; font-weight: 600; }
.contact-form-card { background: #fff; color: var(--ink); box-shadow: var(--shadow-mock); }
.contact-form-card .btn-primary { background: var(--ink); color: #fff; }
.contact-form-card .btn-primary:hover { background: var(--red-ink); }
.contact-form-card .field-error { color: var(--error); }
.contact-form-card .form-success h3 { color: var(--ink); font-size: 1.75rem; }
.contact-form-card .form-success p { color: var(--muted); margin: 8px 0 0; }
.contact-form-card .check a { color: var(--ink); }

/* ---------- Full screen menu on phones and tablets (like openai.com) ---------- */
.mobile-menu:not([hidden]) {
  position: fixed; left: 0; right: 0; top: var(--menu-top, 64px); bottom: 0; z-index: 60;
  max-height: none; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch;
  animation: menuIn .22s ease;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mobile-menu .wrap { padding-top: 16px; padding-bottom: 48px; }
.mobile-menu .wrap > a { font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; padding: 12px 0; border-bottom: 0; color: var(--ink); }
.mobile-menu .mobile-auth { padding-top: 28px; }
html.menu-open { overflow: hidden; }
html.menu-open body { overflow: visible; }
html.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
.menu-toggle[aria-expanded="true"] { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) { .mobile-menu:not([hidden]) { animation: none; } }
/* Space and a separator between the menu entries and Accedi / Registrati */
.mobile-menu .mobile-auth { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
/* Texts inside the white form card on the purple band: dark, not white (the band sets white paragraphs) */
.cta-card .contact-form-card p { color: var(--muted); max-width: none; margin-left: 0; margin-right: 0; font-size: .95rem; }
.cta-card .contact-form-card .form-actions p { margin: 0; font-size: .875rem; color: var(--subtle); }
.cta-card .contact-form-card .form-success p { color: var(--muted); }
/* Amazon Service Provider Network badge in the footer */
.footer-spn a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; text-decoration: none; }
.footer-spn img { width: 150px; height: auto; filter: invert(1) brightness(.2); }
.footer-spn span { font-size: .9rem; }
.site-footer .footer-spn { margin: 20px 0 22px; }
.footer-spn span { color: var(--subtle); }
