/* ============================================
   COUPLE TUNES — Global Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

:root {
  --red:    #E8392A;
  --blue:   #2B5BA8;
  --pink:   #E87FA5;
  --dark:   #1A1A2E;
  --gray:   #6B7280;
  --light:  #F9F9F9;
  --white:  #FFFFFF;
  --border: #E5E7EB;
  --max-w:  430px;
}

body {
  font-family: -apple-system, 'SF Pro Display', 'SF Pro Text', BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--white);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.screen {
  width: 100%;
  max-width: var(--max-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  background: var(--white);
}

/* ── Typography ── */
.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.headline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.6;
  text-align: center;
}

/* ── Buttons ── */
.btn {
  display: block;
  width: 100%;
  padding: 18px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover { opacity: 0.92; }

.btn-secondary {
  background: var(--light);
  color: var(--gray);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover { background: var(--border); }

.btn-outline {
  background: #F0E8EE;
  color: var(--dark);
  border: none;
}

.btn-outline:hover { background: #E8DCE5; }

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ── Logo ── */
.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-wrap {
  width: 100%;
  max-width: 380px;
  height: 285px;
  background-image: url('../assets/logo.jpeg');
  background-size: 660px auto;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.logo-wrap img { display: none; }

/* ── Form fields ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
  resize: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #C0C4CC;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.tab {
  flex: 1;
  padding: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  background: var(--white);
  color: var(--gray);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tab.active {
  background: var(--dark);
  color: var(--white);
}

/* ── Upload zone ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--red);
  background: #FFF5F5;
}

.upload-zone .upload-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.upload-zone p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 1.6;
}

.upload-zone p span {
  color: var(--red);
}

#file-input { display: none; }

/* Image preview grid */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preview-item {
  position: relative;
  aspect-ratio: 9/16;
  border-radius: 8px;
  overflow: hidden;
  background: var(--light);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-img {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Analysis report ── */
.report-section {
  background: var(--light);
  border-radius: 12px;
  padding: 20px;
}

.report-section .section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.report-section p,
.report-section li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark);
}

.report-section ul {
  padding-left: 18px;
}

.report-section li { margin-bottom: 6px; }

.verdict-box {
  background: var(--dark);
  color: var(--white);
  border-radius: 12px;
  padding: 20px;
}

.verdict-box .section-label {
  color: var(--pink);
}

.verdict-box p {
  color: var(--white);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Counter badge ── */
.trial-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--light);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.trial-bar .dots {
  display: flex;
  gap: 5px;
}

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

.dot.used { background: var(--red); }

/* ── Paywall overlay ── */
.paywall {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.85);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}

.paywall.show { display: flex; }

.paywall-sheet {
  width: 100%;
  max-width: var(--max-w);
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 32px 24px 48px;
  text-align: center;
}

.paywall-sheet h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.paywall-sheet p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.6;
}

.plan-cards {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.plan-card {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 10px;
  cursor: pointer;
  transition: border-color 0.15s;
  text-align: center;
}

.plan-card.selected {
  border-color: var(--red);
  background: #FFF5F5;
}

.plan-card .plan-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 4px;
}

.plan-card .plan-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}

.plan-card .plan-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
}

.plan-card .plan-uses {
  font-size: 11px;
  color: var(--gray);
  margin-top: 4px;
}

/* ── Loading spinner ── */
.loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0;
}

.loading.show { display: flex; }

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Error ── */
.error-msg {
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  text-align: center;
  min-height: 18px;
}

/* ── Nav back ── */
.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.nav-back svg {
  width: 20px;
  height: 20px;
}

/* ── Utility ── */
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.flex-col { display: flex; flex-direction: column; }
.w-full { width: 100%; }
