/* linmdev front page. Design language after npsomewhere.com (light surfaces, 1080px column, soft 22px cards, 800-weight
   headings with one gradient line, overlapping product shots, a glowing call-to-action card), in linmdev's own teal. */
:root {
  --surface: #f5f5f5; --surface-bright: #fcfcfc; --surface-dim: #eeeeee; --surface-low: #e6e6e6;
  --on-surface: #121417; --on-variant: #5f6670; --outline: #8a9099; --outline-variant: #e6e8eb;
  --primary: #0f7c73; --primary-strong: #0b625b; --primary-tint: rgba(15, 124, 115, 0.12);
  --grad-a: #12a394; --grad-b: #2f6bff; --grad-c: #8b5cf6;
  --amber: #8f5300; --danger: #b3261e; --danger-soft: #fbe9e7;
  --r-card: 22px; --r-chip: 14px; --r-pill: 999px; --r-input: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.14);
  --maxw: 1080px; --nav-h: 64px; --gutter: 20px;
  --font: 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--on-surface); font-family: var(--font); font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: var(--on-surface); letter-spacing: -0.02em; line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.1; }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: clamp(22px, 3vw, 28px); }
p { margin: 0; }
p + p { margin-top: 12px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
button, input, textarea { font: inherit; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 560px; }
.muted { color: var(--on-variant); }
.note { font-size: 13px; color: var(--on-variant); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--on-surface); color: #fff; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 600; }
.skip:focus { top: 12px; }
.grad { background-image: linear-gradient(90deg, var(--grad-a), var(--grad-b) 55%, var(--grad-c)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent; font-weight: 650; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-strong); color: #fff; }
.btn-ghost { background: var(--surface-bright); color: var(--on-surface); border-color: var(--outline-variant); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--outline); color: var(--on-surface); }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Navigation */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: rgba(245, 245, 245, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--outline-variant); }
.nav { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); min-height: var(--nav-h); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: var(--on-surface); letter-spacing: -0.02em; }
.wordmark::before { content: ''; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); box-shadow: 0 4px 10px rgba(47, 107, 255, 0.25); }
.nav-menu { display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap; }
.nav-links { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 10px; color: var(--on-variant); font-size: 14px; font-weight: 650; border-radius: var(--r-pill); }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.nav-actions .btn-ghost { box-shadow: none; background: transparent; border-color: transparent; color: var(--on-variant); }
.nav-actions .btn-ghost:hover { color: var(--primary); }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--outline-variant); background: var(--surface-bright); color: var(--on-surface); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle-bar { position: relative; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
@media (max-width: 799px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 0 16px; }
  .js .nav-menu.is-open { display: flex; }
  .js .nav-links { flex-direction: column; gap: 2px; }
  .js .nav-links a { padding: 10px 12px; }
  .js .nav-actions { margin-left: 0; flex-direction: column; align-items: stretch; }
  .js .nav-actions .btn { width: 100%; }
  .js .nav-actions .btn-ghost { border-color: var(--outline-variant); background: var(--surface-bright); }
  .nav { padding-top: 10px; padding-bottom: 10px; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--surface-bright), var(--surface)); padding: clamp(52px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero__inner { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__logo { width: 72px; height: 72px; margin-bottom: 22px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.12)); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--primary); background: var(--primary-tint); padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
.hero h1 { margin-bottom: 18px; }
.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--on-variant); max-width: 46ch; }
.hero-shots { position: relative; justify-self: center; width: 100%; }
.shot-frame { background: var(--surface-bright); border: 1px solid var(--outline-variant); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); }
.shot-frame .shot { margin: 0; }
.shot-frame .shot-button { border-radius: 0; }
.shot-frame .shot-caption { padding: 10px 16px 12px; border-top: 1px solid var(--outline-variant); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--outline-variant); background: var(--surface-bright); font-size: 12px; font-weight: 600; color: var(--on-variant); }
.frame-bar::before, .frame-bar::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-low); }
.frame-bar::after { margin-right: 6px; }
.shot-frame--second { position: absolute; left: -4%; bottom: -10%; width: 46%; z-index: 2; display: none; }
.shot-frame .shot-caption { display: none; }
.hero-shots__caption { font-size: 12.5px; color: var(--on-variant); margin-top: 12px; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 0.95fr 1.05fr; }
  .shot-frame--second { display: block; }
  .hero-shots__caption { margin-top: calc(10% + 14px); margin-left: 44%; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(32px, 5vw, 48px); }
.section__head h2 { margin-bottom: 12px; }
.section__head p { color: var(--on-variant); font-size: 17px; }

/* Shots inside cards */
.shot { margin: 0; }
.shot-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: var(--r-chip); overflow: hidden; }
.shot-button img { width: 100%; }
.shot-caption { font-size: 12.5px; color: var(--on-variant); margin: 8px 0 0; }
.story-card__shot .shot-button, .step-card__shot .shot-button { border: 1px solid var(--outline-variant); background: #0e1726; }
.shot-missing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 16 / 10; width: 100%; border: 1px dashed var(--outline); border-radius: var(--r-chip); background: var(--surface-dim); color: var(--on-variant); text-align: center; padding: 16px; }
.shot-missing-label { font-weight: 700; color: var(--on-surface); }
.shot-missing-sub { font-size: 13px; }

