* {
  box-sizing: border-box;
}

:root {
  --navy: #001f3f;
  --navy-2: #003049;
  --navy-3: #0b3c5d;
  --landing-bg: #041633;
  --landing-bg-2: #071527;
  --landing-bg-3: #020b18;
  --landing-border: rgba(245, 225, 206, 0.14);
  --landing-card: rgba(255, 247, 239, 0.055);
  --landing-text: rgba(245, 225, 206, 0.76);
  --cream: #f5e1ce;
  --cream-2: #fff7ef;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #102030;
  --muted: #64748b;
  --border: #d8dee8;
  --sidebar-width: 280px;
  --soft-shadow: 0 14px 38px rgba(0, 31, 63, 0.08);
  --card-border: rgba(0, 31, 63, 0.08);
  --premium-radius: 20px;
}

html,
body {
  background: var(--landing-bg-3);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
}

/* SIDEBAR */
.menu-toggle {
  display: none;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--navy) 0%, #071527 100%);
  padding: 24px 16px;
  z-index: 1500;
  overflow-y: auto;
  border-right: 1px solid rgba(245, 225, 206, 0.12);
  transition: transform 0.28s ease, opacity 0.22s ease;
}

body.landing-active .sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.sidebar h2 {
  color: white;
  margin: 0 0 22px;
  font-size: 30px;
  letter-spacing: 0;
}

.sidebar button {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(245, 225, 206, 0.06);
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar button:hover {
  background: rgba(245, 225, 206, 0.14);
  border-color: rgba(245, 225, 206, 0.22);
  transform: translateX(2px);
}

.sidebar-primary {
  display: grid;
  gap: 8px;
}

.sidebar-primary button {
  background: rgba(245, 225, 206, 0.10);
  border-color: rgba(245, 225, 206, 0.14);
  font-weight: 700;
}

.sidebar-primary button:first-child {
  background: var(--cream);
  color: var(--navy);
}

.sidebar-primary button:first-child:hover {
  background: #ecd2bb;
}

.sidebar-separator {
  height: 1px;
  margin: 18px 0 6px;
  background: rgba(245, 225, 206, 0.16);
}

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

.sidebar-secondary button {
  min-height: 38px;
  padding: 9px 10px;
  background: transparent;
  color: rgba(245, 225, 206, 0.70);
}

.sidebar-secondary button:hover {
  background: rgba(245, 225, 206, 0.08);
  color: var(--cream);
}

.sidebar-upcoming {
  margin-top: 14px;
  padding: 14px 12px;
  border: 1px solid rgba(245, 225, 206, 0.10);
  border-radius: 14px;
  color: rgba(245, 225, 206, 0.48);
  background: rgba(245, 225, 206, 0.035);
  pointer-events: none;
}

.sidebar-history-separator {
  margin-top: 18px;
  margin-bottom: 8px;
}

.sidebar-upcoming h3 {
  margin: 0 0 10px;
  color: rgba(245, 225, 206, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sidebar-upcoming p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.25;
}

/* MAIN */
#main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg);
  transition: margin-left 0.28s ease;
}

body.landing-active #main-content {
  margin-left: 0;
}

body.landing-active .menu-toggle {
  display: none;
}

.page-section {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  padding: 28px 40px;
  animation: sectionIn 0.24s ease;
}

h1 {
  margin-top: 0;
  color: var(--navy);
}

h2,
h3 {
  color: var(--navy-2);
}

p {
  line-height: 1.5;
}

/* LANDING */
.landing-section {
  position: relative;
  min-height: 100vh;
  padding: 44px clamp(24px, 5vw, 72px) 60px;
  color: var(--cream);
  background:
    radial-gradient(circle at 82% 10%, rgba(245, 225, 206, 0.16), transparent 30%),
    radial-gradient(circle at 12% 32%, rgba(120, 174, 198, 0.16), transparent 34%),
    radial-gradient(circle at 65% 86%, rgba(245, 225, 206, 0.07), transparent 34%),
    linear-gradient(135deg, var(--landing-bg) 0%, var(--landing-bg-2) 48%, var(--landing-bg-3) 100%);
  overflow: hidden;
}

.landing-section::before,
.landing-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-section::before {
  background:
    linear-gradient(115deg, transparent 0 18%, rgba(245, 225, 206, 0.055) 18.2%, transparent 18.6%),
    linear-gradient(115deg, transparent 0 58%, rgba(120, 174, 198, 0.045) 58.2%, transparent 58.6%);
  opacity: 0.75;
}

.landing-section::after {
  background-image:
    radial-gradient(circle, rgba(245, 225, 206, 0.18) 1px, transparent 1.4px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, transparent 0%, black 18%, transparent 58%);
  opacity: 0.16;
}

.landing-login-button {
  position: absolute;
  top: 28px;
  right: clamp(24px, 5vw, 72px);
  z-index: 5;
  padding: 12px 20px;
  border: 1px solid rgba(245, 225, 206, 0.68);
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(245, 225, 206, 0.08);
}

