/* Newsletter-Subscribe LP — extends colors_and_type.css */

@import url('assets/colors_and_type.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body { background: #fff; color: var(--fg-2); }

/* ---------- Layout primitives ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ---------- Section header treatments ---------- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--ap-blue);
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform 120ms var(--ease-out), background 120ms var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ap-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--ap-purple-deep);
  color: #fff;
}
.btn-primary:disabled {
  background: var(--ap-purple-medium);
  cursor: not-allowed;
}
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* ---------- Card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 12px;
}

/* ---------- Subscribe form ---------- */
.subscribe-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 540px;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  flex: 1 1 280px;
  min-width: 0;
  padding: 18px 20px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--fg-1);
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  outline: none;
  transition: border-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.subscribe-form input[type="email"]:focus {
  border-color: var(--ap-blue);
  box-shadow: 0 0 0 3px rgba(81, 128, 250, 0.18);
}
.subscribe-form input[type="email"]::placeholder {
  color: var(--fg-4);
}
.subscribe-form-msg {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
}
.subscribe-form-msg.error { color: #c0392b; }
.subscribe-form-msg.success { color: var(--ap-blue); }

/* ---------- Phone mockup ---------- */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 18;
  border-radius: 44px;
  background: #0a0d12;
  padding: 14px;
  box-shadow: 0 30px 70px rgba(17, 1, 150, 0.22), 0 8px 24px rgba(17, 1, 150, 0.10);
}
.phone-mockup-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--ap-paper);
  display: flex;
  flex-direction: column;
}
.phone-mockup-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0a0d12;
  border-radius: 999px;
  z-index: 5;
}
.phone-mockup-toolbar {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 4;
  height: 36px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--border-default);
}
.phone-mockup-toolbar-back {
  font-size: 22px;
  color: var(--ap-blue);
  font-weight: 300;
  line-height: 1;
}
.phone-mockup-toolbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.phone-mockup-toolbar-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--fg-3);
  opacity: 0.55;
}
.phone-mockup-sender {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 12px 20px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-default);
  background: #fff;
}
.phone-mockup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-page);
}
.phone-mockup-sender-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.phone-mockup-sender-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-1);
  line-height: 1.2;
}
.phone-mockup-sender-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--fg-3);
  line-height: 1.2;
}
.phone-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  padding: 168px 22px 24px;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms var(--ease-out);
}
.phone-frame.active { opacity: 1; }
.phone-frame-brand {
  height: 56px;
  width: 100%;
  display: flex;
  align-items: center;
}
.phone-frame-brand img {
  display: block;
  object-fit: contain;
}
.phone-frame-subject {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.22;
  color: var(--fg-1);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.phone-frame-preview {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.45;
  font-style: italic;
}
.phone-frame-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
}
.phone-frame-body-line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(30,35,39,0.10) 0%, rgba(30,35,39,0.06) 100%);
}

/* Staggered build-up: each element appears sequentially when frame becomes active */
.phone-frame > .phone-frame-brand,
.phone-frame > .phone-frame-subject,
.phone-frame > .phone-frame-preview,
.phone-frame > .phone-frame-body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.phone-frame.active > .phone-frame-brand    { opacity: 1; transform: translateY(0); transition-delay: 120ms; }
.phone-frame.active > .phone-frame-subject  { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
.phone-frame.active > .phone-frame-preview  { opacity: 1; transform: translateY(0); transition-delay: 360ms; }
.phone-frame.active > .phone-frame-body     { opacity: 1; transform: translateY(0); transition-delay: 480ms; }

.phone-frame-body-line {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.phone-frame.active .phone-frame-body-line:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 580ms; }
.phone-frame.active .phone-frame-body-line:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 680ms; }
.phone-frame.active .phone-frame-body-line:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 780ms; }
.phone-frame.active .phone-frame-body-line:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 880ms; }


