/* ============================================
   APP DOWNLOAD PAGE STYLES
   Pixel-perfect implementation based on Figma
   ============================================ */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Colors */
  --color-primary: #67bfbf;
  --color-dark: #101828;
  --color-heading: #4e5e68;
  --color-text: #000000;
  --color-text-muted: #d1d5dc;
  --color-bg-light: #f9fafb;
  --color-bg-lighter: #f2f6fa;
  --color-white: #ffffff;
  --color-footer-secondary: #1e2939;
  --color-divider: #364153;

  /* Typography */
  --font-heading: 'Lora', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Spacing */
  --max-width: 1440px;
  --container-padding: 0 70px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-heading);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.app-download-page {
  width: 100%;
  overflow-x: hidden;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background-color: var(--color-primary);
  height: 867px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  padding: 0 70px;
}

.hero-content {
  padding-top: 284px;
  max-width: 590px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 50px;
  line-height: 60px;
  color: var(--color-white);
  margin-bottom: 28px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 35px;
  color: var(--color-white);
  margin-bottom: 44px;
}

.hero-mockup {
  position: absolute;
	right: 110px;
	top: 0;
	bottom: 0;
	width: 571px;
  filter: drop-shadow(4px -5px 4px rgba(0, 0, 0, 0.13));
}

.hero-mockup .mockup-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

/* Store Buttons - Shared Styles */
.app-store-buttons,
.feature-store-buttons,
.checklist-store-buttons {
  display: flex;
  gap: 11px;
}

.store-btn {
  display: flex;
  align-items: center;
  background-color: #000000;
  border: 1px solid #a6a6a6;
  border-radius: 6px;
  width: auto;
  min-width: 135px;
  height: 40px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--color-white);
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.store-btn:focus {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

.store-icon {
  width: 20px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-text .small-text {
  font-family: 'Product Sans', var(--font-body);
  font-size: 10px;
  line-height: normal;
  text-transform: uppercase;
  color: var(--color-white);
}

.store-text .large-text {
  font-family: 'SF Compact Display', var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: -0.47px;
  color: var(--color-white);
}

/* ============================================
   FEATURES SECTION (Everything You Need)
   ============================================ */
.features-section {
  background-color: var(--color-white);
  padding: 80px 0 100px;
}

.features-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 64px;
  color: var(--color-heading);
  text-transform: capitalize;
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text);
  margin-bottom: 60px;
}

.features-content {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  text-align: left;
}

.features-mockups {
  flex-shrink: 0;
}

.mockup-stack {
  position: relative;
  width: 420px;
  height: 512px;
}

.mockup-back {
  position: absolute;
  left: 0;
  top: 0;
  width: 213px;
  height: 442px;
  object-fit: cover;
  border-radius: 20px;
  filter: drop-shadow(4px -5px 4px rgba(0, 0, 0, 0.13));
}

.mockup-front {
  position: absolute;
  left: 180px;
  top: 70px;
  width: 213px;
  height: 442px;
  object-fit: cover;
  border-radius: 20px;
  filter: drop-shadow(4px -5px 4px rgba(0, 0, 0, 0.13));
}

.features-list {
  flex: 1;
  padding-top: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 21px;
  margin-bottom: 32px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: var(--color-heading);
  text-transform: capitalize;
  margin-bottom: 4px;
}

.feature-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text);
  max-width: 340px;
}

.feature-store-buttons {
  margin-top: 40px;
}

/* ============================================
   WHY CHOOSE SECTION
   ============================================ */
.why-choose-section {
  background-color: var(--color-bg-light);
  padding: 80px 0 100px;
}

.why-choose-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.why-choose-section .section-title {
  text-align: left;
  margin-bottom: 50px;
}

.why-choose-content {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.checklist-column {
  flex: 1;
  max-width: 400px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

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

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.check-icon svg {
  width: 100%;
  height: 100%;
}

.check-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text);
}

