/* Public marketing site (2026-08-17) -- landing/pricing/features/about.
   Loaded ALONGSIDE style.css (templates/marketing/base.html links both),
   never redefines a --token: every color/font here is one of style.css's
   existing custom properties, so light/dark theme switching and any
   future palette tweak in style.css apply here automatically with zero
   duplicate maintenance. Layout is a top nav + full-width sections,
   deliberately NOT the internal app's sidebar shell (base.html) -- a
   public marketing site reads as its own front door, not a logged-out
   view of the internal tool, and the spec explicitly asked for a top nav
   with Pricing/Features/About tabs. */

.mkt-body {
  margin: 0;
}

.mkt-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------------------------------------------------------------- Nav */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--graphite);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mkt-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.mkt-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.mkt-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.mkt-nav-links a {
  color: var(--sidebar-text);
  text-decoration: none;
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.mkt-nav-links a:hover,
.mkt-nav-links a.active {
  color: #fff;
}

.mkt-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mkt-nav-login {
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.mkt-nav-login:hover {
  color: #fff;
}

@media (max-width: 760px) {
  .mkt-nav-links { display: none; }
  .mkt-nav-inner { gap: 12px; }
}

/* ---------------------------------------------------------------- Hero */
.mkt-hero {
  position: relative;
  background: var(--header-grad);
  overflow: hidden;
  padding: 64px 0 76px;
}

.mkt-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.mkt-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin: 0 0 14px;
}

.mkt-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  margin: 0 0 18px;
  letter-spacing: 0.005em;
}

.mkt-hero-sub {
  color: rgba(255,255,255,0.88);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 26px;
}

.mkt-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mkt-hero-actions .btn-primary {
  background: #fff;
  color: var(--accent-dark);
}

.mkt-hero-actions .btn-primary:hover {
  background: rgba(255,255,255,0.88);
}

.mkt-hero-actions .btn-secondary {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.36);
  color: #fff;
}

.mkt-hero-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.22);
}

/* Beam graphic ghosted behind the hero copy -- absolute, low opacity, no
   layout weight. Hidden below the grid breakpoint since there's no room
   for it once the two columns stack. */
.mkt-hero .beam-diagram.hero-ghost {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: auto;
  opacity: 0.14;
  pointer-events: none;
}

/* -------------------------------------------------- Sign-up hero card */
.mkt-signup-card {
  background: var(--panel-bg);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
  position: relative;
  z-index: 2;
}

.mkt-signup-card h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: var(--ink);
}

.mkt-signup-card .mkt-signup-sub {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 0 0 18px;
}

.mkt-signup-card .form-row {
  margin-bottom: 13px;
}

.mkt-signup-card .btn-primary {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.85rem;
}

.mkt-signup-login-line {
  text-align: center;
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mkt-signup-login-line a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.mkt-signup-login-line a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .mkt-hero-grid { grid-template-columns: 1fr; }
  .mkt-hero-sub { max-width: none; }
  .mkt-hero .beam-diagram.hero-ghost { display: none; }
}

/* ---------------------------------------------------------------- Flash
   (marketing/base.html doesn't extend base.html, so it needs its own
   flash-message markup -- reuses the exact .flash/.flash-success/
   .flash-error classes from style.css). */
.mkt-flash-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 28px 0;
}

/* ------------------------------------------------------------ Sections */
.mkt-section {
  padding: 68px 0;
}

.mkt-section.alt {
  background: var(--panel-alt);
}

.mkt-section-head {
  max-width: 640px;
  margin: 0 0 40px;
}

.mkt-section-head h2 {
  font-size: 2rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.mkt-section-head p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
}

.mkt-lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 74ch;
}

.mkt-lede strong {
  color: var(--ink);
}

/* ---------------------------------------------- Shop-traveler flow strip
   Signature information device on the landing page: the same Bid ->
   Estimate -> Project -> Shop -> Ship pipeline this app's own data model
   actually walks a job through, styled like a shop traveler/route card
   (a real fabrication-shop artifact), not a generic "3 easy steps" list. */
