:root {
  --ink: #111820;
  --muted: #56626a;
  --paper: #f5f2ea;
  --white: #fffdf8;
  --dark: #0b1117;
  --dark-muted: #b7c2c5;
  --blue: #00abf3;
  --gold: #d6af3c;
  --magenta: #a91455;
  --line: #d8d5cc;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; }
a { color: inherit; }
.shell { width: min(calc(100% - 48px), var(--shell)); margin: 0 auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--blue); color: var(--dark); font-weight: 700; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--dark); color: #f4f7f6; border-bottom: 1px solid #253038; }
.nav-wrap { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand img { display: block; }
nav { display: flex; gap: 24px; margin-left: auto; }
nav a, .footer-links a { color: #c9d2d4; text-decoration: none; font-size: 14px; }
nav a:hover, nav a:focus, .footer-links a:hover, .footer-links a:focus { color: #fff; }
.nav-cta { border: 1px solid #68777c; padding: 9px 14px; color: #fff; text-decoration: none; font-size: 14px; }
.nav-cta:hover, .nav-cta:focus { border-color: var(--blue); color: var(--blue); }
.hero { min-height: 700px; padding-top: 92px; padding-bottom: 92px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.hero-copy { max-width: 520px; }
.eyebrow { margin: 0 0 18px; color: var(--magenta); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-dark .eyebrow, .site-header .eyebrow { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: 68px; max-width: 580px; }
h2 { font-size: 44px; max-width: 600px; }
h3 { font-size: 23px; }
.hero-lede { margin: 26px 0 0; max-width: 560px; font-size: 25px; line-height: 1.22; }
.hero-body { max-width: 500px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 16px; border: 1px solid transparent; text-decoration: none; font-weight: 700; font-size: 14px; }
.button-primary { background: var(--dark); color: #fff; }
.button-primary:hover, .button-primary:focus { background: var(--blue); color: var(--dark); }
.button-secondary { border-color: #8d9695; color: var(--ink); }
.button-secondary:hover, .button-secondary:focus { border-color: var(--dark); background: var(--white); }
.facts { display: flex; flex-wrap: wrap; gap: 9px 20px; padding: 0; margin: 28px 0 0; list-style: none; color: var(--muted); font-size: 13px; }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; background: var(--gold); }
.product-shot { margin: 0; padding: 12px; background: var(--dark); box-shadow: 18px 18px 0 var(--gold); }
.shot-bar { height: 30px; display: flex; align-items: center; gap: 6px; color: #aeb9bc; font-size: 11px; }
.shot-bar span { width: 7px; height: 7px; border-radius: 50%; background: #56636a; }
.shot-bar strong { margin-left: 8px; font-weight: 500; }
.product-shot img { display: block; width: 100%; height: auto; }
figcaption { padding: 10px 3px 1px; color: #b7c2c5; font-size: 12px; }
.section { padding: 108px 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--dark); color: #f4f7f6; }
.section-accent { background: var(--blue); color: var(--dark); }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; padding-bottom: 60px; }
.section-intro > p:last-child { max-width: 440px; margin: 0; color: var(--muted); font-size: 17px; }
.feature-list { border-top: 1px solid var(--line); }
.feature-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 36px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.feature-row p { max-width: 650px; margin: 10px 0 0; color: var(--muted); }
.feature-index { color: var(--magenta); font: 700 14px/1 "Segoe UI", Arial, sans-serif; }
.workflow-grid, .release-grid, .family-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.workflow-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #334048; }
.workflow-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid #334048; }
.workflow-steps span { color: var(--gold); font-size: 13px; font-weight: 800; }
.workflow-steps strong { font-size: 20px; }
.workflow-steps p { margin: 5px 0 0; color: var(--dark-muted); }
.release-grid { align-items: center; }
.release-copy { max-width: 600px; font-size: 20px; }
.release-copy p { margin: 0 0 22px; }
.text-link { color: inherit; font-weight: 800; text-decoration: none; border-bottom: 2px solid currentColor; }
.text-link:hover, .text-link:focus { color: var(--magenta); }
.family-grid p { max-width: 600px; margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.site-footer { background: var(--dark); color: #c0cbcd; padding: 34px 0; }
.footer-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.footer-brand { color: #fff; }
.footer-wrap > p { margin: 0; font-size: 13px; }
.footer-links { display: flex; gap: 18px; margin-left: auto; }
.legal-page { padding: 90px 0 110px; }
.legal-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 90px; }
.legal-aside { position: sticky; top: 30px; align-self: start; }
.legal-aside h1 { font-size: 48px; }
.legal-aside > p:not(.eyebrow) { color: var(--muted); }
.legal-aside .text-link { display: inline-block; margin-top: 24px; font-size: 14px; }
.legal-copy { max-width: 720px; }
.legal-copy .lead { margin-top: 0; font-size: 24px; line-height: 1.3; }
.legal-copy h2 { margin-top: 44px; font-size: 27px; }
.legal-copy p { color: var(--muted); }
.legal-copy a { color: var(--magenta); }
.legal-copy code { padding: 2px 5px; background: #e9e6dd; color: var(--ink); font-size: .9em; }
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: start; width: min(calc(100% - 48px), 680px); margin: 0 auto; }
.not-found img { margin-bottom: 30px; }
.not-found h1 { font-size: 48px; }
.not-found p:last-child { margin-top: 30px; }

@media (max-width: 900px) {
  .nav-wrap { gap: 18px; }
  nav { gap: 14px; }
  .hero { grid-template-columns: 1fr; gap: 54px; padding-top: 64px; }
  .hero-copy { max-width: 700px; }
  h1 { font-size: 58px; }
  .product-shot { max-width: 760px; }
  .section-intro, .workflow-grid, .release-grid, .family-grid, .legal-layout { grid-template-columns: 1fr; gap: 35px; }
  .legal-aside { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  .site-header { padding: 12px 0; }
  .nav-wrap { align-items: flex-start; flex-wrap: wrap; }
  nav { order: 3; width: 100%; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  h1 { font-size: 46px; }
  h2 { font-size: 36px; }
  .hero-lede { font-size: 21px; }
  .hero { min-height: auto; padding-top: 54px; padding-bottom: 70px; }
  .product-shot { padding: 7px; box-shadow: 9px 9px 0 var(--gold); }
  .shot-bar { height: 25px; }
  .section { padding: 74px 0; }
  .section-intro { padding-bottom: 38px; }
  .feature-row { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .feature-row h3 { font-size: 20px; }
  .workflow-grid, .release-grid, .family-grid { gap: 28px; }
  .release-copy { font-size: 18px; }
  .footer-wrap { align-items: flex-start; flex-direction: column; }
  .footer-links { margin-left: 0; }
  .legal-page { padding: 60px 0 80px; }
  .legal-aside h1 { font-size: 42px; }
  .legal-copy .lead { font-size: 21px; }
}

/* 301-ui / Fluent-inspired product site layer. */
:root {
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --accent-brand: #60cdff;
  --accent-brand-hover: #98d8ff;
  --primary-301: #3475c0;
  --primary-301-hover: #4da3ff;
  --r-pill-301: 999px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --container-max: 1120px;
  --container-pad: clamp(1rem, 3vw, 2rem);
}
html[data-theme="dark"] {
  --paper: #111111;
  --white: #181a1f;
  --dark: #101010;
  --ink: #e7e9ee;
  --muted: #a0a4af;
  --dark-muted: #a0a0a0;
  --blue: var(--primary-301);
  --magenta: var(--primary-301);
  --gold: #f5a623;
  --line: rgba(255,255,255,.09);
  color-scheme: dark;
}
html[data-theme="light"] {
  --paper: #ffffff;
  --white: #f7f7f8;
  --dark: #1a1a1a;
  --ink: #1a1a1a;
  --muted: #666a73;
  --dark-muted: #a0a0a0;
  --blue: #0055dc;
  --magenta: #0055dc;
  --gold: #f5a623;
  --line: rgba(0,0,0,.1);
  color-scheme: light;
}
body { background: var(--paper); color: var(--ink); font-family: var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
.shell { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1.5rem; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(26,26,26,.94); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: saturate(180%) blur(18px); }
html[data-theme="light"] .site-header { background: rgba(245,245,245,.94); border-bottom-color: rgba(0,0,0,.09); }
.site-header { color: var(--ink); }
.nav-wrap { min-height: 64px; gap: 1.25rem; }
.brand { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.brand:hover { color: var(--ink); }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ink); background: rgba(96,205,255,.09); }
.desktop-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.desktop-nav a { padding: .4rem .75rem; color: #a0a0a0; font-size: .8125rem; border-radius: var(--r-sm); }
.desktop-nav a:hover { color: var(--ink); background: rgba(96,205,255,.09); }
.nav-actions { display: flex; align-items: center; gap: .35rem; margin-left: .5rem; }
.nav-cta { color: var(--ink); border-color: rgba(128,128,128,.5); border-radius: var(--r-pill-301); }
.nav-cta:hover, .nav-cta:focus-visible { color: var(--ink); border-color: var(--blue); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: #a0a0a0; cursor: pointer; }
.icon-button:hover, .icon-button:focus-visible { background: rgba(96,205,255,.09); color: var(--ink); }
.site-header .icon-button .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button { border-radius: var(--r-pill-301); font-family: var(--font-text); font-weight: 600; }
.button-primary { background: var(--blue); border-color: var(--blue); color: #071015; }
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-brand-hover); border-color: var(--accent-brand-hover); color: #071015; }
.button-ghost { background: transparent; border-color: rgba(128,128,128,.5); color: var(--ink); }
.button-ghost:hover, .button-ghost:focus-visible { background: var(--white); border-color: rgba(128,128,128,.75); color: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(2rem,5vw,4rem); align-items: center; min-height: 0; padding-block: 4rem; background: var(--dark); color: #f5f5f5; }
.hero.shell { max-width: none; padding-inline: max(1rem, calc((100% - 1200px) / 2 + 1.5rem)); }
.hero-grid { min-height: 0; padding-top: 0; padding-bottom: 0; }
.eyebrow { color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem,3.2vw,3rem); font-weight: 700; letter-spacing: -.02em; }
.hero-lede { color: #c5c5c5; font-size: 1.25rem; line-height: 1.6; }
.hero-body { color: #888; }
.hero-meta { color: #888; }
.hero-meta .icon { color: var(--blue); }
.product-shot { padding: .55rem; background: #0d0d0d; border: 1px solid #3b3b3b; border-radius: var(--r-lg); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
.product-shot img { border: 1px solid #363636; }
.shot-bar { color: #c8c8c8; }
figcaption { color: #9c9c9c; }
.section { padding: 4rem 0; }
.section-light { background: var(--white); }
.section-dark { background: var(--dark); }
.section-accent { background: var(--blue); color: #071015; }
.section-intro { display: block; max-width: 700px; margin: 0 auto 4rem; padding-bottom: 0; text-align: center; }
.section-intro .eyebrow { justify-content: center; }
.section-intro > p:last-child { max-width: 560px; margin: 1rem auto 0; color: var(--muted); }
.family-grid p, .feature-row p { color: var(--muted); }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; border-top: 0; }
.feature-row { display: block; min-height: 180px; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.feature-index { color: var(--blue); font-size: .8125rem; font-weight: 700; }
.feature-row h3 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.workflow-grid, .release-grid, .family-grid { gap: clamp(2rem,8vw,7rem); }
.section-dark .workflow-steps { border-top-color: rgba(255,255,255,.09); }
.section-dark .workflow-steps li { border-bottom-color: rgba(255,255,255,.09); }
.workflow-steps span { color: var(--blue); }
.workflow-steps strong { font-family: var(--font-display); font-weight: 600; }
.section-accent .eyebrow { color: #071015; }
.section-accent .text-link:hover, .section-accent .text-link:focus { color: #fff; }
.site-footer { background: var(--dark); border-top-color: rgba(255,255,255,.08); }
.footer-wrap { min-height: 42px; }
.footer-links a { color: #a0a0a0; }
.footer-links a:hover { color: #fff; }
.legal-page { background: var(--paper); }
.legal-layout { display: block; max-width: 680px; }
.legal-aside { position: static; margin-bottom: 3rem; }
.legal-aside h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.legal-copy .lead { color: var(--ink); font-size: 1.125rem; }
.legal-copy p, .legal-aside > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.legal-copy h2 { margin-top: 3rem; margin-bottom: .5rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.legal-copy p { margin-bottom: 1rem; }
.legal-copy code { background: var(--white); border: 1px solid var(--line); }
.mobile-toggle { display: none; }
@media (max-width: 767px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-wrap { flex-wrap: wrap; padding-inline: 1rem; }
  .nav-cta { display: none; }
  .site-header nav { order: 3; width: 100%; margin: 0; padding-top: .5rem; border-top: 1px solid var(--line); gap: .25rem; }
  .site-header { padding: 0; }
  .feature-list { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem 4rem; }
}

@media (min-width: 768px) and (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* BuhoSleep landing pattern: centered hero, quiet surfaces, compact WinUI controls. */
:root {
  --container-max: 1100px;
  --space-section: 6rem;
}
html[data-theme="dark"] {
  --paper: #1a1a1a;
  --white: #141414;
  --dark: #101010;
  --ink: #f5f5f5;
  --muted: #a0a0a0;
  --line: rgba(255,255,255,.07);
  --surface-card: #2a2a2a;
  --surface-card-hover: #323232;
  --accent-subtle: rgba(96,205,255,.08);
  --blue: #60cdff;
  --magenta: #60cdff;
  --dark-muted: #a0a0a0;
}
html[data-theme="light"] {
  --paper: #f5f5f5;
  --white: #ffffff;
  --dark: #101010;
  --ink: #1a1a1a;
  --muted: #616161;
  --line: rgba(0,0,0,.06);
  --surface-card: #ffffff;
  --surface-card-hover: #f9f9f9;
  --accent-subtle: rgba(0,120,212,.06);
  --blue: #0078d4;
  --magenta: #0078d4;
  --dark-muted: #616161;
}
body { background: var(--paper); color: var(--ink); }
.shell { max-width: var(--container-max); padding-inline: var(--container-pad); }
.site-header { background: rgba(26,26,26,.85); border-bottom-color: var(--line); }
html[data-theme="light"] .site-header { background: rgba(245,245,245,.85); }
.brand { font-size: 1rem; }
.brand img { width: 28px; height: 28px; }
.site-header nav { gap: .25rem; }
.site-header nav a { padding: .4rem .75rem; border-radius: 4px; font-size: .8125rem; }
.site-header nav a:hover, .site-header nav a:focus-visible { background: var(--accent-subtle); }
.mobile-toggle { display: none; }
.hero {
  display: block;
  min-height: 0;
  padding-block: 6rem;
  background: var(--dark);
  color: #f5f5f5;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-inner { margin-inline: auto; }
.hero-badge { margin: 0 0 1.5rem; }
.hero-badge .badge {
  display: inline-flex;
  padding: .3em .8em;
  background: rgba(96,205,255,.12);
  color: var(--blue);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.hero h1 {
  max-width: 700px;
  margin-inline: auto;
  font-size: clamp(2.25rem,4vw,3.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero-lede {
  max-width: 520px;
  margin: 1rem auto 3rem;
  color: #a0a0a0;
  font-size: 1.125rem;
  line-height: 1.5;
}
.hero-actions { justify-content: center; margin-top: 0; margin-bottom: 1.5rem; }
.button { min-height: 42px; padding: .75rem 1.25rem; border-radius: 8px; font-size: .8125rem; }
.button-primary { background: var(--blue); border-color: var(--blue); color: #000; }
.button-primary:hover, .button-primary:focus-visible { background: #98d8ff; border-color: #98d8ff; color: #000; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,120,212,.25); }
.button-secondary { background: transparent; border-color: rgba(255,255,255,.2); color: #f5f5f5; }
.button-secondary:hover, .button-secondary:focus-visible { background: #2a2a2a; border-color: rgba(255,255,255,.35); color: #f5f5f5; }
.facts { justify-content: center; gap: 1.5rem; margin-top: 0; color: #6e6e6e; }
.facts li::before { width: 6px; height: 6px; margin-right: .35rem; background: var(--blue); }
.section { padding: var(--space-section) 0; }
.section-product { background: var(--paper); }
.section-intro { max-width: 700px; margin-bottom: 3rem; }
.section-intro-left { margin-inline: 0; text-align: left; }
.section-intro h2 { font-size: 2rem; font-weight: 600; }
.section-intro > p:last-child { font-size: 1.125rem; }
.product-shot-wide { max-width: 900px; margin-inline: auto; }
.product-shot { padding: .75rem; background: #101010; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.product-shot img { border: 1px solid rgba(255,255,255,.12); }
.section-light { background: var(--white); }
.feature-list { gap: 1rem; }
.feature-row { min-height: 0; padding: 2rem; background: var(--surface-card); border-color: var(--line); border-radius: 12px; }
.feature-row:hover { background: var(--surface-card-hover); border-color: rgba(255,255,255,.14); box-shadow: 0 2px 8px rgba(0,0,0,.3); transform: translateY(-2px); }
.feature-row h3 { font-size: 1.125rem; font-weight: 600; }
.feature-row p { line-height: 1.7; }
.section-dark { background: var(--dark); }
.section-accent { background: var(--blue); }
.section-accent .eyebrow { color: #000; }
.site-footer { background: var(--dark); }

@media (max-width: 767px) {
  .nav-wrap { flex-wrap: nowrap; min-height: 3.25rem; }
  .site-header nav { display: none; order: initial; width: auto; margin-left: auto; padding: 0; border: 0; }
  .mobile-toggle { display: inline-flex; order: 2; }
  #theme-toggle { order: 3; }
  .hero { padding-block: 4rem; }
  .hero-lede { margin-bottom: 2rem; }
  .facts { flex-direction: column; align-items: center; gap: .5rem; }
  .section { padding-block: 4rem; }
  .section-intro-left { text-align: left; }
}

@media (min-width: 768px) {
  .site-header nav { margin-left: auto; }
}

.site-header nav.is-open {
  display: flex;
}

@media (max-width: 767px) {
  .site-header nav.is-open {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 3.25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: .5rem;
    background: var(--surface-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
}
