/* ForceRocket interior pages — navy #0B2440, orange #F37021 */

/* Product pages continue the homepage's full-bleed navy presentation. */
.page-product .hero-section--app {
  background: radial-gradient(circle at 79% 38%, #174d72 0, #0b2440 48%, #071b31 100%);
  color: #fff;
  min-height: 620px;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.page-product .hero-section h1 {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: clamp(3.4rem, 5.3vw, 5.8rem);
  letter-spacing: -.075em;
  margin-bottom: 1.2rem;
}
.page-product .hero-subtitle {
  color: #c7d7e4;
  max-width: 660px;
  font-size: 1.12rem;
}
.page-product .hero-section .status-badge--live {
  color: #a8f0ce;
  background: rgba(38, 188, 127, .14);
}
.page-product .hero-section .btn-secondary {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.23);
}
.page-product .hero-section .btn-secondary:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}
.page-product .hero-section .monospace-text { color: #aabed0; font-size: .8rem; }
.page-product .product-hero-glow {
  background: radial-gradient(circle, rgba(243,112,33,.25), rgba(66,151,189,.13) 42%, transparent 72%);
}
.page-product .product-hero-visual img { box-shadow: 0 32px 72px rgba(0,0,0,.4); }
.page-product .product-facts { background: #eaf1f6; }
[data-theme="dark"] .page-product .product-facts { background: #142a42; }
.page-product .screenshot-section { padding-top: 6rem; padding-bottom: 6rem; }
.page-product .screenshot-section .section-heading h2 { max-width: 720px; }

/* Editorial feature sections replace the original small card grid. */
.page-product .feature-band {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-top: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: var(--card-bg);
}
.page-product .feature-band--soft { background: var(--surface-alt); }
.page-product .feature-band .section-header {
  display: block;
  margin-bottom: 2.1rem;
}
.page-product .feature-band .section-header:before {
  content: 'PRODUCT CAPABILITIES';
  display: block;
  color: #b54c12;
  font-size: .69rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: .9rem;
}
.page-product .feature-band .section-header h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.5rem);
  line-height: 1.12;
  max-width: 720px;
}
.page-product .feature-band .section-header .line { display: none; }
.page-product .feature-band .app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 2rem;
  margin-bottom: 0;
}
.page-keyper .feature-band[aria-labelledby="whats-new-heading"] .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-product .feature-band .app-card {
  min-height: 0;
  padding: 1.6rem 0 .6rem;
  border: 0;
  border-top: 2px solid var(--brand-orange);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.page-product .feature-band .app-card h3 {
  font-size: 1.16rem;
  line-height: 1.35;
  letter-spacing: -.035em;
  margin-bottom: .55rem;
}
.page-product .feature-band .app-card p { font-size: .95rem; line-height: 1.75; }
.page-product .maker-section {
  margin-top: 6rem;
  margin-bottom: 0;
  padding: 6rem 0;
  background: #0b2440;
}

/* Legal routes keep the original text and anchors in a document layout. */
.page-legal .legal-banner {
  background: radial-gradient(circle at 82% 50%, #174c70 0, #0b2440 38%, #071b31 100%);
  color: #fff;
  padding: 5rem 0;
}
.page-legal .legal-banner-title {
  font-size: clamp(3rem, 5vw, 5.3rem);
  line-height: 1.05;
  letter-spacing: -.075em;
  font-weight: 800;
  max-width: 900px;
  margin: 0 0 1rem;
}
.page-legal .legal-banner-subtitle {
  color: #c6d6e4;
  font-size: 1.08rem;
  margin: 0;
}
.page-legal .legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem 2rem;
  padding-top: 4rem;
  padding-bottom: 6rem;
}
.page-legal .legal-nav {
  grid-column: 1;
  grid-row: 1 / span 8;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .25rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--card-bg);
}
.page-legal .legal-nav:before {
  content: 'ON THIS PAGE';
  padding: .3rem .65rem .75rem;
  color: #b54c12;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.page-legal .legal-nav-link {
  display: block;
  padding: .72rem .65rem;
  color: var(--text-main);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-size: .86rem;
  font-weight: 650;
}
.page-legal .legal-nav-link:hover { background: var(--surface-alt); color: var(--text-main); }
.page-legal .legal-content,
.page-legal .legal-content + .legal-content {
  grid-column: 2;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--card-bg);
}
.page-legal .legal-content h1 {
  font-size: clamp(2.25rem, 3vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: .4rem;
}
.page-legal .legal-content h2 {
  padding-top: 1.5rem;
  font-size: 1.27rem;
  line-height: 1.35;
  color: var(--brand-navy);
}
.page-legal .legal-content p,
.page-legal .legal-content li { color: var(--text-muted); font-size: 1rem; line-height: 1.85; }
.page-legal .last-updated {
  display: block;
  margin: .4rem 0 2.2rem;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .03em;
}

/* Documentation, comparison, support, and beta pages share one heading system. */
.page-document .guide-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: radial-gradient(circle at 83% 45%, #174c70 0, #0b2440 43%, #071b31 100%);
  text-align: left;
  padding: 5rem clamp(1.25rem, 4vw, 3rem);
}
.page-document .guide-hero:after {
  content: '';
  position: absolute;
  right: -12rem;
  top: -17rem;
  width: 44rem;
  height: 44rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  pointer-events: none;
}
.page-document .guide-hero-inner { max-width: 1144px; margin: 0 auto; position: relative; z-index: 1; }
.page-document .guide-hero h1 {
  max-width: 920px;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 1.07;
  letter-spacing: -.07em;
}
.page-document .guide-hero .subtitle {
  max-width: 720px;
  margin: 0;
  color: #c7d7e4;
  opacity: 1;
  font-size: 1.1rem;
  line-height: 1.7;
}
.page-document .guide-hero .version-badge {
  margin-top: 1.4rem;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.page-document .guide-container {
  max-width: 1240px;
  padding: 4rem clamp(1.25rem, 4vw, 3rem) 6rem;
}
.page-document .guide-wrapper h2 {
  margin-top: 0;
  margin-bottom: 1.4rem;
  padding-bottom: 0;
  border: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  line-height: 1.22;
  letter-spacing: -.05em;
}
.page-document .guide-wrapper h3,
.page-document .guide-wrapper h4 { color: var(--brand-navy); letter-spacing: -.025em; }
.page-document .guide-wrapper p,
.page-document .guide-wrapper li { color: var(--text-muted); font-size: .97rem; line-height: 1.75; }
.page-document .guide-wrapper .card,
.page-document .feature-card {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: none;
}
.page-document .card h4 .icon,
.page-document .feature-card .emoji { display: none; }
.page-document .callout { border-radius: 12px; }

/* Long guides use a useful sticky outline and generous reading panels. */
.page-guide .guide-container {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 0 2rem;
}
.page-guide .guide-container > nav.toc {
  grid-column: 1;
  grid-row: 1 / span 30;
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  margin: 0;
  padding: 1.3rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--card-bg);
  scrollbar-width: thin;
}
.page-guide nav.toc h2 {
  margin: 0 0 1rem;
  padding: 0 .6rem;
  color: #b54c12;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.page-guide nav.toc ol { padding: 0; list-style: none; }
.page-guide nav.toc li { margin: 0; list-style: none; }
.page-guide nav.toc a {
  display: block;
  padding: .47rem .6rem;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: .81rem;
  line-height: 1.35;
  font-weight: 600;
}
.page-guide nav.toc a:hover { background: var(--surface-alt); color: var(--brand-navy); text-decoration: none; }
.page-guide .guide-container > section {
  grid-column: 2;
  min-width: 0;
  margin: 0 0 1.2rem;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--card-bg);
}
.page-guide .guide-container > section > h2 { margin-bottom: 1.2rem; }
.page-guide .guide-container > section .card { padding: 1.4rem; }
.page-guide .guide-wrapper code { overflow-wrap: anywhere; }

/* Comparison remains wide enough for its original feature table. */
.page-comparison .guide-container { max-width: 1120px; }
.page-comparison .guide-container > section {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--card-bg);
}
.page-comparison .guide-container > section .card { padding: 1.5rem; }

