/* Community Advice s.r.o. — ICANN-accredited registrar
   Design system: light, colourful, image-rich. Static only. */

:root {
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --indigo-light: #eef2ff;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --amber: #f59e0b;
  --rose: #e11d48;
  --ink: #0f172a;
  --slate: #475569;
  --slate-light: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(15, 23, 42, 0.15);
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

p { color: var(--slate); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  display: grid; place-items: center; color: #fff; font-weight: 800;
}
.brand small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--slate-light); letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--indigo); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--indigo); color: #fff; font-weight: 700;
  padding: 11px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--indigo-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--indigo); box-shadow: none; border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--indigo-light); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--teal-light), transparent 60%),
    radial-gradient(900px 500px at 5% 110%, var(--indigo-light), transparent 60%),
    var(--bg-soft);
  padding: 84px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--teal);
  font-weight: 700; font-size: 0.82rem; padding: 7px 14px; border-radius: 999px;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 { margin: 0 0 18px; }
.hero p.lead { font-size: 1.18rem; color: var(--slate); max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3; background: #fff;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Trust bar ---------- */
.trustbar { background: #fff; border-bottom: 1px solid var(--line); }
.trustbar .container { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: center; padding: 22px 24px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--slate); font-weight: 600; font-size: 0.92rem; }
.trust-item svg { color: var(--teal); flex: none; }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
.section-head { text-align: center; max-width: 56ch; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { font-size: 1.08rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 16px; color: #fff;
}
.ico.i1 { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.ico.i2 { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.ico.i3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.ico.i4 { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.ico.i5 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.ico.i6 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; font-size: 0.96rem; }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.92rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev { direction: rtl; } .split.rev > * { direction: ltr; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.split ul { list-style: none; padding: 0; margin: 20px 0 0; }
.split li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--slate); }
.split li svg { color: var(--teal); flex: none; margin-top: 3px; }

/* ---------- Soft band ---------- */
.band { background: var(--bg-soft); }
.band-indigo {
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  color: #fff;
}
.band-indigo h2, .band-indigo p { color: #fff; }
.band-indigo p { opacity: 0.92; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band-indigo .btn { background: #fff; color: var(--indigo); }
.band-indigo .btn:hover { background: #f1f5f9; }

/* ---------- Steps (ERRP timeline) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative;
}
.step .num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--indigo-light);
  color: var(--indigo); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px;
}
.step h4 { margin: 0 0 6px; }
.step p { margin: 0; font-size: 0.9rem; }

/* ---------- Content pages ---------- */
.page-hero {
  background:
    radial-gradient(900px 360px at 90% -20%, var(--indigo-light), transparent 60%),
    var(--bg-soft);
  padding: 56px 0 40px; border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: 8px 0 10px; }
.page-hero p { font-size: 1.05rem; max-width: 60ch; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: var(--slate-light); font-weight: 600; }
.breadcrumb a { color: var(--slate); }
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 820px; }
.legal h2 { margin: 40px 0 14px; padding-top: 8px; }
.legal h3 { margin: 26px 0 10px; }
.legal p, .legal li { color: var(--slate); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.94rem; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border: 1px solid var(--line); }
.legal th { background: var(--indigo-light); color: var(--indigo-dark); font-weight: 700; }
.callout {
  background: var(--teal-light); border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 22px 0; color: #0f3d38;
}
.callout.warn { background: #fef3c7; border-left-color: var(--amber); color: #713f12; }
.toc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 32px; box-shadow: var(--shadow-sm);
}
.toc strong { display: block; margin-bottom: 10px; color: var(--ink); }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.toc li { margin-bottom: 7px; }

/* ---------- Legal layout (TOC + body) ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; max-width: 1040px; }
.legal-layout .toc {
  position: sticky; top: 96px; margin-bottom: 0; padding: 20px 22px;
}
.legal-layout .toc h4 { margin: 0 0 12px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-light); }
.legal-layout .toc a { display: block; color: var(--slate); font-weight: 600; font-size: 0.9rem; padding: 5px 0; border-left: 2px solid transparent; padding-left: 10px; margin-left: -10px; }
.legal-layout .toc a:hover { color: var(--indigo); text-decoration: none; border-left-color: var(--indigo); }
.legal-body { min-width: 0; }
.legal-body h2:first-of-type { margin-top: 0; }
.note { font-size: 0.9rem; color: var(--slate-light); font-style: italic; }
table.fees th { background: var(--indigo-light); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  font-size: 90%;
}
.contact-card { display: flex; flex-direction: column; }
.contact-card h3 { font-size: 1.08rem; }
.contact-card .card-mail { margin-top: auto; margin-bottom: 0; padding-top: 10px; }
.contact-card a { overflow-wrap: anywhere; }
.contact-card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.contact-card h3 { margin: 0 0 8px; }
.contact-card p { margin: 0 0 6px; font-size: 0.96rem; }

.abuse-box {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm); max-width: 980px; margin: 0 auto;
}
.abuse-main { min-width: 0; }
.abuse-main h3 { margin: 0 0 10px; }
.abuse-email { font-size: 1.4rem; font-weight: 800; margin: 0 0 14px; overflow-wrap: break-word; word-break: break-all; }
.abuse-email a { color: var(--rose); }
.abuse-side { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 22px 24px; min-width: 0; }
.abuse-side h4 { margin: 0 0 14px; font-size: 0.95rem; }
.abuse-side ul { list-style: none; padding: 0; margin: 0; }
.abuse-side li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: var(--slate); font-size: 0.92rem; }
.abuse-side li svg { color: var(--teal); flex: none; margin-top: 2px; }

.callout-wide {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--indigo-light); border: 1px solid #c7d2fe; border-radius: var(--radius);
  padding: 32px 36px; max-width: 980px; margin: 0 auto;
}
.callout-wide h3 { margin: 0 0 6px; }
.callout-wide p { margin: 0; max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 16px; }
.site-footer a { color: #cbd5e1; display: block; margin-bottom: 9px; font-size: 0.93rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #94a3b8; font-size: 0.92rem; max-width: 32ch; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand small { color: #94a3b8; }
.footer-bottom {
  border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: #94a3b8;
}
.footer-bottom a { display: inline; }
.badge-icann {
  display: inline-flex; align-items: center; gap: 8px; background: #1e293b;
  padding: 8px 14px; border-radius: 8px; color: #e2e8f0; font-weight: 600; font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .split, .split.rev { grid-template-columns: 1fr; direction: ltr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ul { columns: 1; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-layout .toc { position: static; top: auto; }
  .legal-layout .toc a { display: inline-block; margin-right: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .abuse-box { grid-template-columns: 1fr; padding: 28px; }
  .callout-wide { flex-direction: column; align-items: flex-start; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px;
    gap: 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  /* Fix: .abuse-box padding causes 19px overflow at 360px viewport */
  .abuse-box { padding: 20px 16px; }
}
