/* Import ASH color palette */
@import url("./colors.css");

/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  --header-height: 72px;
  height: 100%;
  overflow-x: hidden;
}

body {
  height: 100%;
  overflow-x: hidden;
  position: relative;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--ash-white);
  color: var(--ash-black);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  padding: 12px 28px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease,
    border-bottom-color 0.3s ease;
  border-bottom: 1px solid transparent;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.header-actions {
  display: flex;
  gap: 1px;
  align-items: center;
  position: relative;
}

.header-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--ash-black);
}

.header-icon-btn:hover {
  opacity: 0.7;
}

.header-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 24px;
  color: var(--ash-black);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-menu-btn:hover {
  opacity: 0.7;
}

.header-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  width: 260px;
  background: var(--ash-white);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 999;
  opacity: 0;
  transform: translateY(-2px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay {
  display: none;
}

.menu-link {
  color: var(--ash-black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  transition: all 0.15s ease;
}

.menu-link:hover {
  background: var(--ash-grey1);
}

.language-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 48px;
  width: 200px;
  background: var(--ash-white);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 999;
  opacity: 0;
  transform: translateY(-2px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.language-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.language-option {
  color: var(--ash-black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  transition: all 0.15s ease;
}

.language-option:hover {
  background: var(--ash-grey1);
}

.header.scrolled {
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.32);
  background: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.25);
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header-shadow {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  pointer-events: none;
  z-index: 1100;
  opacity: 0;
  transform: translateY(calc(var(--header-height, 72px) - 2px));
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  transition: opacity 0.25s ease;
}

.header-shadow.is-visible {
  opacity: 1;
}

.logo img {
  display: block;
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: none;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 40px;
  padding: 80px 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.page-content {
  flex: 1;
  max-width: 500px;
  text-align: left;
}

.page-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--ash-white);
  border-radius: 40px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  border: 1px solid var(--ash-grey3);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--ash-white);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 40px;
}

.page-divider {
  width: 766.0104370117px;
  max-width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid #d7d7d7;
  margin: 40px auto 0;
  opacity: 1;
}

.scroll-indicator-mask {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 4px 0 0;
  width: 24px;
  height: 46px;
  overflow: hidden;
  opacity: 0.85;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: none;
  color: rgba(0, 0, 0, 0.9);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2));
}

.scroll-indicator-mask.is-hidden {
  display: none;
}

.scroll-indicator-mask svg {
  display: block;
}

