/* Mino Labs — minolabs.app */

@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/Baloo2-800.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0A2A44;
  --navy-deep: #071F33;
  --navy-raised: #10375A;
  --blue: #02A8FE;
  --blue-text: #0069A6; /* brand blue darkened for AA text on white */
  --sky: #BEE0F5;
  --white: #FFFFFF;
  --off-white: #F7FAFC;
  --ink: #1B2B3A;
  --muted: #4A5B6B;
  --line: #DCE6EE;

  --font-display: "Baloo 2", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(10, 42, 68, 0.06), 0 8px 24px rgba(10, 42, 68, 0.08);
  --shadow-lift: 0 2px 4px rgba(10, 42, 68, 0.08), 0 14px 32px rgba(10, 42, 68, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  color: var(--navy);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue-text);
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 720px;
}

.center {
  text-align: center;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  background: var(--navy);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  min-height: 72px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  width: 124px;
}

.nav-list {
  display: flex;
  margin-right: -0.5rem;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */

.hero {
  background: radial-gradient(ellipse at 20% 0%, var(--navy-raised) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 4.5rem 0 5rem;
}

.hero h1 {
  font-size: clamp(2.375rem, 7vw, 4rem);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.hero-sub {
  max-width: 38rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--sky);
  margin-bottom: 2rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn svg {
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: var(--navy);
}

.btn-primary:hover {
  background: #33BAFF;
  box-shadow: 0 8px 20px rgba(2, 168, 254, 0.3);
}

.btn-outline {
  border-color: var(--sky);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(190, 224, 245, 0.12);
}

.btn-store {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background: var(--navy);
  color: var(--white);
  white-space: nowrap;
}

.btn-store:hover {
  background: var(--navy-raised);
  box-shadow: var(--shadow);
}

.section-dark .btn:focus-visible,
.hero .btn:focus-visible {
  outline-color: var(--white);
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-light {
  background: var(--white);
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-dark h2 {
  color: var(--white);
}

/* Apps */

.app-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.app-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
}

.app-name {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.125rem;
}

.app-kind {
  font-weight: 600;
  color: var(--blue-text);
  margin-bottom: 0.75rem;
}

.app-desc {
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0.5rem 1.25rem;
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--pill);
}

/* About */

#about p {
  font-size: 1.125rem;
}

#about p:last-child {
  margin-bottom: 0;
}

/* Contact */

.contact-line {
  color: var(--sky);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-list .btn {
  min-width: 260px;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: var(--sky);
  font-size: 0.9375rem;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--sky);
}

.site-footer a:focus-visible {
  outline-color: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* Product pages */

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 1rem;
  color: var(--sky);
  font-weight: 600;
  text-underline-offset: 3px;
}

.eyebrow:hover {
  color: var(--white);
}

.hero .eyebrow:focus-visible {
  outline-color: var(--white);
}

.product-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 1.5rem;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.125rem;
  margin: 0;
}

.section-head p + p {
  margin-top: 0.5rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  background: var(--blue);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  border-radius: 50%;
}

.step h3,
.feature-card h3 {
  font-size: 1.375rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.step p,
.feature-card p {
  color: var(--muted);
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

.gallery figure {
  margin: 0;
  text-align: center;
}

.gallery img {
  width: 100%;
  border: 5px solid var(--navy);
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--navy);
}

.gallery figcaption {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--navy);
}

.shot-strip {
  display: flex;
  gap: 1rem;
  margin: 0 -1.25rem;
  padding: 0.5rem 1.25rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 1.25rem;
  overscroll-behavior-x: contain;
}

.shot-strip li {
  flex: 0 0 68%;
  max-width: 280px;
  scroll-snap-align: start;
}

.shot-strip img {
  width: 100%;
}

.shot-strip:focus-visible {
  outline-offset: -3px;
}

