:root {
  --bg: #0E0D0B;
  --bg-elev: #1A1715;
  --ink: #F5EFE6;
  --ink-muted: rgba(245, 239, 230, 0.62);
  --ink-faint: rgba(245, 239, 230, 0.32);
  --amber: #D4A574;
  --amber-soft: #E8C9A0;
  --stroke: rgba(245, 239, 230, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(14, 13, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.nav__logo {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.nav__wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav__cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav__cta:hover { background: var(--amber-soft); }

@media (max-width: 768px) {
  .nav { padding: 18px 24px; }
  .nav__links { gap: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 48px 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero__copy {
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
}

.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(212, 165, 116, 0); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero__title em {
  font-style: italic;
  color: var(--amber);
  font-weight: 400;
}

.hero__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.3);
}

.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--stroke);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(245, 239, 230, 0.04);
}

.btn--large {
  padding: 22px 40px;
  font-size: 17px;
}

/* Hero phone */
.hero__visual {
  position: relative;
  animation: rise 1.1s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__phone {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 48px;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  padding: 12px;
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.5),
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__phone:hover {
  transform: perspective(1000px) rotateY(-3deg) rotateX(0deg);
}

.hero__phone-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #000;
}

/* Hero rotator: 6 slides total (3 themes × 2 genders), 3s each, 18s loop.
   Each slide is fully static during its window — no overlapping animations,
   no drift. Transitions are pure opacity. */
.hero__rotator {
  position: absolute;
  inset: 0;
}

.hero__theme {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: theme-show 18s infinite;
}

/* Each slide gets a 3s window in the 18s cycle.
   The keyframes show at its window then fade out. */
.hero__theme--1 { animation-delay: 0s; }
.hero__theme--2 { animation-delay: -3s; }
.hero__theme--3 { animation-delay: -6s; }
.hero__theme--4 { animation-delay: -9s; }
.hero__theme--5 { animation-delay: -12s; }
.hero__theme--6 { animation-delay: -15s; }

@keyframes theme-show {
  0% { opacity: 1; }
  16.66% { opacity: 1; }    /* 3s of 18s = 16.66%, slide fully visible */
  18% { opacity: 0; }        /* fast fade-out */
  98% { opacity: 0; }        /* hidden the rest */
  100% { opacity: 1; }       /* back at start */
}

.hero__theme-img {
  position: absolute;
  inset: 0;
}

.hero__theme-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__theme-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: var(--ink);
}

/* Crossfade — used in hero phone and style cards */
.crossfade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.4s ease-in-out;
}

/* Each card uses one of two animation phases.
   Total cycle: 8s (4s show A, 4s show B). */
.crossfade--start-a .cf--a { animation: crossfade-a 8s infinite; }
.crossfade--start-a .cf--b { animation: crossfade-b 8s infinite; }

.crossfade--start-b .cf--a { animation: crossfade-b 8s infinite; }
.crossfade--start-b .cf--b { animation: crossfade-a 8s infinite; }

@keyframes crossfade-a {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes crossfade-b {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 1; }
  100% { opacity: 0; }
}

/* Style card crossfade override - inherits from .cf transitions above */
.style-card .crossfade { z-index: 0; }

/* Subtle scale-on-hover applied to whichever image is currently visible */
.style-card:hover .cf {
  transform: scale(1.05);
  transition: opacity 1.4s ease-in-out, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero__phone-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 6px;
}

.hero__phone-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-faint);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2.4s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}

@media (max-width: 900px) {
  .hero { padding: 120px 24px 60px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { order: -1; max-width: 280px; margin: 0 auto; }
  .hero__phone { transform: none; }
  .hero__scroll { display: none; }
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 28px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee__track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
}

.marquee__track .dot {
  color: var(--amber);
  font-style: normal;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
section { position: relative; z-index: 2; }

.section-head {
  max-width: 1400px;
  margin: 0 auto 56px;
  padding: 0 48px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 12ch;
}

.section-title em {
  font-style: italic;
  color: var(--amber);
}

.section-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 520px;
}

@media (max-width: 768px) {
  .section-head { padding: 0 24px; margin-bottom: 48px; }
}

/* ============ STYLES GRID ============ */
.styles {
  padding: 100px 0;
}

.styles__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.style-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  aspect-ratio: 4 / 5;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.style-card:hover {
  transform: translateY(-6px);
  border-color: var(--amber);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.style-card__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.style-card__meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
}

.style-card__category {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.style-card__meta h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.style-card__meta p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .styles__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .styles { padding: 80px 0; }
  .styles__grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px; gap: 16px; }
}

@media (max-width: 540px) {
  .styles__grid { grid-template-columns: 1fr; }
}

/* ============ HOW IT WORKS ============ */
.how {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #16130F 100%);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.how__steps {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.how-step {
  padding: 40px 0;
  border-top: 1px solid var(--stroke);
  position: relative;
}

.how-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: var(--amber);
}

.how-step__num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  color: var(--amber);
  margin-bottom: 24px;
  line-height: 1;
}

.how-step h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.how-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .how { padding: 80px 0; }
  .how__steps { grid-template-columns: 1fr; padding: 0 24px; gap: 24px; }
}