.scroll-arrow {
  stroke: currentColor;
  width: 20px;
  height: 30px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.landing-newsletter {
  width: 766.0104370117px;
  max-width: 100%;
  margin: 32px auto 0;
  color: #000000;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 500;
  font-size: 36px;
  line-height: 22px;
  letter-spacing: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.landing-newsletter-subtitle {
  width: 766.0104370117px;
  max-width: 100%;
  margin: 16px auto 0;
  color: #1e1e1e;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  text-align: center;
  padding: 2px 90px;
}

.landing-newsletter-input {
  width: 586px;
  max-width: 100%;
  margin: 24px auto 0;
  position: relative;
}

.landing-newsletter-input input {
  width: 100%;
  height: 70px;
  border: 1px solid #828282;
  border-radius: 12px;
  padding: 0 24px;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  color: #828282;
  box-sizing: border-box;
  padding-right: 76px;
  transition: color 0.2s ease;
}

.landing-newsletter-input.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.landing-newsletter-input input::placeholder {
  color: #828282;
  transition: opacity 0.2s ease;
}

.landing-newsletter-input input:focus::placeholder,
.landing-newsletter-input input:not(:placeholder-shown)::placeholder {
  opacity: 0;
}
.landing-newsletter-send {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.landing-newsletter-send img {
  width: 40px;
  height: 40px;
  display: block;
}

.landing-newsletter-feedback {
  width: 586px;
  max-width: 100%;
  margin: 12px auto 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  text-align: center;
  min-height: 20px;
  color: #1e1e1e;
}

.landing-newsletter-feedback.is-success {
  color: #138d66;
}

.landing-newsletter-feedback.is-error {
  color: #c93434;
}

@media (max-width: 600px) {
  .landing-newsletter {
    font-size: 28px;
    line-height: 32px;
  }

  .landing-newsletter-subtitle {
    font-size: 16px;
    line-height: 24px;
    padding: 0 32px;
  }

  .landing-newsletter-input {
    width: 100%;
    padding: 0 16px;
  }

  .landing-newsletter-input input {
    height: 58px;
    border-radius: 10px;
    padding: 0 48px 0 16px;
    font-size: 15px;
  }

  .landing-newsletter-send {
    right: 28px;
    width: 34px;
    height: 34px;
  }

  .landing-newsletter-send img {
    width: 34px;
    height: 34px;
  }

  .landing-newsletter-feedback {
    width: 100%;
    padding: 0 32px;
  }
}

.page--doc {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.page--doc .title {
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 600;
}

.title {
  font-family: "Poppins", "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600; /* semi-bold */
  color: var(--ash-black);
  text-shadow: none;
  margin-bottom: 24px;
}

.subtitle {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-weight: 500;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.4;
  letter-spacing: 0.25px;
  vertical-align: middle;
  color: var(--ash-grey2);
  margin-bottom: 32px;
}

.app-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.app-buttons--below {
  display: none;
}

.app-button {
  display: inline-flex;
  align-items: center;
  background: var(--ash-white);
  color: var(--ash-white);
  padding: 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 160px;
  border: none;
}

.app-button:hover {
  background: var(--ash-white);
  transform: translateY(-2px);
}

.app-button-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background: var(--ash-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

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

.app-button-small {
  font-size: 10px;
  line-height: 1;
}

.app-button-image {
  width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.doc-container {
  width: min(100%, 1080px);
  margin: 0 auto;
  aspect-ratio: 3 / 4; /* default portrait ratio; provides space before iframe loads */
  max-height: calc(100vh - 200px);
}

.doc-frame {
  width: 100%;
  height: 80vh;
  border: 0;
  background: var(--ash-white);
  border-radius: 8px;
}

/* Footer */
.footer {
  position: relative;
  background: var(--ash-red);
  border-top: 1px solid var(--ash-red);
  padding: 40px 0;
  margin-top: 80px;
}

main {
  min-height: 20vh;
  position: relative;
  padding-top: 96px;
}

/* Help / Article pages */
.help-page {
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 96px 24px 48px; /* leave room for fixed header */
  position: relative;
  overflow-x: visible;
}

/* About page full width layout */
.about-page {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  padding-top: 96px;
}

.about-page .help-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* About Hero Section */
.about-hero {
  width: 100%;
  padding: 120px 5% 100px;
  margin-top: 32px;
  background-color: var(--ash-red);
  color: var(--ash-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-mantra-footer {
  width: 100%;
  padding: 48px 5% 64px;
  text-align: center;
  color: var(--ash-black);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 600;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-hero-image {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-hero-title {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 600; /* Semi-bold */
  font-size: clamp(32px, 6vw, 56px);
  color: var(--ash-white);
  margin: 0 0 40px 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-hero-subtitle {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 500; /* Medium */
  font-size: clamp(18px, 3vw, 24px);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.5;
}

/* About Content Sections */
.about-content-section {
  width: 100%;
  padding: 80px 5%;
  background-color: var(--ash-white);
}

.about-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.about-intro-text,
.about-mission-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--ash-grey2);
  margin: 0;
  line-height: 1.8;
  max-width: 800px;
}

/* About Text + Image Section */
.about-text-image-section {
  padding: 80px 5%;
}

.about-text-image-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text-image-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: left;
}

.about-text-image-title {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 600; /* Semi-bold */
  font-size: clamp(28px, 4vw, 36px);
  color: var(--ash-black);
  margin: 0 0 24px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about-text-image-visual {
  width: 100%;
  max-width: 300px;
  justify-self: center;
}

.about-text-image-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .about-text-image-wrapper {
    gap: 32px;
  }

  .about-text-image-visual {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  .about-text-image-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    justify-items: center;
  }

  .about-text-image-visual {
    max-width: 92%;
    margin: 0 auto;
  }

  .about-text-image-section--reverse .about-text-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .about-text-image-section--reverse .about-text-image-content {
    order: 1;
  }

  .about-text-image-section--reverse .about-text-image-visual {
    order: 2;
  }
}

.about-section-title {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 600; /* Semi-bold */
  font-size: clamp(28px, 4vw, 36px);
  color: var(--ash-black);
  margin: 0 0 24px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about-section-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--ash-grey2);
  margin: 0 0 8px 0;
  line-height: 1.8;
  max-width: 800px;
}

.about-features-list {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--ash-grey2);
  margin: 0 0 8px 0;
  padding-left: 24px;
  line-height: 1.8;
  max-width: 800px;
  list-style-type: disc;
}

.about-features-list li {
  margin-bottom: 2px;
}

.about-simplify-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--ash-grey2);
  margin: 0;
  line-height: 1.8;
  max-width: 800px;
}

/* About Image Banner */
.about-image-banner {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.about-image-banner img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* About "For Who" Grid - Malt style */
.about-for-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.about-for-who-card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-for-who-card-number {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 600; /* Semi-bold */
  font-size: 14px;
  color: var(--ash-grey2);
  line-height: 1;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-for-who-card-title {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 500; /* Medium */
  font-size: clamp(20px, 3vw, 24px);
  color: var(--ash-black);
  margin: 0 0 12px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about-for-who-card-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(15px, 2.5vw, 17px);
  color: var(--ash-grey2);
  margin: 0;
  line-height: 1.6;
  max-width: 100%;
}

.help-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ash-grey2);
  font-size: 12px;
  margin-bottom: 16px;
}

.help-breadcrumb a {
  color: var(--ash-grey2);
  text-decoration: none;
}

.help-article {
  background: var(--ash-white);
  border: 1px solid var(--ash-grey3);
  border-radius: 12px;
  padding: 24px;
  line-height: 1.7;
}

/* Variant without box styling */
.help-article--plain {
  background: transparent;
  border: none;
  padding: 0;
}

.help-article-header h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 8px;
  font-weight: 600; /* semi-bold */
}

/* Specific styling for about page title */
.help-article--plain .help-article-header {
  margin-top: 70px;
  text-align: center;
}

.help-article--plain .help-article-header h1 {
  text-align: center;
}

/* About page subtitle styling */
.help-article--plain .about-subtitle {
  margin-top: 48px;
  text-align: left;
}

.help-article--plain .about-subtitle-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 500; /* Medium */
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--ash-black);
  margin: 0;
  line-height: 1.6;
}

/* About page description styling */
.help-article--plain .about-description {
  margin-top: 24px;
  text-align: left;
}

.help-article--plain .about-description-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ash-black);
  margin: 0;
  line-height: 1.7;
}

