/* cloud_rose — top-business-registry.org */
:root {
  --bg: #FDF7F9;
  --surface: #FFFFFF;
  --surface-alt: #F6EBEF;
  --primary: #E11D63;
  --primary-hover: #BE185D;
  --secondary: #7C3AED;
  --accent: #0D9488;
  --text: #1F1720;
  --text-secondary: #57505A;
  --text-muted: #A79FA8;
  --border: rgba(31, 23, 32, 0.10);
  --radius: 14px;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: "Segoe UI", Candara, "Trebuchet MS", sans-serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* —— Header —— */
.site-header {
  position: relative;
  z-index: 20;
  padding: 1.25rem var(--space);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--primary);
}

.logo span {
  color: var(--primary);
}

.nav-link {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary);
}

/* —— Hero (landing) —— */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 5.5rem);
  padding: var(--space);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(225, 29, 99, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 15% 80%, rgba(13, 148, 136, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 90%, rgba(124, 58, 237, 0.08) 0%, transparent 45%),
    linear-gradient(165deg, #FDF7F9 0%, #F6EBEF 45%, #FDF7F9 100%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23E11D63' fill-opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.9;
  animation: drift 28s linear infinite;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-60px, -60px); }
}

.hero__mark {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  border-radius: 50%;
  border: 2px solid rgba(225, 29, 99, 0.15);
  pointer-events: none;
  z-index: 1;
  animation: pulse-ring 6s ease-in-out infinite;
}

.hero__mark::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 148, 136, 0.2);
}

.hero__mark::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 99, 0.12) 0%, transparent 70%);
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.7; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.04); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero__brand em {
  font-style: normal;
  color: var(--primary);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero__lede {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.notify {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  max-width: 26rem;
  animation: rise 0.9s ease-out 0.25s both;
}

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

.notify input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.notify input[type="email"]::placeholder {
  color: var(--text-muted);
}

.notify input[type="email"]:hover {
  border-color: rgba(225, 29, 99, 0.35);
}

.notify button {
  flex: 0 0 auto;
  padding: 0.8rem 1.35rem;
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.notify button:hover {
  background: var(--primary-hover);
}

.notify button:active {
  transform: scale(0.98);
}

.notify__note {
  flex: 1 1 100%;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.notify__feedback {
  flex: 1 1 100%;
  font-size: 0.875rem;
  color: var(--accent);
  min-height: 1.25em;
}

/* —— Legal pages —— */
.page {
  flex: 1;
  padding: 2rem var(--space) 3.5rem;
}

.page__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.page__inner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page__meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.page__inner h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.page__inner p,
.page__inner ul {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.page__inner ul {
  padding-left: 1.35rem;
}

.page__inner li {
  margin-bottom: 0.4rem;
}

/* —— Footer —— */
.site-footer {
  padding: 1.5rem var(--space);
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.site-footer a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
}

/* —— Cookie banner —— */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem var(--space) calc(1rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(31, 23, 32, 0.06);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cookie-banner__text {
  flex: 1 1 16rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cookie-banner__text a {
  color: var(--primary);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__actions button {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-accept {
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.btn-accept:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-decline {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-decline:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

@media (max-width: 560px) {
  .hero {
    min-height: calc(100vh - 4.5rem);
    align-items: flex-start;
    padding-top: 3rem;
  }

  .hero__mark {
    width: 70vw;
    height: 70vw;
    right: -20%;
    top: 35%;
    opacity: 0.55;
  }

  .notify button {
    flex: 1 1 100%;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__content,
  .notify {
    animation: none;
  }
}
