/* ══════════════════════════════════════
   Countline — Global Styles
   ══════════════════════════════════════ */

/* ── Fonts ── */
@font-face {
  font-family: 'TWK Everett';
  src: url('font/TWKEverett-Regular-web.woff2') format('woff2'),
       url('font/TWKEverett-Regular-web.woff') format('woff'),
       url('font/TWKEverett-Regular-web.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TWK Everett';
  src: url('font/TWKEverett-Bold-web.woff2') format('woff2'),
       url('font/TWKEverett-Bold-web.woff') format('woff'),
       url('font/TWKEverett-Bold-web.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'TWK Everett', sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
  overflow-y: scroll; /* prevent layout shift from scrollbar */
}

a {
  color: inherit;
}


/* ══════════════════════════════════════
   Shared: Page & Logo
   ══════════════════════════════════════ */

.page {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

/* Absolute on desktop, becomes static on ≤1320px */
.logo {
  position: absolute;
  top: 60px;
  left: 120px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: #000;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon .row {
  position: absolute;
  left: 8.75px;
  height: 18.15px;
  width: 38.5px;
  display: flex;
  border-radius: 124px;
  overflow: hidden;
}

.logo-icon .row:first-child { top: 8.75px; }
.logo-icon .row:last-child  { bottom: 8.75px; border-radius: 248px; }

.logo-icon .bar { height: 100%; }
.logo-icon .row:first-child .bar:nth-child(1) { width: 23.1px;  background: #ff7c02; }
.logo-icon .row:first-child .bar:nth-child(2) { width: 3.85px;  background: #fcd12d; }
.logo-icon .row:first-child .bar:nth-child(3) { width: 3.85px;  background: #0381ef; }
.logo-icon .row:first-child .bar:nth-child(4) { width: 3.85px;  background: #ffa0f6; }
.logo-icon .row:first-child .bar:nth-child(5) { width: 3.85px;  background: #af78d3; }
.logo-icon .row:last-child  .bar:nth-child(1) { width: 3.85px;  background: #fcd12d; }
.logo-icon .row:last-child  .bar:nth-child(2) { width: 11.55px; background: #ffa0f6; }
.logo-icon .row:last-child  .bar:nth-child(3) { width: 3.85px;  background: #0381ef; }
.logo-icon .row:last-child  .bar:nth-child(4) { width: 15.4px;  background: #d0fa34; }
.logo-icon .row:last-child  .bar:nth-child(5) { width: 3.85px;  background: #019644; }

.logo-text {
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.01em;
}


/* ══════════════════════════════════════
   Home Page
   ══════════════════════════════════════ */

body.home {
  min-height: 100vh;
}

body.home .page {
  height: 100vh;
  padding: 0 120px;
  overflow: hidden;
}

/* ── Content ── */
.content {
  position: absolute;
  /* Visually centered with slight downward offset to balance the layout */
  top: calc(50% - 39px);
  transform: translateY(-50%);
  left: 120px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.headline {
  font-weight: 700;
  font-size: 48px;
  line-height: 1;
}

.description {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
}

/* ── App Store Button ── */
.store-button {
  display: inline-block;
  transition: opacity 0.2s;
}

.store-button:hover {
  opacity: 0.85;
}

.store-button img {
  display: block;
  width: 186px;
  height: 60px;
}

/* ── Bottom Section ── */
.bottom {
  position: absolute;
  bottom: 60px;
  left: 120px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icons a {
  display: flex;
  text-decoration: none;
  color: #000;
  transition: opacity 0.2s;
}

.social-icons a:hover {
  opacity: 0.6;
}

.social-icons svg {
  width: 24px;
  height: 24px;
}

.contact-text {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

.contact-text a,
.legal-links a {
  text-decoration: underline;
  text-decoration-skip-ink: none;
}

.legal-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  line-height: 1.4;
}

/* ── Phone Mockups ── */
.phones {
  position: absolute;
  left: 620px;
  right: 120px;
  top: 60px;
  bottom: 60px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.phone {
  flex: 1 1 0;
  min-width: 0;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(5px 5px 10px rgba(28, 28, 28, 0.15))
         drop-shadow(10px 10px 30px rgba(28, 28, 28, 0.1));
}

.phone img {
  display: block;
  max-height: calc(100vh - 120px);
  max-width: 100%;
  width: auto;
  height: auto;
}


/* ══════════════════════════════════════
   Legal Pages (Privacy, Terms, Accessibility)
   ══════════════════════════════════════ */

body.legal .page {
  /* 60px logo top + 56px logo height + 40px gap = 156px */
  padding: 156px 80px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.title,
.text {
  width: 100%;
  max-width: 740px;
}

.title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
}

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

.text h2 {
  font-weight: 700;
  font-size: 18px;
  line-height: 20px;
}

.text p {
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: -0.43px;
}

/* ── Feature List ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-weight: 400;
  font-size: 16px;
  line-height: 18px;
  letter-spacing: -0.43px;
}

.feature-list .bullet {
  flex-shrink: 0;
}


/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

/* ── Large screens (>1440px) ── */
@media (min-width: 1441px) {
  .page {
    max-width: none;
  }

  .logo {
    left: 6vw;
  }

  body.home .page {
    padding: 0 6vw;
  }

  body.legal .page {
    padding: 156px 6vw 60px;
  }

  .content {
    left: 6vw;
  }

  .bottom {
    left: 6vw;
  }

  .phones {
    left: calc(6vw + 540px);
    right: 6vw;
  }
}

/* ── Tablet (≤1320px) ── */
@media (max-width: 1320px) {
  .logo {
    position: static;
  }

  body.home .page {
    height: auto;
    padding: 40px 80px;
    overflow: visible;
  }

  body.legal .page {
    padding: 40px 80px;
    align-items: stretch;
    gap: 32px;
  }

  .title,
  .text {
    max-width: none;
  }

  .content {
    position: static;
    transform: none;
    max-width: 100%;
    margin-top: 60px;
  }

  .bottom {
    position: static;
    max-width: 480px;
    margin-top: 60px;
  }

  .phones {
    position: static;
    margin-top: 60px;
    margin-left: -10px;
    margin-right: -10px;
  }

  .phone {
    width: 295px;
    flex: 0 0 auto;
    max-height: none;
  }

  .phone img {
    max-height: none;
    max-width: none;
    width: 100%;
  }
}

/* ── Mobile (≤520px) ── */
@media (max-width: 520px) {
  body.home .page {
    padding: 20px;
  }

  body.legal .page {
    padding: 20px;
    gap: 20px;
  }

  .logo {
    gap: 11px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .logo-icon .row {
    left: 6.25px;
    height: 13px;
    width: 27.5px;
  }

  .logo-icon .row:first-child { top: 6.25px; }
  .logo-icon .row:last-child  { bottom: 6.25px; }

  .logo-icon .row:first-child .bar:nth-child(1) { width: 16.5px; }
  .logo-icon .row:first-child .bar:nth-child(2) { width: 2.75px; }
  .logo-icon .row:first-child .bar:nth-child(3) { width: 2.75px; }
  .logo-icon .row:first-child .bar:nth-child(4) { width: 2.75px; }
  .logo-icon .row:first-child .bar:nth-child(5) { width: 2.75px; }
  .logo-icon .row:last-child  .bar:nth-child(1) { width: 2.75px; }
  .logo-icon .row:last-child  .bar:nth-child(2) { width: 8.25px; }
  .logo-icon .row:last-child  .bar:nth-child(3) { width: 2.75px; }
  .logo-icon .row:last-child  .bar:nth-child(4) { width: 11px; }
  .logo-icon .row:last-child  .bar:nth-child(5) { width: 2.75px; }

  .logo-text {
    font-size: 34px;
  }

  .title {
    font-size: 28px;
  }

  .content {
    margin-top: 40px;
  }

  .headline {
    font-size: 36px;
  }

  .phones {
    margin-top: 40px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
  }

  .phone-2 {
    display: none;
  }
}

/* ── Small mobile (≤380px) ── */
@media (max-width: 380px) {
  .phone {
    width: 270px;
  }
}