/* Tool story cards */
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.story-card { display: flex; flex-direction: column; gap: 22px; background: var(--surface-bright); border: 1px solid var(--outline-variant); border-radius: var(--r-card); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; min-width: 0; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--outline); }
.story-card__copy { display: flex; flex-direction: column; gap: 12px; }
.story-card__copy p { color: var(--on-variant); font-size: 16px; max-width: 48ch; }
.story-card__shot { margin-top: auto; }
.story-card__shot .shot-card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.status-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; padding: 6px 12px; border-radius: var(--r-pill); width: max-content; }
.status-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--primary); background: var(--primary-tint); }
.status-dev { color: var(--amber); background: rgba(143, 83, 0, 0.1); }
.caps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--on-surface); }
.caps li { padding-left: 24px; position: relative; }
.caps li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 14px; height: 14px; border-radius: 50%; background: var(--primary-tint); box-shadow: inset 0 0 0 2px var(--primary); }
.data-note { font-size: 13px !important; color: var(--on-variant); }
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.story-card--compact { gap: 10px; }
.story-card--compact .story-card__copy p { max-width: 70ch; }
@media (min-width: 820px) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-card--compact { grid-column: 1 / -1; }
}

/* Walkthrough: one wide card per step */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.step-card { display: grid; gap: 22px; align-items: center; background: var(--surface-bright); border: 1px solid var(--outline-variant); border-radius: var(--r-card); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.step-num { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: var(--on-surface); color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.step-copy h3 { margin-bottom: 10px; }
.step-copy p { color: var(--on-variant); font-size: 16px; max-width: 46ch; }
@media (min-width: 900px) {
  .step-card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr); gap: 36px; }
}

/* Access: the glowing call-to-action card with the form inside */
.cta { position: relative; display: grid; gap: 28px; padding: clamp(26px, 4vw, 48px); border-radius: var(--r-card); border: 1px solid var(--outline-variant); background: var(--surface-bright); overflow: hidden; box-shadow: var(--shadow-sm); }
.cta__bg { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; z-index: 0; }
.cta__circle { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.75; }
.cta__circle--a { width: 52vw; max-width: 560px; height: 52vw; max-height: 560px; left: -10%; top: -30%; background: var(--grad-a); }
.cta__circle--b { width: 44vw; max-width: 480px; height: 44vw; max-height: 480px; right: -8%; top: -20%; background: var(--grad-c); }
.cta__circle--c { width: 40vw; max-width: 440px; height: 40vw; max-height: 440px; right: 20%; bottom: -40%; background: var(--grad-b); }
.cta__blur { position: absolute; inset: -60px; background: rgba(252, 252, 252, 0.72); backdrop-filter: blur(70px); -webkit-backdrop-filter: blur(70px); }
.cta__text, .cta__form { position: relative; z-index: 1; }
.cta__text h2 { margin-bottom: 14px; }
.cta__text p { color: var(--on-variant); font-size: 17px; max-width: 48ch; }
.panel { background: var(--surface-bright); border: 1px solid var(--outline-variant); border-radius: var(--r-card); padding: clamp(22px, 3vw, 28px); box-shadow: var(--shadow-md); }
.request h3 { font-size: 20px; margin-bottom: 14px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 650; }
.field .opt { font-weight: 500; color: var(--on-variant); font-size: 12px; margin-left: 4px; }
.field .req { color: var(--primary); }
.field input, .field textarea { width: 100%; background: var(--surface); color: var(--on-surface); border: 1px solid var(--outline-variant); border-radius: var(--r-input); padding: 11px 14px; font-size: 15px; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); background: var(--surface-bright); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.help { font-size: 12.5px; color: var(--on-variant); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: 14px; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--primary); font-weight: 650; }
.form-error { color: var(--danger); background: var(--danger-soft); border: 1px solid #e8b3ae; border-radius: var(--r-input); padding: 10px 12px; font-size: 14px; }
.privacy { font-size: 12.5px; color: var(--on-variant); }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; } }

/* About */
.about { text-align: center; max-width: 680px; margin: 0 auto; }
.about h2 { margin-bottom: 14px; }
.about p { color: var(--on-variant); font-size: 17px; }
.about .muted { font-size: 15px; }

/* Sign-in pages */
.auth main { display: flex; align-items: center; padding: 48px 0; }
.auth-panel h1 { font-size: 30px; margin-bottom: 10px; }
.auth-panel .muted { margin-bottom: 18px; }
.auth-panel .form { margin-top: 6px; }
.tool-list { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inline-form { display: inline-block; margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--outline-variant); padding: 44px 0 32px; margin-top: 24px; color: var(--on-variant); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.footer-brand { margin-bottom: 10px; font-size: 17px; }
.footer-text { margin: 0 0 6px; max-width: 36rem; line-height: 1.7; }
.copy-btn { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; padding: 3px 8px; border: 1px solid var(--outline-variant); border-radius: 7px; background: transparent; color: var(--on-variant); font-size: 12px; cursor: pointer; }
.copy-btn:hover { color: var(--primary); background: var(--surface-dim); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }
.footer-links a { color: var(--on-surface); }
.footer-links a:hover { color: var(--primary); }
.footer-note { margin: 18px 0 0; font-size: 12px; color: var(--on-variant); line-height: 1.6; }

/* Lightbox */
.lightbox { border: 1px solid var(--outline-variant); border-radius: var(--r-card); background: var(--surface-bright); color: var(--on-variant); padding: 0; max-width: min(96vw, 1700px); width: auto; max-height: 94vh; overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox::backdrop { background: rgba(18, 20, 23, 0.6); backdrop-filter: blur(6px); }
.lightbox-img { max-width: calc(96vw - 2px); max-height: 82vh; width: auto; height: auto; object-fit: contain; display: block; margin: 0 auto; background: #0e1726; }
.lightbox-caption { margin: 0; padding: 12px 60px 14px 18px; font-size: 13.5px; border-top: 1px solid var(--outline-variant); }
.lightbox-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--outline-variant); background: var(--surface-bright); color: var(--on-surface); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.lightbox-close:hover { border-color: var(--outline); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .story-card:hover { transform: none; }
}
