/* Pets OS website. Light pages with dark "stage" sections for the devices. */
:root {
  --bg: #f5f5f2;
  --bg-2: #ffffff;
  --ink: #16171b;
  --ink-2: #4a4d57;
  --ink-3: #7b7f8b;
  --line: rgba(20, 22, 30, .1);
  --stage: #2a2d37;           /* the device renders' own backdrop */
  --stage-ink: #f3f3f6;
  --stage-ink-2: #b9bccb;
  --blue: #3f6fe8;
  --blue-ink: #ffffff;
  --coral: #f2705a;           /* the footprints */
  --honey: #e2b062;
  --lilac: #b9aef7;
  --mint: #a6e6ce;
  --cream: #e4dacb;
  --radius: 22px;
  --nav-h: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101114; --bg-2: #1a1b20; --ink: #f2f2f5; --ink-2: #c3c5cf; --ink-3: #8d909c; --line: rgba(255,255,255,.1);
    --blue: #6b91ff; --blue-ink: #08112a; color-scheme: dark;
  }
}
:root[data-theme="dark"] { --bg: #101114; --bg-2: #1a1b20; --ink: #f2f2f5; --ink-2: #c3c5cf; --ink-3: #8d909c; --line: rgba(255,255,255,.1); --blue: #6b91ff; --blue-ink: #08112a; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 52px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; margin: 0; line-height: 1.08; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-2); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---- global nav ---- */
.globalnav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.gn-inner { width: min(1080px, 100% - 32px); margin: 0 auto; height: var(--nav-h); display: flex; align-items: center; gap: 18px; }
.gn-logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.gn-logo img { border-radius: 6px; }
.gn-logo:hover { text-decoration: none; }
.gn-links { list-style: none; display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; align-items: center; }
.gn-links a { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.gn-links a:hover, .gn-links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.gn-cta a { background: var(--blue); color: var(--blue-ink) !important; padding: 5px 12px; border-radius: 99px; font-weight: 500; }
.gn-menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.gn-menu span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.gn-menu span:first-child { top: 18px; } .gn-menu span:last-child { top: 25px; }
.gn-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.gn-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 860px) {
  .gn-menu { display: block; }
  .gn-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 8px 16px 20px; border-bottom: 1px solid var(--line); }
  .gn-links.open { display: flex; }
  .gn-links a { display: block; font-size: 22px; font-weight: 600; color: var(--ink); padding: 10px 0; }
  .gn-cta a { display: inline-block; margin-top: 8px; font-size: 17px !important; padding: 10px 18px; }
}

