/* ===== Handoff AI Landing Page — High-Contrast Design ===== */

:root {
  --blue: #19a9a2;
  --blue-dark: #0f766e;
  --blue-deeper: #134e4a;
  --blue-light: #ccfbf1;
  --blue-50: #f0fdfa;
  --accent: #2bc58e;
  --accent-dark: #16a34a;
  --green: #22c55e;
  --ink: #0f172a;
  --text: #334155;
  --text-soft: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-alt: #f1f5f9;
  --stroke: #e2e8f0;
  --stroke-strong: #cbd5e1;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Segoe UI",
    system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  background: var(--bg);
}

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

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

p {
  margin: 0;
}

/* --- Container --- */
.lp-container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* --- Section labels --- */
.lp-section-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lp-section-sub {
  color: var(--text-soft);
  font-size: 16px;
  margin-top: 4px;
}

/* ========================================
   NAV
   ======================================== */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
  transition: box-shadow var(--transition);
}

.lp-nav.lp-nav-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.lp-logo {
  flex-shrink: 0;
}

.lp-logo img {
  display: block;
}

.lp-nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.lp-nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.lp-nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.lp-nav-links a:hover {
  color: var(--blue);
}

.lp-nav-links a:hover::after {
  width: 100%;
}

.lp-nav-actions {
  display: flex;
  gap: 8px;
}

.lp-nav-actions .lp-btn {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
}

/* ========================================
   BUTTONS
   ======================================== */
.lp-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--stroke-strong);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.lp-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #94a3b8;
}

.lp-btn.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3);
}

.lp-btn.primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.35);
  color: #fff;
}

.lp-btn.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.lp-btn.ghost:hover {
  background: var(--bg-soft);
  border-color: var(--stroke);
}

.lp-btn.lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: 10px;
}

/* White variant for dark backgrounds */
.lp-btn.white {
  background: #fff;
  color: var(--blue-dark);
  border-color: #fff;
  font-weight: 800;
}

.lp-btn.white:hover {
  background: var(--blue-50);
  border-color: var(--blue-50);
  color: var(--blue-dark);
}

.lp-btn.white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.lp-btn.white-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

/* Accent & outline (used on hero) */
.lp-btn.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(43, 197, 142, 0.3);
}

.lp-btn.accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 8px 28px rgba(43, 197, 142, 0.35);
  color: #fff;
}

.lp-btn.outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.lp-btn.outline:hover {
  background: var(--blue-50);
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

/* ========================================
   HERO — Left text + right floating dashboard
   ======================================== */
.lp-hero {
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  min-height: 600px;
}

.lp-hero-content {
  padding: 80px 0;
  max-width: 480px;
}

.lp-hero-kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--blue);
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.15;
  color: var(--blue);
  letter-spacing: -0.03em;
  font-weight: 900;
  margin: 0 0 24px;
}

.lp-hero-brand {
  color: var(--blue);
}

.lp-hero-desc {
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
}

.lp-hero-desc strong {
  color: var(--ink);
}

.lp-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Visual side */
.lp-hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lp-hero-deco {
  position: absolute;
  top: -60px;
  right: -120px;
  bottom: -60px;
  width: 110%;
  background: linear-gradient(160deg, var(--blue) 0%, #2bc58e 100%);
  border-radius: 0 0 0 60px;
  z-index: 0;
}

.lp-hero-screen {
  position: relative;
  z-index: 1;
  margin-right: -40px;
}

.lp-hero-screen img {
  display: block;
  width: 100%;
  max-width: 650px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ========================================
   SECTIONS
   ======================================== */
.lp-section {
  padding: 80px 0;
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

h3 {
  font-size: 18px;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 8px;
}

.lp-bg-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

/* ========================================
   PAIN CARDS
   ======================================== */
.lp-pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.lp-pain-card {
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  border-top: 3px solid var(--blue);
}

.lp-pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--stroke);
  border-top-color: var(--blue);
}

.lp-pain-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: 50%;
  color: var(--blue);
}

.lp-pain-card h3 {
  text-align: center;
  margin-bottom: 12px;
}

.lp-pain-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ========================================
   FEATURES (alternating rows)
   ======================================== */
.lp-feature-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.lp-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.lp-feature-row.reverse {
  direction: rtl;
}

.lp-feature-row.reverse > * {
  direction: ltr;
}

.lp-feature-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--stroke);
}

.lp-feature-img img {
  width: 100%;
  display: block;
}