.mkt-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  counter-reset: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.mkt-flow-stage {
  padding: 22px 18px;
  border-right: 1px dashed var(--border);
  position: relative;
}

.mkt-flow-stage:last-child {
  border-right: none;
}

.mkt-flow-stage::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--steel-light);
  border-right: 2px solid var(--steel-light);
  transform: translateY(-50%) rotate(45deg);
  z-index: 1;
}

.mkt-flow-stage:last-child::after {
  display: none;
}

.mkt-flow-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 6px;
}

.mkt-flow-stage h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--ink);
}

.mkt-flow-stage ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .mkt-flow { grid-template-columns: 1fr; }
  .mkt-flow-stage { border-right: none; border-bottom: 1px dashed var(--border); }
  .mkt-flow-stage::after { display: none; }
}

/* ------------------------------------------------------------ Module grid */
.mkt-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.mkt-module-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.mkt-module-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink);
}

.mkt-module-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.mkt-more-link {
  display: inline-block;
  margin-top: 36px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.mkt-more-link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------- Pricing teaser */
.mkt-price-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mkt-price-teaser-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  text-align: center;
}

.mkt-price-teaser-card .tier-name {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
}

.mkt-price-teaser-card .tier-value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2.1rem;
  color: var(--accent);
  margin: 6px 0 2px;
}

.mkt-price-teaser-card .tier-unit {
  font-size: 0.76rem;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .mkt-price-teaser-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- CTA band */
.mkt-cta-band {
  background: var(--header-grad);
  padding: 56px 0;
  text-align: center;
}

.mkt-cta-band h2 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 2rem;
}

.mkt-cta-band p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 22px;
}

.mkt-cta-band .btn-primary {
  background: #fff;
  color: var(--accent-dark);
}

.mkt-cta-band .btn-primary:hover {
  background: rgba(255,255,255,0.88);
}

/* ---------------------------------------------------------------- Footer */
.mkt-footer {
  background: var(--graphite);
  color: var(--sidebar-text);
  padding: 32px 0;
}

.mkt-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.mkt-footer-links {
  display: flex;
  gap: 18px;
}

.mkt-footer-links a {
  color: var(--sidebar-text);
  text-decoration: none;
}

.mkt-footer-links a:hover {
  color: #fff;
}

/* =================================================== Pricing page ===== */
.pricing-hero {
  background: var(--header-grad);
  padding: 52px 0 40px;
  text-align: center;
}

.pricing-hero h1 {
  color: #fff;
  margin: 0 0 10px;
}

