/* WhatToPack marketing site — shared styles */

:root {
  --color-bg: #f7f9fb;
  --color-surface: #ffffff;
  --color-text: #1c2733;
  --color-text-muted: #5b6b7a;
  --color-border: #e3e8ed;

  --color-primary: #0f7a6b;
  --color-primary-dark: #0a5a4f;
  --color-primary-light: #e6f4f1;
  --color-accent: #f5934c;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(20, 30, 40, 0.06), 0 1px 2px rgba(20, 30, 40, 0.04);
  --shadow-lg: 0 12px 32px rgba(20, 30, 40, 0.10);

  --max-width: 1100px;

  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
}

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

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  text-decoration: none;
}

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

.nav-toggle svg {
  width: 26px;
  height: 26px;
  color: var(--color-text);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 24px 18px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    width: 100%;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 48px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
}

.eyebrow {
  display: block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* ---------- Screenshots row ---------- */

.screens-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x proximity;
}

.screens-row img {
  flex: 0 0 auto;
  scroll-snap-align: start;
  height: 420px;
  width: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 760px) {
  .screens-row img {
    height: 320px;
  }
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding-left: 8px;
}

.step-illus {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
}

.step-illus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step .step-num {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(20, 30, 40, 0.18);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Illustration banner ---------- */

.illus-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.illus-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.illus-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 28px;
  background: linear-gradient(0deg, rgba(11, 18, 32, 0.55) 0%, rgba(11, 18, 32, 0) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
}

@media (max-width: 560px) {
  .illus-banner-caption {
    font-size: 0.92rem;
    padding: 14px 18px;
  }
}

/* ---------- Page header illustration ---------- */

.page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-header-illus {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
}

.page-header-illus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}

.cta-band .cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta-band .cta-illus {
  width: 130px;
  flex-shrink: 0;
  display: none;
}

.cta-band .cta-illus img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

@media (min-width: 640px) {
  .cta-band .cta-illus {
    display: block;
  }
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.cta-band .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- Play store badge ---------- */

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.play-badge:hover {
  background: #1a1a1a;
  text-decoration: none;
}

.play-badge svg {
  width: 22px;
  height: 22px;
}

.play-badge .badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.play-badge .badge-text small {
  font-size: 0.68rem;
  font-weight: 400;
  opacity: 0.85;
}

.play-badge .badge-text span {
  font-size: 1rem;
}

/* ---------- Legal / content pages ---------- */

.page-header {
  padding: 48px 0 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
}

.page-header .updated {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.content {
  padding: 40px 0 72px;
}

.content-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrap h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
}

.content-wrap h2:first-child {
  margin-top: 0;
}

.content-wrap h3 {
  font-size: 1.08rem;
  margin: 24px 0 10px;
}

.content-wrap p {
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

.content-wrap ul,
.content-wrap ol {
  color: var(--color-text-muted);
  margin: 0 0 16px;
  padding-left: 22px;
}

.content-wrap li {
  margin-bottom: 8px;
}

.content-wrap strong {
  color: var(--color-text);
}

.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.toc p {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.toc ol {
  columns: 2;
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

@media (max-width: 560px) {
  .toc ol {
    columns: 1;
  }
}

.callout {
  background: var(--color-primary-light);
  border: 1px solid #cfe9e3;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--color-primary-dark);
}

/* ---------- Contact / support cards ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}

@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card p {
  margin: 0 0 12px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.info-card .icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--color-text-muted);
}

.faq-category {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin: 36px 0 14px;
}

.faq-category:first-child {
  margin-top: 0;
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 40px 0 28px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .nav-brand {
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
