/* =========================================================
   DecorAI — Landing page styles (Italian market, premium)
   ========================================================= */

:root {
  --ivory: #faf7f2;
  --cream: #f5efe6;
  --beige: #ebe1d1;
  --tortora: #c4b3a0;
  --tortora-soft: #e4d9c8;
  --stone: #807a6f;
  --sage: #8fa88a;
  --sage-soft: #cfd8c6;
  --clay: #c28a6b;
  --clay-soft: #e7c9b4;
  --ink: #26221e;
  --ink-soft: #544d43;
  --line: #e2d8c8;
  --line-soft: #efe7d9;
  --shadow-sm: 0 1px 2px rgba(38, 34, 30, 0.04),
    0 4px 12px rgba(38, 34, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(38, 34, 30, 0.06),
    0 2px 6px rgba(38, 34, 30, 0.03);
  --shadow-lg: 0 24px 60px rgba(38, 34, 30, 0.12),
    0 6px 16px rgba(38, 34, 30, 0.05);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-w: 1200px;
  --max-w-narrow: 820px;
  --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  opacity: 0.78;
}

/* Typography ------------------------------------------------ */

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 500;
  line-height: 1.14;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
}

h4 {
  font-size: 1.12rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 0;
}

p {
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.section-kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--stone);
  margin-bottom: 14px;
}

/* Layout ---------------------------------------------------- */

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

section {
  padding: clamp(72px, 9vw, 128px) 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-header p {
  margin-top: 18px;
  font-size: 1.08rem;
}

/* Navbar ---------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 247, 242, 0.94);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
  opacity: 1;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover {
  background: #3d362e;
  opacity: 1;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* Hero ------------------------------------------------------ */

.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 112px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      1100px 700px at 80% -10%,
      rgba(196, 179, 160, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 0% 30%,
      rgba(143, 168, 138, 0.08),
      transparent 55%
    );
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 24px;
}

.hero-copy h1 {
  margin-bottom: 22px;
}

.hero-copy h1 .accent {
  font-style: italic;
  color: var(--clay);
}

.hero-lede {
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 540px;
}

