/* Milfarea — shared styles */
:root {
  --color-primary: #e24a3d;
  --color-primary-hover: #c73a2e;
  --color-accent: #f4a261;
  --color-surface: #ffffff;
  --color-bg: #f8f6f4;
  --color-text: #2b2628;
  --color-muted: #6b6366;
  --color-footer: #1c1917;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow: 0 4px 24px rgba(44, 36, 38, 0.08);
  --shadow-hover: 0 8px 32px rgba(44, 36, 38, 0.12);
  --header-gradient: linear-gradient(135deg, #e24a3d 0%, #d4a574 100%);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --max-content: 1120px;
  --max-prose: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius);
  z-index: 2000;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: rgba(226, 74, 61, 0.08);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  background: var(--header-gradient);
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.95;
}

.site-nav a:hover {
  text-decoration: underline;
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-header .btn-primary:hover {
  background: #fff5f3;
  color: var(--color-primary-hover);
}

/* Hero — LCP image is .hero-media in HTML (WebP + responsive srcset) */
.hero {
  position: relative;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: clamp(4rem, 12vw, 7rem) 1.25rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(44, 36, 38, 0.72), rgba(44, 36, 38, 0.55));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero p {
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero .btn-primary {
  background: var(--color-primary);
  color: #fff;
}

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

/* Split / signup block */
.reg-block {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin: 3rem 0;
}

.slogan-title {
  flex: 1 1 280px;
  max-width: 36rem;
}

.slogan-title h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.slogan-title p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.reg-card {
  flex: 1 1 300px;
  max-width: 400px;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 36, 38, 0.06);
}

.reg-card h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--color-text);
}

.reg-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.reg-card input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(44, 36, 38, 0.15);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
}

.reg-card input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(226, 74, 61, 0.2);
}

.reg-card .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

.feature {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(44, 36, 38, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.feature p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* Editorial / SEO sections */
.content-section {
  max-width: 40rem;
  margin: 2.75rem auto;
  padding: 0 0.25rem;
}

.content-section h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.content-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 1.75rem 0 0.6rem;
}

.content-section p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section .note {
  font-size: 0.95rem;
  color: var(--color-muted);
  border-left: 3px solid rgba(226, 74, 61, 0.35);
  padding-left: 1rem;
  margin-top: 1.25rem;
}

.faq-section {
  max-width: 44rem;
  margin: 3rem auto 2.5rem;
  padding: 0 0.25rem;
}

.faq-section > h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 1.25rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid rgba(44, 36, 38, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--color-text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  float: right;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  margin-top: 0.35rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.55rem;
}

.faq-item .faq-answer {
  padding: 0 1.15rem 1.1rem;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  border-top: 1px solid rgba(44, 36, 38, 0.06);
}

.faq-item .faq-answer p {
  margin: 0.85rem 0 0;
}

.faq-item .faq-answer p:first-child {
  margin-top: 0.75rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--color-primary), #c73a2e);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 8vw, 4.5rem) 1.25rem;
  border-radius: var(--radius);
  margin: 2rem 0 3rem;
  box-shadow: var(--shadow);
}

.cta-section h2 {
  font-size: 1.65rem;
  margin: 0 0 0.75rem;
}

.cta-section p {
  margin: 0 0 1.5rem;
  opacity: 0.95;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.cta-section .btn-primary:hover {
  background: #fff5f3;
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.88);
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

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

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.site-footer .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1.15rem;
}

.site-footer .btn-primary {
  background: var(--color-primary);
  color: #fff;
}

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

.site-footer .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.site-footer .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Inner page hero (legal) */
.page-hero {
  background: var(--header-gradient);
  color: #fff;
  padding: 2.25rem 0;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0.5rem 0 0;
  opacity: 0.92;
  max-width: var(--max-prose);
}

.legal-main {
  padding: 2.5rem 0 3.5rem;
}

.legal-doc {
  max-width: var(--max-prose);
  margin: 0 auto;
  background: var(--color-surface);
  padding: 2rem 1.75rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-doc .updated {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.legal-doc h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: var(--color-muted);
  font-size: 0.98rem;
}

.legal-doc ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 1rem;
}

.legal-doc a {
  word-break: break-word;
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }

  .logo img {
    height: 44px;
  }

  .reg-block {
    margin: 2rem 0;
  }

  .reg-card {
    max-width: none;
  }
}
