@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&family=Patrick+Hand&display=swap');

:root {
  --primary: #2e006c;
  --primary-deep: #230052;
  --primary-foreground: #ffffff;
  --accent: #fffa02;
  --accent-foreground: #2e006c;
  --background: #ffffff;
  --hero-background: #eee9f7;
  --foreground: #19131f;
  --muted: #f7f4fb;
  --muted-foreground: #5d5667;
  --card: #ffffff;
  --border: #ded5ec;
  --soft-purple: #d8caef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 1;
  background: var(--background);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 20px 30px;
  background: var(--hero-background);
  border-bottom: 6px solid var(--accent);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--primary);
  font-weight: 700;
}

.hero-logo {
  display: block;
  width: min(720px, 100%);
  height: auto;
  margin: 0 auto 18px;
}

.headline {
  margin: 0 0 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
}

.subline {
  max-width: 500px;
  margin: 0 auto;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-inline-link {
  color: var(--primary) !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.page-wrap {
  max-width: 580px;
  margin: 0 auto;
  padding: 38px 20px 58px;
}

.section-block {
  margin-bottom: 56px;
}

.section-title,
.tools-intro h2 {
  margin: 0 0 22px;
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--primary);
}

.primary-links {
  display: grid;
  gap: 12px;
}

.primary-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-card:hover,
.primary-card:focus-visible {
  background: var(--accent);
  color: var(--accent-foreground);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 0, 108, 0.13);
}

.icon-badge,
.link-logo {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 7px;
}

.icon-badge {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  font-size: 0.8rem;
  font-weight: 800;
}

.primary-card:hover .icon-badge,
.primary-card:focus-visible .icon-badge {
  background: rgba(46, 0, 108, 0.08);
}

.link-logo {
  display: block;
  object-fit: contain;
  padding: 3px;
  background: rgba(255, 255, 255, 0.92);
}

.link-copy {
  display: block;
  min-width: 0;
}

.primary-title {
  display: block;
  margin: 0 0 3px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 600;
}

.primary-description {
  display: block;
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.95;
  line-height: 1.38;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.social-card {
  display: flex;
  min-height: 74px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 7px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--primary);
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-card:hover,
.social-card:focus-visible {
  border-color: var(--primary);
  background: var(--accent);
  transform: translateY(-2px);
}

.social-badge,
.social-logo {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 6px;
}

.social-badge {
  display: grid;
  place-items: center;
  background: var(--muted);
  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 800;
}

.social-logo {
  display: block;
  object-fit: contain;
  padding: 2px;
  background: #ffffff;
}

.social-card span {
  font-size: 0.74rem;
  font-weight: 800;
}

.divider {
  border-top: 2px solid var(--border);
  margin: 0 0 52px;
}

.tools {
  margin-bottom: 56px;
}

.tools-intro {
  text-align: center;
  margin-bottom: 28px;
}

.tools-intro h2 {
  margin-bottom: 12px;
}

.tools-intro p {
  max-width: 450px;
  margin: 0 auto 10px;
  color: var(--muted-foreground);
  font-size: 0.77rem;
  line-height: 1.55;
}

.tool-sections {
  display: grid;
  gap: 9px;
}

.tool-section {
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--soft-purple);
  overflow: hidden;
}

.tool-section summary {
  padding: 12px 14px;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  list-style-position: inside;
  background: var(--soft-purple);
  color: var(--primary);
}

.tool-section summary:hover,
.tool-section summary:focus-visible {
  background: var(--accent);
  color: var(--primary);
}

.tool-section[open] {
  background: var(--primary);
  border-color: var(--primary);
}

.tool-section[open] summary {
  background: var(--primary);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.tool-section[open] .tool-items {
  background: var(--primary);
}

.tool-items {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
  background: var(--soft-purple);
}

.tool-link {
  display: block;
  padding: 11px 12px;
  border-radius: 9px;
  background: #ffffff;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.tool-link:hover,
.tool-link:focus-visible {
  background: var(--accent);
  color: var(--primary);
}

.tool-name {
  display: block;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.3;
}

.tool-code {
  display: block;
  margin-top: 3px;
  color: var(--muted-foreground);
  font-size: 0.72rem;
  line-height: 1.35;
}

.footer {
  padding-top: 28px;
  border-top: 2px solid var(--border);
  text-align: center;
  color: var(--muted-foreground);
}

.footer p {
  max-width: 380px;
  margin: 0 auto;
  font-size: 0.72rem;
  line-height: 1.55;
}

.footer p + p {
  margin-top: 16px;
  font-size: 0.66rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 14px 0 0;
  font-size: 0.72rem;
}

.footer-links a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  padding: 0 8px;
}

.footer-links a + a::before {
  content: "|";
  color: #77707f;
  font-weight: 400;
  text-decoration: none;
  margin-right: 14px;
}

.footer-links a:visited,
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a:active {
  color: var(--primary);
}

@media (max-width: 560px) {
  .hero {
    padding: 26px 16px 24px;
  }

  .hero-logo {
    width: 100%;
    margin-bottom: 14px;
  }

  .page-wrap {
    padding: 32px 16px 50px;
  }

  .social-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .primary-card {
    padding: 13px;
  }
}
