/* ==========================================================================
   PromP.ts — View Selection Page (Design Concept #02)
   Editorial split layout: Muted sage sidebar & Warm cream content canvas
   ========================================================================== */

:root {
  /* Editorial Palette */
  --sage-dark: #2c3e32;
  --sage-main: #384e3f;
  --sage-medium: #476251;
  --sage-light: #6a8874;
  --sage-muted: #a8bdaf;
  --sage-tint: rgba(255, 255, 255, 0.08);

  --cream-bg: #faf7f0;
  --cream-card: #f3efe4;
  --cream-border: #e6dfce;
  --cream-muted: #737f76;
  --cream-dark: #1b2620;

  --accent-orange: #f48115;
  --accent-orange-hover: #df710c;
  --accent-orange-glow: rgba(244, 129, 21, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --transition-normal: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--sage-dark);
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(71, 98, 81, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 85% 85%, rgba(30, 42, 34, 0.8) 0%, transparent 60%);
  color: var(--cream-dark);
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Editorial Split Layout Card Container
   ========================================================================== */

.editorial-container {
  width: 100%;
  max-width: 1040px;
  min-height: 600px;
  background-color: var(--cream-bg);
  border-radius: 28px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.35),
    0 4px 15px rgba(0, 0, 0, 0.15);
  display: grid;
  grid-template-columns: 390px 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

/* ==========================================================================
   Left Column: Muted Sage Sidebar
   ========================================================================== */

.sage-sidebar {
  background-color: var(--sage-main);
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    linear-gradient(175deg, #3a5242 0%, #2e4335 100%);
  color: #faf7f0;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  position: relative;
  z-index: 2;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-sparkle {
  color: var(--accent-orange);
  font-size: 1.15rem;
}

.brand-dot {
  color: var(--accent-orange);
}

.edition-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.75px;
  text-transform: uppercase;
  color: var(--sage-muted);
  background: var(--sage-tint);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.sidebar-hero {
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.75px;
  color: #faf7f0;
  margin-bottom: 0.85rem;
}

.sidebar-desc {
  font-size: 0.9375rem;
  color: var(--sage-muted);
  line-height: 1.55;
}

/* Feature List */
.sidebar-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.825rem;
  color: #e5ece6;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
}

.feature-bullet {
  color: var(--accent-orange);
  font-size: 0.85rem;
  line-height: 1.4;
}

.feature-title {
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.feature-desc {
  color: var(--sage-muted);
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

/* Minimal Botanical Decoration SVG */
.botanical-art {
  position: absolute;
  bottom: -20px;
  right: -25px;
  width: 175px;
  height: 230px;
  color: #7a9c84;
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
  transform: rotate(-8deg);
  transition: opacity var(--transition-normal);
}

.sage-sidebar:hover .botanical-art {
  opacity: 0.42;
}

/* ==========================================================================
   Right Column: Warm Cream Content Canvas
   ========================================================================== */

.cream-content {
  background-color: var(--cream-bg);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

/* Update Pill Badge */
.update-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.85rem 0.25rem 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2e3a32;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.new-pill {
  background-color: var(--accent-orange);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  margin-right: 0.55rem;
}

.content-heading {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--cream-dark);
  letter-spacing: -0.5px;
  margin-bottom: 0.35rem;
}

.content-subtext {
  font-size: 0.875rem;
  color: var(--cream-muted);
  max-width: 380px;
  margin: 0 auto 1.85rem;
  line-height: 1.45;
}

/* ==========================================================================
   Phone Previews & Selection Cards
   ========================================================================== */

.previews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 440px;
  margin-bottom: 2rem;
}

.preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  position: relative;
  transition: transform var(--transition-normal);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.preview-card:hover {
  transform: translateY(-4px);
}

/* Phone Mockup Frame */
.phone-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 260px;
  background-color: #0c0f0d;
  border: 5px solid #1c241f;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 12px 28px rgba(27, 38, 32, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.08);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.phone-speaker {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3.5px;
  background-color: #38433d;
  border-radius: 3px;
  z-index: 5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #000;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.preview-card:hover .phone-screen img {
  transform: scale(1.03);
}

/* Active / Selected Option Styling */
.preview-card.active .phone-frame {
  border-color: var(--accent-orange);
  box-shadow: 
    0 16px 36px var(--accent-orange-glow),
    0 0 0 1px var(--accent-orange);
}

/* Bottom Selection Pill & Radio */
.selection-control {
  margin-top: 0.85rem;
  width: 100%;
  background-color: var(--cream-card);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: all var(--transition-normal);
}

.radio-circle {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  border: 2px solid #a3aca5;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.radio-circle i {
  color: #ffffff;
  font-size: 0.625rem;
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--transition-normal);
}

.selection-text {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #344037;
  white-space: nowrap;
}

.preview-card.active .selection-control {
  background-color: #ffffff;
  border-color: var(--accent-orange);
  box-shadow: 0 4px 12px rgba(244, 129, 21, 0.15);
}

.preview-card.active .radio-circle {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
}

.preview-card.active .radio-circle i {
  opacity: 1;
  transform: scale(1);
}

.preview-card.active .selection-text {
  color: var(--cream-dark);
}

/* ==========================================================================
   Prominent Orange "Choose ↑" CTA Button
   ========================================================================== */

.cta-button {
  background-color: var(--accent-orange);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.25px;
  padding: 0.95rem 2.75rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: 
    0 8px 24px var(--accent-orange-glow),
    0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
  cursor: pointer;
  min-height: 48px;
  touch-action: manipulation;
}

/* Lucide Outline Icons Base */
.lucide {
  display: inline-block;
  vertical-align: -0.15em;
  stroke-width: 2px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-sparkle.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
  color: var(--accent-orange);
}

.radio-circle .lucide {
  width: 11px;
  height: 11px;
  stroke-width: 2.8px;
  color: #ffffff;
}

.cta-button .lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.cta-button:hover .lucide {
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:focus-visible {
  outline: 3px solid #ffaa4d;
  outline-offset: 3px;
}

.launch-hint {
  font-size: 0.75rem;
  color: var(--cream-muted);
  margin-top: 0.75rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (860px - 1040px) */
@media (max-width: 960px) {
  .editorial-container {
    max-width: 840px;
    grid-template-columns: 320px 1fr;
  }

  .sage-sidebar {
    padding: 2.25rem 1.75rem;
  }

  .sidebar-title {
    font-size: 1.85rem;
  }

  .cream-content {
    padding: 2.5rem 2rem;
  }

  .phone-frame {
    max-height: 230px;
  }
}

/* Compact Tablet & Large Mobile (680px - 860px) */
@media (max-width: 780px) {
  .editorial-container {
    grid-template-columns: 1fr;
    max-width: 540px;
    border-radius: 24px;
  }

  .sage-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 2rem 1.75rem 1.75rem;
  }

  .brand-wrapper {
    margin-bottom: 1.25rem;
  }

  .sidebar-hero {
    margin-bottom: 1rem;
  }

  .sidebar-title {
    font-size: 1.65rem;
  }

  .sidebar-features {
    display: none; /* Hide features on compact stacked view to prioritize previews */
  }

  .botanical-art {
    width: 130px;
    height: 170px;
    bottom: -15px;
    right: -10px;
  }

  .cream-content {
    padding: 2rem 1.5rem;
  }

  .content-heading {
    font-size: 1.45rem;
  }

  .previews-grid {
    max-width: 380px;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .phone-frame {
    max-height: 220px;
  }

  .cta-button {
    width: 100%;
    max-width: 320px;
  }
}

/* Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  body {
    padding: 0.75rem 0.5rem;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .editorial-container {
    border-radius: 20px;
  }

  .sage-sidebar {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .brand-logo {
    font-size: 1.35rem;
  }

  .sidebar-title {
    font-size: 1.4rem;
    letter-spacing: -0.3px;
  }

  .sidebar-desc {
    font-size: 0.85rem;
  }

  .cream-content {
    padding: 1.5rem 1rem 1.75rem;
  }

  .content-heading {
    font-size: 1.3rem;
  }

  .content-subtext {
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
  }

  .previews-grid {
    gap: 0.85rem;
    max-width: 330px;
    margin-bottom: 1.5rem;
  }

  .preview-card {
    padding: 0.25rem;
  }

  .phone-frame {
    border-width: 4px;
    border-radius: 18px;
    max-height: 190px;
  }

  .phone-speaker {
    width: 26px;
    height: 3px;
    top: 5px;
  }

  .selection-control {
    padding: 0.5rem 0.4rem;
    gap: 0.4rem;
    margin-top: 0.65rem;
  }

  .selection-text {
    font-size: 0.75rem;
  }

  .radio-circle {
    width: 16px;
    height: 16px;
  }

  .cta-button {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Small Screens Down to 320px */
@media (max-width: 350px) {
  .previews-grid {
    gap: 0.65rem;
  }

  .selection-text {
    font-size: 0.7rem;
  }

  .phone-frame {
    max-height: 160px;
    border-radius: 14px;
  }
}
