/* Picoro landing page — matches WelcomeScreen aesthetic */

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

:root {
  --peach-1: #e8a87c;
  --peach-2: #f5c6a0;
  --peach-3: #f9dcc4;
  --peach-4: #fef0e3;
  --gold: #e8c97c;
  --orange: #d4845a;
  --blue: #5b9bd5;
  --ink: #2d3338;
  --ink-soft: #5a4a3a;
  --ink-soft-2: #64748b;
  --line: #e2e8f0;
  --bg-card: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(45, 51, 56, 0.12);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--peach-2);
  background-image: linear-gradient(180deg, var(--peach-1) 0%, var(--peach-2) 40%, var(--peach-3) 70%, var(--peach-4) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

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

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
}

.hero-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  width: 100%;
}

.tagline {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .tagline {
    font-size: 15px;
  }
}

.hero-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--ink-soft);
  text-align: center;
  margin-top: 24px;
  line-height: 1.5;
  max-width: 520px;
  align-self: center;
}

.logo {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 9vw, 112px);
  color: var(--ink);
  text-align: center;
  line-height: 1;
  margin-top: 18px;
  letter-spacing: -2px;
}

.hero-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.8vw, 28px);
  color: var(--ink);
  text-align: center;
  margin-top: 18px;
  line-height: 1.35;
  max-width: 560px;
  align-self: center;
}

.accent {
  color: var(--ink);
  display: inline-block;
}

@media (min-width: 900px) {
  .accent {
    color: var(--ink);
  }
}

/* Store badges */
.store-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  transition: transform 0.15s ease;
  cursor: pointer;
}

.store-badge svg {
  display: block;
  height: 52px;
  width: auto;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-note {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Phone visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 300px;
  height: 600px;
  background: var(--ink);
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow), 0 40px 100px rgba(45, 51, 56, 0.25);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: var(--ink);
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f8f6f2;
  border-radius: 36px;
  padding: 50px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Animated stage */
.phone-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.phone-screen-content {
  position: absolute;
  inset: 0;
  padding: 8px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  animation: cycleScreen 12s infinite;
}

.phone-screen-1 { animation-delay: 0s; }
.phone-screen-2 { animation-delay: 4s; }
.phone-screen-3 { animation-delay: 8s; }

@keyframes cycleScreen {
  0%, 2%   { opacity: 0; transform: translateY(8px); }
  4%, 30%  { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-8px); }
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  padding: 0 22px;
  z-index: 3;
}

.status-time {
  font-weight: 700;
}

.status-icons {
  font-size: 8px;
  letter-spacing: 1px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 6px 10px;
}

.phone-header-chat {
  border-bottom: 1px solid #eee9e0;
  padding-bottom: 10px;
}

.phone-back {
  font-size: 18px;
  color: var(--ink);
  width: 24px;
  text-align: center;
}

.phone-back-spacer {
  width: 24px;
}

.chat-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.chat-header-avatars {
  display: flex;
  margin-bottom: 2px;
}

.mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f8f6f2;
  margin-left: -8px;
}

.mini-avatar:first-child {
  margin-left: 0;
}

.chat-header-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.phone-system-msg {
  font-size: 11px;
  color: var(--ink-soft-2);
  text-align: center;
  padding: 8px 14px 12px;
}

/* Chat list rows */
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
}

.chat-row-text {
  flex: 1;
  min-width: 0;
}

.chat-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.chat-preview {
  font-size: 11px;
  color: var(--ink-soft-2);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-avatar,
.chat-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
}

.phone-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
}

.chat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.chat-time {
  font-size: 10px;
  color: var(--ink-soft-2);
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* Friend selection checkbox */
.checkbox {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
}

.checkbox-checked {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  animation: checkPop 0.4s ease-out backwards;
}

.phone-screen-2 .chat-row-selected:nth-child(1) .checkbox-checked { animation-delay: 4.4s; }
.phone-screen-2 .chat-row-selected:nth-child(2) .checkbox-checked { animation-delay: 4.8s; }
.phone-screen-2 .chat-row-selected:nth-child(3) .checkbox-checked { animation-delay: 5.2s; }

@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Bottom action bar in friend selection */
.phone-bottom-bar {
  margin-top: auto;
  display: flex;
  gap: 8px;
  padding-top: 10px;
}

.bottom-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.bottom-btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.bottom-btn-primary {
  background: var(--blue);
  color: #ffffff;
}

/* Chat messages screen */
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  flex: 1;
  overflow: hidden;
}