/* ============ PRICING ============ */
.pricing {
  padding: 140px 0;
}

.pricing__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.plan:hover {
  border-color: var(--ink-faint);
  transform: translateY(-4px);
}

.plan--featured {
  background: linear-gradient(180deg, rgba(212, 165, 116, 0.08) 0%, transparent 100%);
  border-color: var(--amber);
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--amber);
  color: var(--bg);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.plan__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.plan__price {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1;
}

.plan__price span {
  font-size: 32px;
  vertical-align: super;
  color: var(--ink-muted);
}

.plan__price small {
  font-size: 16px;
  color: var(--ink-muted);
  font-weight: 400;
  margin-left: 6px;
}

.plan__compare {
  font-size: 14px;
  color: var(--amber);
  margin-bottom: 24px;
}

.plan__features {
  list-style: none;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
}

.plan__features li {
  font-size: 15px;
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--ink);
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 8px;
  border-left: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .pricing { padding: 80px 0; }
  .pricing__grid { grid-template-columns: 1fr; padding: 0 24px; }
}

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

/* ============ FAQ ============ */
.faq {
  padding: 100px 0;
  border-top: 1px solid var(--stroke);
}

.faq__grid {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 48px;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--amber); }

.faq-item summary svg {
  flex-shrink: 0;
  color: var(--amber);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item[open] summary svg { transform: rotate(180deg); }

.faq-item p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
  padding: 0 0 28px 0;
  max-width: 680px;
  animation: faq-slide 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item p a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 165, 116, 0.3);
}

.faq-item p a:hover { border-color: var(--amber); }

@keyframes faq-slide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .faq { padding: 60px 0; }
  .faq__grid { padding: 0 24px; }
  .faq-item summary { font-size: 18px; padding: 22px 0; gap: 16px; }
  .faq-item p { font-size: 16px; padding-bottom: 22px; }
}

/* ============ CTA ============ */
.cta {
  padding: 140px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212, 165, 116, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  position: relative;
}

.cta__title em {
  font-style: italic;
  color: var(--amber);
}

@media (max-width: 768px) {
  .cta { padding: 80px 24px; }
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--stroke);
  padding: 60px 48px 40px;
  position: relative;
  z-index: 2;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.footer__logo {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer__legal {
  font-size: 13px;
  color: var(--ink-faint);
  width: 100%;
  text-align: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--stroke);
}

@media (max-width: 768px) {
  .footer { padding: 40px 24px; }
  .footer__links { gap: 20px; flex-wrap: wrap; }
}

/* ============ FEEDBACK WIDGET ============ */
.feedback-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(212, 165, 116, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feedback-fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 12px 32px rgba(212, 165, 116, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.3);
}

.feedback-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.feedback-panel {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 56px);
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 12px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.96);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.feedback-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.feedback-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(212, 165, 116, 0.06);
}

.feedback-panel__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.feedback-panel__avatar svg { width: 26px; height: 26px; }

.feedback-panel__title {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feedback-panel__title strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.feedback-panel__title span {
  font-size: 12px;
  color: var(--ink-muted);
}

.feedback-panel__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.feedback-panel__close:hover {
  background: rgba(245, 239, 230, 0.06);
  color: var(--ink);
}

.feedback-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-panel__body::-webkit-scrollbar { width: 6px; }
.feedback-panel__body::-webkit-scrollbar-thumb {
  background: var(--stroke);
  border-radius: 3px;
}

/* Chat bubbles */
.bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.45;
  animation: bubble-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble--bot {
  align-self: flex-start;
  background: rgba(245, 239, 230, 0.06);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.bubble--user {
  align-self: flex-end;
  background: var(--amber);
  color: var(--bg);
  border-bottom-right-radius: 6px;
  font-weight: 500;
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
  background: rgba(245, 239, 230, 0.06);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
}

.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: typing 1.2s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  align-self: stretch;
  animation: bubble-in 0.4s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.choice {
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.choice:hover {
  border-color: var(--amber);
  background: rgba(212, 165, 116, 0.06);
  transform: translateX(2px);
}

.choice:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.feedback-panel__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--stroke);
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Summary card shown at end of feedback flow */
.summary-card {
  align-self: stretch;
  margin-top: 4px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(212, 165, 116, 0.06);
  border: 1px solid rgba(212, 165, 116, 0.25);
  animation: bubble-in 0.4s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.summary-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.summary-card__text {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 14px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.summary-card__actions {
  display: flex;
  gap: 8px;
}

.summary-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.summary-btn--primary {
  background: var(--amber);
  color: var(--bg);
}

.summary-btn--primary:hover {
  background: var(--amber-soft);
  transform: translateY(-1px);
}

.summary-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--stroke);
}

.summary-btn--ghost:hover {
  border-color: var(--amber);
  background: rgba(212, 165, 116, 0.06);
}

.summary-btn.is-success {
  background: rgba(212, 165, 116, 0.15);
  color: var(--amber);
  border-color: var(--amber);
}

@media (max-width: 480px) {
  .feedback-panel {
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
    height: 70vh;
  }
  .feedback-fab { bottom: 20px; right: 20px; }
}