/* Support and beta instructions become purposeful service panels. */
.page-support .guide-container,
.page-beta .guide-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.15rem;
}
.page-support .guide-container > .card,
.page-beta .guide-container > .card {
  margin: 0;
  padding: clamp(1.5rem, 2.8vw, 2.4rem);
  min-width: 0;
}
.page-support .guide-container > .card:first-child {
  grid-column: 1 / -1;
  background: #0b2440;
  border-color: #0b2440;
  color: #fff;
}
.page-support .guide-container > .card:first-child h4 { color: #fff; }
.page-support .guide-container > .card:first-child p,
.page-support .guide-container > .card:first-child li { color: #cfdae5; }
.page-support .guide-container > .card:first-child a { color: #ffb385; }
.page-support .guide-container > .card h4,
.page-beta .guide-container > .card h4 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 750;
}
.page-beta .guide-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-beta .guide-container > .callout { grid-column: 1 / -1; margin-top: .4rem; }
.page-beta .card h4 .icon {
  display: inline-block;
  margin-right: .55rem;
  color: #b54c12;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
}

/* Working tools keep their controls, with a product-style introduction. */
.page-tool .tool-hero {
  position: relative;
  overflow: hidden;
  margin: 1.25rem 0 2.2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 22px;
  background: radial-gradient(circle at 88% 25%, #1b567c 0, #0b2440 48%, #071b31 100%);
  color: #fff;
}
.page-tool .tool-hero:after {
  content: '';
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -10rem;
  top: -14rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  pointer-events: none;
}
.page-tool .tool-hero > * { position: relative; z-index: 1; }
.page-tool .tool-hero .eyebrow { margin-bottom: .75rem; }
.page-tool .tool-hero-subtitle,
.page-generator .tool-hero .pwgen-intro {
  color: #c8d7e5;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 690px;
  margin: .8rem 0 0;
}
.page-tool .estimator-main,
.page-tool .pwgen-main {
  max-width: 1240px;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
  background: var(--bg-color);
  background-image: none;
}
.page-estimator {
  --est-bg: var(--bg-color);
  --est-surface: var(--card-bg);
  --est-surface-hover: var(--surface-alt);
  --est-text: var(--text-main);
  --est-text-muted: var(--text-muted);
  --est-border: var(--border-color);
}
.page-estimator .estimator-topbar { padding: 0; align-items: center; }
.page-estimator .estimator-title,
.page-generator .pwgen-title {
  color: #fff;
  font-size: clamp(2.5rem, 4.2vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -.065em;
}
.page-estimator .estimator-badge,
.page-generator .pwgen-badge {
  background: rgba(243,112,33,.18);
  color: #ffac7c;
  border: 1px solid rgba(243,112,33,.45);
  letter-spacing: .08em;
  font-weight: 750;
}
.page-estimator .topbar-right .btn-primary { background: #f37021; color: #112339; }
.page-estimator .topbar-right .btn-reset {
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.09);
  color: #fff;
  border-radius: 10px;
}
.page-estimator .estimator-layout { gap: 1.2rem; }
.page-estimator .step-card,
.page-estimator .panel-right {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: none;
}
.page-estimator .panel-right { padding: clamp(1.25rem, 2.5vw, 2rem); }
.page-estimator .output-header { padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.page-estimator .step-title,
.page-estimator .output-title { color: var(--brand-navy); letter-spacing: -.04em; }
.page-estimator #wizard-nav { margin-top: 1.3rem; }
.page-estimator .empty-state { padding: clamp(2rem, 5vw, 4.5rem) 2rem; }
.page-estimator .empty-state h3 {
  color: var(--brand-navy);
  font-size: 1.45rem;
  letter-spacing: -.04em;
  margin: 1.6rem 0 .5rem;
}
.page-estimator .empty-state p {
  max-width: 380px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: .91rem;
  line-height: 1.65;
}
.page-estimator .estimate-empty-graphic { display: flex; justify-content: center; gap: .5rem; }
.page-estimator .estimate-empty-graphic span {
  padding: .65rem .85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 700;
}
.page-estimator .estimate-empty-graphic span:first-child {
  background: #0b2440;
  border-color: #0b2440;
  color: #fff;
}
.page-generator .pwgen-main { max-width: 1080px; padding-top: 1.25rem; padding-bottom: 6rem; }
.page-generator .pwgen-topbar { align-items: center; }
.page-generator .pwgen-topbar-left { flex-wrap: wrap; }
.page-generator .fk-banner {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--surface-alt);
  padding: 1.25rem 1.4rem;
}
.page-generator .fk-banner-icon { display: none; }
.page-generator .fk-banner-title { color: var(--brand-navy); font-size: 1.02rem; }
.page-generator .fk-banner-desc { font-size: .88rem; line-height: 1.5; }
.page-generator .fk-banner-cta {
  border-radius: 9px;
  background: #0b2440;
  color: #fff;
  font-size: .82rem;
  padding: .7rem 1rem;
}
.page-generator .pw-output-card,
.page-generator .pw-controls-card,
.page-generator .pw-info-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: none;
}
.page-generator .pw-output-card { padding: clamp(1.2rem, 2.5vw, 2rem); }
.page-generator .pw-info h2 { color: var(--brand-navy); letter-spacing: -.045em; }

/* Brand-compatible error pages. */
.page-error main { background: radial-gradient(circle at 75% 25%, #174c70, #0b2440 52%, #071b31); }
.page-error .error-page { min-height: calc(100vh - 76px); padding: 5rem 1.25rem; }
.page-error .error-illustration { margin-bottom: 1.2rem; }
.page-error .error-code { color: #f37021; opacity: .55; font-size: clamp(4rem, 7vw, 6rem); }
.page-error .error-headline { color: #fff; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.1; letter-spacing: -.06em; max-width: 850px; }
.page-error .error-desc { color: #c4d4e3; font-size: 1rem; max-width: 520px; }
.page-error .error-btn { border-radius: 10px; color: #112339; font-weight: 750; }

@media (max-width: 980px) {
  .page-legal .legal-layout,
  .page-guide .guide-container { grid-template-columns: 1fr; }
  .page-legal .legal-nav,
  .page-guide .guide-container > nav.toc {
    grid-column: 1;
    grid-row: auto;
    position: static;
    max-height: none;
  }
  .page-legal .legal-content,
  .page-legal .legal-content + .legal-content,
  .page-guide .guide-container > section { grid-column: 1; }
  .page-guide .guide-container > nav.toc { margin-bottom: 1.5rem; }
}
@media (max-width: 760px) {
  .page-product .hero-section--app { padding-top: 3.5rem; padding-bottom: 2.5rem; }
  .page-product .feature-band { border-radius: 0; border-left: 0; border-right: 0; margin: 0; }
  .page-product .feature-band .app-grid,
  .page-keyper .feature-band[aria-labelledby="whats-new-heading"] .app-grid { grid-template-columns: 1fr; }
  .page-legal .legal-banner,
  .page-document .guide-hero { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .page-legal .legal-layout,
  .page-document .guide-container { padding-top: 2rem; padding-bottom: 4rem; }
  .page-legal .legal-nav { flex-direction: row; flex-wrap: wrap; }
  .page-legal .legal-nav:before { width: 100%; }
  .page-legal .legal-nav-link { flex: 1 1 auto; text-align: center; }
  .page-support .guide-container,
  .page-beta .guide-container { grid-template-columns: 1fr; }
  .page-support .guide-container > .card:first-child,
  .page-beta .guide-container > .callout { grid-column: 1; }
  .page-tool .tool-hero { padding: 2rem 1.5rem; }
  .page-estimator .estimator-topbar { align-items: flex-start; }
}
@media (max-width: 500px) {
  .page-legal .legal-content,
  .page-legal .legal-content + .legal-content,
  .page-guide .guide-container > section { padding: 1.5rem; }
  .page-tool .tool-hero { margin-top: .5rem; }
  .page-estimator .estimator-title,
  .page-generator .pwgen-title { font-size: 2.5rem; }
}
