/* Review refinements: one walkthrough track, four desktop plans, compact About and footer. */

/* The intro and the entire five-step track must each occupy one explicit grid cell. */
.deep-inner {
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
}
.deep-header { grid-column: 1; grid-row: 1; }
.deep-steps { grid-column: 2; grid-row: 1; }

/* Keep deployment choices in the content track, outside the sticky intro's column. */
#moat { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
#moat .moat-header { grid-column: 1; grid-row: 1; }
.moat-content { grid-column: 2; grid-row: 1; min-width: 0; }
@media (max-width: 900px) {
  #moat { grid-template-columns: minmax(0, 1fr); }
  #moat .moat-header { position: static; }
  .moat-content { grid-column: 1; grid-row: 2; }
}
@media (min-width: 901px) and (max-height: 650px) {
  #moat .moat-header { position: static; }
}

/* Full-width desktop comparison, with readable two/one-column fallbacks. */
#pricing { width: min(1480px, calc(100% - var(--gutter) * 2)); }
.pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price-card { padding: 24px; }
.price-card .price-description { font-size: 13px; line-height: 1.75; }
.price-card .price-list { flex: 0; font-size: 13px; }
.price-list li + li { margin-top: 10px; }
.price-card .price-requirements { font-size: 12px; line-height: 1.8; }
.price-card .price-value { font-size: clamp(30px, 2.8vw, 42px); }
.price-card > .btn-primary, .price-card > .btn-secondary { margin-top: auto; padding-inline: 12px; }