/* About page mission styling */
.help-article--plain .about-mission {
  margin-top: 32px;
  text-align: left;
}

.help-article--plain .about-mission-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ash-black);
  margin: 0;
  line-height: 1.7;
}

/* About page "what we do" styling */
.help-article--plain .about-what-we-do {
  margin-top: 32px;
  text-align: left;
}

.help-article--plain .about-what-we-do-title {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 600; /* Semi-bold */
  font-size: clamp(18px, 3vw, 22px);
  color: var(--ash-black);
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.help-article--plain .about-what-we-do-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ash-black);
  margin: 0 0 12px 0;
  line-height: 1.7;
}

.help-article--plain .about-what-we-do-list {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ash-black);
  margin: 0 0 0 20px;
  padding: 0;
  line-height: 1.7;
  list-style-type: disc;
}

.help-article--plain .about-what-we-do-list li {
  margin-bottom: 8px;
}

/* About page "simplify" styling */
.help-article--plain .about-simplify {
  margin-top: 32px;
  text-align: left;
}

.help-article--plain .about-simplify-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ash-black);
  margin: 0;
  line-height: 1.7;
}

/* About page "for who" styling */
.help-article--plain .about-for-who {
  margin-top: 32px;
  text-align: left;
}

.help-article--plain .about-for-who-title {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 600; /* Semi-bold */
  font-size: clamp(18px, 3vw, 22px);
  color: var(--ash-black);
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.help-article--plain .about-for-who-item {
  margin-bottom: 20px;
}

.help-article--plain .about-for-who-item-title {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ash-black);
  margin: 0 0 8px 0;
  line-height: 1.7;
}