.pricing-hero p {
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.pricing-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.pricing-card.tier-enterprise {
  border-color: var(--accent);
  box-shadow: 0 20px 44px -18px rgba(200,22,22,0.28);
}

.pricing-card .tier-name {
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.pricing-card .tier-for {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0 0 18px;
  min-height: 82px;
}

.pricing-card .tier-price {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2.4rem;
  color: var(--accent);
  margin: 0;
}

.pricing-card .tier-price-unit {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.pricing-card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.9;
  flex-grow: 1;
}

.pricing-card ul li::before {
  content: "+";
  color: var(--accent);
  font-weight: 800;
  margin-right: 8px;
}

.pricing-addon {
  background: var(--panel-alt);
  border: 1px dashed var(--steel-light);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.pricing-addon h3 {
  margin: 0 0 4px;
  color: var(--ink);
}

.pricing-addon p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: 56ch;
}

.pricing-addon .addon-price {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.6rem;
  color: var(--accent);
  white-space: nowrap;
}

.comparison-scroll {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 640px;
}

.comparison-table th, .comparison-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.comparison-table th {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.comparison-table td.check {
  text-align: center;
  color: var(--success);
  font-weight: 800;
}

.comparison-table td.dash {
  text-align: center;
  color: var(--border);
}

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

/* =================================================== Features page ==== */
.feature-module {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.feature-module:last-child {
  border-bottom: none;
}

.feature-module-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.feature-module-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feature-module h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--ink);
}

.feature-module p.feature-pitch {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 74ch;
  margin: 0 0 14px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.feature-list li {
  padding-left: 16px;
  position: relative;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* =================================================== About page ======= */
.about-hero {
  background: var(--header-grad);
  padding: 56px 0 44px;
}

.about-hero h1 {
  color: #fff;
  margin: 0 0 12px;
  max-width: 20ch;
}

.about-hero p {
  color: rgba(255,255,255,0.88);
  max-width: 60ch;
  font-size: 1.05rem;
  line-height: 1.6;
}

.about-body {
  max-width: 74ch;
}

.about-body h2 {
  color: var(--ink);
  margin: 38px 0 12px;
  font-size: 1.4rem;
}

.about-body p {
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0 10px;
}

.about-pillar {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.about-pillar .pillar-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}

.about-pillar h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--ink);
}

.about-pillar p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

/* ============================================= Beam SVG (shared signature
   element -- see templates/marketing/_beam_svg.html) =================== */
.beam-diagram {
  display: block;
}

.beam-diagram .beam-outline path {
  fill: rgba(255,255,255,0.06);
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: beam-draw 1.6s ease-out 0.2s forwards;
}

.beam-diagram .dim-line,
.beam-diagram .dim-tick {
  stroke: rgba(255,255,255,0.55);
  stroke-width: 1;
}

.beam-diagram .dim-label,
.beam-diagram .beam-tag {
  fill: rgba(255,255,255,0.75);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.beam-diagram .beam-tag {
  font-size: 13px;
  fill: #fff;
  font-weight: 700;
}

.beam-diagram .beam-dims {
  opacity: 0;
  animation: beam-dims-in 0.6s ease-out 1.4s forwards;
}

@keyframes beam-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes beam-dims-in {
  to { opacity: 1; }
}

/* Watermark placement (login page, static/quiet -- see auth/login.html):
   dark-ink strokes instead of white, since it sits on the app's light/
   dark page background rather than the hero's red gradient. */
.beam-diagram.watermark .beam-outline path {
  fill: none;
  stroke: var(--steel);
  animation-duration: 2.2s;
}

.beam-diagram.watermark .dim-line,
.beam-diagram.watermark .dim-tick {
  stroke: var(--steel);
}

.beam-diagram.watermark .dim-label,
.beam-diagram.watermark .beam-tag {
  fill: var(--steel);
}

@media (prefers-reduced-motion: reduce) {
  .beam-diagram .beam-outline path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .beam-diagram .beam-dims {
    animation: none;
    opacity: 1;
  }
}

/* ============================================== Login page (auth/login.html)
   templates/auth/login.html still extends the internal app's base.html
   (unchanged structure/UI, per the brief) and additionally links THIS
   stylesheet just for these rules + the shared .beam-diagram styles
   above -- style.css itself is untouched. */
.login-wrap {
  position: relative;
}

.login-wrap .beam-diagram.login-beam {
  position: absolute;
  top: -54px;
  right: -120px;
  width: 240px;
  height: auto;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.login-wrap .page-title,
.login-wrap .card-form {
  position: relative;
  z-index: 1;
}

/* A hazard-stripe top edge on the login card -- the same diagonal
   caution-tape pattern a real fab shop marks its floor/equipment with,
   rendered in this app's own red/ember palette rather than generic
   yellow-black. */
.login-wrap .card-form {
  border-top: 5px solid transparent;
  background-image:
    linear-gradient(var(--panel-bg), var(--panel-bg)),
    repeating-linear-gradient(45deg, var(--accent) 0 9px, var(--accent-2) 9px 18px);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

@media (max-width: 600px) {
  .login-wrap .beam-diagram.login-beam { display: none; }
}
