/*
 * Styles for the home page (src/custom/site/home.html) and the /p/websites and /p/apps
 * pages, which link this file too.
 * The body, navigation and footer styles are Arc CMS's own (public/assets/css/main.css);
 * the heart in the footer is in site.css.
 */

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 9999px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background-color: #0066cc;
    border-radius: 50%;
    position: relative;
}

.pulsing-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }

    70% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
    }

    100% {
        transform: translate(-50%, -50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
    }
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
  padding: max(80px, 10vh) 20px max(40px, 5vh);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
  line-height: 1.1;
}

.hero .subheadline {
  font-size: clamp(1.1rem, 2vw + 0.5rem, 1.75rem);
  font-weight: 400;
  color: #6e6e73;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  line-height: 1.4;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Sponsors Section */
.sponsors-section {
  background: #fafafa;
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid #e8e8ed;
}

.sponsors-section p {
  font-size: 0.85rem;
  color: #6e6e73;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.sponsors-section img {
  width: auto;
  height: auto;
  max-height: 40px;
  opacity: 0.6;
  transition: opacity 0.3s;
  filter: grayscale(100%);
}

.sponsors-section img:hover {
  opacity: 0.9;
  filter: grayscale(0%);
}

.cta-primary {
  background: #06c;
  color: #fff !important;
  padding: clamp(12px, 1.5vh, 14px) clamp(30px, 4vw, 40px);
  border-radius: 980px;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 500;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  margin: 0 10px;
}

.cta-outline {
  background: transparent !important;
  border: 2px solid #1d1d1f !important;
  color: #1d1d1f !important;
}

.cta-outline:hover {
  background: #1d1d1f !important;
  color: #fff !important;
}

.cta-outline-blue {
  background: transparent !important;
  border: 2px solid #0066cc !important;
  color: #0066cc !important;
}

.cta-outline-blue:hover {
  background: #0066cc !important;
  color: #fff !important;
}

.cta-primary:hover {
  background: #0077ed;
  transform: scale(1.02);
  color: #fff;
}

/* Section Styling */
section {
  padding: 100px 0;
}

.section-headline {
  text-wrap: balance;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.section-subheadline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #6e6e73;
  margin-bottom: 3rem;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 1rem;
  margin: 3rem auto 2rem;
  max-width: 1400px;
  overflow-x: auto;
  padding: 1rem 2rem;
  scroll-behavior: smooth;
}

.tab-btn {
  position: relative;
  background: #fff;
  border: 1px solid #d2d2d7;
  padding: 0.75rem 1.5rem;
  border-radius: 980px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
  overflow: hidden;
}

.tab-btn span {
  position: relative;
  z-index: 2;
}

.tab-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #06c;
  width: 0%;
  transition: width 0.1s linear;
}

.tab-btn:hover {
  background: #f5f5f7;
  border-color: #06c;
}

.tab-btn.active {
  background: #06c;
  color: #fff;
  border-color: #06c;
}

.tab-btn.active .tab-progress-bar {
  background: #fff;
  animation: progressBarAnimation 5s linear forwards;
}

@keyframes progressBarAnimation {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.tab-content-container {
  max-width: 1200px;
  margin: 3rem auto;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1d1d1f;
}

.tab-description {
  font-size: 1.2rem;
  color: #6e6e73;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.tab-image {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.tab-image img {
  width: 100%;
  height: auto;
  display: block;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.article-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6e6e73;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1d1d1f;
}

.article-excerpt {
  font-size: 0.95rem;
  color: #6e6e73;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-tag {
  background: #e8f4ff;
  color: #06c;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Ownership Section */
.ownership-section {
  background: #fff;
  text-align: center;
}

.ownership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 3rem auto;
}

@media (max-width: 1024px) {
  .ownership-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ownership-grid {
    grid-template-columns: 1fr;
  }
}

.ownership-item {
  padding: 2rem;
}

.ownership-item .icon {
  font-size: 3rem;
  color: #06c;
  margin-bottom: 1.5rem;
}

.ownership-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.ownership-item p {
  color: #6e6e73;
  font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
  background: #f5f5f7;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
}

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

.contact-card h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-card p {
  color: #6e6e73;
  margin-bottom: 1.5rem;
}

.contact-card ul {
  list-style: none;
  padding: 0 0 0 1em;
}

.contact-card li {
  padding: 0.5rem 0;
  color: #1d1d1f;
  font-size: 1rem;
}

.contact-card li::before {
  content: "•";
  color: #06c;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.contact-email {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: #06c;
  margin-top: 2rem;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #06c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-link:hover {
  background: #0077ed;
  transform: scale(1.1);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr !important;
  }
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background: #1d1d1f;
}