.landing-login-button:hover {
  background: #fff1df;
  border-color: rgba(255, 247, 239, 0.95);
  transform: translateY(-2px);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(245, 225, 206, 0.12);
}

.landing-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.landing-hero {
  position: relative;
  min-height: min(610px, calc(100vh - 120px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 62px);
  padding: 52px 0 42px;
}

.landing-brand-watermark {
  display: none;
  position: absolute;
  top: 44px;
  right: clamp(10px, 7vw, 110px);
  width: min(300px, 36vw);
  aspect-ratio: 1;
  opacity: 0.18;
  pointer-events: none;
  filter: drop-shadow(0 26px 60px rgba(245, 225, 206, 0.18));
}

.landing-brand-watermark::before,
.landing-brand-watermark::after {
  content: "";
  position: absolute;
  top: 54%;
  width: 44%;
  height: 18%;
  border-bottom: 16px solid rgba(245, 225, 206, 0.46);
  border-radius: 0 0 999px 999px;
}

.landing-brand-watermark::before {
  left: 10%;
  transform: rotate(16deg);
}

.landing-brand-watermark::after {
  right: 10%;
  transform: rotate(-16deg);
}

.landing-brand-watermark span {
  position: absolute;
  inset: 16%;
  border: 18px solid rgba(245, 225, 206, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(245, 225, 206, 0.18) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 50%, rgba(4, 22, 51, 0.24), transparent 60%);
}

.landing-owl-illustration {
  display: none;
  position: absolute;
  top: 42px;
  right: clamp(4px, 6vw, 92px);
  width: min(330px, 38vw);
  aspect-ratio: 0.86;
  opacity: 0.13;
  pointer-events: none;
  filter: drop-shadow(0 28px 60px rgba(245, 225, 206, 0.16));
}

body.landing-owl-variant .landing-brand-watermark {
  display: none;
}

body.landing-owl-variant .landing-owl-illustration {
  display: block;
}

.owl-line {
  position: absolute;
  display: block;
  border-color: rgba(245, 225, 206, 0.58);
}

.owl-head {
  inset: 10% 17% 24%;
  border: 3px solid rgba(245, 225, 206, 0.58);
  border-radius: 46% 46% 42% 42%;
}

.owl-head::before,
.owl-head::after {
  content: "";
  position: absolute;
  top: 22%;
  width: 24%;
  aspect-ratio: 1;
  border: 2px solid rgba(245, 225, 206, 0.50);
  border-radius: 50%;
}

.owl-head::before {
  left: 19%;
}

.owl-head::after {
  right: 19%;
}

.owl-wing {
  top: 35%;
  width: 34%;
  height: 40%;
  border-bottom: 3px solid rgba(245, 225, 206, 0.48);
  border-radius: 0 0 999px 999px;
}

.owl-wing-left {
  left: 18%;
  transform: rotate(28deg);
}

.owl-wing-right {
  right: 18%;
  transform: rotate(-28deg);
}

.owl-base {
  left: 24%;
  right: 24%;
  bottom: 13%;
  height: 14%;
  border-bottom: 3px solid rgba(245, 225, 206, 0.42);
  border-radius: 0 0 999px 999px;
}

.landing-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  text-align: left;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.landing-brand h2 {
  margin: 0;
  color: white;
  font-size: 32px;
  letter-spacing: 0;
}

.landing-brand p {
  margin: 2px 0 0;
  color: rgba(245, 225, 206, 0.66);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.landing-section h1 {
  max-width: 760px;
  margin: 0 0 20px;
  color: white;
  font-size: 82px;
  line-height: 0.96;
  letter-spacing: 0;
}

.landing-section h1 span {
  display: inline-block;
  color: var(--cream);
  background: linear-gradient(90deg, var(--cream) 0%, #9fd0e6 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 18px 60px rgba(245, 225, 206, 0.12);
}

.landing-subtitle {
  max-width: 610px;
  margin: 0 0 28px;
  color: rgba(245, 225, 206, 0.74);
  font-size: 19px;
  line-height: 1.55;
}

.landing-form {
  width: min(690px, 100%);
  padding: 7px;
  gap: 7px;
  background: rgba(255, 247, 239, 0.95);
  border: 1px solid rgba(245, 225, 206, 0.34);
  border-radius: 22px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.landing-form:focus-within {
  border-color: rgba(245, 225, 206, 0.62);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.38),
    0 0 0 4px rgba(245, 225, 206, 0.12);
  transform: translateY(-1px);
}

#landing-input {
  flex: 1;
  min-width: 0;
  padding: 17px 18px;
  border: none;
  outline: none;
  font-size: 17px;
  background: transparent;
  color: var(--navy);
}

#landing-input::placeholder {
  color: rgba(4, 22, 51, 0.52);
}

.landing-form button {
  min-width: 118px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 16px;
  font-weight: 800;
}

.landing-form button:hover {
  background: #08224b;
  transform: translateY(-1px);
}

.landing-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.landing-examples button {
  padding: 9px 12px;
  color: rgba(245, 225, 206, 0.78);
  background: rgba(245, 225, 206, 0.07);
  border: 1px solid rgba(245, 225, 206, 0.13);
  border-radius: 999px;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.landing-examples button:hover {
  color: var(--cream);
  background: rgba(245, 225, 206, 0.13);
  transform: translateY(-1px);
}

.landing-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.landing-hero-stats span {
  padding: 8px 11px;
  border: 1px solid rgba(245, 225, 206, 0.14);
  border-radius: 999px;
  background: rgba(255, 247, 239, 0.055);
  color: rgba(245, 225, 206, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.landing-hero-mockup {
  position: relative;
  z-index: 2;
}

.landing-hero-mockup::before {
  content: "";
  position: absolute;
  inset: 8% -4% -2% 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(159, 208, 230, 0.22), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-mockup-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(245, 225, 206, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.13), rgba(255, 247, 239, 0.055)),
    rgba(4, 22, 51, 0.72);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
  backdrop-filter: blur(18px);
}

.hero-mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-mockup-header span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 20px rgba(245, 225, 206, 0.60);
}

.hero-mockup-header strong {
  color: white;
  font-size: 15px;
}

.hero-mockup-bubble {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 16px 16px 6px 16px;
  background: var(--cream);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.hero-mockup-sections {
  display: grid;
  gap: 10px;
}

.hero-mockup-sections div {
  padding: 13px 14px;
  border: 1px solid rgba(245, 225, 206, 0.13);
  border-left: 4px solid rgba(159, 208, 230, 0.76);
  border-radius: 16px;
  background: rgba(255, 247, 239, 0.07);
}

.hero-mockup-sections strong {
  display: block;
  margin-bottom: 3px;
  color: white;
  font-size: 13px;
}

.hero-mockup-sections small {
  color: rgba(245, 225, 206, 0.68);
  font-size: 12px;
}

.hero-mockup-card p {
  margin: 16px 0 0;
  color: rgba(245, 225, 206, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.landing-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 34px;
}

.landing-action-card {
  min-height: 154px;
  padding: 20px;
  text-align: left;
  color: var(--cream);
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  border-radius: var(--premium-radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.landing-action-card:hover {
  background: rgba(255, 247, 239, 0.10);
  border-color: rgba(245, 225, 206, 0.30);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}

.landing-action-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(245, 225, 206, 0.12);
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
}

.landing-action-card strong {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: 18px;
}

.landing-action-card small {
  display: block;
  color: rgba(245, 225, 206, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

.landing-section-heading {
  margin: 42px 0 14px;
}

.landing-section-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(245, 225, 206, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-section-heading h2 {
  max-width: 680px;
  margin: 0;
  color: white;
  font-size: 28px;
  line-height: 1.12;
}

.landing-why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 34px;
}

.landing-why article {
  padding: 18px;
  border: 1px solid var(--landing-border);
  border-radius: 18px;
  background: var(--landing-card);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.landing-why article:hover,
.landing-methods button:hover,
.landing-methods button.active,
.landing-real-study article:hover {
  transform: translateY(-2px);
  background: rgba(255, 247, 239, 0.085);
  border-color: rgba(245, 225, 206, 0.24);
}

.landing-why article span {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--cream);
  box-shadow: 0 0 22px rgba(245, 225, 206, 0.72);
}

.landing-why h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 16px;
}

.landing-why p {
  margin: 0;
  color: rgba(245, 225, 206, 0.62);
  font-size: 13px;
}

.landing-methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 34px;
}

.landing-methods button {
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--landing-border);
  border-radius: 16px;
  background: var(--landing-card);
  color: rgba(255, 247, 239, 0.88);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.landing-method-info {
  width: min(680px, 100%);
  margin: -18px 0 34px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 225, 206, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(245, 225, 206, 0.12), rgba(245, 225, 206, 0.045));
  color: var(--landing-text);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.landing-method-info strong {
  display: block;
  margin-bottom: 6px;
  color: white;
  font-size: 15px;
}

.landing-method-info p {
  margin: 0;
  max-width: 620px;
  color: rgba(245, 225, 206, 0.68);
  font-size: 14px;
}

.landing-preview {
  display: grid;
  gap: 12px;
  width: min(640px, 100%);
  margin: 14px 0 36px;
  padding: 18px;
  border: 1px solid rgba(245, 225, 206, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 247, 239, 0.10), rgba(255, 247, 239, 0.035));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
}

.preview-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
}

.preview-user {
  justify-self: end;
  background: var(--cream);
  color: var(--navy);
  border-bottom-right-radius: 6px;
  font-weight: 700;
}

.preview-ai {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255, 247, 239, 0.08);
  color: var(--cream);
  border: 1px solid rgba(245, 225, 206, 0.16);
  border-bottom-left-radius: 6px;
}

.preview-ai strong,
.preview-ai span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(245, 225, 206, 0.10);
  color: rgba(255, 247, 239, 0.86);
}

.landing-real-study {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 36px;
}

.landing-real-study article {
  position: relative;
  padding: 18px 18px 18px 42px;
  border: 1px solid var(--landing-border);
  border-radius: 18px;
  background: var(--landing-card);
  color: rgba(255, 247, 239, 0.86);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.landing-real-study article::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 18px rgba(245, 225, 206, 0.55);
  transform: translateY(-50%);
}

.landing-product-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 38px;
}