.watch-gallery {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

.watch-gallery img {
  border-width: 8px;
  border-color: #111;
  border-radius: 40px;
  background: #000;
}

.watch-gallery figure:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 0.5rem);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta {
  text-align: center;
}

.cta p {
  color: var(--sky);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Support page */

.page-hero {
  padding: 3.5rem 0 3.5rem;
}

.page-hero h1 {
  max-width: none;
}

.lead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.page-hero a:not(.eyebrow) {
  color: var(--white);
  font-weight: 600;
  text-underline-offset: 3px;
}

.page-hero a:focus-visible {
  outline-color: var(--white);
}

.toc {
  margin-bottom: 3rem;
  padding: 1.5rem 1.75rem;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.help-section {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.help-section:first-of-type {
  margin-top: 0;
}

.help-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
}

.help-section h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 1.5rem 0 0.25rem;
}

.help-section ol,
.help-section ul {
  margin: 0 0 1em;
  padding-left: 1.5rem;
}

.help-section ul {
  list-style: disc;
}

.help-section li {
  margin-bottom: 0.375rem;
}

.help-section p:last-child,
.help-section ol:last-child,
.help-section ul:last-child {
  margin-bottom: 0;
}

/* Legal pages */

.updated {
  margin: 0;
  color: var(--sky);
}

.doc {
  max-width: 68ch;
}

.doc h2 {
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  margin: 2.25rem 0 0.5rem;
}

.doc > :first-child {
  margin-top: 0;
}

.doc p:last-child {
  margin-bottom: 0;
}

.doc a {
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

/* DoseClan theme */

.theme-doseclan {
  --blue: #F7BD11;      /* marigold: accent fills */
  --blue-text: #024C26; /* pine: links and small accent text */
  --off-white: #FFF8EC; /* cream */
  --emerald: #058A54;
  --pine: #024C26;
  --cream: #FFF8EC;
}

.theme-doseclan :focus-visible {
  outline-color: var(--emerald);
}

.theme-doseclan .hero {
  background: radial-gradient(ellipse at 20% 0%, #0A6B3F 0%, var(--pine) 55%, #013318 100%);
}

.theme-doseclan .hero-sub,
.theme-doseclan .updated,
.theme-doseclan .eyebrow,
.theme-doseclan .cta p {
  color: var(--cream);
}

.theme-doseclan .eyebrow:hover {
  color: var(--white);
}

.theme-doseclan .section-dark {
  background: var(--pine);
}

.theme-doseclan .section-light h2,
.theme-doseclan .section-alt h2,
.theme-doseclan .step h3,
.theme-doseclan .feature-card h3,
.theme-doseclan .help-section h3 {
  color: var(--pine);
}

.theme-doseclan .badge,
.theme-doseclan .step::before {
  background: var(--blue);
  color: var(--pine);
}

.theme-doseclan .feature-card {
  border-top: 4px solid var(--emerald);
}

.hero .badge {
  margin-top: 0.5rem;
}

.premium-card {
  max-width: 44rem;
  padding: 2rem;
  background: var(--white);
  border: 2px solid var(--emerald, var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.premium-card h2 {
  margin-bottom: 0.75rem;
}

.premium-card p {
  margin: 0;
  font-size: 1.125rem;
}

/* Larger screens */

@media (min-width: 560px) {
  .brand img {
    width: 168px;
  }

  .nav-list {
    gap: 0.5rem;
    margin-right: -0.875rem;
  }

  .nav-list a {
    padding: 0 0.875rem;
    font-size: 1rem;
  }

  .contact-list {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 800px) {
  .hero {
    padding: 6.5rem 0 7rem;
  }

  .section {
    padding: 6rem 0;
  }

  .app-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .app-card {
    padding: 2.5rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }

  .watch-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .watch-gallery figure:last-child {
    grid-column: auto;
    width: auto;
  }

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

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

  .watch-gallery {
    grid-template-columns: repeat(5, 1fr);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .btn:hover,
  .app-card:hover {
    transform: none;
  }
}
