/* ============================================================
   DAM IT! — MASTER STYLESHEET
   Source-of-truth: Color.kt / Theme.kt / Type.kt (Jetpack Compose)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@800&family=DM+Sans:wght@400;700;800&display=swap');

/* ── DESIGN TOKENS (from Color.kt) ─────────────────────────── */
:root {
  --forest:      #1B4332;   /* Forest   = Color(0xFF1B4332) */
  --sand:        #F5EBE0;   /* Sand     = Color(0xFFF5EBE0) */
  --paper:       #FCF9F7;   /* Paper    = Color(0xFFFCF9F7) */
  --slate:       #475569;   /* Slate    = Color(0xFF475569) */
  --success-bg:  #E8F7EF;
  --danger-red:  #F26868;
  --danger-bg:   #FFF2F2;

  /* Typography scale (from Type.kt — sp ≈ px → rem at 16px base) */
  --display-large:   3.375rem;  /* 54sp  */
  --display-medium:  2.375rem;  /* 38sp  */
  --display-small:   1.75rem;   /* 28sp  */
  --headline-medium: 1.5rem;    /* 24sp  */
  --title-large:     1.25rem;   /* 20sp  */
  --body-large:      1.25rem;   /* 20sp  */
  --body-medium:     1.125rem;  /* 18sp  */
  --body-small:      0.875rem;  /* 14sp  */
  --label-large:     0.875rem;  /* 14sp  */
  --label-small:     0.6875rem; /* 11sp  */

  /* Spacing (from Compose dp values) */
  --radius-sm:   0.5rem;    /* 8dp  */
  --radius-md:   1rem;      /* 16dp */
  --radius-lg:   1.5rem;    /* 24dp */

  --gap-xs: 0.5rem;   /*  8dp */
  --gap-sm: 0.75rem;  /* 12dp */
  --gap-md: 1rem;     /* 16dp */
  --gap-lg: 1.5rem;   /* 24dp */
  --gap-xl: 2rem;     /* 32dp */
  --gap-2xl: 2.5rem;  /* 40dp */
}

/* ── RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background-color: var(--paper);
  color: var(--forest);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--forest); font-weight: 700; text-decoration: underline; }
a:hover { opacity: 0.7; }
ul { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--forest);
}

.display-large  { font-size: var(--display-large);  }
.display-medium { font-size: var(--display-medium); }
.display-small  { font-size: var(--display-small);  }
.headline       { font-size: var(--headline-medium); }

p, .body-large  {
  font-size: var(--body-large);
  color: var(--slate);
  line-height: 1.6;
}
.body-medium { font-size: var(--body-medium); color: var(--slate); }
.body-small  { font-size: var(--body-small);  color: var(--slate); }

.label-large {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: var(--label-large);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.label-small {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: var(--label-small);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.container--narrow {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

section { padding: 5rem 0; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--paper);
  border-bottom: 1.5px solid rgba(27, 67, 50, 0.1);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
}

.site-nav__logo {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--forest);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav__logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--forest);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: 1rem;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

.site-nav__links a {
  font-size: var(--body-small);
  font-weight: 700;
  text-decoration: none;
  color: var(--slate);
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.site-nav__links a:hover { color: var(--forest); }

.site-nav__links .nav-cta {
  background: var(--forest);
  color: var(--paper);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-lg);
  transition: opacity 0.15s;
}
.site-nav__links .nav-cta:hover { opacity: 0.85; color: var(--paper); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--forest);
  color: var(--paper) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: var(--title-large);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.125rem 2.5rem;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover  { transform: scale(1.02); opacity: 0.93; }
.btn-primary:active { transform: scale(0.97); }

.btn-primary--full { width: 100%; }

/* ── CARDS: InfoCard ─────────────────────────────────────────── */
.info-card {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: var(--gap-md);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.info-card--success {
  background: var(--success-bg);
  border-color: rgba(27, 67, 50, 0.2);
}
.info-card--danger {
  background: var(--danger-bg);
  border-color: rgba(242, 104, 104, 0.2);
}
.info-card--neutral {
  background: var(--sand);
  border-color: rgba(27, 67, 50, 0.12);
}

.info-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.info-card--success .info-card__icon { background: var(--forest); color: var(--paper); }
.info-card--danger  .info-card__icon { background: var(--danger-red); color: var(--paper); }
.info-card--neutral .info-card__icon { background: var(--slate); color: var(--paper); }

.info-card__body {}
.info-card__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: var(--title-large);
  line-height: 1.3;
  color: var(--forest);
  margin-bottom: 0.2rem;
}
.info-card--danger .info-card__title { color: var(--danger-red); }