.product-preview-card {
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--landing-border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.085), rgba(255, 247, 239, 0.035));
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.16);
}

.product-preview-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.product-preview-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 18px rgba(245, 225, 206, 0.60);
}

.product-preview-top strong {
  color: white;
  font-size: 15px;
}

.mock-chat,
.mock-survival,
.mock-profile {
  display: grid;
  gap: 10px;
}

.mock-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
}

.mock-user {
  justify-self: end;
  background: var(--cream);
  color: var(--navy);
  border-bottom-right-radius: 5px;
  font-weight: 700;
}

.mock-ai {
  background: rgba(255, 247, 239, 0.09);
  color: rgba(255, 247, 239, 0.78);
  border: 1px solid rgba(245, 225, 206, 0.12);
  border-bottom-left-radius: 5px;
}

.mock-survival span,
.mock-profile span {
  padding: 12px;
  border: 1px solid rgba(245, 225, 206, 0.13);
  border-left: 4px solid rgba(245, 225, 206, 0.54);
  border-radius: 14px;
  background: rgba(255, 247, 239, 0.055);
  color: rgba(255, 247, 239, 0.82);
  font-size: 13px;
  font-weight: 800;
}

.mock-profile {
  grid-template-columns: 1fr;
}

.mock-profile span {
  border-left-color: rgba(120, 174, 198, 0.70);
}

