:root {
  --ink: #082b48;
  --muted: #536779;
  --brand-light: #94b9d5;
  --brand-blue: #176ba6;
  --brand-soft: #eaf3fa;
  --brand-hover: #125785;
  --surface: #ffffff;
  --canvas: #f3f6fa;
  --success: #277252;
  --success-soft: #e8f5ee;
  --danger: #b42335;
  --paper: #ffffff;
  --line: #dbe5ed;
  --shadow: 0 22px 60px rgba(8, 43, 72, 0.12);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #438dcc;
  outline-offset: 3px;
}

::selection {
  color: var(--ink);
  background: #d8eafa;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 229, 237, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-logo {
  position: relative;
  display: block;
  width: 230px;
  aspect-ratio: 1580 / 394;
  overflow: hidden;
  flex: 0 0 auto;
}

/* Frame the approved PNG at x=98, y=212, w=1580, h=394; preserve the original pixels. */
.brand .brand-logo img {
  position: absolute;
  width: 112.278481%;
  max-width: none;
  height: auto;
  left: -6.202532%;
  top: -53.807107%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #294860;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta {
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 6px 16px rgba(8, 43, 72, 0.12);
  white-space: nowrap;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-cta:hover {
  background: #103e61;
}

.button:not(.secondary):not(.secondary-dark):hover {
  background: var(--brand-hover);
}

.button.secondary:hover {
  background: var(--brand-soft);
  border-color: var(--brand-blue);
}

.hero {
  position: relative;
  min-height: clamp(500px, 62svh, 640px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 42%, rgba(255, 255, 255, 0.35) 74%, rgba(255, 255, 255, 0.08) 100%),
    url("../images/bed-rail-lifestyle-clean.png") center right / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface));
}

.hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(46px, 6vw, 74px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: var(--brand-blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 8vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 30px;
  color: #536779;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 34px;
}

.button {
  padding: 0 22px;
  color: #fff;
  background: var(--brand-blue);
  box-shadow: 0 8px 20px rgba(23, 107, 166, 0.16);
  cursor: pointer;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(23, 107, 166, 0.22);
  box-shadow: none;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 14px;
  max-width: 540px;
}

.proof-item {
  border-left: 2px solid var(--brand-light);
  padding-left: 14px;
  min-width: 0;
}

.proof-item strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

section {
  scroll-margin-top: 96px;
}

.band {
  background: var(--canvas);
  padding: clamp(64px, 9vw, 112px) 0;
}

.band.white {
  background: var(--paper);
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  margin-bottom: 38px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.section-head p,
.section-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(8, 43, 72, 0.07);
}

.product-card figure {
  margin: 0;
  aspect-ratio: 1.08;
  background: #f3f6fa;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  mix-blend-mode: multiply;
}

.product-card.feature figure img {
  object-fit: cover;
  padding: 0;
  mix-blend-mode: normal;
}

.product-copy {
  padding: 22px;
}

.product-copy h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.product-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.quality-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}

.quality-layout h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.quality-image {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: url("../images/playpen-clean.png") center / contain no-repeat #ffffff;
  box-shadow: var(--shadow);
}

.quality-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: 260px;
  padding: 18px;
  color: #fff;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 18px 32px rgba(8, 43, 72, 0.18);
}

.quality-badge strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.quality-badge span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
}

.check {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  background: var(--brand-blue);
  font-weight: 900;
}

.check-list strong {
  display: block;
  margin-bottom: 3px;
}

.check-list span {
  color: var(--muted);
}

.check-list .check {
  color: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.process-step {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(23, 107, 166, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f3f6fa);
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
  color: var(--brand-hover);
  border-radius: 50%;
  background: #eaf3fa;
  font-weight: 900;
}

.process-step h3 {
  margin-bottom: 10px;
  font-size: 1.14rem;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
}

.about-layout h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.about-layout p {
  max-width: 710px;
  color: var(--muted);
  font-size: 1.08rem;
}

.about-photo {
  min-height: 470px;
  border-radius: var(--radius);
  background: url("../images/bed-safety-rail-clean.png") center / contain no-repeat #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.stat {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-blue);
  font-size: 1.5rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact {
  color: #fff;
  background: var(--ink);
}

.contact .container {
  display: block;
}

.contact h2 {
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.contact p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.contact-intro {
  max-width: 860px;
  margin-bottom: 34px;
}

.contact-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
}

.contact-panel h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.contact-panel > p {
  margin-bottom: 0;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-link {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  color: #fff;
}

.contact-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.contact-link strong span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form {
  margin-top: 28px;
}

.retail-statement {
  margin: 24px 0 18px;
  padding: 22px;
  border: 1px solid rgba(64, 144, 202, 0.58);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(64, 144, 202, 0.16));
  color: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.retail-statement strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.25;
}

.retail-statement a {
  display: inline-block;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 4px;
}

.retail-panel .button {
  width: 100%;
  margin-top: 18px;
}

.panel-entry-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--ink);
}

