:root {
  --bg: #F5F7FA;
  --card-bg: #FFFFFF;
  --text: #333;
  --text-muted: #555;
  --brand: #5D3A78;
  --brand-hover: #835DA5;
  --header-bg: #d9d9d9;
  --note: #2d7f9f;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: var(--header-bg);
  padding: 20px 50px;
  top: 0;
  z-index: 1000;
}

header img {
  max-height: 82px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

nav a:hover,
nav a:focus-visible {
  color: var(--brand);
}

.cta-button {
  background-color: var(--brand);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  min-height: 44px;
}

.cta-button:hover,
.cta-button:focus-visible {
  background-color: var(--brand-hover);
}

.cta-button-secondary {
  background: white;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.hero {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: white;
}

.hero-text {
  max-width: 560px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin: 10px 0;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: stretch;
}

.hero-cta-row .cta-button,
.email-actions .cta-button,
.app-actions .cta-button {
  width: min(100%, 240px);
}

.hero img {
  max-width: 400px;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section {
  padding: 0 30px 30px;
  text-align: center;
}

.section h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
}

.section p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.tile {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 600px;
}

.tile img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.tile h3 {
  color: var(--brand);
  font-size: 22px;
  margin-top: 0;
}

.tile p {
  padding-bottom: 10px;
}

.note {
  color: var(--note);
  font-weight: 600;
  padding-top: 20px;
}

.note a {
  color: inherit;
}

.description {
  font-size: 18px;
  color: #444;
  line-height: 1.8;
  text-align: justify;
  padding: 15px;
}

.about-section img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.trust-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: left;
}

.trust-card h3 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 19px;
}

.trust-card p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
  text-align: left;
}

.email-strip {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin: 16px auto 0;
  padding: 22px;
  max-width: 900px;
}

.email-strip p {
  margin-bottom: 14px;
}

.email-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  margin-top: 10px;
}

body.modal-open {
  overflow: hidden;
}

footer {
  text-align: center;
  padding: 50px;
  background-color: var(--brand);
  color: white;
  font-size: 14px;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

.app-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brand);
  font-weight: 600;
}

.app-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 24px;
}

.app-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
}

.app-hero img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.app-hero h1 {
  margin: 0;
  color: var(--brand);
  line-height: 1.3;
}

.app-hero p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.app-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.app-section {
  margin-top: 20px;
}

.app-section h2 {
  font-size: 24px;
  color: var(--brand);
  margin-bottom: 8px;
}

.app-section p {
  margin: 8px 0;
  color: var(--text-muted);
}

.app-section ul {
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.7;
}

.app-section li {
  margin-bottom: 8px;
}

.app-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--note);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cross-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #ececec;
}

.cross-links a {
  color: var(--brand);
  font-weight: 600;
}

@media (max-width: 1200px) {
  header {
    padding: 16px 26px;
  }

  nav {
    gap: 18px;
  }

  .hero {
    padding: 24px;
  }

  .section {
    padding: 0 22px 28px;
  }
}

@media (max-width: 900px) {
  header {
    justify-content: space-between;
    padding: 15px 30px;
  }

  header img {
    max-height: 68px;
  }

  nav {
    display: none;
  }

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

  .hero {
    flex-direction: column;
    text-align: center;
    background: url('me.webp') no-repeat top center/cover;
    padding-top: 320px;
  }

  .hero-text {
    background: rgba(255, 255, 255, 0.6);
    color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 90%;
  }

  .hero h1 {
    font-size: 25px;
    font-weight: 800;
    color: var(--brand);
    margin: 0;
  }

  .hero p {
    margin-bottom: 12px;
  }

  .hero-cta-row,
  .email-actions,
  .app-actions {
    justify-content: center;
  }

  .hero-cta-row .cta-button,
  .email-actions .cta-button,
  .app-actions .cta-button {
    width: min(100%, 320px);
  }

  .hero img {
    display: none;
  }

  .tiles {
    flex-direction: column;
    align-items: center;
  }

  .about-section img {
    width: 100%;
    max-width: 250px;
    height: auto;
  }

  .app-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-hero img {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  header {
    padding: 12px 16px;
  }

  header img {
    max-height: 58px;
  }

  .hero {
    padding-top: 270px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-text {
    padding: 20px;
    max-width: 100%;
  }

  .section h2 {
    font-size: 28px;
  }

  .section p,
  .description {
    font-size: 16px;
  }

  .tile {
    padding: 22px;
  }

  .app-card {
    padding: 20px;
  }
}