/* ---- product sub-nav ---- */
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.subnav-inner { width: min(1080px, 100% - 32px); margin: 0 auto; height: 52px; display: flex; align-items: center; gap: 18px; }
.subnav-title { font: 600 20px var(--display); letter-spacing: -.02em; white-space: nowrap; margin-right: auto; }
.subnav-links { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.subnav .pill { font-size: 12px; padding: 4px 11px; }
@media (max-width: 600px) { .subnav-links { display: none; } .subnav-title { font-size: 17px; } }

/* ---- buttons ---- */
.pill { display: inline-block; background: var(--blue); color: var(--blue-ink); padding: 11px 22px; border-radius: 99px; font-size: 17px; font-weight: 500; white-space: nowrap; }
.pill:hover { text-decoration: none; filter: brightness(1.08); }
.pill.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.link-arrow::after { content: " ›"; }
.ctas { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 22px; }

/* ---- sections ---- */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.center { text-align: center; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--coral); margin-bottom: 8px; }
.headline { font-size: clamp(40px, 7vw, 80px); font-weight: 700; }
.h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; }
.h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.lede { font-size: clamp(19px, 2.2vw, 24px); color: var(--ink-2); line-height: 1.35; margin-top: 14px; letter-spacing: -.015em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* dark stage for the devices */
.stage { background: radial-gradient(120% 80% at 50% 30%, #343846 0%, var(--stage) 60%, #1f2129 100%); color: var(--stage-ink); }
.stage .lede, .stage .muted { color: var(--stage-ink-2); }
.stage a:not(.pill) { color: #9db6ff; }
.stage .pill.ghost { color: #9db6ff; box-shadow: inset 0 0 0 1px #9db6ff; }
.render { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); margin: 0 auto; }
.render.wide { -webkit-mask-image: radial-gradient(60% 55% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(60% 55% at 50% 50%, #000 70%, transparent 100%); }

/* hero */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero .render { width: min(560px, 92%); margin-top: 18px; }
.hero.home { padding-top: 64px; }

/* tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; }
.tile { border-radius: 0; min-height: 600px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 52px 24px 0; overflow: hidden; position: relative; }
.tile h2 { font-size: clamp(32px, 4vw, 44px); font-weight: 700; }
.tile p { font-size: 19px; margin-top: 6px; color: var(--ink-2); }
.tile.stage p { color: var(--stage-ink-2); }
.tile .ctas { margin-top: 16px; }
.tile .art { margin-top: auto; width: min(420px, 100%); }
.tile.light { background: var(--bg-2); }
.tile.honey { background: linear-gradient(180deg, #fbf3e6, #f3e3c6); color: #2b2216; }
.tile.honey p { color: #5d4b32; }
.tile.lilac { background: linear-gradient(180deg, #f1efff, #ddd7ff); color: #1f1a3d; }
.tile.lilac p { color: #4a4380; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; padding: 12px 0; } .tile { min-height: 520px; } }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature { background: var(--bg-2); border-radius: var(--radius); padding: 28px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.feature h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.feature p { color: var(--ink-2); margin-top: 6px; font-size: 16px; }
.stage .feature { background: rgba(255,255,255,.06); }
.stage .feature p { color: var(--stage-ink-2); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* screenshot rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .copy .h2 { font-size: clamp(30px, 4vw, 48px); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } .split .copy { text-align: center; } }
.phone-shot { width: min(300px, 78%); margin: 0 auto; border-radius: 44px; padding: 9px; background: linear-gradient(145deg, #4b5063, #23252e); box-shadow: 0 30px 60px -20px rgba(10, 12, 30, .45), inset 0 0 0 1.5px rgba(255,255,255,.12); }
.phone-shot img { border-radius: 36px; aspect-ratio: 402 / 874; object-fit: cover; width: 100%; }
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 8px 16px 28px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shots figure { margin: 0; flex: 0 0 auto; width: 230px; scroll-snap-align: center; text-align: center; }
.shots .phone-shot { width: 100%; border-radius: 36px; padding: 7px; }
.shots .phone-shot img { border-radius: 30px; }
.shots figcaption { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
@media (min-width: 1100px) { .shots { justify-content: center; flex-wrap: wrap; overflow: visible; } }

/* big stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; text-align: center; }
.stat b { display: block; font: 700 clamp(30px, 4vw, 44px)/1 var(--display); letter-spacing: -.03em; }
.stat span { display: block; color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.stage .stat span { color: var(--stage-ink-2); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; gap: 28px 12px; } }

/* finishes */
.finishes { display: flex; justify-content: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.finish { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--stage-ink-2); }
.finish i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 2px 6px rgba(0,0,0,.35); }

/* gallery of renders */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.gallery figure { margin: 0; background: var(--stage); border-radius: 18px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.gallery.landscape img { aspect-ratio: 7/5; }
.gallery figcaption { font-size: 13px; color: var(--stage-ink-2); padding: 10px 14px 14px; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* spec tables */
.specs { margin-top: 40px; }
.spec-group { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.spec-group h3 { font-size: 21px; font-weight: 600; }
.spec-group dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.spec-group dt { color: var(--ink-3); font-size: 15px; }
.spec-group dd { margin: 0; font-size: 16px; }
.spec-group .note { color: var(--ink-3); font-size: 13px; }
@media (max-width: 700px) { .spec-group { grid-template-columns: 1fr; gap: 12px; } .spec-group dl { grid-template-columns: 1fr; gap: 2px; } .spec-group dd { margin-bottom: 10px; } }
.concept-badge { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; background: rgba(242,112,90,.14); color: var(--coral); margin-bottom: 14px; }
.stage .concept-badge { background: rgba(242,112,90,.2); color: #ffb3a5; }

/* get / download cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: var(--bg-2); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 24px; font-weight: 700; }
.card p { color: var(--ink-2); font-size: 16px; }
.card .pill { margin-top: auto; align-self: flex-start; }
.card .ver { font-size: 13px; color: var(--ink-3); }
.card ol { margin: 4px 0 8px; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* support + releases */
.help { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.help article { background: var(--bg-2); border-radius: var(--radius); padding: 28px; }
.help h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.help p, .help li { color: var(--ink-2); font-size: 16px; }
.help ol, .help ul { padding-left: 20px; margin: 8px 0 0; }
.help li + li { margin-top: 6px; }
@media (max-width: 800px) { .help { grid-template-columns: 1fr; } }
details.faq { border-top: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 24px; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--ink-2); margin-top: 10px; }
.release { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.release h2 { font-size: 28px; }
.release .date { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.release ul { margin: 0; padding-left: 20px; }
.release li { color: var(--ink-2); }
.release li + li { margin-top: 6px; }
.release .checks { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.release .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); border-radius: 99px; padding: 2px 9px; margin-top: 8px; }
@media (max-width: 700px) { .release { grid-template-columns: 1fr; gap: 10px; } }

.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 12px; color: var(--ink-3); }
.footer .footnote { padding-bottom: 18px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; }
.footer h3 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 8px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.footer a { color: var(--ink-2); }
.footer .legal { border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* gentle reveal (off when reduced motion is on) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