.landing-quote {
  margin-top: 28px;
  padding: 26px clamp(22px, 4vw, 34px);
  border: 1px solid rgba(245, 225, 206, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(245, 225, 206, 0.14), rgba(245, 225, 206, 0.05));
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.20);
}

.landing-quote p {
  margin: 0;
  color: white;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
}

/* TOP BAR */
#top-bar {
  position: absolute;
  top: 22px;
  right: 30px;
  z-index: 100;
}

#account-button {
  background: var(--navy) !important;
  color: var(--cream) !important;
  border: 1px solid rgba(245, 225, 206, 0.25) !important;
  padding: 10px 16px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 25px rgba(0, 31, 63, 0.18) !important;
  transition: all 0.2s ease !important;
}

#account-button:hover {
  background: var(--navy-2) !important;
  transform: translateY(-1px);
}

/* CHAT */
#chat-section {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100dvh;
  padding: 28px 40px 24px;
  background:
    radial-gradient(circle at 78% 0%, rgba(245, 225, 206, 0.22), transparent 28%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
}

#chat-section > h1,
#chat-section > p {
  width: min(1040px, 100%);
  margin-left: auto;
  margin-right: auto;
}

#chat-section > p {
  margin-top: -4px;
  margin-bottom: 8px;
  color: var(--muted);
}

#chat {
  flex: 1;
  width: min(1180px, 100%);
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 14px 0 12px;
  overflow-y: auto;
  margin: 0 auto;
  border: none;
}

.study-method-panel {
  width: min(1180px, 100%);
  display: flex;
  justify-content: flex-end;
  margin: 0 auto 10px;
}

.study-method-card {
  width: min(620px, 92%);
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 8px auto 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 31, 63, 0.09);
  border-radius: 16px;
  background: rgba(255, 247, 239, 0.78);
  color: var(--navy);
  box-shadow: 0 8px 22px rgba(0, 31, 63, 0.045);
  animation: messageIn 0.2s ease;
}

.study-method-card div {
  min-width: 0;
}

.study-method-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.study-method-card span {
  display: block;
  color: #46576b;
  font-size: 13px;
  line-height: 1.35;
}

.study-method-card small {
  display: block;
  margin-top: 4px;
  color: rgba(0, 31, 63, 0.52);
  font-size: 11px;
  font-weight: 700;
}

.study-method-card button {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
}

.study-method-card button:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}

.study-method-card.undone {
  background: rgba(255, 255, 255, 0.92);
}

.study-method-selector {
  display: grid;
  gap: 5px;
  min-width: 210px;
  color: var(--navy);
}

.study-method-selector span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.study-method-selector select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid rgba(0, 31, 63, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 31, 63, 0.06);
}

.message {
  position: relative;
  max-width: min(840px, 88%);
  margin-bottom: 6px;
  padding: 11px 14px 26px;
  border-radius: 16px;
  line-height: 1.42;
  white-space: normal;
  animation: messageIn 0.22s ease;
}