/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 64px;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.hero-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-header-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ap-gradient);
}
.hero-header-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.hero-header-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-1);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hero-header-byline {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.3;
  letter-spacing: 0.005em;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero-title {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ap-blue);
}
.hero-subheadline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--fg-2);
  line-height: 1.35;
  margin-top: 14px;
  max-width: 560px;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-bullets li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-2);
}
.hero-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ap-blue);
}
.hero-bullets li strong {
  color: var(--fg-1);
  font-weight: 700;
}
.hero-cta-wrap { margin-top: 28px; }
.hero-microcopy {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.55;
}
.hero-trust-bar {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.hero-trust-bar li {
  position: relative;
  padding-left: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}
.hero-trust-bar li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 14px;
  height: 14px;
  background: var(--ap-blue);
  border-radius: 999px;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.bottom-cta-trust {
  justify-content: center;
  margin-top: 20px;
}
.hero-social-proof {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
}
.hero-social-proof-tagline {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 14px;
}
.hero-social-proof-logos {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.9vw, 12px);
  flex-wrap: wrap;
}
.hero-social-proof-tile {
  width: 76px;
  height: 40px;
  padding: 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.85;
  overflow: hidden;
  transition: filter 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.hero-social-proof-tile:hover {
  filter: grayscale(0);
  opacity: 1;
}
.hero-social-proof-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- Bullets block ---------- */
.bullets-block { padding: 96px 0; background: var(--bg-page); }
.bullets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.bullet-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 32px 28px;
}
.bullet-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ap-blue);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.bullet-card-headline {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.bullet-card-sub {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.55;
  margin-top: 10px;
}

/* ---------- Social proof ---------- */
.social-proof { padding: 80px 0; background: #fff; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.social-proof-tagline {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.social-proof-logos {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
  flex-wrap: wrap;
}
.social-proof-logos img {
  height: 36px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: filter 200ms var(--ease-out);
}
.social-proof-logos img:hover {
  filter: grayscale(0) opacity(1);
}

/* ---------- About block ---------- */
.about-block { padding: 96px 0; background: #fff; }
.about-block-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-block-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 1, 150, 0.18);
}
.about-block-img img {
  display: block;
  width: 100%;
  height: auto;
}
.about-block-content { display: flex; flex-direction: column; }
.about-block-title {
  font-size: clamp(34px, 4vw, 48px);
  margin-top: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.about-block-role {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.45;
  color: var(--fg-2);
  margin: 14px 0 0;
  max-width: 520px;
  font-weight: 500;
}
.about-block-body {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 20px 0 28px;
  max-width: 520px;
}
.about-block-press {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border-default);
  max-width: 560px;
}
.about-block-press-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.about-block-press-logos {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
}
.about-block-press-tile {
  width: 110px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.about-block-press-tile:hover {
  filter: grayscale(0);
  opacity: 1;
}
.about-block-press-tile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- Testimonials ---------- */
.testimonials { padding: 112px 0; background: var(--bg-page); }
.testimonials-eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 0;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-1);
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--ap-blue);
  flex: 1;
}
.testimonial-quote .hook { font-weight: 700; font-style: normal; color: var(--fg-1); display: block; margin-bottom: 8px; font-family: var(--font-serif); }
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border-default);
  background: var(--bg-page);
}
.testimonial-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ap-blue);
  letterSpacing: 0.02em;
  background: linear-gradient(135deg, rgba(81,128,250,0.10) 0%, rgba(232,126,244,0.10) 100%);
}
.testimonial-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-1);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.testimonial-role {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-3);
  margin-top: 2px;
}

/* ---------- Bottom CTA ---------- */
.bottom-cta {
  padding: 96px 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg-page) 100%);
  text-align: center;
}
.bottom-cta-headline {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  margin: 0 auto;
  text-wrap: balance;
}
.bottom-cta-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--fg-2);
  margin-top: 16px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.bottom-cta-form-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--border-default); padding: 32px 0; }
.site-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg-3);
  text-decoration: none;
}
.site-footer-links a:hover { color: var(--fg-1); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .phone-mockup { max-width: 280px; }
  .hero-bullets li { font-size: 15px; }
  .about-block-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .testimonials { padding: 80px 0; }
  .bottom-cta { padding: 72px 0; }
  .about-block { padding: 64px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input[type="email"] { flex: 0 0 auto; width: 100%; }
  .subscribe-form .btn { width: 100%; }
}