.info-card__desc {
  font-size: var(--body-small);
  color: var(--slate);
  line-height: 1.5;
}

/* ── CARDS: FeatureCard ──────────────────────────────────────── */
.feature-card {
  background: var(--forest);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  min-height: 160px;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(252, 249, 247, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
}

.feature-card__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: var(--title-large);
  color: var(--paper);
}

.feature-card__desc {
  font-size: var(--body-small);
  color: rgba(252, 249, 247, 0.8);
  line-height: 1.55;
}

/* Feature grid (2x2) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}

/* ── LEGAL-PAGE SPECIFIC ─────────────────────────────────────── */
.legal-header {
  padding: 3rem 0 2rem;
  border-bottom: 4px solid var(--forest);
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-size: var(--display-medium);
  text-transform: uppercase;
}

.legal-header .effective-date {
  margin-top: 0.75rem;
  font-size: var(--body-small);
  color: var(--slate);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-body h2 {
  font-size: var(--display-small);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid rgba(27, 67, 50, 0.15);
}

.legal-body h3 {
  font-size: var(--headline-medium);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-body p {
  font-size: var(--body-medium);
  margin-bottom: 1rem;
  color: var(--slate);
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body li {
  font-size: var(--body-medium);
  color: var(--slate);
  margin-bottom: 0.5rem;
}

/* highlighted legal box (replaces .legal-notice / .editorial-note) */
.legal-callout {
  background: rgba(27, 67, 50, 0.05);
  border-left: 4px solid var(--forest);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem;
  margin: 2rem 0;
}
.legal-callout p  { margin-bottom: 0.5rem; }
.legal-callout ul { margin-bottom: 0; }
.legal-callout h2 {
  font-size: var(--headline-medium);
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
}

/* license block */
.license-block {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(27, 67, 50, 0.04);
  border-radius: var(--radius-md);
}
.license-block h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--title-large);
  font-weight: 800;
  color: var(--forest);
  margin-bottom: 0.25rem;
  margin-top: 0;
}
.license-block p  { margin-bottom: 0.5rem; font-size: var(--body-small); }
.license-block pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.8rem;
  opacity: 0.7;
  font-family: 'Courier New', monospace;
  margin-top: 0.5rem;
}

/* imprint grid */
.imprint-row { margin-top: 1.5rem; }
.imprint-label {
  font-weight: 700;
  font-size: var(--label-large);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.8;
  margin-bottom: 0.35rem;
}
.imprint-value {
  font-size: var(--body-medium);
  color: var(--forest);
  line-height: 1.7;
}

/* ── STEP PROGRESS BAR ───────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--sand);
  border-radius: 20px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--forest);
  border-radius: 20px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── SITE FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--forest);
  color: var(--paper);
  padding: 3rem 0;
  margin-top: 0;
}

.site-footer__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--gap-lg);
}

.site-footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.site-footer__tagline {
  font-size: var(--body-small);
  color: rgba(252, 249, 247, 0.6);
  margin-top: 0.35rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm) var(--gap-lg);
  align-items: center;
}

.site-footer__links a {
  font-size: var(--body-small);
  color: rgba(252, 249, 247, 0.7);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s;
}
.site-footer__links a:hover { color: var(--paper); }

.site-footer__divider {
  height: 1px;
  background: rgba(252, 249, 247, 0.15);
}

.site-footer__bottom {
  font-size: var(--label-small);
  color: rgba(252, 249, 247, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── SECTION LABEL ───────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: var(--label-large);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--sand);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* ── DIVIDER ─────────────────────────────────────────────────── */
.divider {
  height: 1.5px;
  background: rgba(27, 67, 50, 0.1);
  border: none;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.9; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.animate-in {
  animation: fadeSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.35s; }
.animate-in--delay-4 { animation-delay: 0.5s; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }

  :root {
    --display-large:  2.25rem;
    --display-medium: 1.875rem;
    --display-small:  1.5rem;
  }

  .feature-grid { grid-template-columns: 1fr; }

  .site-nav__links .nav-label { display: none; }

  .site-footer__top { flex-direction: column; }

  .legal-header h1 { font-size: 2rem; }
}
