/* Strain ID website
   Same system as the app: white background, flat color blocks, one blue for
   actions, no shadows or borders. Category colors match StrainIDTheme.swift. */

@font-face {
  font-family: "Fredoka One";
  src: url("assets/FredokaOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --muted: #f5f5f3;
  --ink: #2b2b2b;
  --ink-2: #6f6f6f;
  --accent: #3e63dd;
  --sativa: #e2703a;
  --indica: #5b4b8a;
  --hybrid: #3f8fa6;
  --fav: #c2588a;

  --r-tile: 18px;
  --r-card: 28px;
  --r-pill: 999px;

  --display: "Fredoka One", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34rem; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--accent); color: #fff; border: 0; cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; }
.btn-quiet { background: var(--muted); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 1.8rem; line-height: 1; color: var(--ink); }
.brand img { height: 58px; width: 58px; }
.brand b { font-weight: 400; color: var(--sativa); }
.nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a.link { text-decoration: none; font-weight: 600; color: var(--ink); }
.nav a.link:hover { color: var(--accent); }
.nav .btn { padding: 11px 22px; font-size: .95rem; }

/* Hero: a big flat color card with the photo filling one side */
.hero { padding: 8px 0 70px; }
.hero-card {
  position: relative; display: grid; grid-template-columns: .78fr 1.22fr;
  background: var(--indica); color: #fff;
  border-radius: var(--r-card); overflow: hidden; min-height: 560px;
}
.hero-copy { position: relative; z-index: 1; padding: 52px 44px; align-self: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
.hero-copy .eyebrow { color: rgba(255,255,255,.78); }
.hero-copy h1 { margin: 14px 0 20px; }
.hero-copy .lead { color: rgba(255,255,255,.9); }
.hero-copy .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-copy .fine { color: rgba(255,255,255,.72); }
.hero-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 14px 18px; }
.hero-photo { object-fit: cover; object-position: 50% 50%; padding: 0; }
.btn-ghost { background: rgba(255,255,255,.18); color: #fff; }
.fine { font-size: .85rem; color: var(--ink-2); margin-top: 18px; }

/* Phone mock */
.phone-stage { position: relative; display: flex; justify-content: center; padding: 28px 0; }
.phone-stage::before {
  content: ""; position: absolute; inset: 0; background: var(--sativa); border-radius: var(--r-card);
}
.phone-stage .dots { position: absolute; inset: 0; border-radius: var(--r-card); }
.phone {
  position: relative; width: 270px; background: #2b2b2b; border-radius: 42px; padding: 9px;
}
.screen { background: #fff; border-radius: 34px; padding: 20px 14px 0; height: 540px; overflow: hidden; position: relative; }
.screen h4 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; margin: 6px 0 10px; }
.screen .search { background: var(--muted); border-radius: 12px; height: 30px; margin-bottom: 10px; }
.screen .chips { display: flex; gap: 6px; margin-bottom: 12px; }
.screen .chips span { font-size: .62rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--muted); }
.screen .chips span.on { background: var(--accent); color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { position: relative; overflow: hidden; border-radius: 14px; padding: 10px; height: 116px; color: #fff; }
.tile .sticker { width: 42px; height: 42px; font-size: 1.5rem; }
.tile b { display: block; font-size: .72rem; margin-top: 8px; line-height: 1.2; }
.tile small { font-size: .62rem; opacity: .85; }
.sticker { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 25%; }
.sticker img { width: 84%; height: 84%; object-fit: contain; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: #fff; border-top: 1px solid var(--muted); display: flex; align-items: center; justify-content: center; }
.tabbar i { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); display: block; }

/* Dot texture, same idea as the app tiles */
.dots { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.8px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom left, #000, transparent 85%);
  mask-image: linear-gradient(to bottom left, #000, transparent 85%);
}
.tile > *:not(.dots), .block > *:not(.dots) { position: relative; z-index: 1; }

/* Sections */
section { padding: 84px 0; }
.section-head { max-width: 40rem; margin-bottom: 44px; }
.section-head h2 { margin: 10px 0 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.block { position: relative; overflow: hidden; border-radius: var(--r-card); padding: 34px 30px 38px; color: #fff; min-height: 280px; }
.block .num { font-family: var(--display); font-size: 4.2rem; line-height: 1; opacity: .9; margin-bottom: 26px; }
.block h3 { margin-bottom: 10px; }
.block p { opacity: .92; }
.c-sativa { background: var(--sativa); }
.c-indica { background: var(--indica); }
.c-hybrid { background: var(--hybrid); }
.c-fav { background: var(--fav); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--muted); border-radius: var(--r-card); padding: 28px 24px; }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; margin-bottom: 18px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--display); font-size: 1.2rem; }
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: .95rem; }

/* Sticker pack */
.pack { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.sheet-stage { position: relative; background: var(--muted); border-radius: var(--r-card); padding: 56px 40px; display: flex; justify-content: center; align-items: center; }
.sheet-img { width: min(100%, 520px); height: auto; border-radius: 14px; transform: rotate(-2.5deg); box-shadow: 0 16px 34px rgba(0,0,0,.24); }
.sheet-stage .float { position: absolute; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.sheet-stage .f1 { width: 17%; left: 3%; top: -5%; transform: rotate(-12deg); }
.sheet-stage .f2 { width: 21%; right: 3%; bottom: -6%; transform: rotate(9deg); }
.pack-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.tag { background: var(--muted); border-radius: var(--r-pill); padding: 8px 16px; font-weight: 700; font-size: .85rem; }

/* CTA band */
.band { border-radius: var(--r-card); background: var(--hybrid); color: #fff; padding: 60px 48px; position: relative; overflow: hidden; }
.band h2 { max-width: 30rem; margin-bottom: 16px; }
.band p { max-width: 32rem; opacity: .92; margin-bottom: 28px; }
.band > *:not(.dots) { position: relative; z-index: 1; }
.band-photo { display: grid; grid-template-columns: 1.05fr .95fr; padding: 0; }
.band-photo .copy { padding: 60px 48px; align-self: center; }
.band-photo img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: 38% 62%; }

/* FAQ */
.faq { max-width: 46rem; }
details { background: var(--muted); border-radius: 20px; padding: 20px 24px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--ink-2); }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 12px; color: var(--ink-2); }

/* Footer */
footer { background: var(--muted); padding: 56px 0 40px; margin-top: 40px; }
footer .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
footer .brand img { height: 52px; width: 52px; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
footer a { text-decoration: none; font-weight: 600; }
footer .legal { margin-top: 36px; font-size: .82rem; color: var(--ink-2); max-width: 46rem; }

/* Scan landing page */
.scan { padding: 56px 0 70px; }
.scan .card { background: var(--muted); border-radius: var(--r-card); padding: 44px; max-width: 640px; margin: 0 auto; text-align: center; }
.scan .code { display: inline-block; background: #fff; border-radius: var(--r-pill); padding: 8px 18px; font-weight: 700; letter-spacing: .06em; margin: 18px 0 8px; }
.scan ol { text-align: left; max-width: 26rem; margin: 26px auto 30px; padding-left: 1.2rem; color: var(--ink-2); }
.scan ol li { margin-bottom: 8px; }
.scan .cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Dispensary page */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 900px) {
  .pack { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; min-height: 0; }
  .hero-img { order: -1; height: 340px; }
  .hero-photo { height: auto; aspect-ratio: 5 / 4; }
  .hero-copy { padding: 36px 26px 40px; }
  .steps, .three { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .nav ul li.hide-sm { display: none; }
  .band { padding: 44px 28px; }
  .band-photo { grid-template-columns: 1fr; padding: 0; }
  .band-photo img { order: -1; height: 230px; min-height: 0; }
  .band-photo .copy { padding: 34px 28px 40px; }
  section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .brand { font-size: 1.5rem; }
  .brand img { height: 46px; width: 46px; }
}

/* Long-form text pages (privacy policy) */
.doc { padding: 24px 0 72px; }
.doc .wrap > * { max-width: 44rem; }
.doc h1 { margin: 10px 0 6px; }
.doc .meta { color: var(--ink-2); font-size: .9rem; margin-bottom: 28px; }
.doc h2 { font-size: 1.5rem; margin: 40px 0 10px; }
.doc h3 { font-size: 1.1rem; margin: 24px 0 6px; font-family: var(--display); font-weight: 400; }
.doc p, .doc li { line-height: 1.65; }
.doc ul { padding-left: 1.2rem; margin: 8px 0 14px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); font-weight: 600; }
.doc .summary { background: var(--muted); border-radius: var(--r-card); padding: 24px 28px; margin-top: 8px; }
.doc .summary h2 { margin: 0 0 8px; font-size: 1.25rem; }
.doc .summary p { margin: 0; }
