:root {
  --bed-bg: #f7f4ee;
  --bed-paper: #fff;
  --bed-ink: #1a1a1a;
  --bed-muted: #5a5a5a;
  --bed-line: #e4ddd2;
  --bed-orange: #e67a1f;
  --bed-orange-ink: #b85c12;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body.bed-page {
  color: var(--bed-ink);
  background: var(--bed-bg);
  font-family: Outfit, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", Outfit, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

a { color: inherit; }

.bed-skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-160%);
  padding: 8px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 800;
}

.bed-skip:focus { transform: none; }

.bed-wrap {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto;
}

.bed-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid var(--bed-line);
}

.bed-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.bed-brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.bed-nav {
  display: none;
  gap: 20px;
}

.bed-nav a {
  color: var(--bed-muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.bed-nav a:hover { color: var(--bed-ink); }

.bed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.bed-btn--primary {
  background: var(--bed-orange);
  color: #fff;
}

.bed-btn--primary:hover { filter: brightness(1.05); }

.bed-btn--ghost {
  border: 1px solid var(--bed-line);
  background: #fff;
  color: var(--bed-ink);
}

.bed-btn--lg {
  min-height: 52px;
  padding: 12px 20px;
}

.bed-hero,
.bed-intro,
.bed-ai,
.bed-steps,
.bed-examples,
.bed-included,
.bed-faq {
  padding: 48px 0;
}

.bed-hero {
  padding-top: 40px;
  text-align: center;
}

.bed-hero__logo {
  display: block;
  width: min(480px, 100%);
  height: auto;
  margin: 0 auto 24px;
}

.bed-hero__kicker {
  margin: 0 0 12px;
  color: var(--bed-orange-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.bed-hero h1 {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.bed-hero__lead {
  margin: 16px auto 0;
  max-width: 40rem;
  color: var(--bed-muted);
  font-size: 1.05rem;
}

.bed-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.bed-hero__actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.bed-see {
  position: relative;
  width: min(460px, 100%);
  min-height: 68px;
  padding: 16px 28px;
  border: 0;
  border-radius: 14px;
  background: #0f7a45;
  color: #fff;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 122, 69, 0.34);
  animation: bed-see-pulse 1.6s cubic-bezier(0.22, 1.15, 0.36, 1) 0.45s 1;
}

.bed-see::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: bed-see-ring 1.15s ease-out 0.55s 2;
}

.bed-see:hover { background: #128a4e; }

.bed-see:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 3px;
}

@keyframes bed-see-pulse {
  0%,
  100% { transform: scale(1); }
  16% { transform: scale(1.07); }
  32% { transform: scale(0.98); }
  50% { transform: scale(1.04); }
  68% { transform: scale(1); }
}

@keyframes bed-see-ring {
  0% { box-shadow: 0 0 0 0 rgba(15, 122, 69, 0.5); }
  100% { box-shadow: 0 0 0 16px rgba(15, 122, 69, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bed-see,
  .bed-see::after { animation: none; }
}

.bed-intro h2,
.bed-ai h2,
.bed-steps h2,
.bed-examples h2,
.bed-included h2,
.bed-faq h2 {
  margin: 0 0 16px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.bed-intro p,
.bed-ai p,
.bed-examples p,
.bed-included p,
.bed-faq p {
  margin: 0 0 16px;
  color: var(--bed-muted);
}

.bed-checks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.bed-checks li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 28px;
}

.bed-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bed-orange);
  font-weight: 800;
}

.bed-ai,
.bed-steps {
  background: #fff;
  border-top: 1px solid var(--bed-line);
  border-bottom: 1px solid var(--bed-line);
}

.bed-ai__example {
  margin: 4px 0 20px;
  padding: 18px 20px;
  border: 1px solid #f0d7c2;
  border-radius: 12px;
  background: #fff7f0;
}

.bed-ai__example figcaption {
  margin: 0 0 8px;
  color: var(--bed-orange-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bed-ai__example blockquote,
.bed-ai__example p {
  margin: 0;
  color: var(--bed-ink);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.45;
}

.bed-steps__list {
  display: grid;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.bed-steps__list strong {
  display: block;
  margin-bottom: 8px;
}

.bed-steps__list p {
  margin: 0;
  color: var(--bed-muted);
}

.bed-examples figure {
  margin: 20px 0 0;
  overflow: hidden;
  border: 1px solid var(--bed-line);
  border-radius: 8px;
  background: #111;
}

.bed-examples img {
  display: block;
  width: 100%;
  height: auto;
}

.bed-included {
  padding-top: 56px;
}

.bed-included__eyebrow {
  margin: 0 0 8px;
  color: var(--bed-orange-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bed-included__lead {
  font-size: 1.05rem;
}

.bed-plans {
  display: grid;
  gap: 12px;
  margin: 8px 0 24px;
}

.bed-plans article {
  padding: 20px;
  border: 1px solid var(--bed-line);
  border-radius: 8px;
  background: #fff;
}

.bed-plans p:first-child {
  margin: 0 0 4px;
  color: var(--bed-orange-ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bed-plans h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.bed-plans p:last-child {
  margin: 0;
}

.bed-faq__list {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.bed-faq details {
  border-bottom: 1px solid var(--bed-line);
}

.bed-faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 750;
}

.bed-faq details p {
  margin: 0 0 16px;
}

.bed-faq details a {
  color: var(--bed-orange-ink);
  font-weight: 700;
}

.bed-footer {
  border-top: 1px solid var(--bed-line);
  background: #fff;
  padding: 28px 0;
}

.bed-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bed-footer p {
  margin: 0;
  color: var(--bed-muted);
}

.bed-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.bed-noscroll { overflow: hidden; }

.bed-inside[hidden] { display: none !important; }

.bed-inside {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bed-inside__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
}

.bed-inside__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  height: min(100%, 920px);
  max-height: 100%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 24px 60px rgba(26, 26, 26, 0.24);
}

.bed-inside__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 0;
}

.bed-inside__eyebrow {
  margin: 0 0 4px;
  color: var(--bed-orange-ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bed-inside__head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.bed-inside__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--bed-bg);
  color: var(--bed-ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.bed-inside__note {
  margin: 10px 18px 0;
  color: var(--bed-muted);
  font-size: 0.92rem;
}

.bed-inside__search-wrap { padding: 12px 18px 0; }

.bed-inside__search {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--bed-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bed-ink);
  font: inherit;
  font-size: 1.05rem;
}

.bed-inside__search:focus {
  outline: 2px solid var(--bed-orange);
  border-color: transparent;
}

.bed-inside__chips {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0 18px;
  overflow-x: auto;
}

.bed-inside__chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--bed-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bed-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.bed-inside__chip.is-on {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

.bed-inside__count {
  margin: 10px 18px 0;
  color: var(--bed-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.bed-inside__list {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--bed-line);
}

.bed-inside__spacer { position: relative; width: 100%; }

.bed-inside__window {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.bed-inside__row {
  height: 108px;
  padding: 10px 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--bed-line);
}

.bed-inside__row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.bed-inside__kind {
  flex: 0 0 auto;
  color: var(--bed-orange-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bed-inside__who {
  color: var(--bed-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.bed-inside__title {
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 1rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bed-inside__meta,
.bed-inside__blurb {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--bed-muted);
  font-size: 0.84rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bed-inside__empty,
.bed-inside__status {
  margin: 0;
  padding: 28px 18px;
  color: var(--bed-muted);
}

.bed-inside__empty[hidden],
.bed-inside__status[hidden] { display: none; }

.bed-inside__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--bed-line);
  background: var(--bed-bg);
}

.bed-inside__foot p {
  margin: 0;
  color: var(--bed-muted);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .bed-inside {
    align-items: center;
    padding: 28px;
  }

  .bed-inside__panel {
    height: min(860px, calc(100vh - 56px));
    border-radius: 16px;
  }
}

@media (min-width: 720px) {
  .bed-nav { display: flex; }

  .bed-steps__list,
  .bed-plans {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .bed-steps__list {
    grid-template-columns: repeat(4, 1fr);
  }
}