/* Shared footer: brand, useful links and direct contact, not a sparse single line. */
.site-footer { display: block; padding: 0; background: var(--surface); }
.footer-main, .footer-bottom {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.footer-main {
  display: grid; grid-template-columns: 1.45fr .65fr .65fr 1.1fr;
  gap: 32px; padding-block: 44px 36px;
}
.footer-brand, .footer-nav, .footer-connect { min-width: 0; }
.site-footer .brand-logo img { width: 200px; height: 38px; }
.footer-positioning { font-size: 20px; line-height: 1.55; letter-spacing: -.025em; color: var(--text); margin-top: 18px; }
.footer-nav, .footer-connect { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-nav h2, .footer-connect h2 { font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.footer-nav > a, .footer-email { font-size: 13px; line-height: 1.7; text-decoration: none; }
.footer-nav > a:hover, .footer-email:hover { color: var(--accent1); }
.footer-email { overflow-wrap: anywhere; }
.site-footer .footer-socials { display: flex; gap: 8px; margin-top: 8px; }
.site-footer .footer-social { width: 40px; height: 40px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 28px; border-top: 1px solid var(--border); padding-block: 20px 24px; font-size: 11px; line-height: 1.8; }
.site-footer .footer-legal { text-align: left; justify-self: auto; }

/* About: keep the narrative, but use balanced panels instead of empty heading columns. */
.about-page .about-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: 64px 48px; }
.about-page .about-intro, .about-page .about-story { min-width: 0; }
.about-page .about-intro .section-label { margin-bottom: 18px; }
.about-page .about-hero h1 { font-size: clamp(38px, 4vw, 56px); margin-bottom: 24px; }
.about-page .about-hero .about-lead { font-size: clamp(20px, 2vw, 24px); line-height: 1.55; }
.about-page .about-story { border-left: 1px solid var(--border); padding-left: 32px; }
.about-page .about-story .about-sub { max-width: none; font-size: 15px; line-height: 1.85; }
.about-overview, .about-product-grid {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin: 24px auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px;
}
.about-product-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.about-product-aside { display: grid; gap: 24px; min-width: 0; }
.about-page .about-panel { display: block; padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.about-page .about-panel > .section-label { margin-bottom: 20px; }
.about-page .about-panel .features-header { margin-bottom: 24px; }
.about-page .about-panel .features-header .section-label { margin-bottom: 12px; }
.about-page .about-panel .section-title { font-size: 28px; line-height: 1.2; margin-bottom: 0; }
.about-page .about-panel .about-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
.about-page .founder-card { display: block; position: relative; }
.about-page .founder-card .avatar-monogram { position: absolute; top: 0; left: 0; }
.about-page .founder-card .founder-name, .about-page .founder-card .founder-role { margin-left: 84px; }
.about-page .founder-card .founder-role { margin-bottom: 28px; }
.about-page .founder-bio, .about-page .about-body-text, .about-page .build-list li { font-size: 14px; line-height: 1.85; }
.about-page .founder-stats { margin-top: 24px; padding-top: 20px; }
.about-page .fstat .l { font-size: 11px; }
.about-page .pull-quote { font-size: 20px; margin-bottom: 20px; }
.about-page .about-recognition .trust-label { display: block; margin-bottom: 20px; }
.about-page .about-recognition .trust-logos { gap: 20px; }
.about-page .about-recognition .trust-item { flex-basis: 100%; flex-direction: row; align-items: center; min-width: 0; }
.about-page .about-recognition .trust-chip { flex-shrink: 0; }
.about-page .about-recognition .trust-caption { font-size: 12px; max-width: none; }
.about-page .recognition-live { border-top: 1px solid var(--border); padding-top: 16px; width: 100%; }
.about-page .about-facts { display: block; padding-block: 28px; }
.about-page .about-facts .features-header { margin-bottom: 24px; }
.about-page .facts-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.about-page .fact { padding: 20px; }
.about-page .fact .k { margin-bottom: 8px; }
.about-page .about-contact { padding-block: 24px 48px; }
.about-page .about-contact .cta-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; padding: 32px; background: var(--accent-soft); }
.about-page .about-contact .about-actions { margin: 0; gap: 12px; }
.about-page .about-contact .cta-title { font-size: 30px; }

@media (max-width: 1100px) {
  .price-card { padding: 20px; }
  .footer-main { grid-template-columns: 1.25fr .65fr .65fr 1fr; gap: 24px; }
  .about-page .about-recognition .trust-item { flex-direction: column; align-items: flex-start; }
  .about-page .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card { padding: 24px; }
}
@media (max-width: 900px) {
  .deep-inner { grid-template-columns: minmax(0, 1fr); }
  .deep-header { grid-column: 1; grid-row: 1; position: static; }
  .deep-steps { grid-column: 1; grid-row: 2; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-connect { grid-column: 1 / -1; }
  .footer-nav > a, .footer-email { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer .footer-social { width: 44px; height: 44px; }
  .about-page .about-hero { gap: 28px; padding-block: 44px 36px; }
  .about-overview, .about-product-grid { grid-template-columns: minmax(0, 1fr); }
  .about-page .about-recognition .trust-item { flex-direction: row; align-items: center; }
  .about-page .about-facts { padding-block: 24px; }
}
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-main { gap: 24px; padding-block: 32px 24px; }
  .footer-positioning { font-size: 19px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding-block: 18px 24px; }
  .about-page .about-hero { grid-template-columns: minmax(0, 1fr); }
  .about-page .about-story { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-top: 24px; }
  .about-page .about-panel { padding: 24px; }
  .about-page .about-panel .section-title { font-size: 26px; }
  .about-page .about-recognition .trust-item { flex-direction: column; align-items: flex-start; }
  .about-page .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .about-page .about-contact .cta-card { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .about-page .about-contact .about-actions { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 901px) and (max-height: 650px) {
  .deep-header { position: static; }
}

/* October review: demonstrate once, keep depth optional, and make requests explicit. */
[hidden] { display: none !important; }
html { scroll-padding-top: 88px; }
.marketing-home main > section { padding-block: 72px; }
.marketing-home .hero-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; padding-block: 64px 48px; }
.marketing-home .hero h1 { font-size: clamp(38px, 4.1vw, 58px); }
.marketing-home .hero p { font-size: 16px; line-height: 1.75; }
.marketing-home .hero .deployment-pills { margin-top: 20px; }
.nav-links { gap: 24px; }
.nav-links a { font-size: 14px; }
.nav-cta { min-height: 44px; }
.preview-heading { margin-bottom: 18px; }
.preview-heading .section-label { margin-bottom: 8px; }
.preview-heading h2 { font-size: 21px; line-height: 1.35; letter-spacing: -.025em; font-weight: 550; }
.product-image-link { display: block; position: relative; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #080912; color: #fff; box-shadow: 0 20px 50px -24px rgba(0,0,0,.35); }
.product-image-link > img { display: block; width: 100%; height: auto; }
.image-zoom-label { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 18px; background: #151620; color: #fafafa; font-size: 14px; }
.image-zoom-label > span { font-size: 20px; }
.product-shot-caption { font-size: 13px; line-height: 1.7; margin-top: 14px; max-width: none; }
#product-preview { width: min(1400px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: var(--bg); color: var(--text); }
#product-preview::backdrop { background: rgba(0,0,0,.8); }
.preview-toolbar { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.preview-toolbar h2 { font-size: 20px; font-weight: 550; letter-spacing: -.025em; }
.preview-toolbar button { flex-shrink: 0; }
.preview-image-scroll { overflow: auto; max-height: 70svh; border-radius: 8px; background: #080912; }
.preview-image-scroll img { display: block; width: 1568px; max-width: none; height: auto; }
#product-preview > p { margin-top: 14px; font-size: 14px; color: var(--muted); }
.preview-open { overflow: hidden; }
.trust-caption { font-size: 13px; line-height: 1.6; }
.pipeline-desc, .step-desc { font-size: 14px; line-height: 1.7; }
.bento-card.wide, .bento-card.knowledge-panel { grid-column: auto; }
.bento-card { padding: 28px; }
.bento-body { font-size: 14px; line-height: 1.8; }
.bento-title { font-size: 19px; }
.memory-bubble, .knowledge-sources span { font-size: 12px; }
.demo-label, .plan-label { font-size: 11px; }
.artifact-tabs { overflow-x: auto; }
.artifact-tab { min-height: 44px; font-size: 13px; }
.artifact-footer, .artifact-footnote { font-size: 14px; }
#moat { background: var(--accent-soft); border: 1px solid var(--border); border-radius: 16px; padding: 40px; margin-block: 24px; gap: 32px 48px; }
.moat-list li { font-size: 14px; line-height: 1.8; }
.deployment-block { background: var(--bg); padding: 24px; }
.deployment-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.deployment-grid > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.deployment-notes { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); line-height: 1.8; }
.deployment-notes a { color: var(--accent1); }
.price-card { padding: 24px; }
.price-name { font-size: 17px; }
.price-card .price-description, .price-card .price-requirements { font-size: 14px; line-height: 1.7; }
.price-card .price-value { font-size: clamp(30px, 2.8vw, 42px); }
.price-card .price-value span { font-size: 13px; }
.price-annual { font-size: 14px; line-height: 1.7; }
.plan-highlights { list-style: none; display: grid; gap: 10px; margin: 20px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.plan-highlights li { position: relative; padding-left: 19px; }
.plan-highlights li::before { content: '✓'; position: absolute; left: 0; color: var(--accent1); }
.plan-highlights a { text-underline-offset: 3px; }
.price-card > .btn-primary, .price-card > .btn-secondary { margin-top: auto; }
.pricing-note { font-size: 14px; }
.plan-comparison, .walkthrough-details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.plan-comparison { margin-top: 24px; }
.plan-comparison > summary, .walkthrough-details > summary { cursor: pointer; list-style: none; position: relative; padding: 24px 60px 24px 24px; }
.plan-comparison > summary::-webkit-details-marker, .walkthrough-details > summary::-webkit-details-marker { display: none; }
.plan-comparison > summary::after, .walkthrough-details > summary::after { content: '+'; position: absolute; top: 50%; right: 24px; transform: translateY(-50%); color: var(--accent1); font-size: 28px; }
.plan-comparison[open] > summary::after, .walkthrough-details[open] > summary::after { content: '−'; }
.plan-comparison strong { font-size: 18px; font-weight: 550; }
.disclosure-hint { display: block; margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.plan-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 24px; border-top: 1px solid var(--border); }
.plan-detail { min-width: 0; }
.plan-detail h3 { font-size: 17px; font-weight: 550; }
.plan-detail .price-list li, .plan-detail .price-requirements { font-size: 14px; line-height: 1.8; }
.solo-team-note { padding: 24px; }
.solo-team-note h3 { margin-bottom: 12px; }
.marketing-home #deep-dive { padding-block: 16px 40px; }
.walkthrough-details > summary .section-label { margin-bottom: 10px; }
.walkthrough-details > summary h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 550; line-height: 1.25; letter-spacing: -.035em; }
.walkthrough-details > .deep-inner { padding: 32px; border-top: 1px solid var(--border); }
.deep-step-body { font-size: 15px; }
#cta .cta-title { max-width: 480px; }
.request-context { border-left: 3px solid var(--accent1); padding: 12px 16px; background: var(--accent-soft); color: var(--text); font-size: 14px; line-height: 1.8; }
.form-field { font-size: 14px; }
.cta-input, .cta-textarea { font-size: 16px; }
.cta-textarea { min-height: 120px; }
.cta-form .form-note { font-size: 14px; }
.cta-form button[type=submit] { justify-self: start; }
.form-note a { text-underline-offset: 3px; }
.about-page .founder-role, .about-page .fstat .l, .about-page .about-recognition .trust-caption { font-size: 13px; }
.about-page .about-panel .build-list li { font-size: 15px; }
.policy-contents { margin-top: 32px; }
.policy-contents h2 { font-size: 14px; font-weight: 600; }
.policy-contents ol { margin: 12px 0 20px; padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.policy-contents a { display: inline-block; padding-block: 6px; text-decoration: none; }
.policy-contents a:hover { color: var(--accent1); text-decoration: underline; }
.policy-return { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; color: var(--accent1); }
.policy-body section { scroll-margin-top: 24px; }
@media (max-width: 1200px) {
  .nav-links { gap: 18px; }
  .marketing-home .hero-layout { gap: 32px; }
}
@media (max-width: 1023px) {
  .plan-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .marketing-home .hero-layout { grid-template-columns: minmax(0, 1fr); padding-block: 40px; }
  .marketing-home .product-shot { max-width: 720px; width: 100%; }
  .marketing-home main > section { padding-block: 56px; }
  .bento-grid .bento-card:last-child { grid-column: auto; }
  .bento-grid .bento-card:nth-last-child(2) { grid-column: auto; }
  #moat { padding: 28px; }
  .walkthrough-details > .deep-inner { padding: 24px; }
  .walkthrough-details .deep-step { gap: 24px; }
}
@media (max-width: 600px) {
  .hero-badge { font-size: 10px; }
  .marketing-home .hero h1 { font-size: clamp(36px, 9.7vw, 48px); }
  .marketing-home .hero p { font-size: 15px; }
  .nav-cta { width: 122px; font-size: 11px; padding-inline: 10px; }
  .nav-actions { gap: 8px; }
  .bento-card { padding: 24px; }
  .bento-grid .bento-card { grid-column: auto; }
  .memory-bubbles { gap: 8px; }
  .artifact-tab { font-size: 12px; padding-inline: 10px; }
  #moat { padding: 24px; }
  .deployment-grid > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .deployment-block { padding: 20px; }
  .plan-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-detail + .plan-detail { border-top: 1px solid var(--border); padding-top: 24px; }
  .plan-comparison > summary, .walkthrough-details > summary { padding-left: 20px; }
  .walkthrough-details > .deep-inner { padding: 20px; }
  #product-preview { padding: 16px; }
  .preview-toolbar { align-items: flex-start; gap: 12px; }
  .preview-toolbar h2 { font-size: 17px; }
  .preview-toolbar .btn-secondary { font-size: 12px; padding-inline: 12px; }
  .policy-contents ol { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  nav { gap: 8px; }
  nav .brand-logo img { width: 88px; }
  .nav-actions { gap: 6px; }
  .nav-cta { width: 104px; font-size: 10px; }
  .nav-burger, .theme-toggle { width: 36px; height: 36px; }
}
.memory-bubble { padding-inline: 6px; }
.price-setup { margin-top: 10px; font-size: 14px; line-height: 1.7; font-weight: 600; color: var(--text); }
.step-label { font-size: 14px; line-height: 1.5; }
.step-sub { font-size: 13px; line-height: 1.65; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.about-page .about-socials .mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.site-footer .footer-legal { font-size: 11px; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .nav-panel.open { display: none; }
}
.prd-section-title { font-size: 13px; }
.prd-section-body, .ticket-item { font-size: 14px; line-height: 1.75; }
.artifact-tag { font-size: 12px; }
.typing-demo { font-size: 13px; line-height: 1.7; }
#trace-lines { font-size: 12px !important; line-height: 1.8 !important; }
.faq-group > h3 { font-size: 13px; line-height: 1.6; font-family: var(--mono); font-weight: 500; color: var(--accent1); margin-bottom: 12px; }
.faq-group + .faq-group { margin-top: 28px; }
.faq-a { font-size: 14px; }
/* Sample content stays still; only explicit controls change the demonstration. */
.typing-demo .cursor-blink { display: none; }