.message.user {
  max-width: min(620px, 70%);
  margin-left: auto;
  background: var(--navy-2);
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 48, 73, 0.16);
  white-space: pre-wrap;
}

.message.ai {
  max-width: min(1080px, 96%);
  margin-right: auto;
  background: white;
  color: var(--text);
  border-bottom-left-radius: 6px;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 28px rgba(0, 31, 63, 0.06);
}

.message-reveal {
  animation: messageIn 0.24s ease;
}

.message.thinking-message {
  max-width: fit-content;
  padding-right: 16px;
}

.typing-dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted);
  animation: typingPulse 1s ease-in-out infinite;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.14s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes typingPulse {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.message.ai > div:first-child:not(.message-avatar) {
  flex: 1;
  min-width: 0;
  white-space: normal;
}

.message.survival-message {
  width: min(860px, 94%);
  max-width: min(860px, 94%);
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0 26px;
}

.survival-response {
  display: grid;
  gap: 10px;
  width: 100%;
  white-space: normal;
}

.message-content,
.survival-section-body {
  white-space: normal;
}

.survival-section-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px 16px 14px 20px;
  box-shadow: 0 8px 22px rgba(0, 31, 63, 0.045);
}

.survival-section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cream);
}

.survival-section-title {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.survival-section-body {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.survival-section-body p,
.survival-section-body ul,
.survival-section-body ol {
  margin-top: 7px;
  margin-bottom: 7px;
}

.survival-section-body p:first-child {
  margin-top: 0;
}

.survival-section-body p:last-child,
.survival-section-body ul:last-child,
.survival-section-body ol:last-child {
  margin-bottom: 0;
}

.survival-prioridad {
  border-color: #ead7c8;
}

.survival-plan {
  border-color: #cfe4ee;
}

.survival-necesario {
  border-color: #d8dee8;
}

.survival-preguntas {
  border-color: #efe2a6;
}

.survival-memorizar {
  border-color: #ead7c8;
}

.survival-no-llegas {
  border-color: #efcaca;
}

.survival-repaso {
  border-color: #cbe8d3;
}

.survival-plan::before {
  background: #7fb6c9;
}

.survival-necesario::before {
  background: #c8d0dc;
}

.survival-preguntas::before {
  background: #dec765;
}

.survival-memorizar::before {
  background: #c9a27f;
}

.survival-no-llegas::before {
  background: #d78a8a;
}

.survival-repaso::before {
  background: #83bd91;
}

/* INPUT */
form {
  display: flex;
  gap: 10px;
  padding-top: 12px;
  background: transparent;
}

#chat-form {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(0, 31, 63, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(0, 31, 63, 0.08);
  backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#chat-form:focus-within {
  border-color: rgba(0, 48, 73, 0.26);
  box-shadow:
    0 22px 55px rgba(0, 31, 63, 0.11),
    0 0 0 4px rgba(0, 48, 73, 0.08);
  transform: translateY(-1px);
}

#user-input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  outline: none;
  font-size: 15px;
  background: transparent;
}

#user-input:focus {
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.10);
}

button {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

button:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

button:disabled:hover {
  transform: none;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(245, 225, 206, 0.55);
  outline-offset: 3px;
}

form button {
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
  border: 1px solid rgba(0, 31, 63, 0.08);
  box-shadow: 0 8px 18px rgba(0, 31, 63, 0.08);
}

form button:hover {
  background: #ecd2bb;
  transform: translateY(-1px);
}

/* MODE BUTTONS */
#mode-buttons {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#mode-buttons button {
  background: var(--cream-2);
  color: var(--navy);
  border: 1px solid #ead7c8;
}

#mode-buttons button:hover {
  background: var(--cream);
}

/* SECCIONES */
#test-section,
#login-section,
#profile-section,
#history-section {
  max-width: 850px;
  margin: 0 auto;
  padding-top: 70px;
}

/* AUTH */
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  background: white;
  padding: 34px;
  border-radius: var(--premium-radius);
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--card-border);
  animation: fadeIn 0.25s ease;
}

.auth-subtitle {
  color: var(--muted);
  margin-bottom: 22px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  background: #f1f4f8;
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.auth-tabs button {
  flex: 1;
  background: transparent;
  color: var(--navy);
}

.auth-tabs button.active {
  background: var(--navy);
  color: var(--cream);
}

#auth-email,
#auth-password,
#auth-name,
.auth-card input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 15px;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#auth-email:focus,
#auth-password:focus,
#auth-name:focus {
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(0, 48, 73, 0.10);
}

.auth-main-button {
  width: 100%;
  margin-top: 8px;
  background: var(--navy);
  color: var(--cream);
}

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

.admin-grid .memory-card strong {
  display: block;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

#auth-message {
  margin-top: 14px;
  color: var(--muted);
}

/* SIDEBAR HISTORY */
#sidebar-history {
  margin-top: 0;
}

