/* Card Tag Landing – Collectr-inspired, Card Tag branding */

:root {
  /* Brand colours (from spec & app) */
  --dark-grey: #2C2C2E;
  --dark-grey-deep: #1f2122;
  --off-white: #f2f2f7;
  --mid-grey: #8e8e93;
  --mid-grey-light: #aeaeb2;
  --white: #ffffff;
  --border: rgba(44, 44, 46, 0.12);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

  /* Typography */
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 5rem 1.5rem;
  --section-padding-sm: 3rem 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-grey);
  background: var(--off-white);
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 242, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--dark-grey);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--dark-grey);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--dark-grey-deep);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-apple {
  display: inline-block;
  width: 20px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' fill='%23ffffff'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.8 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  vertical-align: middle;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero */
.hero {
  padding: 4rem 1.5rem 5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--mid-grey);
  max-width: 32rem;
}

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

.hero-image {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}

/* Hero image: assets/screenshots/hero-portrait.png */

/* Sections */
.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0 0 3rem;
  font-size: 1.125rem;
  color: var(--mid-grey);
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Benefits */
.benefits {
  padding: var(--section-padding);
  background: var(--white);
}

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

.benefit-card {
  padding: 2rem;
  background: var(--off-white);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.benefit-card:hover {
  box-shadow: var(--shadow);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.benefit-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--mid-grey);
}

/* Features */
.features {
  padding: var(--section-padding);
}

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

.feature-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--mid-grey);
}

/* Gallery */
.gallery {
  padding: var(--section-padding);
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  display: block;
}

/* Replace gallery-image src with assets/screenshots/gallery-1.png etc. */

/* FAQ */
.faq {
  padding: var(--section-padding);
}

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

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
  color: var(--dark-grey);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.faq-question:hover {
  color: var(--mid-grey);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--mid-grey);
  transition: transform 0.2s;
}

.faq-item[data-open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0 0 1.25rem;
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--mid-grey);
  line-height: 1.6;
}

.faq-answer p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* CTA */
.cta {
  padding: 5rem 1.5rem;
  background: var(--dark-grey);
  color: var(--white);
  text-align: center;
}

.cta-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

.cta-subtitle {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--mid-grey-light);
}

.cta .btn-primary {
  background: var(--white);
  color: var(--dark-grey);
}

.cta .btn-apple {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' fill='%232C2C2E'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.8 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.cta .btn-primary:hover {
  background: var(--off-white);
}

.cta-note {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--mid-grey);
}

/* Footer */
.footer {
  padding: 2.5rem 1.5rem;
  background: var(--dark-grey-deep);
  color: var(--mid-grey-light);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--white);
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mid-grey-light);
  transition: color 0.15s;
}

.footer-social:hover {
  color: var(--white);
}

.footer-icon-instagram {
  width: 22px;
  height: 22px;
}

.footer-links a {
  color: var(--mid-grey-light);
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--mid-grey);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image {
    max-width: 220px;
  }
}
