/* CueRoom — site styles. Soft-Skill variant: polished, calm, expensive. */

:root {
  /* Suite palette — matches iOS app */
  --paper: #0B1020;
  --paper-2: #151A2E;
  --paper-3: #1E2440;
  --paper-4: #2A3050;

  --peach: #E9A97A;
  --peach-soft: #F4C8A0;
  --peach-deep: #C9855A;
  --peach-glow: rgba(233, 169, 122, 0.14);

  --gold: #C9A66B;
  --blush: #D8B090;
  --sage: #8A9AB0;

  --cream: #F4E7D3;
  --cream-2: #D4C7B3;
  --cream-3: #A89E8A;

  --muted: #8A85A0;
  --muted-2: #6C6A85;

  --line: #2A3050;
  --line-2: #363C5A;

  /* Scales */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 20px 60px rgba(233, 169, 122, 0.08);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --max-w: 1120px;
  --prose-w: 680px;
}

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

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

body {
  background: var(--paper);
  color: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Peach radial glow for landing hero backdrop */
body.landing {
  background:
    radial-gradient(ellipse 900px 600px at 50% 20%, var(--peach-glow), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  min-height: 100vh;
}

/* ============ Typography ============ */

.serif {
  font-family: 'Instrument Serif', 'New York', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.italic { font-style: italic; }

h1, .h1 {
  font-family: 'Instrument Serif', 'New York', Georgia, serif;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--cream);
}

h2, .h2 {
  font-family: 'Instrument Serif', 'New York', Georgia, serif;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--cream);
}

h3, .h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--cream);
}

h4, .h4 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--cream);
}

.accent-word {
  color: var(--peach);
  font-style: italic;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peach);
  font-weight: 500;
}

p {
  color: var(--cream-2);
  font-size: 17px;
  line-height: 1.65;
}

p.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--cream);
}

a {
  color: var(--peach);
  text-decoration: none;
  transition: color 180ms var(--ease-smooth);
}

a:hover { color: var(--peach-soft); }

/* ============ Layout ============ */

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

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

section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
}

/* ============ Header ============ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 28px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(11, 16, 32, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-smooth), background 300ms var(--ease-smooth);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 16, 32, 0.85);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
}

.brand-wordmark {
  font-family: 'Instrument Serif', 'New York', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--peach);
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--cream-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.nav a:hover { color: var(--cream); }

.nav-cta {
  background: var(--peach);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: transform 300ms var(--ease-spring), background 180ms var(--ease-smooth);
}

.nav-cta:hover {
  background: var(--peach-soft) !important;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 300ms var(--ease-spring), background 180ms var(--ease-smooth), box-shadow 300ms var(--ease-smooth);
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--peach);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--peach-soft);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(233, 169, 122, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--cream-2);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* ============ Hero ============ */

.hero {
  padding-top: 180px;
  padding-bottom: 140px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--peach-glow);
  border: 1px solid rgba(233, 169, 122, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  animation: fade-up 800ms var(--ease-smooth) 100ms both;
}

.hero h1 {
  margin-bottom: 28px;
  animation: fade-up 800ms var(--ease-smooth) 200ms both;
}

.hero-sub {
  font-size: 20px;
  color: var(--cream-2);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.5;
  animation: fade-up 800ms var(--ease-smooth) 300ms both;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fade-up 800ms var(--ease-smooth) 400ms both;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--cream);
  color: var(--paper);
  border-radius: var(--radius-full);
  font-weight: 500;
  text-decoration: none;
  transition: transform 300ms var(--ease-spring);
}

.app-badge:hover {
  color: var(--paper);
  transform: translateY(-2px);
}

/* Phone mockup under hero */
.hero-visual {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  animation: fade-up 1000ms var(--ease-smooth) 600ms both;
}

.phone-mock {
  width: 300px;
  height: 620px;
  background: linear-gradient(165deg, var(--paper-2), var(--paper-3));
  border-radius: 42px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.phone-mock::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: var(--paper);
  border-radius: 20px;
}

.phone-arch {
  width: 140px;
  height: 180px;
  background: radial-gradient(ellipse at center top, var(--peach-glow), transparent 70%);
  border-radius: 70px 70px 20px 20px;
  border-top: 2px solid var(--peach);
  position: relative;
  margin-bottom: 32px;
}

.phone-mock .brand-word {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--peach);
  font-size: 18px;
  margin-bottom: 8px;
}

.phone-mock .phone-title {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  text-align: center;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.1;
}

.phone-mock .phone-title i {
  color: var(--peach);
}

.phone-mock .phone-sub {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 32px;
  padding: 0 12px;
}

.phone-cta {
  background: var(--peach);
  color: var(--paper);
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
}

/* ============ Section patterns ============ */

.section-title {
  text-align: center;
  margin-bottom: 20px;
}

.section-sub {
  text-align: center;
  color: var(--cream-2);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 72px;
}

