/* Fish Agent — How-to guides hub
   Shared styles for how-to.html (hub index) and guides/*.html (guide pages).
   Design tokens mirror landing.html so the public site stays visually consistent. */

:root {
  color-scheme: light;
  --bg: #f6f8f4;
  --ink: #10211c;
  --muted: #3e4f49;
  --line: #cbd9cf;
  --paper: #ffffff;
  --deep: #0b3d46;
  --teal: #08706d;
  --blue: #226c95;
  --leaf: #4f7d3f;
  --amber: #d79b38;
  --mist: #eaf2ed;
  --accent: #e8743b;
  --accent-soft: #fbe4d6;
  --shadow: 0 22px 60px rgba(8, 60, 59, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---------- Topbar ---------- */

.topbar {
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid rgba(16, 33, 28, 0.1);
  background: rgba(246, 248, 244, 0.92);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(8, 60, 59, 0.18);
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

.nav-cta {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--deep);
  border-radius: 8px;
  color: var(--paper);
  background: var(--deep);
}

/* ---------- Layout primitives ---------- */

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.page-head {
  padding: 124px 0 14px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.62;
}

.section {
  padding: 30px 0 70px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

/* ---------- Hub index: guide cards ---------- */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(28, 59, 46, 0.07);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(28, 59, 46, 0.13);
}

.guide-thumb {
  display: block;
  width: 100%;
  height: 184px;
  object-fit: cover;
  object-position: top center;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.guide-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.guide-step-count {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-card-body h3 {
  margin: 4px 0 0;
  font-size: 1.22rem;
}

.guide-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-card-cta {
  margin-top: 6px;
  color: var(--accent);
  font-weight: 900;
}

/* ---------- Guide page: numbered steps ---------- */

.intro-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  max-width: 760px;
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(34, 108, 149, 0.22);
  border-radius: 10px;
  background: rgba(34, 108, 149, 0.06);
  color: #284a43;
  line-height: 1.55;
}

.intro-note .tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  gap: 30px;
  margin-top: 36px;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 34px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(28, 59, 46, 0.06);
}

.step:nth-child(even) .step-media {
  order: -1;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.step:nth-child(3n + 2) .step-num {
  background: var(--blue);
}

.step:nth-child(3n) .step-num {
  background: var(--leaf);
}

.step-body h3 {
  margin: 0 0 10px;
  font-size: 1.32rem;
  line-height: 1.2;
}

.step-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.64;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-body .hint {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #8a3f1c;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

/* phone-framed screenshots */
.step-media {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.phone-frame {
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  border: 9px solid #10241c;
  border-radius: 30px;
  background: #10241c;
  box-shadow: var(--shadow);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.step-media.duo .phone-frame {
  max-width: 200px;
}

/* ---------- Guide page: bottom nav between guides ---------- */

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.guide-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--deep);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.guide-nav a.next {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- Footer ---------- */

.footer {
  padding: 34px 0;
  color: #d8e2dc;
  background: #12231d;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer a {
  color: #e7f2ea;
  text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  nav {
    gap: 14px;
    font-size: 0.86rem;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .step:nth-child(even) .step-media {
    order: 0;
  }

  .step-media {
    order: -1;
  }

  .page-head {
    padding-top: 104px;
  }
}

@media (max-width: 520px) {
  nav .nav-hide {
    display: none;
  }
}
