/* Pirates: Screen Time Control — landing page
   Design source: Figma node 687:1996 (Home).
   Palette: peach #fcc8b6, ink #303030, dark badge #2c2c2c. */

@font-face {
  font-family: "Super Cartoon";
  src: url("../assets/fonts/supercartoon-6r791.woff2") format("woff2");
  font-display: swap;
}

/* Body text: Nunito (Google Fonts) stands in for the design's Proxima Nova. */

:root {
  --peach: #fcc8b6;
  --peach-light: #fddccf;
  --cream: #fff6ef;
  --ink: #303030;
  --badge: #2c2c2c;
  --white: #ffffff;
  --mocha: #e6cdb4;
  --latte: #f5e6cf;
  --baba: #cfe8d8;
  --timber: #dde3c3;
  --ocean: #cde2ef;
  --tuna: #e4d9ef;
  --display: "Super Cartoon", "Arial Black", sans-serif;
  --body: "Nunito", "Avenir Next", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--peach);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  line-height: 1.5;
}

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

a { color: inherit; }

.display {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 24px 8px;
}

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

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }

.nav-toggle span {
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
  margin: 5px 0;
}

.nav a {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(18px, 2.6vw, 32px);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.nav a:hover { transform: rotate(-2deg) scale(1.06); }

/* "More" dropdown (desktop); on mobile its links flow into the menu list */
.nav-more { position: relative; }

.nav-more-toggle {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(18px, 2.6vw, 32px);
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(48, 48, 48, 0.12);
  padding: 10px 0;
  min-width: 150px;
  z-index: 10;
}

.nav-more:hover .nav-dropdown,
.nav-more:focus-within .nav-dropdown {
  display: flex;
}

.nav-dropdown a {
  font-size: 20px !important;
  padding: 8px 22px;
  text-align: center;
}

/* ---------- Hero (Figma: Home) ---------- */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  padding: clamp(48px, 10vh, 140px) 24px 96px;
  flex-wrap: wrap;
}

.hero-cat { width: clamp(220px, 26vw, 337px); }

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 420px;
}

.hero-copy h1 { line-height: 1.08; }

.hero-copy h1 .big { font-size: clamp(52px, 7vw, 90px); display: block; }
.hero-copy h1 .small { font-size: clamp(36px, 4.6vw, 60px); }

.hero-copy .tagline {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
}

/* App Store badge (Figma component 687:2153) */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--badge);
  color: var(--white);
  border-radius: 6px;
  height: 40px;
  padding: 8px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.appstore-badge:hover { transform: scale(1.05); }

.appstore-badge img { width: 20px; height: 24px; }

.appstore-badge .lines { display: flex; flex-direction: column; }
.appstore-badge .lines .top { font-size: 9px; line-height: 1; }
.appstore-badge .lines .bottom { font-size: 18px; line-height: 1; letter-spacing: -0.47px; font-weight: 700; }

/* ---------- Sections ---------- */

.section {
  padding: 96px 24px;
}

.section.alt { background: var(--peach-light); }
.section.cream { background: var(--cream); }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  text-align: center;
  margin-bottom: 16px;
}

.section .lede {
  text-align: center;
  font-size: clamp(17px, 2vw, 21px);
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 6px 0 rgba(48, 48, 48, 0.08);
}

.about-card h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 10px;
}

.about-card p { font-size: 16px; }

.crew-strip {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.crew-strip img {
  width: clamp(56px, 8vw, 88px);
  transition: transform 0.15s ease;
}

.crew-strip img:hover { transform: translateY(-8px) rotate(-3deg); }

/* ---------- Theme & wallpaper cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.pack-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 0 rgba(48, 48, 48, 0.08);
  display: flex;
  flex-direction: column;
}

.pack-card .preview {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 220px;
  overflow: hidden;
}

.pack-card .preview img { width: 120px; margin-bottom: -6px; }

/* widget-style mini frame overlaid on theme previews */
.pack-card .widget-frame {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  line-height: 1.3;
}

.pack-card .meta {
  padding: 18px 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pack-card .meta .name {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 18px;
}

.wallpaper-card .preview {
  height: 300px;
  align-items: center;
}

.wallpaper-card .preview img { width: 170px; margin: 0; }

.wallpaper-card .meta { flex-wrap: wrap; }

.pack-card .modes { display: flex; gap: 8px; }

.wallpaper-card .btn { font-size: 13px; padding: 9px 14px; border-radius: 10px; }

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 16px;
  background: var(--badge);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease;
}

.btn:hover { transform: scale(1.05); }

.btn.big { font-size: 22px; padding: 16px 34px; border-radius: 16px; }

.btn.light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(48, 48, 48, 0.15);
}

