/* ===== Design tokens (official Quooly brand palette) ===== */
:root {
  /* Primary brand teal — #009CA6 / Pantone 320 C (logo + bed color) */
  --teal-900: #073c41;
  --teal-700: #007680;
  --teal-600: #009ca6;
  --teal-500: #1fb0b8;
  --teal-400: #6fbcaf;
  /* secondary dinosaur teal-green */
  --teal-green: #70a298;
  --teal-100: #e0f5f4;
  --teal-50: #f0faf9;

  --ink-900: #0d2528;
  --ink-800: #16292b;
  --ink-600: #4a5c5e;
  --ink-400: #87999a;

  --yellow-400: #f1d770;
  --yellow-300: #f7e6a3;
  --purple-600: #694a91;
  --coral-500: #ff7a59;

  --paper: #fffdf8;
  --white: #ffffff;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(13, 37, 40, 0.06);
  --shadow-md: 0 12px 30px rgba(7, 60, 65, 0.12);
  --shadow-lg: 0 24px 60px rgba(7, 60, 65, 0.18);

  --container: 1180px;

  --font-head: "Winky Sans", "Baloo 2", sans-serif;
  --font-body: "Poppins", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.1; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: none;
  padding: 0 0 9px;
  border-bottom: 2px solid var(--teal-600);
  border-radius: 0;
}
.eyebrow.on-dark {
  color: var(--yellow-300);
  background: none;
  border-bottom-color: var(--yellow-300);
}

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 14px 0 12px;
  color: var(--ink-900);
}
.section-head p {
  color: var(--ink-600);
  font-size: 17px;
  line-height: 1.6;
}
.section-head.on-dark h2 { color: var(--white); }
.section-head.on-dark p { color: rgba(255,255,255,0.72); }

section { padding: 108px 0; position: relative; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 17px 30px;
  border-radius: var(--radius-pill);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-300));
  color: var(--ink-900);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(-1px); }
.btn-primary svg { flex-shrink: 0; }

.btn-outline {
  border: 2px solid var(--ink-900);
  color: var(--ink-900);
  background: transparent;
}
.btn-outline:hover { background: var(--ink-900); color: var(--white); }

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-small { padding: 10px 20px; font-size: 14px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
}
.logo-mark { height: 40px; width: auto; transition: height 0.25s ease; }
.site-header.scrolled .logo-mark { height: 32px; }
.footer-brand .logo-mark { height: 30px; }

.main-nav ul {
  display: flex;
  gap: 34px;
  align-items: center;
}
.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-800);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--teal-600); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  color: var(--ink-900);
  cursor: pointer;
}

@media (max-width: 860px) {
  .header-actions .btn span.long { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .main-nav li { border-top: 1px solid var(--teal-50); }
  .main-nav li:first-child { border-top: none; }
  .main-nav a { display: block; padding: 14px 24px; }
}

/* ===== Hero ===== */
.hero {
  padding: 168px 0 100px;
  background: radial-gradient(circle at 12% 18%, var(--teal-100), transparent 55%),
              radial-gradient(circle at 90% 0%, #fff2d6 0%, transparent 45%),
              var(--paper);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  color: var(--ink-900);
  margin-bottom: 20px;
}
.hero-copy h1 .accent { color: var(--teal-600); position: relative; }
.hero-copy p.lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-600);
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-trust .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-800);
}
.hero-trust .item svg { color: var(--teal-600); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-blob {
  position: absolute;
  inset: -6% -10%;
  background: linear-gradient(150deg, var(--teal-400), var(--teal-600));
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  z-index: 0;
  opacity: 0.16;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.floating-badge {
  position: absolute;
  z-index: 5;
  background: var(--ink-900);
  color: var(--white);
  border: 3px solid var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.floating-badge.rating { top: 8%; right: -6%; }
.floating-badge.choice {
  bottom: 8%;
  left: -8%;
}
.floating-badge .stars { color: var(--yellow-400); font-size: 15px; letter-spacing: 1px; }
.floating-badge .sub { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.6); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
  .hero { padding-top: 140px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-copy p.lede { max-width: none; }
  .floating-badge { padding: 10px 14px; }
}

/* ===== Stat strip ===== */
.stat-strip {
  padding: 30px 0;
  background: var(--ink-900);
}
.stat-strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.stat {
  color: var(--white);
  text-align: center;
  flex: 1;
  min-width: 130px;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--yellow-400);
}
.stat span { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ===== Split feature (image + text) rows ===== */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-row.reverse .split-media { order: 2; }
.split-row.reverse .split-copy { order: 1; }
.split-media img,
.split-media video {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split-media video { display: block; object-fit: cover; aspect-ratio: 4/3; background: var(--ink-900); }
.split-copy h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 14px 0 16px; }
.split-copy p { color: var(--ink-600); font-size: 16.5px; line-height: 1.7; margin-bottom: 22px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink-800);
}
.check-list li svg {
  color: var(--teal-600);
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--teal-100);
  border-radius: 50%;
  padding: 3px;
}

.section-alt { background: var(--teal-50); }

@media (max-width: 900px) {
  .split-row, .split-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .split-row.reverse .split-media,
  .split-row.reverse .split-copy { order: initial; }
}

/* ===== Included grid ===== */
.included-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.included-card {
  background: #eeecf2;
  border-radius: var(--radius-md);
  padding: 22px 16px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.included-card img {
  height: 96px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 14px;
}
.included-icon {
  height: 96px;
  width: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--teal-100);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.included-card span { font-weight: 700; font-size: 14px; }

@media (max-width: 900px) {
  .included-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .included-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Gallery ===== */
/* ===== Lifestyle strip ===== */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.lifestyle-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
}
.lifestyle-card img,
.lifestyle-card video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease-out;
}
.lifestyle-card:hover img,
.lifestyle-card:hover video { transform: scale(1.04); }
.lifestyle-card .tag {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  background: rgba(16,21,28,0.75);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  backdrop-filter: blur(4px);
}

@media (max-width: 900px) {
  .lifestyle-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .lifestyle-grid { grid-template-columns: 1fr; }
  .lifestyle-card { aspect-ratio: 16/10; }
}

/* ===== Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.review-card .stars { color: var(--yellow-400); letter-spacing: 2px; margin-bottom: 14px; font-size: 15px; }
.review-card p.quote {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-800);
  margin-bottom: 18px;
}
.review-card .reviewer {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-600); font-weight: 600;
}
.review-card .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal-500); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.verified {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--teal-600); font-weight: 700; font-size: 11.5px;
  margin-left: 4px;
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ===== Final CTA ===== */
.final-cta {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 72px 32px;
  position: relative;
  overflow: hidden;
}
.final-cta::before, .final-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.final-cta::before { width: 320px; height: 320px; top: -140px; left: -100px; }
.final-cta::after { width: 220px; height: 220px; bottom: -100px; right: -60px; }
.final-cta h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  margin-bottom: 16px;
  position: relative;
}
.final-cta p {
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin: 0 auto 34px;
  font-size: 17px;
  position: relative;
}
.final-cta .ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.final-cta .safety-note {
  margin-top: 26px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  position: relative;
}

