/* ============================================================================
   BreedScale brand site
   Shares the design tokens of ourdoodle.com/tools (teal #0F766E, 24px radius,
   oversized numerals), but the hero here is the product, not a form, so the
   first screen is built around phone frames instead of inputs.
   ========================================================================== */

:root {
  --bg: #f5f8f7;
  --surface: #ffffff;
  --surface-2: #f8fbfa;

  --ink: #0a1f1c;
  --ink-2: #3b524d;
  --ink-3: #7a908a;

  --line: #e2eae8;
  --line-soft: #eff4f3;

  --brand: #0f766e;
  --brand-deep: #0b5751;
  --brand-mid: #14b8a6;
  --brand-soft: #e6f4f1;
  --accent: #ea580c;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 28, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(10, 31, 28, 0.18);
  --shadow-lg: 0 24px 64px -32px rgba(10, 31, 28, 0.35);

  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 248, 247, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brandmark:hover { text-decoration: none; }

.brandmark .dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--brand-mid), var(--brand-deep));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(15, 118, 110, 0.7);
}
.btn-primary:hover { background: var(--brand-deep); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand-mid); color: var(--brand-deep); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(52% 46% at 18% 12%, rgba(20, 184, 166, 0.16), transparent 70%),
    radial-gradient(46% 44% at 82% 4%, rgba(15, 118, 110, 0.13), transparent 72%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 0;
  text-wrap: balance;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.lede {
  margin: 20px 0 0;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--ink-2);
  max-width: 33em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  align-items: center;
}

.fineprint {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}

/* ── Phone mockups ─────────────────────────────────────────────────────────── */

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
}

.phone {
  width: 178px;
  flex: 0 0 178px;
  border-radius: 30px;
  background: #0a1f1c;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.phone:nth-child(2) { transform: translateY(-22px); }

.phone .screen {
  background: #fff;
  border-radius: 24px;
  padding: 15px 13px 17px;
  min-height: 356px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.phone .ph-top {
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.phone .ph-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.phone .ph-big {
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--brand-deep);
}
.phone .ph-unit {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-3);
  font-weight: 600;
}

.phone .ph-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  padding: 8px 9px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--ink-3);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}
.phone .ph-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.phone .ph-card b {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.phone .ph-pill {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.25;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  white-space: normal;
}

.spark { margin-top: auto; }

/* ── Shared sections ─────────────────────────────────────────────────────────── */

section { padding: 72px 0; }
section.tight { padding: 56px 0; }

.section-head { max-width: 46em; }
.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-head p {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.card p { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; }

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  color: var(--brand-deep);
}

/* ── Honest list (what the app does not do)────────────────────────────────────── */

.honest {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}
.honest h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; }
.honest .sub { margin: 12px 0 0; color: var(--ink-2); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.checks li b { color: var(--ink); }
.checks svg { color: var(--brand); margin-top: 3px; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq { margin-top: 30px; display: grid; gap: 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--brand);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; }

/* ── Closing call to action ─────────────────────────────────────────────────────────── */

.cta-band {
  background: linear-gradient(140deg, var(--brand-deep), #0a4a45 55%, #073b37);
  border-radius: 28px;
  padding: 46px 40px;
  color: #eafaf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -0.02em;
}
.cta-band p { margin: 10px 0 0; color: #bfe6e0; font-size: 15.5px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); }
.cta-band .btn-primary:hover { background: #eafaf7; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  margin-top: 24px;
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.site-foot .col { font-size: 14px; color: var(--ink-3); }
.site-foot .col a { color: var(--ink-2); }
.site-foot .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── Legal / long-form pages ──────────────────────────────────────────────────────── */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 4px;
}
.doc h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.doc .meta { color: var(--ink-3); font-size: 14px; margin: 0 0 34px; }
.doc h2 {
  font-size: 20px;
  margin: 38px 0 10px;
  letter-spacing: -0.01em;
}
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .callout {
  background: var(--brand-soft);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 24px 0;
  color: var(--brand-deep);
  font-size: 16px;
}
.doc .callout b { color: var(--brand-deep); }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phones { justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; }
  .phone { width: 168px; flex: 0 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .honest { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
  .cta-band { padding: 34px 26px; }
  section { padding: 56px 0; }
  .site-nav { gap: 16px; font-size: 14px; }
  .site-nav a.hide-sm { display: none; }
}

@media (max-width: 520px) {
  .hero { padding: 40px 0 48px; }
  /* One phone only: two half-visible frames read as clipped, not as "scroll me". */
  .phone:nth-child(2),
  .phone:nth-child(3) { display: none; }
  .phones { justify-content: center; overflow: visible; }
  .phone { width: 208px; flex: 0 0 208px; }
  .phone .screen { min-height: 340px; }
  .doc { padding-top: 36px; }
}
