/* AirTre App Usage Flow Guide (v9 visual language: navy #1b2d45 + crisp step cards & real app screens). */
.app-guide-v9 {
  background: #ffffff;
  color: #141f2e;
}

.app-guide-main {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.ag-wrap {
  width: min(1080px, calc(100% - clamp(32px, 6vw, 80px)));
  margin: 0 auto;
}

/* Hero */
.ag-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4.5vw, 52px);
  background: linear-gradient(180deg, #f3f6fb 0%, #ffffff 100%);
  border-bottom: 1px solid #dde4ed;
}

.ag-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #1b2d45;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ag-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.8vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: #141f2e;
}

.ag-hero-lead {
  margin: 0 0 26px;
  max-width: 780px;
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.8;
  color: #465364;
}

/* Flow Roadmap Strip */
.ag-flow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.ag-flow-strip li {
  position: relative;
}

.ag-flow-strip a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 12px 12px 13px;
  border-radius: 14px;
  border: 1px solid #cfd9e6;
  background: #ffffff;
  color: #141f2e;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(20, 34, 56, 0.04);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.ag-flow-strip a:hover {
  border-color: #1b2d45;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20, 34, 56, 0.08);
}

.ag-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  border-radius: 999px;
  background: #eaf1f9;
  color: #1b2d45;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ag-flow-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.ag-flow-sub {
  font-size: 11.5px;
  color: #5b697a;
  line-height: 1.4;
}

.ag-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* Section base */
.ag-section {
  padding: clamp(40px, 5.5vw, 68px) 0;
  border-bottom: 1px solid #e7edf4;
}

.ag-section--tint {
  background: #f8fafd;
}

.ag-section--last {
  border-bottom: none;
}

.ag-step-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0284c7;
  text-transform: uppercase;
}

.ag-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #1b2d45;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ag-section h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #141f2e;
}

.ag-section-lead {
  margin: 0 0 28px;
  max-width: 780px;
  font-size: 15px;
  line-height: 1.8;
  color: #465364;
}

/* 2-column step layout */
.ag-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.ag-split--reverse {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.ag-split--wide-media {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

/* Numbered checklist */
.ag-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ag-checklist li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #dde5ef;
  background: #ffffff;
}

.ag-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1b2d45;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.ag-checklist h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
  line-height: 1.45;
  color: #141f2e;
}

.ag-checklist p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.7;
  color: #4a5768;
}

/* Tab Map Grid */
.ag-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ag-tab-card {
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid #dde5ef;
  background: #ffffff;
}

.ag-tab-card--accent {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, #f0f9ff 0%, #f8fafd 100%);
  border-color: #bae6fd;
}

.ag-tab-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #141f2e;
}

.ag-tab-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eaf1f9;
  color: #1b2d45;
}

.ag-tab-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #4a5768;
}

/* Sleek uniform smartphone device frame for all app screenshots */
.ag-screen-figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ag-phone-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 244px;
  max-width: 100%;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 32px;
  background: linear-gradient(160deg, #2b3648 0%, #0f172a 100%);
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.16),
    0 4px 10px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ag-phone-frame:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 42px rgba(15, 23, 42, 0.2),
    0 6px 14px rgba(15, 23, 42, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ag-phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 390 / 844;
  border-radius: 26px;
  overflow: hidden;
  background: var(--phone-bot-bg, #ffffff);
}

.ag-phone-screen::before {
  content: "";
  display: block;
  flex: 0 0 18px;
  width: 100%;
  background: #171717;
}

.ag-phone-screen::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 9px;
  border-radius: 999px;
  background: #000000;
  z-index: 2;
  pointer-events: none;
}

.ag-phone-appbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 100%;
  padding: 0 28px;
  box-sizing: border-box;
  background: #171717;
  color: #ffffff;
}

.ag-phone-appbar-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
  display: block;
}

.ag-phone-appbar-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-phone-body {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: var(--phone-bot-bg, #ffffff);
}

.ag-phone-body img {
  display: block;
  width: 100%;
  height: auto;
}

.ag-phone-body--center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  box-sizing: border-box;
}

.ag-phone-body--dark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

/* Landscape diagram frame (for non-phone flow charts) */
.ag-diagram-frame {
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d3dde9;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 34, 56, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ag-diagram-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 34, 56, 0.12);
}

.ag-diagram-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.ag-screen-figure figcaption {
  font-size: 12.5px;
  font-weight: 600;
  color: #536173;
  text-align: center;
  line-height: 1.5;
}

/* Multi-screen showcase cards */
.ag-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ag-cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ag-visual-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #dde5ef;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(20, 34, 56, 0.04);
}

.ag-visual-card-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: #1b2d45;
  font-size: 11.5px;
  font-weight: 700;
}

.ag-visual-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.4;
  color: #141f2e;
}