.sidebar-chat {
  max-height: 54px;
  overflow: hidden;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    max-height 0.24s ease,
    margin 0.24s ease,
    padding 0.24s ease,
    background 0.2s ease,
    color 0.2s ease;
}

#sidebar-history h3 {
  color: rgba(245, 225, 206, 0.65);
  font-size: 12px;
  font-weight: normal;
  margin: 18px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#sidebar .sidebar-chat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 10px;
  color: white;
  border: 1px solid transparent;
}

#sidebar .sidebar-chat:hover {
  background: rgba(245, 225, 206, 0.12);
  border-color: rgba(245, 225, 206, 0.10);
}

.sidebar-chat.chat-removing {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateX(-10px) scale(0.98);
  pointer-events: none;
}

#sidebar .sidebar-chat-title {
  flex: 1;
  font-size: 14px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sidebar button.sidebar-chat-options {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: var(--cream) !important;
  border-radius: 8px !important;
  text-align: center !important;
  font-size: 18px !important;
}

#sidebar button.sidebar-chat-options:hover {
  background: rgba(245, 225, 206, 0.16) !important;
}

/* OPTIONS MENU */
#chat-options-menu {
  animation: menuIn 0.15s ease;
}

#chat-options-menu div {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
}

#chat-options-menu div:hover {
  background: #f3f4f6;
}

/* MARKDOWN */
.message.ai h1,
.message.ai h2,
.message.ai h3 {
  margin-top: 12px;
  margin-bottom: 6px;
  color: var(--navy);
}

.message.ai p {
  margin: 5px 0;
}

.message.ai > div > :first-child,
.message.ai .message-content > :first-child {
  margin-top: 0;
}

.message.ai > div > :last-child,
.message.ai .message-content > :last-child {
  margin-bottom: 0;
}

.message.ai .survival-section-body p,
.message.ai .survival-section-body ul,
.message.ai .survival-section-body ol {
  margin-top: 7px;
  margin-bottom: 7px;
}

.copy-button {
  position: absolute;
  right: 9px;
  bottom: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(0, 31, 63, 0.12);
  border-radius: 50%;
  background: rgba(0, 31, 63, 0.92);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(0, 31, 63, 0.12);
  opacity: 0.82;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.copy-button:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
  opacity: 1;
}

.copy-icon {
  position: relative;
  width: 11px;
  height: 11px;
  display: block;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background: transparent;
}

.copy-icon::before {
  top: 1px;
  left: 3px;
  opacity: 0.7;
}

.copy-icon::after {
  top: 4px;
  left: 0;
}

.message.user .copy-button {
  border-color: rgba(245, 225, 206, 0.42);
  background: rgba(245, 225, 206, 0.94);
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.message.user .copy-button:hover {
  background: #fff1df;
}

.message.ai ul,
.message.ai ol {
  padding-left: 22px;
}

.message.ai code {
  background: rgba(0, 31, 63, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: monospace;
}

.math-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.2em;
  margin: 0 0.16em;
  color: var(--navy);
  font-size: 0.95em;
  font-weight: 650;
  line-height: 1.08;
  vertical-align: middle;
}

.math-num,
.math-den {
  display: block;
  padding: 0 0.28em;
  white-space: nowrap;
}

.math-num {
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.12em;
}

.math-den {
  padding-top: 0.12em;
}

.message.ai pre {
  background: var(--navy);
  color: white;
  padding: 14px;
  border-radius: 12px;
  overflow-x: auto;
}

.message.ai pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.message.ai blockquote {
  border-left: 4px solid var(--navy-2);
  padding-left: 12px;
  margin-left: 0;
  color: #334155;
}

.message.ai table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
}

.message.ai th,
.message.ai td {
  border: 1px solid #dbe2ea;
  padding: 10px;
  text-align: left;
}

.message.ai th {
  background: #f1f5f9;
}

/* THINKING */
.thinking {
  display: flex;
  gap: 6px;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 4px 2px;
}

.thinking span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy-3);
  animation: thinkingBounce 1.2s infinite ease-in-out;
}

.thinking span:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking span:nth-child(3) {
  animation-delay: 0.4s;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 31, 63, 0.46);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  animation: fadeIn 0.2s ease;
  backdrop-filter: blur(3px);
  cursor: default;
}

.modal-overlay.modal-closing {
  animation: fadeOut 0.16s ease forwards;
}

.modal-card {
  width: min(420px, 90%);
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--premium-radius);
  padding: 28px;
  box-shadow: 0 26px 80px rgba(0, 31, 63, 0.24);
  animation: modalIn 0.22s ease;
  cursor: auto;
}

.modal-closing .modal-card {
  animation: modalOut 0.16s ease forwards;
}

.modal-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--navy);
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.secondary-button {
  background: #f1f4f8;
  color: var(--navy);
  border-color: rgba(0, 31, 63, 0.06);
}

.secondary-button:hover {
  background: #e6ebf2;
}

.danger-button {
  background: #7f1d1d;
  color: white;
}