.msg-bubble-pic-request {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  align-self: flex-end;
  max-width: 90%;
  box-shadow: 0 4px 14px rgba(45, 51, 56, 0.06);
}

.msg-bubble-pic-request .mock-text {
  text-align: left;
}

.msg-bubble-pic-request .mock-title {
  font-size: 12px;
}

.msg-bubble-pic-request .mock-sub {
  font-size: 10px;
}

.mock-icon-small {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.msg-bubble-pic-request .mock-note {
  font-size: 11px;
  margin-top: 6px;
  padding-top: 6px;
}

.msg-photo {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  align-self: flex-start;
  width: 70%;
  box-shadow: 0 4px 14px rgba(45, 51, 56, 0.06);
  opacity: 0;
  transform: translateY(8px);
  animation: msgPop 0.5s ease-out forwards;
}

.phone-screen-3 .msg-photo-elena { animation-delay: 8.6s; }
.phone-screen-3 .msg-photo-sarah { animation-delay: 9.4s; }
.phone-screen-3 .msg-photo-daniel { animation-delay: 10.2s; }

@keyframes msgPop {
  to { opacity: 1; transform: translateY(0); }
}

.msg-photo-img {
  width: 100%;
  height: 70px;
  position: relative;
}

.msg-photo-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
}

.msg-photo-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
  padding: 6px 10px;
}

/* Tab bar */
.phone-tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 20px 16px;
  border-top: 1px solid #eee9e0;
  background: #f8f6f2;
}

.tab {
  font-size: 18px;
  color: var(--ink-soft-2);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-active {
  color: var(--ink);
}

.tab-pplus {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}

.phone-brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}

.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-chat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
}

.phone-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-chat-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 11px;
}

.phone-chat-text {
  flex: 1;
  min-width: 0;
}

.phone-chat-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.phone-chat-preview {
  font-size: 12px;
  color: var(--ink-soft-2);
}

.phone-chat-time {
  font-size: 11px;
  color: var(--ink-soft-2);
}

/* Mock cards inside phone */
.mock-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(45, 51, 56, 0.06);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-row-tight {
  margin-top: 8px;
}

.mock-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fbf4e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-text {
  flex: 1;
  min-width: 0;
}

.mock-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.mock-title-small {
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
}

.mock-sub {
  font-size: 11px;
  color: var(--ink-soft-2);
  margin-top: 2px;
}

.mock-time {
  font-size: 10px;
  color: var(--ink-soft-2);
}

.mock-note {
  font-size: 12px;
  color: var(--ink);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-style: italic;
}

.mock-card-photo {
  padding: 0;
  overflow: hidden;
}

.mock-photo {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, #5b9bd5 0%, #7bc47f 100%);
  position: relative;
}

.mock-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent 60%);
}

.mock-card-photo .mock-row-tight {
  padding: 10px 12px 12px;
  margin-top: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #ffffff;
  padding: 50px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}

.footer-tag {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-contact {
  grid-column: 1 / -1;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  font-weight: 500;
}

.footer-contact a:hover {
  color: #ffffff;
}

.footer-copy {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.7;
}

/* Legal pages */
.legal {
  padding: 60px 0;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 42px;
  color: var(--ink);
  margin-bottom: 8px;
}

.legal .updated {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.legal h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal p {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.7;
}

.legal ul {
  margin: 12px 0 14px 22px;
}

.legal li {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.6;
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  font-weight: 600;
}

.legal-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
}

.legal-back:hover {
  color: var(--ink);
}

/* Site header (only used on legal pages — landing has no separate header) */
.site-header {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.site-header .brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin: 0;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.15s;
}

.nav a:hover {
  opacity: 1;
}

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