/* Swap Pro — Mobile-first responsive styles */

:root {
  --color-teal-light: #21e8c4;
  --color-teal-mid: #169b93;
  --color-teal: #1f8b8d;
  --color-teal-dark: #267b87;
  --color-teal-deep: #0f474f;
  --color-accent: #faff23;
  --color-cream: #f9f6e6;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-nav-muted: #ece2e2;
  --color-gray-pill: #d9d9d9;
  --color-text-muted: #333333;

  --gradient-hero: linear-gradient(
    135deg,
    var(--color-teal-light) 0%,
    var(--color-teal-mid) 19%,
    var(--color-teal-dark) 48%,
    var(--color-teal-deep) 100%
  );

  --gradient-cta: linear-gradient(
    135deg,
    var(--color-teal-mid) 0%,
    rgba(217, 217, 217, 0.71) 100%
  );

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: "Righteous", cursive;
  --radius-card: 25px;
  --radius-pill: 38px;
  --max-width: 1203px;
  --section-gap: 2.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Layout ── */

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

/* ── Header / Nav ── */

.site-header {
  position: relative;
  z-index: 10;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  position: relative;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-text span {
  color: var(--color-accent);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 71, 79, 0.97);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-links.is-open {
  display: flex;
  z-index: 30;
}

.nav-links a {
  color: var(--color-nav-muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a.active {
  border-bottom: 2px solid var(--color-accent);
  width: fit-content;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-cta.btn-cta--nav {
  display: none;
  margin-top: 0;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* ── Hero ── */

.hero {
  background: var(--gradient-hero);
  padding-bottom: 3rem;
  overflow: visible;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
}

.hero-content {
  padding-top: 1rem;
}

.hero-title {
  font-size: clamp(2.75rem, 10vw, 5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 1.5rem;
  max-width: 26rem;
  opacity: 0.95;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.875rem 1.75rem;
  min-height: 52px;
  background: var(--gradient-cta);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-phone {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 0;
}

.hero-screenshot {
  width: min(280px, 72vw);
  height: auto;
  object-fit: contain;
}

.card-screenshot {
  width: min(180px, 38vw);
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.card-screenshot--tilted {
  transform: rotate(-10deg);
}

.card-screenshot--rotated {
  transform: rotate(90deg);
  width: min(160px, 34vw);
}

/* ── Feature Cards ── */

.features {
  padding: var(--section-gap) 0;
}

.feature-card {
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.feature-card:last-child {
  margin-bottom: 0;
}

.feature-card--cream {
  background: var(--color-cream);
  color: var(--color-black);
}

.feature-card--teal {
  background: var(--color-teal);
  color: var(--color-white);
}

.feature-card--yellow {
  background: var(--color-accent);
  color: var(--color-black);
}

.feature-card--dark {
  background: var(--color-teal-deep);
  color: var(--color-white);
}

.feature-card h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 38rem;
  opacity: 0.9;
}

.feature-card .card-phone {
  display: none;
  position: absolute;
  right: 0.5rem;
  bottom: -1.5rem;
  pointer-events: none;
}

.feature-card .card-phone--rotated {
  right: 1rem;
  bottom: -3rem;
}

/* ── Download CTA ── */

.download-cta {
  padding: 0 0 var(--section-gap);
}

.container--wide {
  max-width: 1400px;
  padding-inline: 0.75rem;
}

.download-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../assets/img/swapactivity.png");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 71, 79, 0.88) 0%,
    rgba(31, 139, 141, 0.75) 50%,
    rgba(15, 71, 79, 0.85) 100%
  );
}

.download-card__content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.75rem;
  max-width: 42rem;
  margin-inline: auto;
  color: var(--color-white);
}

.download-card__content h2 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.download-card__content p {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem;
  min-height: 52px;
  background: var(--color-black);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: var(--color-white);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: #1a1a1a;
}

.store-badge img {
  flex-shrink: 0;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.store-badge__label {
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.store-badge__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Footer ── */

.site-footer {
  background: var(--color-teal);
  color: var(--color-white);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.footer-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-brand-text {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.footer-brand-text span {
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  opacity: 0.9;
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

.footer-copy {
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* ── Legal / Content Pages ── */

.page-hero {
  background: var(--gradient-hero);
  padding: 2rem 0 3rem;
  color: var(--color-white);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.9;
  font-size: 0.9375rem;
}

.legal-content {
  padding: 2.5rem 0 4rem;
}

.legal-content .container {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-teal-deep);
}

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

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--color-teal);
  text-decoration: underline;
}

.legal-content .updated {
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 2rem;
}

.deletion-steps {
  background: var(--color-cream);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.deletion-steps ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.deletion-steps li {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.info-box {
  background: rgba(31, 139, 141, 0.1);
  border-left: 4px solid var(--color-teal);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}

.info-box p {
  margin-bottom: 0;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-teal);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  min-height: 44px;
}

.contact-email:hover {
  background: var(--color-teal-deep);
}

/* ── Tablet (768px+) ── */

@media (min-width: 768px) {
  .container {
    padding-inline: 2.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    gap: 2rem;
    align-items: center;
  }

  .nav-links a {
    padding: 0.25rem 0;
    min-height: auto;
  }

  .btn-cta.btn-cta--nav {
    display: inline-flex;
  }

  .hero {
    overflow: hidden;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    min-height: 520px;
    gap: 3rem;
  }

  .hero-content {
    flex: 1;
    padding-top: 2rem;
  }

  .hero-phone {
    flex: 1;
    justify-content: flex-end;
    max-height: 560px;
    overflow: hidden;
    margin-bottom: -4rem;
  }

  .hero-screenshot {
    width: min(320px, 42vw);
    object-fit: cover;
    object-position: top center;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .feature-card {
    padding: 3rem 2.5rem;
    min-height: 280px;
  }

  .feature-card .card-phone {
    display: block;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-copy {
    text-align: right;
  }
}

/* ── Desktop (1024px+) ── */

@media (min-width: 1024px) {
  :root {
    --section-gap: 3.5rem;
  }

  .hero {
    padding-bottom: 0;
  }

  .hero-inner {
    min-height: 640px;
  }

  .hero-title {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .hero-phone {
    max-height: 640px;
    margin-bottom: -5rem;
  }

  .hero-screenshot {
    width: 380px;
  }

  .card-screenshot {
    width: 220px;
  }

  .card-screenshot--rotated {
    width: 200px;
  }

  .features {
    padding: 4rem 0;
  }

  .container--wide {
    padding-inline: 2rem;
  }

  .download-card {
    min-height: 380px;
  }

  .download-card__content {
    padding: 4rem 3rem;
  }

  .feature-card {
    padding: 3.5rem 2.75rem;
    min-height: 320px;
    margin-bottom: 2rem;
  }

  .feature-card h2 {
    font-size: 2.25rem;
  }

  .nav-bar {
    padding: 1.25rem 0;
  }
}
