@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1e1b4b;
  --primary-foreground: #ffffff;
  --accent: #f59e0b;
  --accent-foreground: #1e1b4b;
  --background: #ffffff;
  --foreground: #111111;
  --muted: #f7f5f2;
  --muted-foreground: #555555;
  --card: #ffffff;
  --border: #e8e3dc;
  --watch-hover: #c4b5fd;
  --tool-dropdown: #c4b5fd;
  --tool-dropdown-open: #7c3aed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #ffffff;
}

body {
  margin: 0;
  font-family: 'Josefin Sans', sans-serif;
  background: #ffffff;
  color: var(--foreground);
  line-height: 1.625;
  overflow-x: hidden;
}

main {
  position: relative;
  z-index: 1;
  background: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 20px 30px;
  background: #ffffff;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--primary);
  font-weight: 800;
}

.hero-logo {
  display: block;
  width: min(620px, 96%);
  height: auto;
  margin: 0 auto 16px;
}

.headline {
  margin: 0 0 8px;
  font-size: 1.105rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
}

.subline {
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted-foreground);
  font-size: 0.905rem;
  line-height: 1.55;
}

.hero-inline-link {
  color: var(--primary) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-inline-link:visited,
.hero-inline-link:hover,
.hero-inline-link:focus-visible,
.hero-inline-link:active {
  color: var(--primary) !important;
}

.page-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 20px 56px;
}

.section-block {
  margin-bottom: 56px;
}

.section-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 1.225rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary);
}

/* Watch & Links heading — 2px bigger */
.section-block:first-of-type .section-title {
  font-size: 1.35rem;
}

.primary-links {
  display: grid;
  gap: 12px;
}

.primary-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* Watch & Links hover colour */
.primary-card:hover,
.primary-card:focus-visible {
  background: var(--watch-hover);
  color: var(--primary);
  transform: translateY(-2px);
}

.icon-badge,
.link-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 6px;
}

.icon-badge {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.link-logo {
  display: block;
  object-fit: contain;
  padding: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.link-copy {
  display: block;
  min-width: 0;
}

/* Watch & Links button title — 2px bigger */
.primary-title {
  display: block;
  margin: 0 0 3px;
  font-size: 0.99rem;
  line-height: 1.2;
  font-weight: 800;
}

/* Watch & Links button description — 2px bigger */
.primary-description {
  display: block;
  margin: 0;
  font-size: 0.87rem;
  opacity: 0.92;
  line-height: 1.35;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.social-card {
  display: flex;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted-foreground);
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-card:hover,
.social-card:focus-visible {
  border-color: var(--accent);
  background: var(--muted);
  color: var(--primary);
  transform: translateY(-2px);
}

.social-badge,
.social-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
}

.social-badge {
  display: grid;
  place-items: center;
  background: var(--muted);
  color: currentColor;
  font-size: 0.605rem;
  font-weight: 700;
}

.social-logo {
  display: block;
  object-fit: contain;
  padding: 2px;
  background: var(--muted);
}

.social-card span {
  font-size: 0.705rem;
  font-weight: 600;
}

.divider {
  border-top: 1px solid var(--border);
  margin: 0 0 52px;
}

.tools {
  margin-bottom: 56px;
}

.tools-intro {
  text-align: center;
  margin-bottom: 28px;
}

.tools-intro h2 {
  margin: 0 0 12px;
  font-size: 1.245rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--primary);
}

.tools-intro p {
  max-width: 430px;
  margin: 0 auto 10px;
  color: var(--muted-foreground);
  font-size: 0.745rem;
  line-height: 1.55;
}

.tool-sections {
  display: grid;
  gap: 8px;
}

.tool-section {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--tool-dropdown);
  box-shadow: none;
  overflow: hidden;
}

.tool-section summary {
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.825rem;
  list-style-position: inside;
  background: var(--tool-dropdown);
  color: var(--primary);
}

.tool-section summary:hover,
.tool-section summary:focus-visible {
  background: var(--tool-dropdown);
  color: var(--primary);
}

/* Tools open state */
.tool-section[open] {
  background: var(--tool-dropdown-open);
  border-color: var(--tool-dropdown-open);
}

.tool-section[open] summary {
  background: var(--tool-dropdown-open);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-section[open] .tool-items {
  background: var(--tool-dropdown-open);
}

.tool-items {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
  background: var(--tool-dropdown);
}

.tool-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  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: #f7f5f2;
  color: var(--primary);
}

.tool-name {
  display: block;
  font-weight: 800;
  font-size: 0.785rem;
  line-height: 1.3;
}

.tool-code {
  display: block;
  margin-top: 3px;
  color: var(--muted-foreground);
  font-size: 0.705rem;
  line-height: 1.35;
}

.footer {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted-foreground);
}

.footer p {
  max-width: 340px;
  margin: 0 auto;
  font-size: 0.705rem;
  line-height: 1.55;
}

.footer p + p {
  margin-top: 16px;
  font-size: 0.645rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 14px 0 0;
  font-size: 0.705rem;
}

.footer-links a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0 8px;
}

.footer-links a + a::before {
  content: "|";
  color: #616161;
  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: 480px) {
  .hero {
    padding: 30px 18px 28px;
  }

  .hero-logo {
    width: min(440px, 100%);
    margin-bottom: 14px;
  }

  .page-wrap {
    padding: 32px 18px 50px;
  }

  .primary-card {
    padding: 13px;
  }

  .social-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .social-card {
    min-height: 56px;
    padding: 9px 6px;
  }
}