.lp-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.lp-feature-text h3 {
  font-size: 24px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.lp-feature-text p {
  line-height: 1.85;
  color: var(--text);
}

/* ========================================
   CTA MID — Blue gradient
   ======================================== */
.lp-cta-mid {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--blue) 0%, #2bc58e 100%);
  position: relative;
  overflow: hidden;
}

.lp-cta-mid::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.lp-cta-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lp-cta-card-logo {
  margin-bottom: 16px;
}

.lp-cta-card-logo img {
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.lp-cta-card h2 {
  font-size: clamp(20px, 3vw, 28px);
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}

.lp-cta-card p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

.lp-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   RESULT CARDS
   ======================================== */
.lp-result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.lp-result-card {
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  border-top: 3px solid var(--blue);
}

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

.lp-result-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  border-radius: 14px;
  color: var(--blue);
  margin-bottom: 20px;
}

.lp-result-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ========================================
   FUNCTION GRID
   ======================================== */
.lp-func-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.lp-func-item {
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
}

.lp-func-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--blue-light);
}

.lp-func-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-radius: 10px;
  color: #fff;
  margin-bottom: 16px;
}

.lp-func-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.lp-func-item p {
  font-size: 13px;
  color: var(--text-soft);
}

/* ========================================
   FLOW
   ======================================== */
.lp-flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.lp-flow-step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 16px;
}

.lp-flow-num {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--blue);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.3);
}

.lp-flow-step p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

.lp-flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 16px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ========================================
   NEWS
   ======================================== */
.lp-news-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lp-news-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.lp-news-row:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
  transform: translateX(4px);
}

.lp-news-date {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-news-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.lp-news-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.lp-news-row:hover .lp-news-arrow {
  transform: translateX(4px);
}

/* News article (detail page) */
.lp-news-article header.lp-news-article-head {
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.lp-news-article-head time {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.lp-news-article-head h1 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
}

.lp-news-article-body p {
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 16px;
}

.lp-news-article-body p:last-child {
  margin-bottom: 0;
}

.lp-news-article-body .lp-news-urls {
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 2;
}

.lp-news-article-body .lp-news-urls .label {
  display: inline-block;
  width: 64px;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  font-weight: 700;
  color: var(--text-soft);
}

.lp-news-article-body .lp-news-urls .url-old {
  color: var(--text-soft);
  text-decoration: line-through;
}

.lp-news-article-body .lp-news-urls .url-new {
  color: var(--blue-dark);
  font-weight: 700;
}

@media (max-width: 640px) {
  .lp-news-row {
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 16px 18px;
  }
  .lp-news-title {
    flex-basis: 100%;
  }
  .lp-news-article-body .lp-news-urls .label {
    display: block;
    width: auto;
    margin-bottom: 2px;
  }
}

/* ========================================
   FAQ
   ======================================== */
.lp-faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lp-faq {
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.lp-faq[open] {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
}

.lp-faq summary {
  padding: 18px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}

.lp-faq summary:hover {
  background: var(--bg-soft);
}

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

.lp-faq summary::before {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transition: transform var(--transition);
}

.lp-faq[open] summary::before {
  content: "\2212";
  transform: rotate(180deg);
}

.lp-faq-body {
  padding: 0 24px 20px 64px;
}

.lp-faq-body p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

/* ========================================
   FOOTER
   ======================================== */
.lp-footer {
  background: var(--ink);
  color: #94a3b8;
  padding: 60px 0 32px;
}

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

.lp-footer-brand img {
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.lp-footer-brand p {
  font-size: 13px;
  line-height: 1.7;
}

.lp-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.lp-footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

.lp-footer-col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  color: #94a3b8;
  transition: color var(--transition);
}

.lp-footer-col a:hover {
  color: #fff;
}

.lp-footer-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.lp-footer-cta .lp-btn:not(.primary) {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.lp-footer-cta .lp-btn:not(.primary):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.lp-footer-bottom {
  text-align: center;
  font-size: 12px;
}

.lp-footer-bottom p {
  margin: 0;
  color: #94a3b8;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
[data-animate] {
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  transform: translateY(28px);
}

[data-animate="slide-left"] {
  transform: translateX(-40px);
}

[data-animate="slide-right"] {
  transform: translateX(40px);
}

[data-animate="zoom"] {
  transform: scale(0.94);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

[data-animate][data-delay="100"] {
  transition-delay: 0.1s;
}
[data-animate][data-delay="150"] {
  transition-delay: 0.15s;
}
[data-animate][data-delay="200"] {
  transition-delay: 0.2s;
}
[data-animate][data-delay="300"] {
  transition-delay: 0.3s;
}
[data-animate][data-delay="400"] {
  transition-delay: 0.4s;
}
[data-animate][data-delay="500"] {
  transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .lp-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lp-hero-content {
    max-width: none;
    padding: 60px 0 40px;
  }

  .lp-hero-visual {
    justify-content: center;
    min-height: 300px;
  }

  .lp-hero-deco {
    top: 0;
    right: -20px;
    left: -20px;
    width: auto;
    border-radius: 40px 40px 0 0;
  }

  .lp-hero-screen {
    margin-right: 0;
    padding: 24px 16px 0;
  }

  .lp-hero-screen img {
    max-width: 100%;
  }

  .lp-feature-row,
  .lp-feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }

  .lp-footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ========================================
   COOKIE CONSENT
   ======================================== */
.lp-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  animation: lp-cookie-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lp-cookie-banner.is-hiding {
  animation: lp-cookie-slide-down 0.2s ease forwards;
}

@keyframes lp-cookie-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes lp-cookie-slide-down {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(20px); opacity: 0; }
}

.lp-cookie-banner-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.lp-cookie-banner-text {
  flex: 1;
  min-width: 0;
}

.lp-cookie-banner-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
}

.lp-cookie-banner-text a {
  color: var(--blue-dark);
  text-decoration: underline;
}

.lp-cookie-banner-text a:hover {
  color: var(--blue);
}

.lp-cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.lp-cookie-banner-actions .lp-btn {
  min-height: 40px;
  padding: 8px 20px;
  font-size: 13px;
}

/* Modal */
body.lp-cookie-modal-open {
  overflow: hidden;
}

.lp-cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lp-cookie-fade 0.2s ease;
}

@keyframes lp-cookie-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lp-cookie-modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lp-cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--stroke);
}

.lp-cookie-modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.lp-cookie-close {
  appearance: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  color: var(--text-soft);
  cursor: pointer;
  transition: background var(--transition);
}

.lp-cookie-close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.lp-cookie-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
}