/* ---------- Quiz teaser ---------- */

.quiz-teaser {
  text-align: center;
}

.quiz-teaser .archetype-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 40px;
}

.chip {
  background: var(--white);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 0 rgba(48, 48, 48, 0.08);
}

/* ---------- Footer ---------- */

footer {
  background: var(--badge);
  color: var(--white);
  padding: 48px 24px;
  text-align: center;
  font-size: 14px;
}

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

footer a { color: var(--white); }

/* ---------- Quiz page ---------- */

.quiz-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.quiz-home-link {
  font-family: var(--display);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 18px;
}

.quiz-screen { animation: fadein 0.3s ease; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-intro { text-align: center; padding-top: 24px; }

.quiz-intro img { width: 200px; margin: 0 auto 24px; }

.quiz-intro h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin-bottom: 16px; }

.quiz-intro p { font-size: 18px; max-width: 480px; margin: 0 auto 36px; }

.quiz-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}

.quiz-progress span {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(48, 48, 48, 0.15);
}

.quiz-progress span.done { background: var(--ink); }

.quiz-q h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.2; margin-bottom: 28px; }

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

.answer-card {
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  background: var(--white);
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 22px 18px;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(48, 48, 48, 0.08);
  transition: transform 0.1s ease, border-color 0.1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.answer-card:hover,
.answer-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.answer-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--peach-light);
  font-size: 32px;
  line-height: 1;
}

.answer-text { flex: 1; display: flex; align-items: center; }

@media (max-width: 480px) {
  .quiz-q .answers { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .answer-card { padding: 16px 12px; font-size: 13.5px; border-radius: 16px; gap: 10px; }
  .answer-emoji { width: 48px; height: 48px; font-size: 24px; }
}

/* Understated text button (retake link on the result screen) */
.gate-skip {
  font-size: 14px;
  opacity: 0.75;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--body);
  font-weight: 600;
  color: var(--ink);
}

/* Result */
.result-card {
  border-radius: 28px;
  padding: 40px 32px 0;
  text-align: center;
  box-shadow: 0 8px 0 rgba(48, 48, 48, 0.1);
  overflow: hidden;
  margin-bottom: 36px;
}

.result-card .kicker { font-weight: 800; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }

.result-card h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 8px 0 4px; }

.result-card .cat-name { font-weight: 800; font-size: 17px; margin-bottom: 12px; }

.result-card img { width: 190px; margin: 12px auto -6px; }

.result-body { margin-bottom: 36px; }

.result-body h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 20px;
  margin: 28px 0 8px;
}

.result-body ul { padding-left: 20px; }

.result-body li { margin-bottom: 6px; font-size: 16px; }

.result-body p { font-size: 16px; }

.result-ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.result-ctas .note { font-size: 14px; opacity: 0.75; max-width: 420px; }

@media (max-width: 640px) {
  .nav { flex-wrap: wrap; justify-content: flex-end; padding: 16px 16px 4px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 20px; padding: 8px 0 16px; }
  .nav.open .nav-links { display: flex; }
  /* No "More" on mobile: Privacy and Terms become plain menu items */
  .nav-more, .nav-dropdown { display: contents; }
  .nav-more-toggle { display: none; }
  .nav-dropdown a { font-size: clamp(18px, 2.6vw, 32px) !important; padding: 0; }
  .hero { padding-top: 24px; }
  .hero-copy { align-items: center; text-align: center; }
  .section { padding: 64px 20px; }
}
