/* CSS RESET START - by Josh Comeau */ 
/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* 2. Remove default margin */
  *:not(dialog) {
    margin: 0;
  }
  
  /* 3. Enable keyword animations */
  @media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
  }
  
  body {
    /* 4. Increase line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }
  
  /* 6. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /* 7. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  
  /* 8. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  /* 9. Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }

  /* CSS RESET END - by Josh Comeau */ 

  /* Clean Lists to remove default styles */
  nav ul {
    list-style: none;
    padding: 0;
  }
  
  /* BASE STYLES */

  /* Variables*/ 
  :root {
    --brand-primary: #f19d38;
    --brand-secondary: #0070d6;
    --brand-cta: #78b737;
    --text: #595959;
    --muted-text: #868686;
    --bg: #fafafa;
    --bg-secondary: #F2F2F2;
    --text-inverse: #fff;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 40px;
    --space-xl: 80px;
  }

  h2, h3 {
    margin-bottom: var(--space-md);
  }

  h4, h5, h6 {
    margin-bottom: var(--space-sm);
  }

  .bold {
    font-weight: 700;
  }

  hr {
    border: none;
    height: 2px;
    max-width: 80%;
    margin: auto;
    background-color: var(--bg-secondary);
    margin-bottom: var(--space-md);
  }

  body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;  /* Ensures body is at least the full viewport height (mobile) */
    display: flex;
    flex-direction: column;
  }

  main {
    flex: 1;
  }

  main.full-bleed {
    padding: 0;
  }

  .orange { 
    background: var(--brand-primary); 
  }
  
  .blue {
    background: var(--brand-secondary);
  }

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

  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-md);
    border: 1px solid var(--bg-secondary);
  }

  td:first-child {
    width: 200px;
    font-weight: bold;
  }

  td {
    padding: var(--space-sm) var(--space-md);
    vertical-align: top;
  }

  tr:nth-child(even) {
    background: var(--bg-secondary);
  }

  /* HEADER */

  header {
    text-align: center;
    margin-bottom: 20px;
  }

  header img {
    max-width: 270px;
    margin: auto;
    padding: var(--space-md);
  }

  header h1 {
    background-color: var(--brand-primary);
    color: var(--text-inverse);
    padding: var(--space-md);
  }
  
  main {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }

  main p {
    margin-bottom: var(--space-lg);
  }

  /* FOOTER */

  footer {
    background-color: var(--bg-secondary);
    text-align: center;
    font-size: 13px;
    padding: var(--space-md);
  }

  footer img {
    max-width: 240px;
    margin: auto;
    padding: var(--space-md);
  }

  footer nav ul {
    margin-top: var(--space-sm);
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
  }

  footer nav ul a {
    color: var(--text);
  }

  /* COUNTRY FLAGS STYLING */

  nav.flags ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 600px;
    margin: auto;
  }

  nav.flags a {
    display: block; /* fill the element with the link */
  }

  nav.flags img {
    border-radius: 7px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 100%;
    width: 250px;
    margin: auto;
  }

  nav.flags img:hover  {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* HOMEPAGE */

.intro-text {
  text-align: center;
}

/* EXPIRED PAGE */

.expired-text, .mobile-app-cta {
  text-align: center;
}

.mobile-app-cta h3 {
  padding-top: var(--space-md);
}

.mobile-app-cta img {
  display: block;
  margin: auto;
  max-width: 160px;
}

/* MOBILE APP LANDING PAGE */

.hero {
  background-color: var(--brand-secondary);
  color: var(--text-inverse);
  padding: var(--space-lg);
  padding-bottom: 0;
}

.hero-inner {
  display: flex;
  align-items: center; 
  gap: var(--space-lg);
  max-width: 1000px;
  margin: auto;
}

.hero-image {
  max-width: 350px;
  margin: auto;
  align-self: flex-end;
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
  }

  .hero-image {
    align-self: center; 
    order: 2;             
  }

  .hero-text h1 {
    order: 1;
    text-align: center;
  }

  .feature-list {
    margin-left: auto;     
    margin-right: auto;
  }

}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-md);
  max-width: 400px; 
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-sm);
  font-size: 20px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: bold;
}

.mobile-app-ctas {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.mobile-app-ctas img {
  max-width: 170px;
}

@media (max-width: 768px) {
  .mobile-app-ctas {
    justify-content: center;
  }
}

.feature-grid {
  text-align: center;
  max-width: 1000px;
  margin: auto;
  margin-top: var(--space-lg);
}

.feature-grid svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.feature-grid li {
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
  font-size: 14px;
}

.feature-grid ul {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .feature-grid ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

.icon-wrap {
  color: var(--brand-secondary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.top-mobile-app-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-md);
}

.top-mobile-app-cta .app-button {
  background: var(--brand-cta);
  text-align: center;
  color: #fff;
  text-decoration: none; 
  border-radius: 6px;
  font-weight: bold;
  padding: var(--space-sm) var(--space-md);
}

.top-mobile-app-cta .app-button:hover {
  background: #79ac40; 
}

.featured-in ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
}

.featured-in ul li {
  display: inline-block;
}

.featured-in ul li img {
  height: 40px;
  width: auto;
  max-width: 150px;
}

@media (max-width: 768px) {
  .featured-in ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
}

/* GO LANDING PAGE */

.double-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.logo-block a {
  display: block;
}

.logo-block img {
  max-width: 100%;   /* never wider than the container */
  height: auto;
}

.logo-block {
  flex: 1;                    /* each takes half */
  padding: var(--space-sm);
  display: flex;              /* to center the logo inside */
  align-items: center;
  justify-content: center;
}

nav.dual-flags ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 600px;
  margin: auto;
}

nav.dual-flags a {
  display: block; /* fill the element with the link */
}

nav.dual-flags img {
  border-radius: 7px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 100%;
  width: 250px;
  margin: auto;
}

nav.dual-flags img:hover  {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.button-countries {
  margin-top: var(--space-lg);
  display: inline-block; 
  padding: var(--space-md) var(--space-lg);
  background: var(--brand-cta);
  color: #fff;
  text-decoration: none; 
  border-radius: 6px;
  font-weight: bold;
}


.button-countries:hover {
  background: #79ac40; 
}

/* Mobile View */
@media (max-width: 768px) {
  nav.dual-flags ul {
    grid-template-columns: repeat(3, 1fr);
  }

  nav.dual-flags img {
    width: 140px;
  }

}