/* Shared by the homepage, docs and privacy policy. Pollen Robotics' main
   website informs the cool gray palette, system typography and orange pills. */
:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --dim: #636368;
  --line: #d2d2d7;
  --accent: #925200;
  --accent-fill: #ff9500;
  --on-fill: #1d1d1f;
  --brand: #ff9500;
  --focus: #925200;
  --good: #286340;
  --warn: #925200;
  --tint: #fff3df;
  --soft-line: #e8e8ed;
  --header: rgba(245, 245, 247, .96);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101018;
    --card: #1c1c28;
    --ink: #f5f5f7;
    --dim: #b0b0ba;
    --line: #41414d;
    --accent: #ffb340;
    --focus: #ffb340;
    --good: #89d8a5;
    --warn: #ffb340;
    --tint: #30251c;
    --soft-line: #30303c;
    --header: rgba(16, 16, 24, .96);
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 7rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, pre:focus-visible, .scroller:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  border-radius: 3px;
}
p { margin: 0 0 1rem; }
li { margin: .4rem 0; }
ul, ol { padding-left: 1.3rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.25rem; margin: 0 0 .75rem; }
.wrap { width: min(100% - 3rem, 1100px); margin-inline: auto; }
.skip {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 100;
  background: var(--card);
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.skip:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--soft-line); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand small { display: block; color: var(--dim); font-size: .68rem; font-weight: 400; letter-spacing: 0; margin-top: .2rem; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { color: var(--dim); text-decoration: none; font-size: .86rem; padding-block: .75rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: .65rem; }
.site-nav .nav-source { border: 1px solid var(--line); padding: .4rem 1rem; border-radius: 999px; color: var(--ink); }
.hero { padding: 76px 0 62px; text-align: center; }
.hero .product-name { color: var(--dim); font-size: 1rem; margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.65rem, 6.6vw, 5rem); line-height: 1.05; letter-spacing: -.035em; }
.hero .lede { max-width: 42ch; margin: 0 auto 1.4rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--dim); text-wrap: pretty; }
.facts { list-style: none; padding: 0; display: flex; justify-content: center; gap: .4rem 1.25rem; flex-wrap: wrap; margin: 0 auto 1.6rem; color: var(--dim); font-size: .8rem; }
.facts li { margin: 0; }
.facts li::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--brand); border-radius: 50%; margin: 0 .45rem .12rem 0; }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero .ctas { justify-content: center; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .7rem 1.45rem; color: var(--on-fill); background: var(--accent-fill); border: 1px solid var(--accent-fill); border-radius: 999px; text-decoration: none; font-size: .98rem; line-height: 1.25; font-weight: 550; transition: background-color .15s ease; }
.cta:hover { background: #ffb340; border-color: #ffb340; }
.cta.secondary { background: transparent; color: var(--accent); border-color: var(--brand); }
.cta.secondary:hover { background: var(--tint); }
.hair, .meta, .updated { font-size: .85rem; color: var(--dim); }
.hero .hair { max-width: 45ch; margin: 1rem auto 0; font-size: .75rem; }
.studio-feature { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--card); border-radius: 24px; overflow: hidden; }
.studio-art { margin: 0; position: relative; background: #7ac9cb; }
.studio-art img { width: 100%; height: 100%; object-fit: cover; }
.studio-art figcaption { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #ffffffed; color: #1d1d1f; font-size: .72rem; padding: .3rem .75rem; border-radius: 999px; }
.studio-feature-copy { padding: clamp(2rem, 4vw, 3.5rem); align-self: center; }
.studio-feature-copy h2 { max-width: 17ch; }
.studio-feature-copy p { color: var(--dim); max-width: 39ch; }
.text-link { font-weight: 550; }
.text-link span { display: inline-block; margin-left: .3rem; font-size: 1.2em; }
.section { padding-top: 88px; }
.section-heading { max-width: 43rem; margin-bottom: 2rem; }
.section-heading p { color: var(--dim); font-size: 1.1rem; max-width: 52ch; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--soft-line); border-radius: 18px; padding: 1.5rem; }
.feature-grid .card { padding: 1.8rem; }
.feature-grid h3 { font-size: 1.3rem; margin-bottom: .9rem; }
.feature-grid p { color: var(--dim); font-size: .94rem; margin: 0; }
.feature-grid .card:first-child { border-top: 3px solid var(--brand); }
.note { margin: 1.75rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--brand); color: var(--dim); background: var(--tint); border-radius: 0 12px 12px 0; font-size: .9rem; }
.note p { margin: 0; }
.note strong { color: var(--ink); }
.docs-hub { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; background: var(--card); border-radius: 24px; padding: 3rem; }
.docs-hub h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.docs-hub .intro { color: var(--dim); max-width: 32ch; margin-bottom: 1.5rem; }
.guide-links { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 2rem; align-content: start; }
.guide-links a { display: flex; flex-direction: column; padding: 1rem 0; border-bottom: 1px solid var(--soft-line); color: var(--ink); text-decoration: none; }
.guide-links a:hover strong { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.guide-links strong { font-size: .95rem; font-weight: 600; }
.guide-links span { color: var(--dim); font-size: .82rem; margin-top: .3rem; }
.download-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-bottom: 80px; }
.download-section h2 { max-width: 13ch; }
.download-section p { color: var(--dim); max-width: 38ch; }
.download-links { list-style: none; padding: 0; margin: 0; }
.download-links li { margin: 0; border-bottom: 1px solid var(--line); }
.download-links a { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; text-decoration: none; color: var(--ink); font-weight: 550; gap: 1rem; }
.download-links a:hover { color: var(--accent); }
.download-links span { color: var(--dim); font-size: .8rem; font-weight: 400; text-align: right; }
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.footer-title { font-size: 1rem; font-weight: 600; color: var(--ink); }
.footer-copy { color: var(--dim); font-size: .8rem; }
.footer-copy p { max-width: 78ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .8rem; }
.footer-links a { color: var(--dim); }