.lp-cookie-modal-body > p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.lp-cookie-modal-body a {
  color: var(--blue-dark);
  text-decoration: underline;
}

.lp-cookie-cats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-cookie-cat {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--bg-soft);
}

.lp-cookie-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-cookie-cat-head h3 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.lp-cookie-locked-note {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
}

.lp-cookie-cat-desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-soft);
}

/* Toggle switch */
.lp-cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.lp-cookie-toggle.is-locked {
  cursor: not-allowed;
  opacity: 0.55;
}

.lp-cookie-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lp-cookie-toggle-track {
  width: 40px;
  height: 22px;
  background: var(--stroke-strong);
  border-radius: 999px;
  transition: background var(--transition);
  position: relative;
}

.lp-cookie-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition);
}

.lp-cookie-toggle input:checked + .lp-cookie-toggle-track {
  background: var(--blue);
}

.lp-cookie-toggle input:checked + .lp-cookie-toggle-track .lp-cookie-toggle-thumb {
  transform: translateX(18px);
}

.lp-cookie-toggle input:focus-visible + .lp-cookie-toggle-track {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.lp-cookie-modal-foot {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--stroke);
  background: var(--bg-soft);
  flex-wrap: wrap;
}

.lp-cookie-modal-foot .lp-btn {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  padding: 10px 14px;
}

@media (max-width: 640px) {
  .lp-cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  .lp-cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }
  .lp-cookie-banner-actions {
    width: 100%;
  }
  .lp-cookie-banner-actions .lp-btn {
    flex: 1;
  }
  .lp-cookie-modal-foot {
    flex-direction: column;
  }
  .lp-cookie-modal-foot .lp-btn {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .lp-nav-links {
    display: none;
  }

  .lp-pain-cards,
  .lp-result-cards,
  .lp-func-grid {
    grid-template-columns: 1fr;
  }

  .lp-flow-steps {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .lp-flow-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }

  .lp-flow-step {
    max-width: 100%;
  }

  h1 {
    font-size: 28px;
  }

  .lp-section {
    padding: 56px 0;
  }

  .lp-cta-card {
    padding: 32px 20px;
  }

  .lp-hero-actions .lp-btn.lg {
    width: 100%;
  }

  .lp-footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .lp-footer-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