/* ============ 4 States grid ============ */

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

@media (max-width: 900px) {
  .states-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.state-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 400ms var(--ease-spring), border-color 300ms var(--ease-smooth), background 300ms var(--ease-smooth);
}

.state-card:hover {
  transform: translateY(-4px);
  border-color: var(--peach);
  background: var(--paper-3);
}

.state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.state-card .state-name {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  color: var(--cream);
  margin-bottom: 10px;
  font-style: italic;
}

.state-card .state-desc {
  font-size: 14px;
  color: var(--cream-3);
  line-height: 1.55;
}

/* ============ How it works ============ */

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

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

.how-step {
  padding: 36px 28px;
  border-left: 1px solid var(--line);
  position: relative;
}

.how-step:first-child { border-left: 0; padding-left: 0; }

@media (max-width: 820px) {
  .how-step { border-left: 0; border-top: 1px solid var(--line); padding: 36px 0; }
  .how-step:first-child { border-top: 0; padding-top: 0; }
}

.how-num {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  font-style: italic;
  color: var(--peach);
  margin-bottom: 16px;
  line-height: 1;
}

.how-step h3 {
  margin-bottom: 10px;
}

.how-step p {
  font-size: 15px;
}

/* ============ Palettes ============ */

.palettes-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

@media (max-width: 900px) {
  .palettes-grid { grid-template-columns: repeat(2, 1fr); }
}

.palette-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 400ms var(--ease-spring);
  border: 1px solid var(--line);
}

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

.palette-card.suite { background: linear-gradient(165deg, #0B1020, #1E2440); }
.palette-card.paper { background: linear-gradient(165deg, #FFFFFF, #F5F5F5); color: #1A1A1A; }
.palette-card.study { background: linear-gradient(165deg, #F5F0E6, #DED8C9); color: #18352F; }
.palette-card.salon { background: linear-gradient(165deg, #F5EFE8, #E5D8D2); color: #281E2A; }

.palette-card.paper .palette-name,
.palette-card.study .palette-name,
.palette-card.salon .palette-name { color: inherit; }

.palette-card.paper .palette-desc,
.palette-card.study .palette-desc,
.palette-card.salon .palette-desc { color: inherit; opacity: 0.6; }

.palette-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.palette-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.palette-name {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--cream);
}

.palette-desc {
  font-size: 13px;
  color: var(--cream-3);
}

/* ============ Pricing ============ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 56px auto 0;
}

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

.price-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color 300ms var(--ease-smooth);
}

.price-card.featured {
  border-color: var(--peach);
  background: linear-gradient(165deg, var(--paper-2), var(--paper-3));
  position: relative;
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--peach);
  color: var(--paper);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.price-tier {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--peach);
  margin-bottom: 8px;
}

.price-amount {
  font-family: 'Instrument Serif', serif;
  font-size: 56px;
  color: var(--cream);
  margin-bottom: 6px;
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.price-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.price-features li {
  padding: 10px 0;
  color: var(--cream-2);
  font-size: 15px;
  display: flex;
  align-items: start;
  gap: 10px;
}

.price-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--peach);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

/* ============ FAQ ============ */

.faq {
  max-width: 720px;
  margin: 56px auto 0;
}

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

.faq-q {
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--cream);
  font-weight: 500;
  font-size: 17px;
  user-select: none;
  list-style: none;
  gap: 20px;
}

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

.faq-q::after {
  content: '+';
  color: var(--peach);
  font-size: 22px;
  font-weight: 300;
  transition: transform 300ms var(--ease-spring);
}

.faq-item[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 0 24px;
  color: var(--cream-2);
  font-size: 15px;
  line-height: 1.65;
}

/* ============ Closing CTA ============ */

.closing-cta {
  text-align: center;
  padding: 120px 0 100px;
}

.closing-cta h2 {
  margin-bottom: 20px;
}

.closing-cta p {
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ Footer ============ */

.site-footer {
  padding: 72px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

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

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.footer-brand p {
  color: var(--cream-3);
  font-size: 14px;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.5;
}

.footer-col h5 {
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--cream-3);
  font-size: 14px;
  transition: color 180ms var(--ease-smooth);
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============ Legal pages ============ */

.legal-page {
  padding-top: 160px;
  padding-bottom: 100px;
}

.legal-page h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 12px;
}

.legal-page .legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.legal-page h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 10px;
  font-weight: 500;
}

.legal-page p,
.legal-page li {
  color: var(--cream-2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-page ul,
.legal-page ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.legal-page li { margin-bottom: 8px; }

.legal-page strong { color: var(--cream); font-weight: 500; }

/* ============ Animations ============ */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-smooth), transform 800ms var(--ease-smooth);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Utility ============ */

.text-center { text-align: center; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }

/* ============ Focus states ============ */

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

/* ============ Scrollbar (webkit) ============ */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--paper);
}

::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-2);
}