.ag-visual-card p {
  margin: 0 0 16px;
  font-size: 13.8px;
  line-height: 1.7;
  color: #4a5768;
}

.ag-visual-card .ag-screen-figure {
  margin-top: auto;
}

.ag-cards-3 .ag-phone-frame,
.ag-cards-2 .ag-phone-frame {
  width: 220px;
  padding: 6px;
  border-radius: 30px;
}

.ag-cards-3 .ag-phone-screen,
.ag-cards-2 .ag-phone-screen {
  border-radius: 24px;
}

.ag-cards-3 .ag-phone-screen::before,
.ag-cards-2 .ag-phone-screen::before {
  flex-basis: 16px;
}

.ag-cards-3 .ag-phone-screen::after,
.ag-cards-2 .ag-phone-screen::after {
  top: 4px;
  width: 40px;
  height: 8px;
}

/* Sub-note / tip box */
.ag-tip {
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  font-size: 13.8px;
  line-height: 1.72;
  color: #1e3a5f;
}

.ag-tip strong {
  color: #0c4a6e;
}

.ag-note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #627082;
}

/* Inline link button */
.ag-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #1b2d45;
  background: #ffffff;
  color: #1b2d45;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.ag-inline-link:hover {
  background: #1b2d45;
  color: #ffffff;
}

/* Gym / Biz extra strip */
.ag-extra-box {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid #d5e0ec;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: center;
}

.ag-extra-box h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #141f2e;
}

.ag-extra-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #4a5768;
}

.ag-mini-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  justify-items: center;
}

.ag-mini-pair .ag-phone-frame {
  width: 174px;
  padding: 5px;
  border-radius: 26px;
}

.ag-mini-pair .ag-phone-screen {
  border-radius: 21px;
}

.ag-mini-pair .ag-phone-screen::before {
  flex-basis: 14px;
}

.ag-mini-pair .ag-phone-screen::after {
  top: 4px;
  width: 32px;
  height: 7px;
}

.ag-mini-pair .ag-phone-appbar {
  flex-basis: 26px;
  padding: 0 22px;
}

.ag-mini-pair .ag-phone-appbar-icon {
  left: 7px;
  width: 14px;
  height: 14px;
}

.ag-mini-pair .ag-phone-appbar-title {
  font-size: 9px;
}

/* Scene summary cards */
.ag-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ag-scene-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #dde5ef;
  background: #ffffff;
}

.ag-scene-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #141f2e;
}

.ag-scene-card p {
  margin: 0 0 14px;
  font-size: 13.8px;
  line-height: 1.7;
  color: #4a5768;
}

.ag-scene-card a {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
}

.ag-scene-card a:hover {
  text-decoration: underline;
}

/* Bottom CTA */
.ag-cta-box {
  padding: clamp(28px, 4vw, 40px);
  border-radius: 20px;
  background: linear-gradient(135deg, #1b2d45 0%, #243d5e 100%);
  color: #ffffff;
}

.ag-cta-box h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(22px, 2.8vw, 30px);
}

.ag-cta-box p {
  margin: 0 0 22px;
  max-width: 680px;
  color: #d7e2ef;
  font-size: 15px;
  line-height: 1.75;
}

.ag-cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.ag-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease;
}

.ag-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Responsive */
@media (max-width: 960px) {
  .ag-flow-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ag-split,
  .ag-split--reverse,
  .ag-split--wide-media,
  .ag-extra-box {
    grid-template-columns: 1fr;
  }

  .ag-cards-3,
  .ag-scene-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ag-flow-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-tab-grid,
  .ag-cards-2 {
    grid-template-columns: 1fr;
  }

  .ag-phone-frame,
  .ag-cards-3 .ag-phone-frame,
  .ag-cards-2 .ag-phone-frame {
    width: 222px;
    padding: 6px;
    border-radius: 30px;
    margin: 0 auto;
  }

  .ag-phone-screen,
  .ag-cards-3 .ag-phone-screen,
  .ag-cards-2 .ag-phone-screen {
    border-radius: 24px;
  }

  .ag-phone-screen::before,
  .ag-cards-3 .ag-phone-screen::before,
  .ag-cards-2 .ag-phone-screen::before {
    flex-basis: 16px;
  }

  .ag-phone-screen::after,
  .ag-cards-3 .ag-phone-screen::after,
  .ag-cards-2 .ag-phone-screen::after {
    top: 4px;
    width: 40px;
    height: 8px;
  }

  .ag-mini-pair {
    gap: 10px;
  }

  .ag-mini-pair .ag-phone-frame {
    width: 148px;
    padding: 4px;
    border-radius: 22px;
  }

  .ag-mini-pair .ag-phone-screen {
    border-radius: 18px;
  }

  .ag-mini-pair .ag-phone-screen::before {
    flex-basis: 12px;
  }

  .ag-mini-pair .ag-phone-screen::after {
    top: 3px;
    width: 28px;
    height: 6px;
  }
}