.danger-button:hover {
  background: #991b1b;
}

.danger-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* GUEST NUDGE */
.guest-login-nudge {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 4200;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(245, 225, 206, 0.28);
  border-radius: var(--premium-radius);
  background: rgba(255, 247, 239, 0.94);
  color: var(--navy);
  box-shadow: 0 22px 64px rgba(0, 31, 63, 0.20);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.guest-login-nudge.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.guest-login-nudge strong {
  display: block;
  padding-right: 24px;
  font-size: 15px;
}

.guest-login-nudge p {
  margin: 8px 0 14px;
  color: #46576b;
  font-size: 14px;
}

.guest-nudge-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
}

.guest-nudge-close:hover {
  background: rgba(0, 31, 63, 0.08);
}

.guest-nudge-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.guest-nudge-actions button {
  padding: 9px 12px;
  font-size: 13px;
}

/* ANIMACIONES */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

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

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

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes thinkingBounce {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .landing-copy {
    max-width: 780px;
  }

  .landing-hero-mockup {
    width: min(520px, 100%);
  }

  .landing-section h1 {
    font-size: 70px;
  }

  .landing-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .landing-real-study {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-product-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* MÓVIL */
@media (max-width: 800px) {
  .menu-toggle {
    display: block;
    position: fixed;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--navy);
    color: var(--cream);
    z-index: 2000;
  }

  .sidebar {
    left: -280px;
    padding-top: 82px;
    transition: left 0.25s ease;
  }

  .sidebar.active {
    left: 0;
  }

  #main-content {
    margin-left: 0;
  }

  .page-section,
  #chat-section {
    padding: 80px 16px 20px;
  }

  .landing-section {
    padding: 78px 20px 38px;
  }

  .landing-hero {
    min-height: auto;
    gap: 30px;
    padding: 40px 0 34px;
    text-align: center;
  }

  .landing-brand-watermark {
    top: 70px;
    right: -18px;
    width: 210px;
    opacity: 0.11;
  }

  .landing-owl-illustration {
    top: 82px;
    right: -26px;
    width: 220px;
    opacity: 0.10;
  }

  .landing-brand {
    justify-content: center;
    margin-bottom: 28px;
  }

  .landing-section h1 {
    font-size: 48px;
    line-height: 1;
    max-width: 100%;
  }

  .landing-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    justify-content: center;
  }

  .landing-hero-stats span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 9px;
    font-size: 12px;
  }

  .landing-hero-mockup {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .landing-hero-mockup::before {
    inset: 12% 0 -4% 10%;
    filter: blur(8px);
  }

  .hero-mockup-card {
    padding: 20px;
    border-radius: 24px;
    text-align: left;
  }

  .hero-mockup-header {
    margin-bottom: 16px;
  }

  .hero-mockup-sections {
    gap: 8px;
  }

  .hero-mockup-sections div {
    padding: 14px;
    border-radius: 16px;
  }

  .hero-mockup-sections strong {
    font-size: 14px;
  }

  .hero-mockup-sections small {
    font-size: 13px;
  }

  .landing-subtitle {
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 17px;
    line-height: 1.5;
  }

  .landing-form {
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 26px;
    padding: 9px;
  }

  #landing-input {
    width: 100%;
    min-height: 52px;
    padding: 16px 15px;
    font-size: 16px;
    text-align: center;
  }

  .landing-form button {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

  .landing-login-button {
    top: 16px;
    right: 16px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .landing-actions,
  .landing-why,
  .landing-methods,
  .landing-real-study,
  .landing-product-preview {
    grid-template-columns: 1fr;
  }

  .product-preview-card {
    min-height: auto;
  }

  .landing-section-heading {
    margin-top: 36px;
    text-align: center;
  }

  .landing-section-heading h2 {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    font-size: 27px;
    line-height: 1.12;
  }

  .landing-action-card {
    min-height: auto;
    padding: 22px;
  }

  .landing-why article,
  .landing-methods button,
  .product-preview-card {
    padding: 22px;
    border-radius: 18px;
  }

  .landing-action-card strong,
  .landing-why h3,
  .product-preview-top strong {
    font-size: 17px;
  }

  .landing-action-card small,
  .landing-why p,
  .mock-bubble,
  .mock-survival span,
  .mock-profile span {
    font-size: 15px;
  }

  .landing-preview {
    padding: 14px;
    border-radius: 20px;
  }

  .landing-method-info {
    margin-top: -16px;
    padding: 16px;
  }

  .landing-quote p {
    font-size: 28px;
  }

  .message {
    max-width: 92%;
    padding: 10px 12px 25px;
  }

  .message.user {
    max-width: 82%;
  }

  .message.survival-message {
    width: 100%;
    max-width: 100%;
  }

  .survival-section-card {
    padding: 14px;
    border-radius: 14px;
  }

  .survival-intro {
    max-width: 100% !important;
  }

  .survival-intro .message-content ul {
    grid-template-columns: 1fr;
  }

  form {
    flex-direction: column;
  }

  #chat-form {
    padding: 8px;
    border-radius: 22px;
  }

  .study-method-panel {
    justify-content: stretch;
  }

  .study-method-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .study-method-card button {
    width: 100%;
    min-height: 40px;
  }

  .study-method-selector {
    width: 100%;
    min-width: 0;
  }

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

  #chat-form button {
    width: 100%;
  }

  .auth-tabs,
  .modal-actions {
    flex-direction: column;
  }

  .guest-login-nudge {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    padding: 16px;
  }

  .guest-nudge-actions {
    flex-direction: column;
  }

  .guest-nudge-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .landing-section {
    padding: 72px 16px 34px;
  }

  .landing-hero {
    gap: 28px;
    padding-top: 34px;
  }

  .landing-brand {
    gap: 11px;
    margin-bottom: 24px;
  }

  .landing-brand .owlia-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 19px;
  }

  .landing-brand h2 {
    font-size: 26px;
  }

  .landing-brand p {
    font-size: 12px;
  }

  .landing-section h1 {
    font-size: 44px;
    line-height: 1.02;
    margin-bottom: 18px;
  }

  .landing-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

  .landing-examples {
    gap: 7px;
    justify-content: center;
  }

  .landing-examples button {
    min-height: 38px;
    padding: 9px 11px;
    font-size: 13px;
  }

  .landing-hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-login-button {
    top: 14px;
    right: 14px;
    min-height: 44px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero-mockup-card {
    padding: 18px;
  }

  .hero-mockup-card p {
    font-size: 13px;
  }

  .landing-section-heading h2 {
    font-size: 24px;
  }
}

