/* Meet your AI partner. Page-only styles. Black, white, orange. */

:root {
  --ap-black: #000000;
  --ap-panel: #111111;
  --ap-foot: #0A0A0A;
  --ap-orange: #F7931A;
  --ap-white: #FFFFFF;
  --ap-line: rgba(255, 255, 255, 0.08);
  --ap-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html,
body.ap-page {
  margin: 0;
  background: var(--ap-black);
  color: var(--ap-white);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

body.ap-page a {
  color: var(--ap-white);
}

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

/* Slim header: logo + wordmark left, Sign in right. Slogan stays in the footer. */
body.ap-page header.top.ap-header {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 16px 24px;
  min-height: 72px;
  background: var(--ap-black);
}

body.ap-page header.top.ap-header > .site-lockup {
  order: 0;
  flex: 0 1 auto;
  width: auto;
  margin: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 0;
}

body.ap-page header.top.ap-header .logo-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ap-white);
}

body.ap-page header.top.ap-header .logo,
body.ap-page header.top.ap-header .site-lockup .logo {
  width: 48px;
  height: auto;
  object-fit: contain;
}

body.ap-page .ap-wordmark {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ap-white);
  white-space: nowrap;
}

body.ap-page header.top.ap-header .nav-links {
  width: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

body.ap-page header.top.ap-header .nav-links a,
body.ap-page .nav-signin {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--ap-white);
  text-decoration: none;
  font-weight: 600;
}

body.ap-page header.top.ap-header .nav-signin:hover,
body.ap-page header.top.ap-header .nav-signin:focus-visible {
  color: var(--ap-orange);
}

.ap-main {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.ap-section {
  padding: 120px 0;
}

.ap-section + .ap-section {
  padding-top: 0;
}

.ap-copy {
  max-width: 640px;
}

h1 {
  margin: 0 0 16px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ap-white);
}

h1 .ap-accent {
  color: var(--ap-orange);
}

h2 {
  margin: 0 0 24px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ap-white);
}

.ap-sub {
  margin: 0 0 32px;
  max-width: 640px;
}

.ap-fine {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--ap-white);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--ap-orange);
  color: var(--ap-black);
  font: 700 18px Montserrat, Helvetica, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.06);
  color: var(--ap-black);
}

.ap-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ap-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ap-text-link:hover,
.ap-text-link:focus-visible {
  color: var(--ap-orange);
}

.ap-panel {
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: 24px;
  box-shadow: var(--ap-shadow);
}

/* Hero */
.ap-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 48px;
}

.ap-hero-art {
  order: 2;
}

.ap-hero-copy {
  order: 1;
}