/* ===== Footer ===== */
.site-footer {
  padding: 56px 0 28px;
  background: var(--paper);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid #ece6d8;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--ink-600); font-size: 14.5px; max-width: 280px; line-height: 1.6; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-400); margin-bottom: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14.5px; color: var(--ink-800); font-weight: 500; }
.footer-links a:hover { color: var(--teal-600); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-400);
}

@media (max-width: 700px) {
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Sticky mobile CTA ===== */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--white);
  box-shadow: 0 -8px 24px rgba(11,61,61,0.12);
}
.mobile-cta .btn { width: 100%; }
@media (max-width: 720px) {
  .mobile-cta { display: block; }
  .final-cta { margin: 0 12px; padding: 52px 20px; }
  body { padding-bottom: 78px; }
}

/* ===== Floating sticky CTA (desktop) ===== */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-300));
  color: var(--ink-900);
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.floating-cta.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.floating-cta:hover { transform: translateY(-3px) scale(1.03); }

@media (max-width: 720px) {
  .floating-cta { display: none; }
}

/* ===== Accessibility: visible focus ===== */
a:focus-visible,
button:focus-visible,
.faq-trigger:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Dimension list (Size section) ===== */
.dim-list { margin: 8px 0 28px; }
.dim-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ece6d8;
}
.dim-label {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-800);
  white-space: nowrap;
}
.dim-line {
  flex: 1;
  border-bottom: 1px dashed var(--ink-400);
  margin-bottom: 5px;
}
.dim-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--teal-700);
  white-space: nowrap;
}

/* ===== Comparison table ===== */
.compare-table {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.compare-row:not(:last-child) { border-bottom: 1px solid #ece6d8; }
.compare-cell {
  padding: 16px 18px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
}
.compare-head .compare-cell {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.compare-head .compare-quooly { color: var(--teal-700); }
.compare-head .compare-standard { color: var(--ink-400); }
.compare-feature { color: var(--ink-800); font-weight: 500; }
.compare-quooly { color: var(--teal-700); font-weight: 700; background: var(--teal-50); }
.compare-standard { color: var(--ink-400); }

@media (max-width: 620px) {
  .compare-row { grid-template-columns: 1.1fr 0.9fr 0.9fr; }
  .compare-cell { padding: 12px 10px; font-size: 13px; }
}

/* ===== FAQ accordion ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-item {
  border-bottom: 1px solid #ece6d8;
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink-900);
  cursor: pointer;
}
.faq-chevron { flex-shrink: 0; color: var(--teal-600); transition: transform 0.25s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-panel p {
  padding: 0 4px 20px;
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.65;
  max-width: 65ch;
}
.faq-panel a { color: var(--teal-600); font-weight: 600; text-decoration: underline; }

/* ===== Video CTA ===== */

/* ===== Footer company line ===== */
.footer-company { margin-top: 10px; font-size: 13px; color: var(--ink-400); }
