/* Here2Fish marketing site — aligned with app.here2fish.com design tokens */

:root {
  --h2f-primary: #00a7e1;
  --h2f-primary-dark: #0077a3;
  --h2f-primary-light: rgba(0, 167, 225, 0.15);
  --h2f-bg: #ffffff;
  --h2f-surface: #f5f5f5;
  --h2f-card: #ffffff;
  --h2f-text: #111111;
  --h2f-text-secondary: #555555;
  --h2f-text-muted: #888888;
  --h2f-border: #e5e5e5;
  --h2f-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --h2f-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --h2f-radius: 12px;
  --h2f-radius-pill: 999px;
  --h2f-max: 72rem;
  --h2f-font: "Inter", system-ui, sans-serif;
  --h2f-font-display: "Plus Jakarta Sans", var(--h2f-font);
  --h2f-header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--h2f-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--h2f-text);
  background: var(--h2f-bg);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--h2f-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--h2f-primary-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--h2f-font-display);
  line-height: 1.25;
  font-weight: 700;
}

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--h2f-primary);
  color: #fff;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: var(--h2f-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo img {
  display: block;
  width: min(220px, 52vw);
  height: auto;
}

.nav-toggle {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #0a0a0a;
  border-bottom: 1px solid var(--h2f-border);
  padding: 1rem 1.25rem 1.25rem;
}

.site-nav.is-open {
  display: block;
}

.site-nav__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.site-nav__list a {
  display: block;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
}

.site-nav__list a:hover {
  color: #fff;
}

.site-nav__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .site-nav__list {
    display: flex;
    gap: 1.25rem;
    margin: 0;
  }

  .site-nav__list a {
    padding: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--h2f-radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

.btn--primary:hover {
  background: var(--h2f-primary-dark);
  border-color: var(--h2f-primary-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--h2f-primary);
  border-color: var(--h2f-primary);
}

.btn--outline:hover {
  background: var(--h2f-primary-light);
}

.btn--lg {
  padding: 0.9rem 1.75rem;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

/* Layout */
.page-wrap {
  max-width: var(--h2f-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.page-wrap--narrow {
  max-width: 48rem;
}

.page-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #0d1117 0%, #0a3d52 45%, rgba(0, 167, 225, 0.25) 100%);
  color: #fff;
  padding: 3rem 0 4rem;
}

.hero__inner {
  max-width: var(--h2f-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__eyebrow {
  color: var(--h2f-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 0.75rem;
  color: #fff;
}

.hero__lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__links {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero__links a {
  color: #fff;
}

.hero__image {
  border-radius: var(--h2f-radius);
  box-shadow: var(--h2f-shadow-md);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--h2f-surface);
}

.section__inner {
  max-width: var(--h2f-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section__title {
  text-align: center;
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.section__subtitle {
  text-align: center;
  color: var(--h2f-text-secondary);
  margin: 0 auto 2rem;
  max-width: 36rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 900px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--h2f-card);
  border: 1px solid var(--h2f-border);
  border-radius: var(--h2f-radius);
  padding: 1.5rem;
  box-shadow: var(--h2f-shadow-sm);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--h2f-text-secondary);
  font-size: 0.95rem;
}

.card a {
  font-weight: 600;
}

/* Video embeds */
.video-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--h2f-radius);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Merch teaser */
.merch-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.merch-card {
  background: var(--h2f-card);
  border: 1px solid var(--h2f-border);
  border-radius: var(--h2f-radius);
  overflow: hidden;
  text-align: center;
}

.merch-card img {
  width: 100%;
  aspect-ratio: 7/5;
  object-fit: cover;
}

.merch-card__body {
  padding: 0.85rem;
}

.merch-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.merch-card .price {
  color: var(--h2f-text-muted);
  font-size: 0.875rem;
  margin: 0 0 0.5rem;
}

/* About split */
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.abyc-badge {
  margin-top: 1.5rem;
}

.abyc-badge img {
  max-width: 140px;
}

/* Footer */
.site-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--h2f-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.site-footer__tagline {
  font-family: var(--h2f-font-display);
  font-size: 1.35rem;
  color: #fff;
  margin: 0 0 2rem;
}

.site-footer__heading {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 1rem;
}

.partner-grid {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.partner-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
}

.partner-grid img {
  border-radius: 8px;
  background: #fff;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer__nav a {
  color: var(--h2f-primary);
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--h2f-text-muted);
  margin: 0;
}

/* Docs layout */
.page-wrap--docs {
  display: grid;
  gap: 2rem;
  max-width: var(--h2f-max);
}

@media (min-width: 960px) {
  .page-wrap--docs {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--h2f-header-h) + 1rem);
}

.docs-nav__heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--h2f-text-muted);
  margin: 1rem 0 0.35rem;
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--h2f-text-secondary);
}

.docs-nav a[aria-current="page"] {
  color: var(--h2f-primary);
  font-weight: 600;
}

/* Docs home browse TOC */
.docs-home-toc {
  margin: 0;
}

.docs-home-toc__lead {
  margin: 0 0 1.5rem;
  color: var(--h2f-text-secondary);
  max-width: 42rem;
}

.docs-home-toc__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .docs-home-toc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-home-toc__card:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .docs-home-toc__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .docs-home-toc__card:last-child {
    grid-column: auto;
  }
}

