/**
 * Cute Desk App - https://cutedesk.app
 * Copyright (c) Digiguys Inc. All rights reserved.
 * Unauthorized copying, modification, or redistribution of this file is prohibited.
 */

/* ═══════════════════════════════════════════════════════════════════════
   SEO LANDING PAGES — Shared styles
   Matches the Cute Desk App design system from styles.css
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --font-body: Helvetica, Arial, sans-serif;
  --color-text: rgb(80, 35, 35);
  --color-text-secondary: rgb(150, 80, 80);
  --color-accent: #007aff;
  --color-card-bg: rgba(255, 255, 255, 0.85);
  --color-card-border: rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08), 0 0 0 0.5px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 30px rgba(0,0,0,0.12), 0 0 0 0.5px rgba(0,0,0,0.08);
  --max-width: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ee9ca7 100%);
  background-attachment: fixed;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 { color: rgb(80, 35, 35); }
p { color: rgb(150, 80, 80); }

/* ═══════════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════════ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #6e6e73;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(0,0,0,0.05);
  color: #1d1d1f;
  text-decoration: none;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 6px 16px !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: opacity 0.15s !important;
}

.nav-cta:hover {
  opacity: 0.85;
  text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   PAGE CONTAINER
   ═══════════════════════════════════════════════════════════════════════ */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.hero {
  text-align: center;
  padding: 60px 0 0;
}

.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: rgb(80, 35, 35);
}

.hero p {
  font-size: 18px;
  color: rgb(150, 80, 80);
  max-width: 560px;
  margin: 0 auto 28px;
}