/* OWLIA BRAND */

.owlia-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.owlia-brand h2 {
  margin: 0;
  color: white;
  font-size: 28px;
}

.owlia-brand p {
  margin: 2px 0 0;
  color: rgba(245,225,206,0.6);
  font-size: 12px;
}

.owlia-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    var(--cream),
    #e7c9ad
  );

  color: var(--navy);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 22px;

  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* AVATAR MENSAJES */

.message.ai {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.message-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;

  border-radius: 10px;

  background: var(--navy);

  color: var(--cream);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 14px;

  margin-top: 2px;
}

.message-content {
  flex: 1;
}
.owlia-style-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.owlia-style-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--premium-radius);
  padding: 20px;
  box-shadow: var(--soft-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.owlia-style-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,31,63,0.10);
}

.owlia-style-card.active {
  border-color: rgba(0, 31, 63, 0.34);
  box-shadow: 0 16px 40px rgba(0,31,63,0.10);
}

.owlia-style-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.style-subtitle {
  color: var(--navy-2);
  font-weight: 600;
  margin-bottom: 12px;
}

.owlia-style-card blockquote {
  margin: 16px 0;
  padding-left: 12px;
  border-left: 3px solid var(--cream);
  color: var(--muted);
  font-style: italic;
}

.owlia-style-card button {
  width: 100%;
}
.memory-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--premium-radius);
  padding: 20px;
  margin: 16px 0 28px;
  box-shadow: var(--soft-shadow);
}

.memory-card h3 {
  margin-top: 0;
}

.memory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.memory-tags span {
  background: var(--cream);
  color: var(--navy);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.memory-empty {
  color: var(--muted);
  font-style: italic;
}

.memory-description {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}
.survival-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(245,225,206,0.28));
  border: 1px solid var(--card-border);
  border-radius: var(--premium-radius);
  padding: 22px;
  margin: 18px 0 28px;
  box-shadow: var(--soft-shadow);
}

.survival-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.survival-list {
  margin: 14px 0;
  padding-left: 20px;
}

.survival-list li {
  margin-bottom: 8px;
}

.survival-warning {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}
.sidebar button.survival-active {
  background: var(--cream) !important;
  color: var(--navy) !important;
  font-weight: 700;
  border-color: rgba(245,225,206,0.45) !important;
}

.sidebar button.survival-active:hover {
  background: #ecd2bb !important;
  color: var(--navy) !important;
}
.survival-intro {
  max-width: 680px !important;
  width: auto !important;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  white-space: normal;
}

.message-avatar {
  min-width: 28px;
  width: 28px;
  height: 28px;

  border-radius: 50%;

  background: var(--navy);
  color: var(--cream);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: bold;
}

.survival-intro .message-avatar {
  flex: 0 0 28px;
  margin-top: 1px;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.survival-intro .message-content strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.survival-intro .message-content p {
  margin: 0 0 8px;
  color: var(--text);
}

.survival-intro .message-content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 14px;
  margin: 0 0 8px;
  padding-left: 18px;
}

.survival-intro .message-content li {
  margin: 0;
}

.survival-intro .message-content small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 800px) {
  .owlia-style-grid {
    grid-template-columns: 1fr;
  }

  .survival-intro .message-content ul {
    grid-template-columns: 1fr;
  }
}