.help-article--plain .about-for-who-item-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ash-black);
  margin: 0;
  line-height: 1.7;
}

/* About visual section with image and bubbles */
.about-visual-section {
  width: 100%;
  max-width: 1200px;
  margin: 64px auto 0;
  padding: 80px 5%;
  background-color: var(--ash-white);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
}

.about-visual-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-visual-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  display: block;
}

.about-visual-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 20px;
  width: 100%;
}

.about-bubble {
  background-color: #f5f5f5;
  border-radius: 24px;
  padding: 32px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  cursor: pointer;
}

.about-bubble:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background-color: #eeeeee;
}

@media (max-width: 1100px) {
  .about-visual-section {
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 32px;
  }

  .about-visual-content {
    padding-top: 0;
  }

  .about-visual-image img {
    max-width: 460px;
  }
}

@media (max-width: 768px) {
  .about-visual-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px;
  }

  .about-visual-image {
    order: 1;
  }

  .about-visual-content {
    order: 2;
  }

  .about-bubble {
    text-align: left;
  }
}

.about-bubble-title {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 500; /* Matches card titles */
  font-size: clamp(20px, 3vw, 24px);
  color: var(--ash-black);
  margin: 0 0 12px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about-bubble-text {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ash-black);
  margin: 0;
  line-height: 1.7;
}

.about-bubble-cta {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;
  font-weight: 400; /* Regular */
  font-size: clamp(14px, 2vw, 16px);
  color: var(--ash-black);
  margin: 0;
  line-height: 1.7;
  text-align: left;
}

.help-article-subtitle {
  color: var(--ash-grey2);
  font-size: 13px;
  margin-bottom: 8px;
}

.help-article-section {
  margin-top: 24px;
}

.help-article-section h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* Airbnb-like readable article typography */
.help-article h1,
.help-article h2,
.help-article h3 {
  letter-spacing: -0.01em;
}

.help-article h2 {
  font-size: 22px;
  text-decoration: none;
  font-weight: 500;
}
.help-article h3 {
  font-size: 18px;
  text-decoration: none;
  font-weight: 500;
}

/* Numbered headings detected from DOCX content like "3.2 Titre" */
.help-article .doc-section-title {
  font-weight: 500;
  text-decoration: none;
  margin-top: 16px;
  margin-bottom: 8px;
}

.help-article p {
  font-size: 15px;
  color: var(--ash-black);
  margin: 0 0 12px 0;
}

.help-article a {
  color: var(--ash-black);
  text-decoration: none;
}

/* Neutralize bold from imported content */
.help-article strong {
  font-weight: 400;
}

.help-article ul,
.help-article ol {
  padding-left: 20px;
  margin: 8px 0 12px 0;
}

.help-article li {
  margin: 6px 0;
}

.help-article img,
.help-article video,
.help-article iframe {
  max-width: 100%;
  height: auto;
  border: 0;
}

/* Tables inside article */
.help-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  display: block;
  overflow-x: auto;
}

.help-article th,
.help-article td {
  border: 1px solid var(--ash-grey3);
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
}

.help-article blockquote {
  margin: 12px 0;
  padding: 10px 12px;
  background: var(--ash-grey1);
  border-left: 3px solid var(--ash-grey3);
}

.help-article-footer {
  margin-top: 24px;
}

.help-back-link {
  font-size: 14px;
  color: var(--ash-black);
  text-decoration: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.footer-brand {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 200px;
}

.footer-brand-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ash-red);
  border-radius: 6px;
  color: var(--ash-white);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background: var(--ash-red);
  color: var(--ash-white);
  transform: translateY(-1px);
  opacity: 0.9;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-copyright {
  color: var(--ash-white);
  font-size: 12px;
  margin-top: 8px;
  padding-left: 10px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--ash-white);
}

.footer-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 60px;
  flex: 1;
}

.footer-section {
  min-width: 0; /* allow grid children to shrink and wrap instead of clipping */
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ash-white);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  /* allow long items to wrap instead of clipping */
  word-break: normal;
  overflow-wrap: anywhere;
}

