/* CalmHer — pastel, airy, minimal chrome */

:root {
  --cream: #fff8f3;
  --blush: #ffd6e8;
  --lavender: #ddd4ff;
  --mint: #c5f0e6;
  --peach: #ffd9c9;
  --sky: #c4e8ff;
  --text: #2a2433;
  --text-soft: #4d4658;
  --accent: #b07ab8;
  --accent-deep: #6b3f7d;
  --accent-mid: #8e5a9e;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 14px 44px rgba(107, 63, 125, 0.14);
  --shadow-soft: 0 8px 28px rgba(107, 63, 125, 0.1);
  --radius: 20px;
  --radius-sm: 14px;
  --max: 640px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(
      165deg,
      var(--cream) 0%,
      var(--blush) 32%,
      var(--lavender) 58%,
      var(--mint) 88%,
      #e8faf5 100%
    );
  background-attachment: fixed;
}

.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 48% at 8% 18%, rgba(255, 140, 200, 0.22), transparent 52%),
    radial-gradient(ellipse 55% 42% at 92% 12%, rgba(120, 190, 255, 0.2), transparent 48%),
    radial-gradient(ellipse 48% 38% at 88% 78%, rgba(100, 220, 190, 0.18), transparent 50%),
    radial-gradient(ellipse 42% 36% at 12% 82%, rgba(255, 160, 120, 0.16), transparent 48%),
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(200, 160, 230, 0.08), transparent 55%);
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-deep);
  text-decoration: none;
  letter-spacing: 0.02em;
}

/* Sized in em with the wordmark; flex centers mark + text as one lockup */
.logo-mark-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 1.22em;
  width: 1.18em;
}

.logo-mark {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center 58%;
}

.logo-text {
  font-size: inherit;
  line-height: 1;
  font-weight: 700;
  padding-bottom: 0.02em;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--accent-deep);
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(107, 63, 125, 0.14);
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 5.5vw, 2.55rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-lede {
  margin: 0 auto 1.35rem;
  max-width: 28rem;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 auto 1.25rem;
  padding: 0.65rem 1.15rem 0.65rem 0.95rem;
  background: #1a1a1c;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-family: inherit;
  box-shadow: 0 6px 24px rgba(26, 26, 28, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/* Keep link text white even if global `a { color }` rules exist */
.hero-cta,
.hero-cta:visited {
  color: #fff;
}

.hero-cta:hover {
  background: #2c2c30;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(26, 26, 28, 0.4);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--accent-mid);
  outline-offset: 3px;
}

.hero-cta-apple {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-cta-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.hero-cta-small {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.92;
}

.hero-cta-big {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-note {
  margin: 0 auto;
  max-width: 26rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.panel {
  margin-bottom: 2rem;
}

.panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: var(--text);
}

.panel-intro {
  margin: 0 0 1.5rem;
  color: var(--text-soft);
}

.updated {
  margin: -0.25rem 0 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(107, 63, 125, 0.1);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent-deep);
}

.card p {
  margin: 0;
}

.card a {
  color: var(--accent-deep);
  font-weight: 600;
}

.simple-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
}

.simple-list li {
  margin-bottom: 0.4rem;
}

.simple-list li:last-child {
  margin-bottom: 0;
}

.panel-alt {
  padding: 1.5rem 0 0;
}

.legal-block {
  margin-bottom: 1.35rem;
}

.legal-block:last-of-type {
  margin-bottom: 0;
}

.legal-block h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--accent-deep);
}

.legal-block h4 {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
}

.legal-block h4:first-child {
  margin-top: 0;
}

.legal-block p {
  margin: 0 0 0.65rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.legal-block ul {
  margin: 0 0 0.65rem;
  padding-left: 1.25rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.legal-block li {
  margin-bottom: 0.35rem;
}

.legal-block a {
  color: var(--accent-deep);
  font-weight: 600;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem 2.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.site-footer p {
  margin: 0.35rem 0;
}

.footer-domain {
  margin-bottom: 0.5rem !important;
}

.footer-domain a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.footer-domain a:hover {
  text-decoration: underline;
}

.footer-links a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.dot {
  margin: 0 0.5rem;
  opacity: 0.5;
}

@media (min-width: 700px) {
  main {
    padding-bottom: 4rem;
  }

  .hero {
    padding: 3rem 0 3.5rem;
  }
}