.faq-section .section-headline {
  color: #f5f5f7;
}

.faq-section .section-subheadline {
  color: #a1a1a6;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: #f5f5f7;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-icon {
  font-size: 0.75rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: #86868b;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* A closed answer is hidden from keyboards and screen readers too, not only clipped */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.3s ease-out, visibility 0s linear 0.3s;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: #a1a1a6;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.faq-answer a {
  color: #4da3ff;
  text-decoration: none;
}

.faq-answer a:hover {
  color: #7cbcff;
  text-decoration: underline;
}

.faq-item.active .faq-answer {
  max-height: 60rem;
  visibility: visible;
  transition: max-height 0.3s ease-out, visibility 0s;
}

@media (max-width: 768px) {

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* Sign up */
.signup-section {
  background: #f5f5f7;
  text-align: center;
}

.signup-card {
  max-width: 480px;
  margin: 2.5rem auto 0;
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.signup-field {
  margin-bottom: 1rem;
}

.signup-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  font-size: 1rem;
}

.signup-field input:focus {
  outline: none;
  border-color: #06c;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.signup-submit {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 10px;
  background: #06c;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.signup-submit:hover {
  background: #0077ed;
}

.signup-notes {
  margin-top: 1.25rem;
  color: #6e6e73;
  font-size: 0.9rem;
}

.signup-notes p {
  margin: 0.25rem 0;
}

.signup-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
  font-size: 1rem;
}

/* The empty first option reads as a placeholder, like the inputs' */
.signup-field select:has(option[value=""]:checked) {
  color: #6e6e73;
}

.signup-field select:focus {
  outline: none;
  border-color: #06c;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

/* Contact form in the Business Inquiries card */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #06c;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.contact-form .cta-primary {
  border: 0;
  cursor: pointer;
}

/* Hero buttons, docs link and trust row */
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-docs-link {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.hero-docs-link a {
  color: #06c;
  text-decoration: none;
}

.hero-docs-link a:hover {
  text-decoration: underline;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: #6e6e73;
  font-size: 0.9rem;
}

.hero-trust i {
  margin-right: 0.35rem;
  color: #06c;
}

/* The "Have Us Build It" card is where the hero and header buttons land */
#build {
  scroll-margin-top: 100px;
}

/* Three buttons in a row, or all stacked: never two and a lone one */
@media (max-width: 780px) {
  .hero-ctas .cta-primary {
    flex: 1 1 100%;
    max-width: 420px;
    text-align: center;
  }
}

/* Three ways to use Arc CMS */
.use-cases-section {
  text-align: center;
  background: #fbfbfd;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}

.use-case-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.use-case-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: rgba(0, 102, 204, 0.1);
  color: #06c;
  font-size: 1.3rem;
}

.use-case-label {
  margin: 0 0 0.35rem;
  color: #06c;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.use-case-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.use-case-card p:not(.use-case-label) {
  flex: 1;
  color: #6e6e73;
}

.use-case-link {
  margin-top: 1rem;
  color: #06c;
  font-weight: 600;
  text-decoration: none;
}

.use-case-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

/* For websites: pillars, feature tour and closing buttons */
.websites-section {
  background: #f5f5f7;
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.pillar-card {
  padding: 1.75rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(0, 102, 204, 0.1);
  color: #06c;
  font-size: 1.2rem;
}

.pillar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.pillar-card p {
  margin: 0;
  color: #6e6e73;
  font-size: 0.95rem;
}

.websites-section .screenshot-tabs {
  justify-content: safe center;
}

/* Screenshots outside the feature tour (which frames its own) */
.feature-row-shot .shot,
.discover-shot .shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* A short fact sheet where a screenshot would not say more */
.fact-card {
  width: 100%;
  padding: 2rem;
  border: 1px solid #e5e5ea;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfbfd 0%, #eef3fb 100%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  text-align: left;
}

/* In the tour it takes a screenshot's shape, so the section keeps its height as tabs rotate */
.tab-image .fact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 1316 / 895;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.tab-image .fact-card > * {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

.fact-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d1d1f;
}

.fact-card-head i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: rgba(0, 102, 204, 0.1);
  color: #06c;
  font-size: 1.1rem;
}

