/* ============================================
   Pet Twin – Website Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Oranienbaum&display=swap');

/* Design Tokens */
:root {
  --bg:        #F7F2EB;
  --bg-card:   #EFE9DD;
  --bg-dark:   #26201A;
  --text:      #26201A;
  --text-muted:#7A6E65;
  --green:     #4A6741;
  --border:    rgba(38, 32, 26, 0.10);
  --shadow:    0 8px 40px rgba(38, 32, 26, 0.10);
  --shadow-lg: 0 24px 80px rgba(38, 32, 26, 0.18);
  --radius:    24px;
  --radius-sm: 14px;
  --font-serif:'Oranienbaum', Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:     1320px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.1;
  font-weight: 400;
}

/* ============================================
   Navigation
   ============================================ */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 242, 235, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(38, 32, 26, 0.06);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
}
.nav-logo img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 18px;
  border-radius: 100px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.78 !important; }

/* ============================================
   App Store Button
   ============================================ */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--bg-dark);
  color: var(--bg);
  padding: 13px 22px;
  border-radius: 14px;
  transition: transform 0.2s, opacity 0.2s;
  animation: btn-bounce 2.8s ease-in-out infinite;
}
.app-store-btn:hover {
  transform: translateY(-4px) scale(1.03);
  opacity: 0.86;
  animation: none;
}
@keyframes btn-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.app-store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.app-store-btn span { display: flex; flex-direction: column; }
.btn-sub  { font-size: 10px; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.06em; }
.btn-main { font-size: 17px; font-weight: 600; line-height: 1.2; }
.app-store-btn.light { background: var(--bg); color: var(--text); }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 160px 48px 120px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}
.hero-text h1 {
  font-size: clamp(54px, 7.5vw, 92px);
  margin-bottom: 22px;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--green);
  display: inline-block;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.hero-text p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 400px;
  line-height: 1.65;
}
.hero-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: var(--bg-card);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
}
.phone-mockup {
  width: 300px;
  border-radius: 48px;
  box-shadow: var(--shadow-lg);
  outline: 1px solid rgba(38, 32, 26, 0.18);
  transition: transform 0.4s ease;
}
.phone-mockup:hover { transform: translateY(-10px) rotate(-1deg); }

/* ============================================
   Hero phone with floating dog
   ============================================ */
.hero-phone-wrap {
  position: relative;
  display: inline-block;
  transition: transform 0.4s ease;
}
.hero-phone-wrap:hover {
  transform: translateY(-10px) rotate(-1deg);
}
.hero-screen {
  width: 360px;
  border-radius: 56px;
  box-shadow: var(--shadow-lg);
  outline: 1px solid rgba(38, 32, 26, 0.18);
  display: block;
}
/* Animated dog canvas — positioned over the dog card in Screen5 */
.hero-dog-anim {
  position: absolute;
  width: 50%;
  top: calc(37% + 31px);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 16px;
  outline: 6px solid #ffffff;
  box-shadow: 0 2px 12px rgba(38,32,26,0.10);
}

/* ============================================
   App Demo Animation
   ============================================ */
.app-demo {
  width: 280px;
  height: 560px;
  background: #F5EFE6;
  border-radius: 48px;
  outline: 1px solid rgba(38, 32, 26, 0.18);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

/* Phase 1: Search */
.demo-search {
  position: absolute;
  inset: 0;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  animation: phase-search 8.5s infinite;
}
@keyframes phase-search {
  0%    { opacity: 1; transform: scale(1); }
  28%   { opacity: 1; transform: scale(1); }
  35%   { opacity: 0; transform: scale(0.96); }
  100%  { opacity: 0; transform: scale(0.96); }
}
.demo-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.demo-pts-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: rgba(38,32,26,0.07);
  padding: 4px 10px;
  border-radius: 100px;
}
.demo-today {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
}
.demo-headline {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}
.demo-photo-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.demo-photo-wrap img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 6px 24px rgba(38,32,26,0.12);
}
.demo-dots {
  display: flex;
  gap: 6px;
  animation: phase-search 8.5s infinite;
}
.demo-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(38,32,26,0.25);
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.demo-dots span:nth-child(2) { animation-delay: 0.2s; }
.demo-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

/* Phase 2: Result */
.demo-result {
  position: absolute;
  inset: 0;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: phase-result 8.5s infinite;
}
@keyframes phase-result {
  0%    { opacity: 0; transform: translateY(18px); }
  35%   { opacity: 0; transform: translateY(18px); }
  45%   { opacity: 1; transform: translateY(0); }
  88%   { opacity: 1; transform: translateY(0); }
  96%   { opacity: 0; transform: translateY(-10px); }
  100%  { opacity: 0; transform: translateY(18px); }
}
.demo-score-pill {
  background: #F0E8D4;
  border-radius: 100px;
  padding: 6px 16px 8px;
  text-align: center;
  margin-bottom: 10px;
}
.demo-score-pill .demo-pct-line {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.demo-score-pill .demo-sub-line {
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
}
.demo-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.1;
}
.demo-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-bottom: 18px;
}
.demo-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 16px;
}
.demo-pair {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}
.demo-dog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.demo-dog img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(38,32,26,0.12);
  outline: 1px solid rgba(38,32,26,0.10);
}
.demo-dog span {
  font-size: 12px;
  color: var(--text-muted);
}
.demo-share-btn {
  background: #3D5C35;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  cursor: default;
}

/* ============================================
   Quote bar
   ============================================ */