.hero-bullets {
  list-style: none;
  margin: 24px 0 32px;
  display: grid;
  gap: 12px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.hero-bullets li::before {
  content: '';
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--sage-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a3e24' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.store-badge {
  display: inline-block;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.store-badge img {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(38, 34, 30, 0.12));
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 1;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-rating {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-rating .stars {
  color: var(--clay);
  letter-spacing: 3px;
  font-size: 0.95rem;
}

.hero-rating .text {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-trust-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

.hero-visual {
  position: relative;
}

/* Before/After slider */
.ba-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
  user-select: none;
}

.ba-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-compare .ba-after-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  transition: width 0s linear;
}

.ba-compare .ba-after-wrap img {
  width: 100vw;
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.ba-compare .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(38, 34, 30, 0.08),
    0 6px 20px rgba(38, 34, 30, 0.25);
}

.ba-compare .ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgba(38, 34, 30, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--ink);
  font-size: 1rem;
}

.ba-compare .ba-knob::before,
.ba-compare .ba-knob::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.ba-compare .ba-knob::before {
  border-right: 6px solid var(--ink);
  margin-right: 4px;
}

.ba-compare .ba-knob::after {
  border-left: 6px solid var(--ink);
  margin-left: 4px;
}

.ba-compare input[type='range'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.ba-compare .ba-label {
  position: absolute;
  top: 16px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(38, 34, 30, 0.78);
  color: #fff;
  backdrop-filter: blur(6px);
}

.ba-compare .ba-label.before {
  left: 16px;
}

.ba-compare .ba-label.after {
  right: 16px;
  background: var(--clay);
}

.hero-caption {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.hero-caption-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

/* Social proof strip ---------------------------------------- */

.social-proof {
  padding: 52px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.social-proof-item .num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  font-weight: 500;
}

.social-proof-item .label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Before/After gallery -------------------------------------- */

.ba-gallery {
  background: var(--ivory);
}

.ba-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.ba-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.ba-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ba-card .ba-compare {
  border-radius: 0;
  aspect-ratio: 4 / 3;
  box-shadow: none;
}

.ba-card-body {
  padding: 22px 26px 26px;
}

.ba-card-body h3 {
  margin-bottom: 6px;
}

.ba-card-body p {
  font-size: 0.94rem;
}

/* Feature / benefit cards ----------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--tortora);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--clay);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.96rem;
}

/* How it works ---------------------------------------------- */

.how {
  background: var(--cream);
  position: relative;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.how-step {
  position: relative;
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.how-step h3 {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.how-step p {
  font-size: 0.95rem;
}

/* Style gallery --------------------------------------------- */

.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.style-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: default;
  transition: transform 0.4s var(--ease);
}

.style-tile:hover {
  transform: scale(1.015);
}

.style-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.style-tile:hover img {
  transform: scale(1.06);
}

.style-tile-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  z-index: 2;
  color: #fff;
}

.style-tile-label .name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.style-tile-label .meta {
  font-size: 0.78rem;
  opacity: 0.85;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.style-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.0) 55%
  );
  z-index: 1;
  pointer-events: none;
}

/* SEO text blocks ------------------------------------------- */

.seo-block {
  padding: clamp(60px, 7vw, 96px) 0;
}

.seo-block.alt {
  background: var(--cream);
}

.seo-block-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.seo-block-grid.flip {
  grid-template-columns: 1fr 1.1fr;
}

.seo-block-grid.flip .seo-block-visual {
  order: -1;
}

.seo-block-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.seo-block h2 {
  margin-bottom: 18px;
}

.seo-block p {
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.seo-block ul {
  margin: 20px 0 4px;
  list-style: none;
  display: grid;
  gap: 10px;
}

.seo-block ul li {
  padding-left: 28px;
  position: relative;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.seo-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 2px;
  background: var(--clay);
}

/* Rooms list ------------------------------------------------ */

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.room-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.room-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.room-card-body {
  padding: 18px 20px 22px;
}

.room-card-body h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.room-card-body p {
  font-size: 0.88rem;
  margin: 0;
}

/* Users for / personas -------------------------------------- */

.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.persona-card {
  padding: 28px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.persona-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.persona-card p {
  font-size: 0.95rem;
}

/* Testimonials ---------------------------------------------- */

.testimonials {
  background: var(--ivory);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: #fff;
  padding: 32px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial .stars {
  color: var(--clay);
  letter-spacing: 3px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 22px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--stone);
}

.testimonial-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.testimonial-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* FAQ ------------------------------------------------------- */

.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 28px 8px 28px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color 0.2s var(--ease);
}

.faq-question:hover {
  color: var(--clay);
}

.faq-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
  font-size: 1.2rem;
  font-family: var(--font-sans);
  font-weight: 400;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--clay-soft);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.faq-answer-inner {
  padding: 0 8px 28px 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-answer-inner p + p {
  margin-top: 12px;
}

/* Download section ------------------------------------------ */

.download {
  background: var(--ink);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      700px 400px at 20% 0%,
      rgba(194, 138, 107, 0.2),
      transparent 60%
    ),
    radial-gradient(
      700px 500px at 100% 100%,
      rgba(143, 168, 138, 0.14),
      transparent 55%
    );
  pointer-events: none;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
}

.download h2 {
  color: #fff;
  margin-bottom: 20px;
}

.download p {
  color: rgba(250, 247, 242, 0.78);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 520px;
}

.download-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.28rem;
}

.download-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.download-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.download-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(250, 247, 242, 0.65);
}

.download-meta strong {
  color: #fff;
  font-weight: 500;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  width: min(320px, 80%);
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  background: #111;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 12px 24px rgba(0, 0, 0, 0.25),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #000;
  border-radius: 18px;
  z-index: 2;
}

.phone-mockup::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 40px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer ---------------------------------------------------- */

footer {
  background: var(--ivory);
  padding: 72px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 18px;
}

.footer-brand .logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-badges .store-badge img {
  height: 44px;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--stone);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Legal pages ----------------------------------------------- */

.legal {
  padding: clamp(64px, 8vw, 112px) 0;
}

.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.legal .updated {
  color: var(--stone);
  font-size: 0.9rem;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.legal h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  margin: 40px 0 14px;
}

.legal h3 {
  font-size: 1.18rem;
  margin: 26px 0 10px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.legal p {
  margin-bottom: 14px;
}

.legal ul {
  margin: 0 0 18px 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Animations ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive ------------------------------------------------ */

@media (max-width: 980px) {
  .hero-grid,
  .download-grid,
  .seo-block-grid,
  .seo-block-grid.flip {
    grid-template-columns: 1fr;
  }

  .seo-block-grid.flip .seo-block-visual {
    order: 0;
  }

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

  .feature-grid,
  .styles-grid,
  .personas-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }

  .social-proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ivory);
    padding: 24px 28px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }

  .ba-gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .how-grid,
  .styles-grid,
  .personas-grid,
  .testimonials-grid,
  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .store-badge img {
    height: 50px;
  }

  section {
    padding: 64px 0;
  }
}

/* Accessibility --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visually hidden, screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