.ap-hero-visual {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.ap-float {
  animation: ap-float 6s ease-in-out infinite;
}

@keyframes ap-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Sample card */
.ap-feel-head {
  text-align: center;
  margin: 0 auto 40px;
}

.ap-feel-stage {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  max-width: 920px;
}

.ap-phone {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
  aspect-ratio: 420 / 860;
}

.ap-phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.ap-phone-screen {
  position: absolute;
  top: 7%;
  right: 8%;
  bottom: 7%;
  left: 8%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 12px 16px;
  overflow: hidden;
}

.ap-sample-card {
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: 24px;
  box-shadow: var(--ap-shadow);
  padding: 20px 16px;
}

.ap-sample-q {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.ap-chips {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.ap-chip {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid #333333;
  border-radius: 24px;
  background: #1A1A1A;
  color: var(--ap-white);
  font: 600 16px Montserrat, Helvetica, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.ap-chip.is-on,
.ap-chip[aria-pressed="true"] {
  border-color: var(--ap-orange);
}

.ap-say-more {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ap-white);
  font: 600 16px Montserrat, Helvetica, Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ap-say-more:hover,
.ap-say-more:focus-visible {
  color: var(--ap-orange);
}

.ap-say-note {
  margin: 8px 0 0;
  font-size: 16px;
}

.ap-progress {
  height: 8px;
  border-radius: 8px;
  background: #262626;
  overflow: hidden;
}

.ap-progress-fill {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--ap-orange);
  border-radius: 8px;
}

.ap-reply {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--ap-white);
  color: var(--ap-black);
  border-radius: 24px 24px 24px 8px;
  box-shadow: var(--ap-shadow);
}

.ap-mark {
  display: block;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ap-orange);
  border-radius: 50%;
  overflow: hidden;
  background: var(--ap-black);
}

.ap-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.ap-reply p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.ap-feel-note,
.ap-feel-cta {
  text-align: center;
}

.ap-feel-cta {
  margin-top: 24px;
}

/* Steps */
.ap-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.ap-step {
  padding: 24px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: 24px;
  box-shadow: var(--ap-shadow);
}

.ap-step img {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 0 16px;
}

.ap-step h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.ap-step p {
  margin: 0;
}

.ap-steps-go {
  margin: 8px 0 0;
}

/* Partner */
.ap-does {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.ap-does-art {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.ap-checks {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.ap-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  min-height: 32px;
}

.ap-checks img {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin-top: 2px;
}

.ap-checks p {
  margin: 0;
}

/* Quote */
.ap-voice .ap-panel {
  position: relative;
  padding: 40px 40px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.ap-quote-mark {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 0 16px;
}

.ap-quote {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.ap-credit {
  margin: 0 0 16px;
  font-size: 16px;
  color: #D0D0D0;
}

/* Final */
.ap-final {
  padding-bottom: 120px;
}

.ap-final-panel {
  position: relative;
  overflow: hidden;
  padding: 72px 40px;
  text-align: center;
  background-color: var(--ap-panel);
  background-image: url("/brand/ai-partner/ap8-final-bg.webp");
  background-size: cover;
  background-position: center;
}

.ap-final-panel h2 {
  margin: 0 auto 24px;
}

.ap-final-panel .ap-fine {
  margin-top: 16px;
}

.ap-final-panel .ap-fine a {
  color: var(--ap-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
body.ap-page footer.ap-footer {
  padding: 40px 24px 48px;
  text-align: center;
  color: #C8C8C8;
  font-size: 16px;
  background: var(--ap-foot);
}

body.ap-page footer.ap-footer .ap-slogan {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

body.ap-page footer.ap-footer .slogan-know { color: var(--ap-white); }
body.ap-page footer.ap-footer .slogan-bank { color: var(--ap-orange); }

body.ap-page footer.ap-footer .social-links {
  margin: 0 0 16px;
}

body.ap-page footer.ap-footer .social-link,
body.ap-page .social-link {
  color: var(--ap-white);
  border-color: rgba(255, 255, 255, 0.24);
}

body.ap-page footer.ap-footer .social-link:hover,
body.ap-page .social-link:hover {
  background: rgba(247, 147, 26, 0.12);
  color: var(--ap-orange);
}

body.ap-page footer.ap-footer a {
  color: var(--ap-white);
}

body.ap-page footer.ap-footer a:hover,
body.ap-page footer.ap-footer a:focus-visible {
  color: var(--ap-orange);
}

body.ap-page footer.ap-footer p {
  margin: 0 0 8px;
}

/* Lightbox */
.ap-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
}

.ap-lightbox[hidden] {
  display: none;
}

.ap-lightbox-panel {
  width: min(880px, 100%);
  padding: 16px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: 24px;
  box-shadow: var(--ap-shadow);
}

.ap-lightbox-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

.ap-lightbox-close {
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ap-white);
  font: 700 16px Montserrat, Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.ap-lightbox-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ap-black);
}

.ap-lightbox-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--ap-black);
}

/* Sticky start, phone only */
.ap-sticky {
  display: none;
}

.ap-rise {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.ap-rise.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 767px) {
  body.ap-page header.top.ap-header {
    padding: 12px 16px;
  }

  body.ap-page header.top.ap-header .logo,
  body.ap-page header.top.ap-header .site-lockup .logo {
    width: 40px;
  }

  .ap-wordmark {
    font-size: 14px;
  }

  .ap-main {
    padding: 0 16px;
  }

  .ap-section {
    padding: 72px 0;
  }

  .ap-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 16px;
  }

  .ap-hero-art { order: 1; }
  .ap-hero-copy { order: 2; }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }

  .ap-feel-stage,
  .ap-steps,
  .ap-does {
    grid-template-columns: 1fr;
  }

  .ap-phone {
    width: min(100%, 360px);
  }

  .ap-final-panel {
    padding: 48px 20px;
  }

  .ap-voice .ap-panel {
    padding: 28px 20px 24px;
  }

  .btn-primary {
    width: 100%;
  }

  .ap-sticky.is-on {
    display: flex;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--ap-black);
    border-top: 1px solid var(--ap-line);
  }

  .ap-sticky .btn-primary {
    width: 100%;
    min-height: 56px;
  }

  body.ap-page.has-sticky {
    padding-bottom: 80px;
  }
}

@media (min-width: 1024px) {
  body.ap-page header.top.ap-header .logo,
  body.ap-page header.top.ap-header .site-lockup .logo {
    width: 56px;
  }

  body.ap-page .ap-wordmark {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-float { animation: none; }
  .ap-rise,
  .ap-rise.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