.panel-entry-card h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.2;
}

.panel-entry-label {
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button.secondary-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.withdrawn-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(64, 144, 202, 0.46);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.16);
}

.withdrawn-callout h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.withdrawn-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.withdrawn-callout .button {
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  outline: none;
}

.contact-form input {
  height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 132px;
  padding: 13px 14px;
  resize: vertical;
}

.contact-form label.full {
  grid-column: 1 / -1;
}

.contact-form .button {
  width: 100%;
  margin-top: 16px;
  border: 0;
}

.form-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.site-footer {
  padding: 24px 0;
  color: #536779;
  background: var(--surface);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

/* Partner panel */
.panel-shell {
  min-height: 100vh;
  background: #f3f6fa;
}

.panel-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.panel-header .brand {
  min-width: 0;
}

.panel-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #536779;
  font-size: 0.9rem;
  font-weight: 800;
}

.avatar,
.partner-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.avatar {
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.panel-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}

.panel-sidebar {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #fff;
}

.partner-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 0 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.partner-avatar {
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--brand-light);
}

.partner-card strong,
.partner-card div > span {
  display: block;
  min-width: 0;
}

.partner-card strong {
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-card div > span {
  margin-top: 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-sidebar nav {
  display: grid;
  gap: 6px;
}

.panel-sidebar nav button {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.panel-sidebar nav button:hover,
.panel-sidebar nav button.active {
  background: rgba(116, 173, 214, 0.16);
  color: #fff;
}

.panel-sidebar nav button.active {
  box-shadow: inset 3px 0 0 var(--brand-blue);
}

.support-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.support-card span,
.support-card strong,
.support-card a {
  display: block;
}

.support-card span {
  color: var(--brand-light);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-card strong {
  margin: 6px 0 12px;
  line-height: 1.25;
}

.support-card a {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel-main {
  min-width: 0;
  padding: 42px clamp(24px, 4vw, 58px) 64px;
}

.panel-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.panel-kicker {
  color: var(--brand-blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-page-head h1 {
  max-width: none;
  margin: 8px 0 8px;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1;
}

.panel-page-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.connection-pill,
.status-badge,
.account-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.connection-pill {
  margin-top: 8px;
  padding: 9px 13px;
  color: var(--success);
  background: var(--success-soft);
}

.connection-pill > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b8b70;
  box-shadow: 0 0 0 4px rgba(75, 139, 112, 0.12);
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.balance-card,
.quick-card,
.panel-card {
  border: 1px solid #dbe5ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(8, 43, 72, 0.055);
}

.balance-card,
.quick-card {
  min-height: 210px;
  padding: 24px;
}

.balance-card {
  position: relative;
  overflow: hidden;
}

.balance-card::after {
  position: absolute;
  right: -32px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  content: "";
  border-radius: 50%;
  opacity: 0.18;
}

.balance-card.sage::after {
  background: var(--brand-light);
}

.balance-card.coral::after {
  background: var(--brand-blue);
}

.balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.account-state {
  padding: 5px 8px;
  color: var(--success);
  background: var(--success-soft);
}

.balance-card > strong,
.quick-card > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 32px;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1;
}

.balance-card p,
.quick-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.balance-topup {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--brand-blue);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.balance-topup:hover {
  color: var(--brand-hover);
}

.quick-card {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.quick-card > span {
  color: var(--brand-light);
  font-size: 0.86rem;
  font-weight: 800;
}

.quick-card p {
  color: rgba(255, 255, 255, 0.58);
}

.quick-card .button {
  margin-top: 18px;
}

.button.panel-primary {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  background: var(--brand-blue);
  font-size: 0.86rem;
}

.panel-grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 22px;
}

.panel-card {
  padding: 26px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.card-heading h2,
.empty-state h2 {
  margin: 5px 0 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.text-button,
.outline-button {
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.orders-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.orders-table th,
.orders-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #e6edf3;
  text-align: left;
  white-space: nowrap;
}

.orders-table th {
  padding-top: 0;
  color: #61778a;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-badge {
  padding: 6px 9px;
}

.status-badge.success {
  color: #376c56;
  background: #e8f5ee;
}

.status-badge.progress {
  color: #125785;
  background: #eaf3fa;
}

.status-badge.warning {
  color: #8a520c;
  background: #fff3df;
}

.status-badge.neutral {
  color: #536779;
  background: #edf1f5;
}

.integration-summary {
  display: grid;
  gap: 15px;
}

.integration-summary > div,
.integration-detail-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.integration-summary span,
.integration-detail-grid span {
  color: var(--muted);
  font-size: 0.78rem;
}

.integration-summary strong,
.integration-detail-grid strong {
  font-size: 0.84rem;
  text-align: right;
}

.sync-progress {
  height: 6px;
  margin: 22px 0 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf3;
}

.sync-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-blue);
}

.integration-card > p {
  color: var(--muted);
  font-size: 0.8rem;
}

.outline-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.outline-button:hover {
  background: var(--brand-soft);
}

.full-card {
  min-height: 400px;
}

.empty-state {
  max-width: 760px;
  min-height: 360px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.empty-state h2 {
  max-width: 560px;
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.empty-state p {
  max-width: 580px;
  color: var(--muted);
}

.integration-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.integration-detail-grid > div {
  min-height: 72px;
  padding: 16px;
  background: #fff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 30, 48, 0.58);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(100%, 500px);
  padding: 34px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
}

.modal-card h2 {
  margin: 8px 0 12px;
  font-size: 2rem;
  line-height: 1.05;
}

.modal-card p {
  color: var(--muted);
}

.stripe-mode-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
  font-weight: 850;
}

.stripe-mode-badge > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.stripe-mode-badge.ready {
  color: var(--brand-blue);
}

.stripe-mode-badge.ready > span {
  background: #4b8b70;
  box-shadow: 0 0 0 4px rgba(75, 139, 112, 0.12);
}

.modal-card form label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  color: #536779;
  font-size: 0.82rem;
  font-weight: 850;
}

.modal-card input,
.modal-card select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.modal-card .button {
  width: 100%;
  margin-top: 6px;
}

.modal-success > span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 0.8rem;
  font-weight: 850;
}

@media (max-width: 1120px) {
  .panel-grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .nav {
    min-height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .brand {
    min-width: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-top: 2px;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 55%, rgba(255, 255, 255, 0.55) 100%),
      url("../images/bed-rail-lifestyle-clean.png") center bottom / cover no-repeat;
  }

  .section-head,
  .quality-layout,
  .about-layout,
  .contact-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-image,
  .about-photo {
    min-height: 380px;
  }

  .panel-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-sidebar {
    position: static;
    height: auto;
    padding: 14px 20px;
  }

  .partner-card,
  .support-card {
    display: none;
  }

  .panel-sidebar nav {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }

  .panel-sidebar nav button {
    width: auto;
    white-space: nowrap;
  }

  .panel-sidebar nav button.active {
    box-shadow: inset 0 -3px 0 var(--brand-blue);
  }

  .balance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(var(--max), calc(100% - 28px));
    gap: 14px;
  }

  .brand-logo {
    width: clamp(148px, 46vw, 200px);
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 44px 0 42px;
  }

  .hero-inner,
  .container {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .stats,
  .product-grid,
  .process-grid,
  .form-grid,
  .withdrawn-callout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .proof-item {
    padding-left: 8px;
  }

  .proof-item strong {
    font-size: 1.12rem;
  }

  .proof-item span {
    display: none;
  }

  .band {
    padding: 46px 0;
  }

  .product-card figure {
    aspect-ratio: 1.22;
  }

  .quality-badge {
    right: 18px;
    left: 18px;
    max-width: none;
  }

  .contact h2 {
    font-size: clamp(2.1rem, 13vw, 3.4rem);
  }

  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .panel-header {
    min-height: 70px;
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .panel-header .brand-logo {
    width: 150px;
  }

  .panel-header-actions {
    margin-left: auto;
  }

  .panel-header-actions > a {
    display: none;
  }

  .panel-main {
    padding: 28px 14px 48px;
  }

  .panel-page-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .connection-pill {
    margin-top: 0;
  }

  .balance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-card {
    grid-column: auto;
  }

  .balance-card,
  .quick-card {
    min-height: 190px;
  }

  .panel-card {
    padding: 20px 16px;
  }

  .card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .integration-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-card {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