/* Documentation: the same visual language, with a persistent reading index. */
.docs-layout { width: min(100% - 3rem, 1100px); margin: 0 auto; display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 4rem; padding: 3.5rem 0 5rem; }
.docs-sidebar { position: sticky; top: 7.2rem; align-self: start; max-height: calc(100dvh - 8.5rem); overflow-y: auto; padding: .5rem .5rem 1rem 0; }
.docs-sidebar nav { display: flex; flex-direction: column; }
.docs-mobile-nav { display: none; }
.docs-mobile-nav summary { cursor: pointer; color: var(--ink); font-weight: 550; font-size: .9rem; padding: .65rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.docs-mobile-nav[open] summary { margin-bottom: .8rem; }
.docs-sidebar ul { list-style: none; padding: 0; margin: 0; }
.docs-sidebar li { margin: 0; }
.docs-sidebar a { display: block; padding: .5rem .75rem; border-radius: 8px; text-decoration: none; color: var(--dim); font-size: .87rem; line-height: 1.5; }
.docs-sidebar a:hover, .docs-sidebar a:focus-visible { color: var(--ink); background: var(--tint); }
.docs-sidebar .sidebar-label { color: var(--ink); font-weight: 600; font-size: .8rem; margin: 1.4rem 0 .45rem .75rem; }
.docs-sidebar .sidebar-label:first-child { margin-top: 0; }
.docs-content { min-width: 0; max-width: 790px; }
.docs-intro { padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.eyebrow { color: var(--accent); font-size: .9rem; margin-bottom: .8rem; }
.docs-content h1 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); max-width: 14ch; }
.docs-content .lede { color: var(--dim); font-size: 1.15rem; max-width: 55ch; }
.docs-content h2 { font-size: 1.8rem; margin: 3.5rem 0 1.25rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.docs-intro + h2 { margin-top: 2rem; padding-top: 0; border-top: 0; }
.docs-content h3 { font-size: 1.1rem; margin: 1.8rem 0 .65rem; }
.docs-content p, .docs-content li, .docs-content dd { max-width: 75ch; }
.docs-content .standfirst { font-size: 1.1rem; }
.guide-steps { padding-left: 1.5rem; }
.guide-steps > li { padding: .4rem 0 .4rem .35rem; }
.guide-steps > li::marker { color: var(--accent); font-weight: 650; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin: 1.25rem 0; }
.grid h3 { margin-top: 0; }
.grid p { font-size: .93rem; }
.grid .card a { overflow-wrap: anywhere; }
.quote { margin: 1rem 0; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--brand); }
.quote p { margin: 0; color: var(--dim); }
.spec { margin: 1.5rem 0; }
.spec dt { color: var(--accent); font-weight: 600; margin-top: 1rem; }
.spec dd { margin: .3rem 0 1rem; }
code, kbd { font: .86em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--soft-line); padding: .13em .35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; overflow-x: auto; font-size: .88rem; line-height: 1.65; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
.scroller { overflow-x: auto; margin: 1.5rem 0; }
.scroller table { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
caption { text-align: left; color: var(--dim); font-size: .85rem; padding-bottom: .75rem; }
th, td { text-align: left; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--dim); }
td code { white-space: normal; }
.docs-content > p a, .docs-content dd a, .docs-content li a { overflow-wrap: anywhere; }
.docs-content :target { scroll-margin-top: 1rem; }