.fact-card ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-card li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
  font-size: 1rem;
}

.fact-card li i {
  flex: none;
  color: #34c759;
}

.fact-card li.soon {
  color: #6e6e73;
}

.fact-card li.soon i {
  color: #6e6e73;
}

/* A check and its text stay side by side; a language and its address may wrap */
.fact-card li:has(> i) {
  flex-wrap: nowrap;
}

.fact-card li > span:first-child:not(:only-child) {
  min-width: 4.5rem;
  font-weight: 600;
}

.fact-card li code {
  color: #06c;
  overflow-wrap: anywhere;
}

.fact-card-note {
  margin: 1rem 0 0;
  color: #6e6e73;
  font-size: 0.95rem;
}

.section-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .section-ctas .cta-primary {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* Found by Google and AI */
.discover-section {
  text-align: center;
}

.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
  text-align: left;
}

.discover-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.discover-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.discover-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 102, 204, 0.1);
  color: #06c;
}

.discover-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.discover-list p {
  margin: 0;
  color: #6e6e73;
  font-size: 0.95rem;
}

.discover-list code {
  color: #1d1d1f;
  font-size: 0.9em;
}

@media (max-width: 900px) {
  .discover-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* For apps: ready on day one, custom space, stack */
.apps-section {
  background: #f5f5f7;
  text-align: center;
}

.apps-subhead {
  margin: 3rem 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.ready-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.ready-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ready-card h3,
.ready-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.ready-card p {
  margin: 0;
  color: #6e6e73;
  font-size: 0.92rem;
}

.custom-space {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 4rem;
  text-align: left;
}

.custom-space-text h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.custom-space-text p {
  color: #6e6e73;
}

.custom-space-text code {
  color: #1d1d1f;
}

.code-figure {
  min-width: 0;
  margin: 0;
}

.code-sample {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  border-radius: 14px;
  background: #1d1d1f;
  color: #f5f5f7;
  /* Shrinks a little before it has to scroll */
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  line-height: 1.6;
}

.code-sample .c {
  color: #8e8e93;
}

.code-sample .k {
  color: #ff7ab2;
}

.code-sample .s {
  color: #fc6a5d;
}

.stack-strip {
  display: grid;
  grid-template-columns: repeat(6, auto);
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0 0.75rem;
  padding: 0;
  list-style: none;
}

.stack-strip li {
  padding: 0.35rem 0.9rem;
  border: 1px solid #d2d2d7;
  border-radius: 9999px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.stack-proof {
  margin: 0;
  color: #6e6e73;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .ready-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .custom-space {
    grid-template-columns: 1fr;
  }

  .stack-strip {
    grid-template-columns: repeat(3, auto);
  }
}

@media (max-width: 640px) {
  .ready-grid {
    grid-template-columns: 1fr;
  }
}

/* Everything built in: 12 cards, so every row is full at 4, 3, 2 or 1 columns */
.builtin-section {
  text-align: center;
}

.builtin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.builtin-card {
  padding: 1.5rem;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.builtin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.builtin-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.builtin-card p {
  margin: 0;
  color: #6e6e73;
  font-size: 0.92rem;
}

.builtin-card code {
  color: #1d1d1f;
}

.builtin-more {
  max-width: 820px;
  margin: 2.5rem auto 0;
  color: #6e6e73;
}

@media (max-width: 1100px) {
  .builtin-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .builtin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .builtin-grid {
    grid-template-columns: 1fr;
  }
}

/* How it compares */
.compare-section {
  background: #f5f5f7;
  text-align: center;
}

.compare-tabs {
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 2.5rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background: #e8e8ed;
}

.compare-tab {
  padding: 0.55rem 1.4rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #1d1d1f;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.compare-tab.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.compare-panel {
  margin-top: 2rem;
}

.compare-scroll {
  overflow-x: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #ececf0;
  vertical-align: top;
}

.compare-table thead th {
  font-size: 1rem;
  font-weight: 700;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* The row labels stay in view while the table scrolls sideways on a phone */
.compare-table th[scope="row"],
.compare-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 140px;
  background: #fff;
  font-weight: 600;
}

.compare-table .arc {
  background: #eef5ff;
  color: #1d1d1f;
}

.compare-table thead .arc {
  color: #06c;
}

.compare-table td {
  min-width: 140px;
  color: #424245;
}

.compare-note {
  max-width: 820px;
  margin: 1.5rem auto 0;
  color: #6e6e73;
  font-size: 0.92rem;
}

.compare-others {
  max-width: 820px;
  margin: 1.25rem auto 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #fff;
  color: #424245;
  font-size: 0.95rem;
}

.compare-footnote {
  margin: 1.5rem 0 0;
  color: #6e6e73;
  font-size: 0.8rem;
}

/* Own it: cost note and closing line */
.ownership-item a {
  color: #06c;
}

.ownership-cost {
  max-width: 720px;
  margin: 2.5rem auto 0;
  color: #6e6e73;
  font-size: 0.9rem;
}

.ownership-close {
  margin: 1rem 0 0;
  color: #1d1d1f;
  font-size: 1.4rem;
  font-weight: 600;
}

/* Get started: 4 cards, the last one filled */
.start-section {
  background: #f5f5f7;
  text-align: center;
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.start-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.start-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
}

.start-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.start-card p {
  flex: 1;
  margin: 0;
  color: #6e6e73;
  font-size: 0.95rem;
}

.start-link {
  margin-top: 1.25rem;
  color: #06c;
  font-size: 0.92rem;
  font-weight: 600;
}

.start-card-featured,
.start-card-featured:hover {
  background: #06c;
  color: #fff;
}

.start-card-featured p,
.start-card-featured .start-link {
  color: rgba(255, 255, 255, 0.9);
}

.start-card-featured .pillar-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.start-requirements {
  margin: 2rem 0 0;
  color: #6e6e73;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .start-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .start-grid {
    grid-template-columns: 1fr;
  }
}

/* Detail pages (/p/websites, /p/apps): alternating feature rows */
.deep-section {
  text-align: center;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 4rem;
  text-align: left;
}

.feature-row.reverse .feature-row-text {
  order: 2;
}

.feature-row-text h3 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.feature-row-text p:not(.use-case-label) {
  color: #6e6e73;
  font-size: 1.05rem;
}

.feature-row-text code {
  color: #1d1d1f;
}

/* Detail pages: numbered steps, four in a row, then two, then one */
.steps-section {
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.step-card {
  position: relative;
  padding: 1.75rem;
  border: 1px solid #e5e5ea;
  border-radius: 16px;
  background: #fff;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #06c;
  color: #fff;
  font-weight: 700;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  color: #6e6e73;
  font-size: 0.95rem;
}

.start-requirements a {
  color: #06c;
}

/* Detail pages: closing call to action with a build-request form */
.cta-band {
  background: linear-gradient(135deg, #06c 0%, #0a4fa3 100%);
  color: #fff;
}

.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cta-band-text h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
}

.cta-band-text p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.cta-band-alt a {
  color: #fff;
  text-decoration: underline;
}

.cta-band-form {
  margin: 0;
  padding: 1.75rem;
  border-radius: 16px;
  background: #fff;
  color: #1d1d1f;
}

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .feature-row,
  .cta-band-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-row.reverse .feature-row-text {
    order: 0;
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Inline code reads as text, not Bootstrap's pink; code blocks keep their own colours */
.arc-cms-template :not(pre) > code {
  color: #1d1d1f;
}

/* Three across on wide screens; below that the build card spans the top and the other
   two sit side by side; one column on a phone. Never two with one left over. */
@media (max-width: 1199px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* The latest articles partial: three across, else one */
body .articles-partials-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  body .articles-partials-grid {
    grid-template-columns: 1fr;
  }
}

/* A clear focus ring for keyboard users on every field and button */
.signup-field input:focus-visible,
.signup-field select:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.compare-scroll:focus-visible,
.tab-btn:focus-visible,
.compare-tab:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid #06c;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