.hero-screenshot {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin: 32px auto 0;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-secondary {
  background: rgba(0,0,0,0.06);
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════════════════
   CARDS & GRID
   ═══════════════════════════════════════════════════════════════════════ */

.card {
  background: var(--color-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover { text-decoration: none; }

.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.widget-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.widget-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.widget-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.section {
  padding: 48px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FEATURES LIST
   ═══════════════════════════════════════════════════════════════════════ */

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--color-text-primary);
}

.feature-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-item p {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════
   WIDGET DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.widget-detail {
  padding: 48px 0;
}

.widget-detail-header {
  text-align: center;
  margin-bottom: 40px;
}

.widget-detail-header .widget-detail-icon {
  font-size: 32px;
  margin-bottom: 0;
  color: rgb(80, 35, 35);
}

.widget-detail-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.widget-detail-header p {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.widget-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.widget-detail-body .card {
  padding: 32px;
}

.widget-detail-body ul {
  list-style: none;
  padding: 0;
}

.widget-detail-body li {
  padding: 8px 0;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-detail-body li i.fi {
  color: #34c759;
  font-size: 16px;
  flex-shrink: 0;
}

.more-widgets {
  margin-top: 48px;
}

.more-widgets h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.more-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════
   STEPS (HOW-TO)
   ═══════════════════════════════════════════════════════════════════════ */

.steps {
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-card-bg);
  color: rgb(80, 35, 35);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.step-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════ */

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 20px 0;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.faq-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════════════════════ */

.blog-list {
  max-width: 100%;
}

.blog-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.blog-card-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.blog-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.blog-card-body .blog-date {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.blog-card-body p {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 0;
}

.article h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.article .article-meta {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.article-body {
  background: var(--color-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 40px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  margin: 0 0 16px 24px;
  font-size: 15px;
  line-height: 1.7;
}

.article-body li { margin-bottom: 6px; }

.article-body a { color: var(--color-accent); }

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */

.site-footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: #6e6e73;
}

.footer-links a:hover { color: #1d1d1f; }

.footer-copy {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.footer-copy-link {
  color: #6e6e73;
  text-decoration: none;
}

.footer-copy-link:hover {
  text-decoration: none;
  color: #1d1d1f;
}

/* ═══════════════════════════════════════════════════════════════════════
   IMAGE CAROUSEL
   ═══════════════════════════════════════════════════════════════════════ */

.carousel {
  margin: 32px auto 0;
  max-width: 640px;
  user-select: none;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: rgba(0,0,0,0.04);
}

.carousel-track {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.carousel-caption {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
  padding: 10px 0 4px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgb(80, 35, 35);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s;
  flex-shrink: 0;
}

.carousel-btn:hover { background: rgb(110, 50, 50); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(80, 35, 35, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: rgb(80, 35, 35);
  transform: scale(1.3);
}

/* ═══════════════════════════════════════════════════════════════════════
   ANCHOR OFFSETS (for sticky nav)
   ═══════════════════════════════════════════════════════════════════════ */

.anchor {
  display: block;
  position: relative;
  top: -80px;
  visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════
   HELP TEXT (game instructions)
   ═══════════════════════════════════════════════════════════════════════ */

.help-text {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.help-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 24px 0 8px;
}

.help-text h3:first-child {
  margin-top: 0;
}

.help-text p {
  margin: 0 0 12px;
}

.help-text ul {
  margin: 12px 0 12px 20px;
  line-height: 1.8;
}

.help-text li {
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   HELP FORM
   ═══════════════════════════════════════════════════════════════════════ */

.help-form-wrap {
  max-width: 620px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: rgb(80, 35, 35);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: rgb(80, 35, 35);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(80, 35, 35, 0.2);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgb(180, 130, 130);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgb(80, 35, 35);
  box-shadow: 0 0 0 3px rgba(80, 35, 35, 0.1);
}

.form-submit {
  width: auto;
  padding: 12px 32px;
  font-size: 16px;
  border-radius: 999px;
}

.form-success {
  text-align: center;
  padding: 40px 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(80, 35, 35, 0.15);
  border-radius: var(--radius);
}

.form-success .success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 15px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -4px;
  margin-bottom: 24px;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  user-select: none;
}

.form-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(80, 35, 35, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-checkbox input[type="checkbox"]:hover {
  border-color: rgba(80, 35, 35, 0.4);
}

.form-checkbox input[type="checkbox"]:focus {
  border-color: rgb(80, 35, 35);
  box-shadow: 0 0 0 3px rgba(80, 35, 35, 0.1);
}

.form-checkbox input[type="checkbox"]:checked {
  background: rgb(80, 35, 35);
  border-color: rgb(80, 35, 35);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.form-honeypot {
  display: none;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: rgb(180, 130, 130);
  margin-top: 4px;
}

.form-error {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(200, 50, 50, 0.08);
  border: 1px solid rgba(200, 50, 50, 0.2);
  border-radius: 8px;
  font-size: 14px;
  color: rgb(160, 40, 40);
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   UPDATES LIST
   ═══════════════════════════════════════════════════════════════════════ */

.updates-list {
  font-family: 'Courier New', Courier, monospace;
}

.update-entry {
  padding: 20px 24px;
  background: var(--color-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

.update-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.update-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.update-version {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(0, 122, 255, 0.08);
  padding: 2px 10px;
  border-radius: 6px;
}

.update-changes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.update-changes li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.update-changes li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════════════════════════════ */

.cta-banner {
  text-align: center;
  padding: 48px 24px;
  margin: 32px 0;
  background: var(--color-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.cta-banner h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-banner p {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════
   TIP BANNER
   ═══════════════════════════════════════════════════════════════════════ */

.tip-banner {
  text-align: center;
  padding: 20px 24px 40px;
}

.tip-banner p {
  font-size: 15px;
  margin-bottom: 12px;
}

.tip-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 999px;
  background: rgb(80, 35, 35);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.tip-btn:hover {
  background: rgb(110, 50, 50);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 24px; }
  .widget-grid { grid-template-columns: 1fr 1fr; }
  .widget-detail-body { grid-template-columns: 1fr; }
  .nav-links a { font-size: 12px; padding: 6px 8px; }
}

@media (max-width: 480px) {
  .widget-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
  .hero h1 { font-size: 24px; }
  .article-body { padding: 24px; }
  .nav-inner { padding: 10px 16px; }
  .page { padding: 0 16px; }
}
