/* Public marketing page only (templates/landing.html). Scoped by its own
   classes so it never leans on rules meant for the logged-in app shell. */

body.landing-page main { padding: 0; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, #000 0%, transparent 70%);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  /* padding-top/bottom only, not the `padding` shorthand: this element also
     carries the .frame class (see landing.html's <header class="hero frame">),
     and a shorthand here would zero out .frame's horizontal safe-area padding
     (same bug already fixed for .hdr in layout.css) — on desktop it was
     masked by .frame's own max-width auto-centering margin, but on a phone
     .frame spans the full viewport, so the missing padding glued the hero
     content to the screen edges. */
  padding-top: 56px;
  padding-bottom: 72px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hero h1 {
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--steel); }
.hero .sub { margin-top: 20px; font-size: 1.1rem; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.hero .sub strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.btn-cta {
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.7rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
}
.btn-cta:hover { filter: brightness(1.05); }
.cta-note { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.cta-note:hover { color: var(--ink); }
.hero-meta { display: flex; gap: 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.meta-item { font-size: 13px; color: var(--muted); }
.meta-item b { display: block; font-family: var(--font-mono); font-size: 17px; color: var(--steel); font-weight: 600; margin-bottom: 2px; }

/* ---------- browser mockup ---------- */
.mockup {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(26, 58, 82, 0.18), 0 4px 12px rgba(26, 58, 82, 0.06);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #f4f6f8; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #d6dde3; }
.mock-url {
  flex: 1; min-width: 0; margin-left: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 5px 12px; max-width: 280px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-body { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); align-items: center; padding: 28px 24px; background: linear-gradient(180deg, #fff 0%, #fafbfc 100%); }

.dxf-panel { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 14px; overflow: hidden; }
.dxf-panel .panel-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted);
  text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px;
}
.dxf-panel .panel-label span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dxf-svg { width: 100%; height: auto; display: block; }
.scanline {
  position: absolute; top: 0; bottom: 0; width: 2px; left: 16px;
  background: linear-gradient(180deg, transparent, var(--laser), transparent);
  box-shadow: 0 0 14px 3px rgba(255, 122, 61, 0.55);
  animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan {
  0% { left: 6%; opacity: 0; }
  8% { opacity: 1; }
  82% { opacity: 1; }
  92%, 100% { left: 94%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scanline { animation: none; left: 55%; opacity: 0.7; }
}
.flow-arrow { display: grid; place-items: center; color: var(--accent); }

.price-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(26, 58, 82, 0.1); overflow: hidden; }
.price-head { background: var(--steel); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price-head span { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.price-head span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-head .chip { flex-shrink: 0; font-family: var(--font-mono); font-size: 10px; background: rgba(255, 255, 255, 0.14); padding: 3px 8px; border-radius: 5px; font-weight: 500; }
.price-rows { padding: 4px 16px; }
.price-rows .p-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.price-rows .p-row:last-child { border-bottom: none; }
.price-rows .p-row .val { font-family: var(--font-mono); color: var(--ink); font-weight: 500; font-size: 12.5px; }
.price-total { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; background: var(--accent-soft); border-top: 1px solid var(--accent-line); }
.price-total span { font-size: 12px; font-weight: 700; color: var(--charcoal); letter-spacing: 0.02em; }
.price-total .big { font-family: var(--font-mono); font-size: 21px; font-weight: 600; color: var(--accent); }

/* ---------- features ---------- */
/* padding-bottom only — see .hero's comment above, same reason (.features
   also shares its element with .frame, in landing.html). */
.features { position: relative; z-index: 2; padding-bottom: 88px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feat:hover { box-shadow: 0 10px 30px rgba(26, 58, 82, 0.1); transform: translateY(-2px); }
.feat-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--steel); display: grid; place-items: center; }
.feat h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--charcoal); margin: 0; }
.feat p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.feat-num { font-family: var(--font-mono); font-size: 10px; color: var(--faint); letter-spacing: 0.1em; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero h1 { font-size: 2.3rem; }
  .feat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .mock-body { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .flow-arrow { transform: rotate(90deg); }
  .mock-url { max-width: none; }
}
