/* ==========================================================================
   TripCost — product landing page
   Extends Codeluk base styles (style.css)
   ========================================================================== */

.page-tripcost {
  --tc-accent: var(--tripcost-accent);
  --tc-accent-soft: rgba(34, 211, 238, 0.14);
  --tc-accent-glow: rgba(34, 211, 238, 0.32);
  --tc-navy-dark: #031018;
  --tc-navy-mid: #032a44;
  --tc-navy-panel: #061e32;
  --tc-gradient-hero: linear-gradient(
    135deg,
    rgba(3, 16, 28, 0.98) 0%,
    rgba(3, 42, 68, 0.92) 45%,
    rgba(3, 35, 55, 0.78) 100%
  );
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.tc-hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.tc-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    var(--tc-gradient-hero),
    url('../assets/images/tripcost-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.tc-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(3, 12, 22, 0.96) 0%,
    rgba(3, 18, 32, 0.72) 42%,
    rgba(3, 22, 38, 0.18) 72%,
    transparent 100%
  );
}

.tc-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.tc-hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tc-hero-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.tc-hero-titles h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-main);
}

.tc-hero-package {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: rgba(255, 255, 255, 0.45);
}

.tc-hero-lead {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

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

.tc-hero-visual .phone-mockup {
  width: min(13.5rem, 72vw);
}

.tc-hero-visual .phone-frame {
  padding: 0.4rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 40px var(--tc-accent-glow);
}

.tc-hero .gplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem 0.45rem 0.6rem;
  min-width: 9rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.tc-hero .gplay-btn:hover {
  background: #0a0a0a;
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tc-hero .gplay-icon {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
}

.tc-hero .gplay-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 0.92rem;
  font-weight: 600;
}

.tc-hero .gplay-text small {
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.85;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.tc-features-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--tc-navy-dark) 100%);
}

.tc-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tc-feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: rgba(6, 30, 50, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.tc-feature-card:hover {
  border-color: rgba(34, 211, 238, 0.28);
  transform: translateY(-2px);
}

.tc-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--tc-accent-soft);
  color: var(--tc-accent);
}

.tc-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.tc-feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Route cost breakdown
   -------------------------------------------------------------------------- */
.tc-routes-section {
  background: var(--tc-navy-panel);
  border-block: 1px solid rgba(34, 211, 238, 0.1);
}

.tc-routes-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.tc-routes-content h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.tc-routes-content h2 span {
  color: var(--tc-accent);
}

.tc-routes-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.tc-routes-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tc-routes-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tc-routes-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--tc-accent);
  box-shadow: 0 0 8px var(--tc-accent-glow);
}

.tc-routes-panel {
  padding: 1.75rem;
  background: linear-gradient(160deg, rgba(3, 42, 68, 0.88) 0%, rgba(3, 16, 28, 0.96) 100%);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.tc-routes-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tc-routes-panel-header svg {
  color: var(--tc-accent);
  flex-shrink: 0;
}

.tc-routes-panel-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.tc-routes-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tc-routes-stat:last-child {
  border-bottom: none;
  padding-top: 0.85rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(34, 211, 238, 0.15);
}

.tc-routes-stat strong {
  color: var(--text-main);
  font-weight: 600;
}

.tc-routes-stat span {
  color: var(--tc-accent);
  font-variant-numeric: tabular-nums;
}

.tc-routes-stat--total strong {
  font-size: 0.92rem;
}

.tc-routes-stat--total span {
  font-size: 1.05rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Promo gallery
   -------------------------------------------------------------------------- */
.tc-gallery-section {
  background: var(--bg-dark);
}

.tc-promo-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 100%;
}

.tc-promo-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  background: rgba(6, 30, 50, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tc-promo-item:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.tc-promo-item a {
  display: block;
  line-height: 0;
}

.tc-promo-item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.tc-cta-section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background:
    linear-gradient(135deg, rgba(3, 42, 68, 0.95) 0%, rgba(3, 16, 28, 0.98) 100%),
    url('../assets/images/tripcost-bg.jpg') center / cover no-repeat;
  border-top: 1px solid rgba(34, 211, 238, 0.15);
}

.tc-cta-inner {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.tc-cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.tc-cta-inner p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.tc-cta-inner .gplay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.65rem;
  min-width: 9.5rem;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.tc-cta-inner .gplay-btn:hover {
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tc-cta-inner .gplay-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.tc-cta-inner .gplay-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 0.95rem;
  font-weight: 600;
}

.tc-cta-inner .gplay-text small {
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.tc-cta-privacy-link {
  display: block;
  width: fit-content;
  margin: 1rem auto 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(34, 211, 238, 0.35);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.tc-cta-privacy-link:hover,
.tc-cta-privacy-link:focus-visible {
  color: var(--tc-accent);
  text-decoration-color: var(--tc-accent);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .tc-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tc-promo-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 900px) {
  .tc-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .tc-hero-visual {
    justify-content: flex-end;
  }

  .tc-hero-visual .phone-mockup {
    width: 15rem;
  }

  .tc-routes-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .tc-promo-gallery {
    gap: 1.5rem;
  }

  .tc-promo-item--wide {
    grid-column: 1 / -1;
    max-width: min(100%, 52rem);
    justify-self: center;
    width: 100%;
  }
}

@media (min-width: 1100px) {
  .tc-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tc-hero-visual .phone-mockup {
    width: 16.5rem;
  }
}

/* --------------------------------------------------------------------------
   Privacy / legal document
   -------------------------------------------------------------------------- */
.page-tripcost .legal-page {
  background: linear-gradient(180deg, var(--tc-navy-dark) 0%, var(--tc-navy-mid) 55%, #021018 100%);
}

.page-tripcost .legal-content {
  max-width: 44rem;
}

.page-tripcost .legal-content h1 {
  color: var(--text-main);
}

.page-tripcost .legal-content h2 {
  color: var(--tc-accent);
}

.page-tripcost .legal-content a {
  color: var(--tc-accent);
}

.page-tripcost .legal-content a:hover {
  color: #5eead4;
}

.page-tripcost .legal-updated {
  color: var(--text-dim);
}

.app-privacy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
}

.page-tripcost .app-privacy-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tc-accent);
  transition: color var(--transition);
}

.page-tripcost .app-privacy-nav a:hover {
  color: #5eead4;
}

.app-privacy-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 600;
}

.app-privacy-lang span {
  color: var(--text-dim);
  font-weight: 400;
}

.page-tripcost .app-privacy-lang a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.page-tripcost .app-privacy-lang a:hover,
.page-tripcost .app-privacy-lang a.is-active {
  color: var(--tc-accent);
}

.app-privacy-nav {
  align-items: center;
}