.footer-link {
  color: var(--ash-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: text-decoration-color 0.2s ease;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.footer-link:hover {
  color: var(--ash-white);
  text-decoration: underline;
  text-decoration-color: var(--ash-white);
}

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

.footer-newsletter-text {
  color: var(--ash-white);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

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

.footer-newsletter-input {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ash-white);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  transition: all 0.2s ease;
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter-input:focus {
  outline: none;
  border-color: var(--ash-white);
  background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter-button {
  padding: 10px 16px;
  background: var(--ash-red);
  color: var(--ash-white);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-newsletter-button:hover {
  background: var(--ash-red);
  opacity: 0.9;
  transform: translateY(-1px);
}

.footer-newsletter-button:active {
  transform: translateY(0);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-text {
  color: var(--ash-white);
  font-size: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-link {
  color: var(--ash-white);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-bottom-link:hover {
  color: var(--ash-white);
}

/* Help Form Styles */
.help-form {
  margin-top: 32px;
  max-width: 600px;
}

.form-group {
  margin-bottom: 24px;
}

#captcha-group {
  min-height: 180px; /* Reserve space for captcha to prevent layout shifts */
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ash-black);
  margin-bottom: 8px;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ash-black);
  background: var(--ash-white);
  border: 1px solid var(--ash-grey3);
  border-radius: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ash-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.captcha-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 120px; /* Reserve space to prevent jumping */
}

.captcha-image-container {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  height: 58px;
  min-height: 58px;
  flex-shrink: 0;
}

.captcha-image {
  border: 1px solid var(--ash-grey3);
  border-radius: 6px;
  padding: 4px;
  background: var(--ash-white);
  display: block;
  height: 50px;
  width: 130px;
  min-height: 50px;
  min-width: 130px;
  object-fit: contain;
  flex-shrink: 0;
  box-sizing: border-box;
}

.captcha-input {
  width: 100%;
  max-width: 300px;
  height: 48px;
  min-height: 48px;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  box-sizing: border-box;
}

.captcha-refresh-btn {
  background: var(--ash-white);
  border: 1px solid var(--ash-grey3);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ash-red);
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.captcha-refresh-btn:hover {
  background: var(--ash-grey1);
  border-color: var(--ash-red);
  transform: rotate(90deg);
}

.captcha-refresh-btn:active {
  transform: rotate(90deg) scale(0.95);
}

.captcha-refresh-btn svg {
  width: 16px;
  height: 16px;
}

.form-error {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid var(--ash-red);
  border-radius: 6px;
  color: var(--ash-red);
  font-size: 13px;
}

.form-success {
  padding: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #16a34a;
  font-size: 14px;
  text-align: center;
}

.form-submit {
  background: var(--ash-red);
  color: var(--ash-white);
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  width: 100%;
  max-width: 300px;
}

.form-submit:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

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

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: relative;
  background: var(--ash-white);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ash-black);
  transition: all 0.2s ease;
  z-index: 10;
  border-radius: 6px;
}

.modal-close:hover {
  background: var(--ash-grey1);
  color: var(--ash-red);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-content {
  padding: 40px;
}

.modal-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--ash-black);
  margin-bottom: 24px;
  margin-top: 0;
}

.modal-text {
  font-size: 16px;
  color: var(--ash-grey2);
  line-height: 1.6;
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.modal-mailto-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ash-red);
  color: var(--ash-white);
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
  cursor: pointer;
}

.modal-mailto-button:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.modal-mailto-button:active {
  transform: translateY(0);
}

.modal-mailto-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.modal-email-display {
  font-size: 18px;
  font-weight: 600;
  color: var(--ash-black);
  margin: 0;
  padding: 12px 24px;
  background: var(--ash-grey1);
  border-radius: 8px;
  font-family: monospace;
}

/* Responsive form */
@media (max-width: 640px) {
  .help-form {
    max-width: 100%;
  }

  /* Footer: switch to single column sooner on narrow macOS windows */
  .footer-sections {
    grid-template-columns: 1fr;
  }

  /* About visual section: stack on mobile */
  .about-visual-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px;
  }

  /* About page responsive */
  .about-hero {
    padding: 80px 5% 60px;
  }

  .about-content-section {
    padding: 60px 5%;
  }

  .about-for-who-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-hero-image {
    border-radius: 16px;
  }

  .about-image-banner img {
    height: 300px;
  }

  .captcha-input {
    width: 100%;
    max-width: 100%;
  }

  .captcha-image-container {
    width: 100%;
    justify-content: center;
  }

  .form-submit {
    width: 100%;
    max-width: 100%;
  }

  .modal-content {
    padding: 24px;
  }

  .modal-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .modal-container {
    max-height: 95vh;
    margin: 10px;
  }

  .modal-mailto-button {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }

  .modal-email-display {
    font-size: 16px;
    padding: 10px 16px;
    word-break: break-all;
  }
}