.app-preview-column {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.app-preview-outer {
  background-color: #d4e8e8;
  border-radius: 20px;
  padding: 32px;
  width: 480px;
}

.app-preview-card {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.star-icon-wrapper {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.star-icon-wrapper svg {
  width: 40px;
  height: 40px;
}

.rating-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 28px;
  color: #6b7280;
}

.rating-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: #9ca3af;
}

.preview-quote {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  color: #6b7280;
  margin: 0;
}

/* ============================================
   PARTNER SECTION
   ============================================ */
.partner-section {
  background-color: var(--color-bg-lighter);
  padding: 80px 0 100px;
}

.partner-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  text-align: center;
}

.partner-section .section-title {
  margin-bottom: 16px;
}

.partner-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-text);
  margin-bottom: 48px;
}

/* Partner Form */
.partner-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 40px 48px;
}

.partner-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-heading);
}

.form-group label svg {
  flex-shrink: 0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--color-heading);
  background-color: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(103, 191, 191, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: fit-content;
  background-color: #70B0E9;
  color: var(--color-white);
  border: none;
  border-radius: 25px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: #70B0E9;
  transform: translateY(-1px);
}

.btn-submit:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-submit:active {
  transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-dark);
  padding: 48px 16px;
}

.footer-container {
  max-width: 1316px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Footer Brand Column */
.footer-logo {
  width: 95px;
  height: 46px;
  margin-bottom: 8px;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.address-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.address-text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Footer Headings */
.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
  margin: 0;
}

/* Footer Contact Column */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--color-white);
}

.contact-link svg {
  flex-shrink: 0;
}

.btn-contact-primary {
  background-color: #030213;
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}

.btn-contact-primary:hover {
  background-color: #1a1a2e;
}

.contact-buttons {
  display: flex;
  gap: 8px;
}

.btn-contact-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 6px 16px;
  color: #0a0a0a;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  transition: background-color 0.2s ease;
}

.btn-contact-secondary:hover {
  background-color: #f5f5f5;
}

/* Footer Social Column */
.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-footer-secondary);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.social-link:hover {
  background-color: #2d3a4d;
}

.legal-section {
  margin-top: 16px;
}

.legal-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
  margin: 0 0 8px 0;
}

.legal-link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: var(--color-white);
}

/* Footer Download Column */
.footer-app-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-app-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-footer-secondary);
  border-radius: 10px;
  padding: 12px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.footer-app-btn:hover {
  background-color: #2d3a4d;
}

.app-btn-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-btn-text {
  display: flex;
  flex-direction: column;
}

.app-btn-small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-text-muted);
}

.app-btn-large {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
}

/* Footer Divider & Copyright */
.footer-divider {
  height: 1px;
  background-color: var(--color-divider);
  margin-bottom: 32px;
}

.footer-copyright {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
}

/* ============================================
   RESPONSIVE STYLES - TABLET
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --container-padding: 0 40px;
  }

  .hero-section {
    height: auto;
    min-height: 700px;
    padding-bottom: 60px;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 40px;
  }

  .hero-content {
    padding-top: 180px;
    max-width: 100%;
  }

  .hero-title {
    font-size: 40px;
    line-height: 50px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .app-store-buttons {
    justify-content: center;
  }

  .hero-mockup {
    position: relative;
    right: auto;
    top: auto;
    margin-top: 50px;
    width: 100%;
    height: auto;
  }

  .features-content {
    flex-direction: column;
    align-items: center;
    gap: 60px;
  }

  .mockup-stack {
    width: 350px;
    height: 420px;
  }

  .mockup-back,
  .mockup-front {
    width: 180px;
    height: 370px;
  }

  .mockup-front {
    left: 150px;
    top: 50px;
  }

  .features-list {
    max-width: 500px;
    padding-top: 0;
  }

  .feature-store-buttons {
    justify-content: center;
  }

  .why-choose-content {
    flex-direction: column;
    gap: 50px;
  }

  .why-choose-section .section-title {
    text-align: center;
  }

  .checklist-column {
    max-width: 100%;
    text-align: center;
  }

  .checklist {
    display: inline-block;
    text-align: left;
  }

  .checklist-store-buttons {
    justify-content: center;
  }

  .app-preview-column {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .partner-form-wrapper {
    padding: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================
   RESPONSIVE STYLES - MOBILE
   ============================================ */