/* The established privacy URL and its text stay readable in the shared theme. */
.privacy-wrap { width: min(100% - 3rem, 760px); margin-inline: auto; padding: 4rem 0; }
.privacy-header { padding-bottom: 1rem; }
.privacy-header .lede { font-size: 1.15rem; color: var(--dim); }
.privacy-wrap h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.privacy-wrap h3 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; }
.headline { background: var(--card); border: 1px solid var(--soft-line); border-radius: 18px; padding: 1.5rem; margin: 1rem 0 2rem; }
.headline p { margin: 0; }
.headline strong { color: var(--good); }
.privacy-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; color: var(--dim); font-size: .87rem; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-hub { gap: 2rem; padding: 2rem; }
  .docs-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 2rem; }
  .studio-feature-copy { padding: 2rem; }
  .footer-inner { grid-template-columns: 1fr 2fr; gap: 2rem; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 8rem; }
  .wrap, .docs-layout, .privacy-wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: auto; gap: .6rem; flex-wrap: wrap; padding-block: .7rem .25rem; }
  .brand { font-size: .93rem; }
  .brand img { width: 32px; height: 32px; }
  .brand small { font-size: .65rem; }
  .site-nav { gap: 1.5rem; width: 100%; justify-content: space-between; }
  .site-nav a { font-size: .78rem; padding-block: .55rem; }
  .site-nav .nav-source { padding: .2rem .8rem; }
  .hero { padding: 35px 0 38px; }
  .hero .product-name { font-size: .85rem; margin-bottom: .8rem; }
  .hero h1 { font-size: clamp(2.2rem, 9.5vw, 3.5rem); margin-bottom: 1rem; }
  .hero .lede { font-size: 1.05rem; max-width: 32ch; margin-bottom: 1.1rem; }
  .facts { max-width: 350px; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .5rem; margin-bottom: 1.25rem; font-size: .7rem; }
  .facts li { white-space: nowrap; }
  .cta { font-size: .86rem; padding: .7rem 1.15rem; }
  .hero .hair { font-size: .7rem; max-width: 42ch; }
  .studio-feature { grid-template-columns: 1fr; border-radius: 20px; }
  .studio-art { max-height: 360px; }
  .studio-art img { object-position: center 38%; }
  .studio-feature-copy { padding: 2rem; }
  .studio-feature-copy h2 { max-width: 16ch; font-size: 2rem; }
  .section { padding-top: 3.5rem; }
  .feature-grid { grid-template-columns: 1fr; gap: .75rem; }
  .feature-grid .card { padding: 1.5rem; }
  .feature-grid h3 { font-size: 1.2rem; }
  .docs-hub { grid-template-columns: 1fr; padding: 1.5rem; gap: 1.25rem; }
  .docs-hub h2 { max-width: 16ch; font-size: 2rem; }
  .guide-links { gap: 0 1rem; }
  .guide-links strong { font-size: .85rem; }
  .guide-links span { font-size: .77rem; }
  .download-section { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 3.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: .6rem; }
  .site-footer { padding-block: 2rem; }
  .docs-layout { display: block; padding-top: 1.5rem; }
  .docs-sidebar { position: static; max-height: none; padding: 0 0 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
  .docs-sidebar nav { display: block; }
  .docs-sidebar .docs-desktop-nav { display: none; }
  .docs-mobile-nav { display: block; }
  .docs-sidebar ul { display: flex; flex-wrap: wrap; gap: .35rem; }
  .docs-sidebar nav > a, .docs-sidebar li { display: inline-block; }
  .docs-sidebar a { background: var(--card); border: 1px solid var(--soft-line); font-size: .77rem; padding: .45rem .7rem; }
  .docs-sidebar .sidebar-label { margin: 1rem 0 .55rem; }
  .docs-intro { padding-bottom: 1rem; }
  .docs-content h1 { font-size: 2.5rem; }
  .docs-content h2 { font-size: 1.65rem; margin-top: 2.5rem; }
  .docs-content .lede { font-size: 1.05rem; }
  .privacy-wrap { padding-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { color-scheme: light; --bg: #fff; --card: #fff; --ink: #000; --dim: #333; --line: #aaa; --accent: #000; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .docs-sidebar, .skip, .ctas, .studio-art { display: none; }
  .wrap, .docs-layout, .privacy-wrap { width: 100%; }
  .docs-layout { display: block; padding: 0; }
  .docs-content { max-width: none; }
  .hero { padding: 1rem 0; }
  .section { padding-top: 2rem; }
  .card, .note, pre { break-inside: avoid; }
  .studio-feature { display: block; }
}