/* -------------- ADDITIONAL RESPONSIVE ADAPTATIONS -------------- */

/* Switch footer to 2 columns sooner to avoid cramped wrapping */
@media (max-width: 1024px) {
  .footer-content {
    padding: 0 24px;
    gap: 24px;
  }
  .footer-sections {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }
}

/* Large tablets / small laptops */
@media (max-width: 1200px) {
  .page {
    padding: 72px 48px 36px;
    column-gap: 28px;
  }
  .page-content {
    max-width: 560px;
  }
  .phone-mockup {
    width: 260px;
    height: 520px;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .about-visual-section {
    padding: 64px 5%;
    gap: 48px;
  }

  .about-for-who-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-hero-image {
    border-radius: 16px;
  }

  .about-image-banner img {
    height: 300px;
  }

  .about-text-image-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text-image-visual {
    border-radius: 16px;
  }

  .header {
    padding: 8px 12px;
  }
  .page {
    grid-template-columns: 1fr;
    row-gap: 28px;
    column-gap: 0;
    padding: 90px 32px 36px;
    text-align: center;
  }
  .page-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
  }
  .title {
    font-size: clamp(28px, 5vw, 44px);
  }
  .subtitle {
    font-size: clamp(16px, 2.4vw, 20px);
  }
  .app-buttons {
    justify-content: center;
    gap: 12px;
  }
  .phone-mockup {
    margin: 0 auto;
  }
  .header-menu {
    right: 8px;
  }
  .language-menu {
    right: 8px;
  }
}

/* Large phones / small tablets */
@media (max-width: 768px) {
  .header {
    padding: 8px 10px;
  }
  .logo img {
    width: 40px;
    height: 40px;
  }
  .page {
    padding: 90px 20px 28px;
  }
  .title {
    letter-spacing: 0.04em;
  }
  /* Force line break before brand on small widths, but keep phrase together */
  .title .title-brand {
    display: block;
    white-space: nowrap;
  }
  .subtitle {
    line-height: 1.5;
  }
  /* Move app buttons above the phone on small screens */
  .app-buttons {
    display: none;
  }
  .app-buttons--below {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    order: 2;
  }
  .page-visual {
    order: 3;
  }
  .page-content {
    order: 1;
  }
  /* Footer: improve long headings wrapping and sizing */
  .footer-section h4 {
    font-size: 12px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
  }
  .footer-links {
    gap: 6px;
  }
  .footer-link {
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .footer-content {
    gap: 16px;
  }
  .footer-sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .header {
    padding: 8px 8px;
  }
  .logo img {
    width: 36px;
    height: 36px;
  }
  .page {
    padding: 100px 16px 24px;
  }
  .app-button-image {
    max-height: 40px;
  }
  .footer-sections {
    grid-template-columns: 1fr;
  }
  /* Footer: further tighten on very small screens */
  .footer-section h4 {
    font-size: 11px;
  }
  .footer-links .footer-link {
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
  .help-page {
    padding: 70px 16px 24px;
  }
  .help-article {
    gap: 12px;
  }
  .help-article-section {
    padding: 12px 0;
  }
}

/* Very narrow windows (e.g., macOS minimum) - optimize for French */
@media (max-width: 420px) {
  .footer-link {
    font-size: 11px;
    line-height: 1.6;
  }
  .footer-section h4 {
    font-size: 10px;
  }
}

/* Ultra small phones */
@media (max-width: 360px) {
  .logo img {
    width: 32px;
    height: 32px;
  }
  .app-button-image {
    max-height: 36px;
  }
}

#modify-password-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

#error-message, .error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  color: red;
}