@media (max-width: 576px) {
  :root {
    --container-padding: 0 20px;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-container {
    padding: 0 20px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 42px;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 32px;
  }

  .app-store-buttons {
    flex-direction: row;
    gap: 8px;
  }

  .store-btn {
    width: auto;
    min-width: 130px;
    padding: 6px 12px;
  }

  .store-text .small-text {
    font-size: 8px;
  }

  .store-text .large-text {
    font-size: 14px;
  }

  .hero-mockup {
    width: 100%;
    margin-top: 40px;
  }

  .section-title {
    font-size: 32px;
    line-height: 48px;
  }

  .features-section {
    padding: 60px 0 80px;
  }

  .features-content {
    gap: 40px;
  }

  .features-mockups {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .features-list {
    order: 1;
  }

  .mockup-stack {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 280 / 340;
    position: relative;
  }

  .mockup-back,
  .mockup-front {
    width: 55%;
    height: auto;
    aspect-ratio: 150 / 310;
  }

  .mockup-back {
    position: absolute;
    left: 0;
    top: 0;
  }

  .mockup-front {
    left: 45%;
    top: 10%;
  }

  .feature-item {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 12px;
  }

  .feature-icon {
    width: 56px;
    height: 56px;
  }

  .feature-desc {
    max-width: 100%;
  }

  .feature-store-buttons,
  .checklist-store-buttons {
    flex-direction: row;
    gap: 8px;
    justify-content: center;
  }

  .why-choose-section {
    padding: 60px 0 80px;
  }

  .why-choose-content {
    align-items: center;
  }

  .checklist-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .checklist {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0 auto 32px auto;
  }

  .checklist-item {
    justify-content: center;
    width: auto;
  }

  .checklist-store-buttons {
    margin: 0 auto;
  }

  .app-preview-column {
    width: 100%;
    justify-content: center;
  }

  .app-preview-outer {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .app-preview-card {
    padding: 20px 24px;
    border-radius: 12px;
  }

  .rating-badge {
    gap: 10px;
  }

  .star-icon-wrapper {
    width: 32px;
    height: 32px;
  }

  .star-icon-wrapper svg {
    width: 32px;
    height: 32px;
  }

  .rating-value {
    font-size: 22px;
  }

  .rating-label {
    font-size: 12px;
  }

  .preview-quote {
    font-size: 14px;
    line-height: 1.5;
  }

  .partner-section {
    padding: 60px 0 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-column {
    text-align: center;
    align-items: center;
  }

  .footer-address {
    justify-content: center;
  }

  .contact-links {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .legal-section {
    text-align: center;
  }

  .footer-app-buttons {
    width: 100%;
    max-width: 280px;
  }

  .contact-buttons {
    width: 100%;
    max-width: 280px;
  }

  .btn-contact-primary {
    width: 100%;
    max-width: 280px;
  }

  .partner-form-wrapper {
    padding: 24px 20px;
    margin: 0 -20px;
    border-radius: 12px;
  }

  .partner-form {
    gap: 20px;
  }

  .btn-submit {
    width: 100%;
    padding: 12px 24px;
  }
}

/* ============================================
   MOBILE SPECIFIC LAYOUT (418px width)
   Based on Figma Mobile design
   ============================================ */
@media (max-width: 418px) {
  .hero-title {
    font-size: 40px;
    line-height: 60px;
  }

  .hero-subtitle {
    font-size: 20px;
    line-height: 35px;
  }

  .section-title {
    font-size: 40px;
    line-height: 64px;
  }

  .hero-mockup {
    width: 100%;
    height: auto;
  }

  .mockup-stack {
    width: 100%;
    max-width: 365px;
    height: auto;
  }

  .mockup-back {
    position: relative;
    left: auto;
    top: auto;
    width: 187px;
    height: 388px;
  }

  .mockup-front {
    position: absolute;
    left: 158px;
    top: 61px;
    width: 187px;
    height: 388px;
  }
}