.docs-home-toc__card {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--h2f-surface);
  border: 1px solid var(--h2f-border);
  border-radius: 8px;
}

.docs-home-toc__heading {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.docs-home-toc__subheading {
  margin: 1rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--h2f-text-muted);
}

.docs-home-toc__hub {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.docs-home-toc__hub a {
  font-weight: 600;
}

.docs-home-toc__list {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
}

.docs-home-toc__list li {
  margin: 0.35rem 0;
  line-height: 1.45;
}

.docs-home-toc__list a {
  text-decoration: none;
  color: var(--h2f-primary);
}

.docs-home-toc__list a:hover,
.docs-home-toc__hub a:hover {
  text-decoration: underline;
}

.docs-home-toc__hub a:focus-visible,
.docs-home-toc__list a:focus-visible {
  outline: 2px solid var(--h2f-primary);
  outline-offset: 2px;
}

/* Imported / scraped content */
.content-body--imported,
.content-body--legal,
.content-body--docs {
  font-size: 1rem;
}

.content-body--imported .elementor,
.content-body--imported .e-con,
.content-body--imported .elementor-widget-container {
  max-width: 100%;
}

.content-body--imported img {
  border-radius: 8px;
}

.content-body--imported .wp-block-heading,
.content-body--imported h2,
.content-body--imported h3 {
  margin-top: 1.75rem;
}

/* Elementor scrape leftovers: inline SVGs lack size without Elementor CSS */
.content-body--imported svg {
  width: 1.25em;
  height: 1.25em;
  max-width: 1.25rem;
  flex-shrink: 0;
}

.page-app .app-page-toc {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--h2f-surface);
  border-radius: 8px;
}

.page-app .app-page-toc__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.page-app .app-page-toc__list {
  margin: 0;
  padding-left: 1.25rem;
}

.page-app .app-page-toc__list a {
  text-decoration: none;
  color: var(--h2f-primary);
}

.page-app .app-page-toc__list a:hover {
  text-decoration: underline;
}

.content-body--legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.content-body--legal h3 {
  font-size: 1.1rem;
}

.content-body--docs h2 {
  margin-top: 1.5rem;
}

.content-body--docs pre,
.content-body--docs code {
  background: var(--h2f-surface);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Coming soon */
.coming-soon {
  text-align: center;
  padding: 4rem 1.25rem;
  max-width: 32rem;
  margin: 0 auto;
}

.coming-soon h1 {
  margin-bottom: 0.75rem;
}

.notice {
  padding: 1rem;
  background: var(--h2f-primary-light);
  border-radius: 8px;
  border-left: 4px solid var(--h2f-primary);
}

/* Search results */
.search-page {
  max-width: 40rem;
}

.search-results {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.search-results li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--h2f-border);
}

.search-results a {
  font-weight: 600;
  font-size: 1.1rem;
}