.quote-bar {
  padding: 96px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote-bar .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.quote-bar h2 {
  font-size: clamp(36px, 5.5vw, 76px);
  max-width: 960px;
  margin: 0 auto;
  font-style: italic;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ============================================
   Feature cards
   ============================================ */
.features {
  padding: 120px 48px;
  background: #EDE7DA;
}
.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features-grid .feature-card:nth-child(1) .feature-card-image img { transform: rotate(-3deg); }
.features-grid .feature-card:nth-child(2) .feature-card-image img { transform: rotate(2deg); }
.features-grid .feature-card:nth-child(3) .feature-card-image img { transform: rotate(-2deg); }
.feature-card {
  background: #F7F2EB;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-card:hover {
  transform: translateY(-8px) rotate(0.5deg);
  box-shadow: var(--shadow-lg);
}
.feature-card-image {
  padding: 36px 36px 0;
  display: flex;
  justify-content: center;
  background: linear-gradient(to bottom, var(--bg-card), var(--bg-card));
}
.feature-card-image img {
  width: 260px;
  border-radius: 44px;
  box-shadow: var(--shadow);
  outline: 1px solid rgba(38, 32, 26, 0.18);
}
.feature-card-body { padding: 28px 28px 32px; }
.feature-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.feature-card h3 { font-size: 24px; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   Profile / Soul Twin section
   ============================================ */
.spotlight {
  padding: 120px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.spotlight-text h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 12px; }
.spotlight-text .sub {
  font-style: italic;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
  font-family: var(--font-serif);
}
.spotlight-text p  { color: var(--text-muted); line-height: 1.75; margin-bottom: 36px; }
.spotlight-image { display: flex; justify-content: center; }
.spotlight-image .phone-mockup { width: 340px; }

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
  padding: 160px 48px;
  text-align: center;
  background: var(--bg-dark);
  color: var(--bg);
}
.final-cta h2 { font-size: clamp(42px, 6.5vw, 84px); color: var(--bg); margin-bottom: 14px; }
.final-cta p  { font-size: 18px; opacity: 0.55; margin-bottom: 44px; }

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 36px 32px;
  border-top: 1px solid rgba(247, 242, 235, 0.08);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--bg);
}
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 13px;
  color: rgba(247, 242, 235, 0.5);
}
.footer-links a:hover { color: var(--bg); }
.footer-copy { font-size: 12px; color: rgba(247, 242, 235, 0.3); }

/* ============================================
   Inner pages
   ============================================ */
.page-header {
  padding: 140px 32px 52px;
  max-width: var(--max-w);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.page-header .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.page-header h1 { font-size: clamp(40px, 5.5vw, 64px); margin-bottom: 12px; }
.page-header p  { font-size: 18px; color: var(--text-muted); max-width: 560px; }

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px 100px;
}

/* FAQ */
.faq-item   { border-bottom: 1px solid var(--border); padding: 28px 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-family: var(--font-serif); font-size: 21px; margin-bottom: 10px; }
.faq-a { color: var(--text-muted); line-height: 1.75; }
.faq-a a { text-decoration: underline; }

/* Support contact box */
.support-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 56px;
  text-align: center;
}
.support-box h3 { font-size: 26px; margin-bottom: 8px; }
.support-box p  { color: var(--text-muted); margin-bottom: 24px; }

/* Forms */
.form-group { margin-bottom: 20px; }
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 7px;
}
input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: rgba(38, 32, 26, 0.5); }
textarea { min-height: 130px; resize: vertical; }
.btn-primary {
  display: inline-block;
  background: var(--text);
  color: var(--bg);
  padding: 14px 34px;
  border-radius: 100px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: var(--font-sans);
}
.btn-primary:hover { opacity: 0.8; }

/* Rich text (privacy, press body) */
.page-content h2 { font-size: 28px; margin: 48px 0 12px; }
.page-content h3 { font-size: 20px; margin: 32px 0 10px; font-family: var(--font-sans); font-weight: 600; }
.page-content p  { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.page-content ul { padding-left: 22px; margin-bottom: 16px; }
.page-content li { color: var(--text-muted); margin-bottom: 8px; line-height: 1.75; }
.page-content a  { text-decoration: underline; }
.page-content .updated { font-size: 13px; color: var(--text-muted); margin-bottom: 40px; }

/* Press grid */
.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 40px;
}
.press-asset {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px;
}
.press-asset h3 { font-size: 17px; margin-bottom: 6px; font-family: var(--font-sans); font-weight: 600; }
.press-asset p  { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  transition: background 0.15s;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--text);
}
.btn-outline:hover { background: rgba(38, 32, 26, 0.05); }
.fact-list { list-style: none; padding: 0; }
.fact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
}
.fact-list li:first-child { border-top: 1px solid var(--border); }
.fact-list strong { color: var(--text); font-size: 17px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    padding: 110px 20px 80px;
    text-align: center;
  }
  .hero-text p { max-width: 100%; }
  .hero-badges { justify-content: center; }
  .hero-image { order: -1; }

  .quote-bar  { padding: 56px 20px; }
  .features   { padding: 72px 20px; }
  .features-grid { grid-template-columns: 1fr; }

  .spotlight {
    grid-template-columns: 1fr;
    padding: 60px 20px 80px;
    gap: 48px;
    text-align: center;
  }
  .spotlight-image { order: -1; }

  .final-cta { padding: 88px 20px; }
  .page-header { padding: 110px 20px 40px; }
  .page-content { padding: 40px 20px 80px; }
  .press-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
