/* Automation guide pages: layout on top of forward-edge.css, -motion.css and -journey.css. */

.seo-breadcrumb { padding: 1.1rem 0 0; }
.seo-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 auto; padding-top: 0; padding-bottom: 0; list-style: none; font-size: 0.8rem; color: var(--muted); }
.seo-breadcrumb li { display: inline-flex; align-items: center; gap: 0.35rem; }
.seo-breadcrumb li + li::before { content: "›"; color: var(--subtle); }
.seo-breadcrumb a { color: var(--steel); text-decoration: none; font-weight: 600; }
.seo-breadcrumb a:hover, .seo-breadcrumb a:focus-visible { text-decoration: underline; }
.seo-breadcrumb [aria-current] { color: var(--ink); font-weight: 700; }

.seo-hero.hero { padding: 2.6rem 0 3rem; }
.seo-hero h1 { font-size: clamp(1.9rem, 3.7vw, 3.6rem) !important; line-height: 1 !important; }
.seo-hero .lead { max-width: 40rem; }
.seo-byline { color: var(--muted); font-size: 0.82rem; line-height: 1.6; margin: 0.8rem 0; }
.seo-byline a, .seo-sources a { color: var(--steel); }
.seo-next-steps { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; align-items: center; }
.seo-next-steps h2, .seo-access-summary h3 { margin-top: 0; }
.seo-access-summary { padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid #d7e2ec; border-radius: 18px; background: #f2f7fb; min-width: 0; }
.seo-access-price { font-size: 1.4rem; font-weight: 800; color: var(--navy-2); }
.seo-calculator { scroll-margin-top: 7rem; }
.seo-calculator-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.seo-calculator-inputs label { display: grid; gap: 0.45rem; align-content: start; font-size: 0.88rem; font-weight: 700; color: var(--steel); min-width: 0; }
.seo-calculator-inputs input, .seo-calculator-inputs select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 48px; border: 1px solid #9ab0c3; border-radius: 10px; padding: 0.7rem; background: #fff; color: var(--ink); font: inherit; }
.seo-calculator-inputs input:focus-visible, .seo-calculator-inputs select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.seo-calculator-result { border-left: 4px solid var(--blue); padding: 1rem; background: #edf5fb; color: var(--ink); font-weight: 700; line-height: 1.6; }
.seo-hero .fe-status-row { margin: 1.1rem 0 0.6rem; }
.seo-hero-copy { min-width: 0; }
.seo-hero-visual { min-width: 0; }
.seo-hero-panel {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border-radius: 28px;
  border: 1px solid rgba(43, 95, 136, 0.14);
  background:
    radial-gradient(circle at 90% 0%, rgba(124, 201, 232, 0.22), transparent 16rem),
    linear-gradient(180deg, #ffffff 0%, #f2f7fb 100%);
  box-shadow: var(--shadow-lg);
}
.seo-hero-scene .fe-scene { height: auto; margin: 0; }
.seo-hero-scene .fe-scene svg { width: 100%; height: auto; }
.seo-hero-note { margin: 0; color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.seo-hero-ops .fe-ops { margin: 0; }

.seo-glance-section { padding-top: 0.6rem; }
.seo-glance { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 1.4rem; align-items: start; }
.seo-facts .control-item span:last-child { text-align: right; }
.seo-toc ol { margin: 0.9rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.55rem; }
.seo-toc li { color: var(--muted); line-height: 1.4; }
.seo-toc a { color: var(--steel); font-weight: 600; text-decoration: none; }
.seo-toc a:hover, .seo-toc a:focus-visible { text-decoration: underline; }

.seo-topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 1rem 2rem; align-items: center; scroll-margin-top: 7rem; }
.seo-topic.is-flipped { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
.seo-topic.is-flipped .seo-topic-art { order: -1; }
.seo-topic h2 { margin-top: 0; }
.seo-topic-copy { min-width: 0; }
.seo-topic-art { min-width: 0; }
.seo-topic-art .fe-scene { height: auto; margin: 0; }
.seo-topic-art .fe-scene svg { width: 100%; height: auto; }
.seo-topic a, .seo-faq a, .seo-cluster a { color: var(--blue); font-weight: 600; }
.seo-bullets { margin: 0.8rem 0 0; padding-left: 1.15rem; display: grid; gap: 0.5rem; }
.seo-bullets li::marker { color: var(--blue); }

.seo-steps .process-timeline { margin-top: 1rem; }
#how-it-works, #comparison, #plans, #strategies, #faq, #keep-reading, #topics { scroll-margin-top: 7rem; }
.seo-table th[scope="row"] { color: var(--ink); }
.seo-table thead th { color: var(--steel); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }

.seo-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; margin-top: 1rem; }
.seo-plan { display: flex; flex-direction: column; padding: 1rem 0.95rem; border: 1px solid #d7e2ec; border-radius: 16px; background: #f8fbfd; min-width: 0; }
.seo-plan h3 { margin: 0; }
.seo-plan strong { display: block; margin-top: 0.35rem; color: var(--navy-2); font-size: 1.2rem; }
.seo-plan ul { margin: 0.55rem 0 1rem; padding: 0; list-style: none; color: #415870; line-height: 1.45; }
.seo-plan .button { margin-top: auto; width: 100%; }

.seo-cluster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.seo-cluster-intro { margin-top: 0.4rem !important; }
.seo-cluster ul { margin: 0.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.seo-cluster li { display: grid; gap: 0.2rem; padding-top: 0.85rem; border-top: 1px solid #e2eaf2; }
.seo-cluster li span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

.seo-strategy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.seo-strategy { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.seo-strategy .helper-text { margin-top: auto; padding-top: 0.6rem; }
.seo-strategy-style { align-self: flex-start; padding: 0.22rem 0.6rem; border-radius: 999px; background: var(--blue-soft); color: var(--steel); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }

.seo-faq-list { display: grid; gap: 0.7rem; margin: 1rem 0 1.2rem; }
.seo-faq { border: 1px solid #d7e2ec; border-radius: 14px; background: #f8fbfd; padding: 0 1.1rem; }
.seo-faq[open] { background: #fff; box-shadow: var(--shadow-sm); }
.seo-faq summary { cursor: pointer; list-style: none; padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; font-weight: 700; line-height: 1; flex-shrink: 0; }
.seo-faq[open] summary::after { content: "–"; }
.seo-faq summary h3 { margin: 0; font-size: 1.02rem; }
.seo-faq p { margin: 0 0 1rem; }

.seo-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.seo-related, .seo-core-grid a {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid #d7e2ec;
  border-radius: 16px;
  background: #f8fbfd;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-width: 0;
}
.seo-related:hover, .seo-related:focus-visible, .seo-core-grid a:hover, .seo-core-grid a:focus-visible { transform: translateY(-2px); border-color: rgba(53, 121, 184, 0.4); box-shadow: var(--shadow-sm); }
.seo-related strong, .seo-core-grid strong { color: var(--ink); line-height: 1.3; }
.seo-related span:last-child, .seo-core-grid span { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.seo-related-kicker { color: var(--steel) !important; font-size: 0.68rem !important; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.seo-hub-link { display: inline-block; margin-top: 1rem; }
.seo-core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1rem; }

/* New topic scenes */
.fe-seo-range { fill: rgba(53, 121, 184, 0.1); stroke: rgba(53, 121, 184, 0.45); stroke-width: 1.4; stroke-dasharray: 4 4; animation: fe-seo-breathe 3.2s ease-in-out infinite; }
.fe-seo-level { stroke: #3579b8; stroke-width: 1.6; stroke-dasharray: 3 5; animation: fe-dash 1.8s linear infinite; }
.fe-seo-wick { stroke: #8aa4bb; stroke-width: 1.6; }
.fe-seo-break { animation: fe-seo-rise 3.6s ease-in-out infinite; }
.fe-seo-entry-tag rect { fill: #1fbf75; }
.fe-seo-entry-tag text { fill: #fff !important; font-size: 9px !important; }
.fe-seo-entry-tag { animation: fe-seo-tag 3.6s ease-in-out infinite; }
.fe-seo-test { fill: #fff; stroke: #3579b8; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: fe-pulse 2.4s ease-in-out infinite; }
.fe-seo-test-2 { animation-delay: 0.4s; }
.fe-seo-test-3 { animation-delay: 0.8s; }
.fe-seo-test-4 { animation-delay: 1.2s; }
.fe-seo-ma { fill: none; stroke: rgba(31, 191, 117, 0.75); stroke-width: 2; stroke-linecap: round; }
.fe-seo-ma-slow { stroke: rgba(43, 95, 136, 0.45); stroke-dasharray: 5 5; animation: fe-dash 2.4s linear infinite; }
.fe-seo-nq { fill: #0c3558; }
.fe-scene .fe-seo-strong { font-size: 15px; font-weight: 900; fill: #fff; }
.fe-scene .fe-label-on-dark { fill: #fff; }
.fe-scene .fe-seo-equals { fill: #2b5f88; font-size: 24px; font-weight: 800; }
.fe-seo-mnq { fill: #3579b8; opacity: 0.25; animation: fe-seo-fill 4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.18s); }

@keyframes fe-seo-breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes fe-seo-rise { 0%, 22% { opacity: 0; transform: translateY(10px); } 40%, 85% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(0); } }
@keyframes fe-seo-tag { 0%, 45% { opacity: 0; } 55%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fe-seo-fill { 0%, 10% { opacity: 0.2; } 30%, 80% { opacity: 1; } 100% { opacity: 0.2; } }

@media (prefers-reduced-motion: reduce) {
  .fe-seo-range, .fe-seo-level, .fe-seo-break, .fe-seo-entry-tag, .fe-seo-test, .fe-seo-ma-slow, .fe-seo-mnq { animation: none !important; opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .seo-glance, .seo-cluster-grid, .seo-next-steps { grid-template-columns: 1fr; }
  .seo-calculator-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-plan-grid, .seo-related-grid, .seo-core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-topic, .seo-topic.is-flipped { grid-template-columns: 1fr; }
  .seo-topic.is-flipped .seo-topic-art { order: 0; }
  .seo-topic-art { max-width: 340px; }
}

@media (max-width: 560px) {
  .seo-plan-grid, .seo-related-grid, .seo-core-grid, .seo-calculator-inputs { grid-template-columns: 1fr; }
  .seo-facts .control-item { flex-direction: column; gap: 0.2rem; }
  .seo-facts .control-item span:last-child { text-align: left; }
}
