/* A2Linx light system: border-led surfaces and a product-first landing page. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f5f5f5;
  --border: #e5e5e5;
  --border2: #d4d4d4;
  --text: #171717;
  --muted: #525252;
  --hint: #737373;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --accent-text: #ffffff;
  --pro: #7c3aed;
  --pro-bg: #f3edff;
  --radius: 12px;
  --radiuslg: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .07);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, .09);
  --admin-accent: #2563eb;
}
html { scroll-behavior: smooth; }
body, button, input, textarea, select { font-family: Inter, 'DM Sans', Arial, sans-serif; }
body { background: var(--bg); color: var(--text); line-height: 1.5; }
h1, h2, h3, h4 { font-family: Inter, 'DM Sans', Arial, sans-serif; font-weight: 500; letter-spacing: -.025em; line-height: 1.14; }
em, .feature-card h3 em { font-style: normal; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn { border-radius: 8px; font-weight: 600; box-shadow: none; }
.btn-primary { background: #171717; color: #fff; }
.btn-primary:hover { background: #333; }
.btn-outline, .btn-ghost { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover, .btn-ghost:hover { color: var(--text); border-color: var(--border2); background: var(--surface2); }
.btn-lg { padding: 12px 20px; font-size: 14px; border-radius: 8px; }
.btn-sm { padding: 8px 14px; }
.nav { position: relative; background: #fff; border-color: var(--border); backdrop-filter: none; }
.nav-inner { max-width: 1200px; padding: 16px 24px; min-height: 72px; }
.nav-logo, .auth-logo, .sidebar-logo-text, .footer-brand, .admin-logo { font-family: Inter, 'DM Sans', Arial, sans-serif; font-weight: 700; letter-spacing: -.055em; }
.nav-logo { font-size: 24px; }
.nav-logo span, .auth-logo span, .sidebar-logo-text span, .admin-logo span { color: var(--accent); }
.nav-links { gap: 8px; }
.nav-links a:not(.btn) { color: var(--text); padding: 8px 14px; border-radius: 9999px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); background: var(--surface2); }
.nav-links .nav-login { border: 1px solid var(--border); border-radius: 8px !important; margin-left: 16px; }

/* Landing: the single prominent object is the product itself. */
.landing .hero { padding: 78px 24px 88px; background: #fff; }
.landing .hero::before { inset: 0; height: auto; background-image: radial-gradient(#d8d8d8 .7px, transparent .7px); background-size: 16px 16px; opacity: .35; filter: none; mask-image: linear-gradient(#000, transparent 92%); }
.landing .hero-inner { max-width: 1200px; display: flex; flex-direction: column; gap: 56px; }
.landing .hero-copy { text-align: center; max-width: 780px; }
.landing .hero-modes { justify-content: center; margin-bottom: 22px; gap: 7px; }
.landing .mode-chip { background: #fff; border: 1px solid var(--border); color: var(--text); border-radius: 9999px; padding: 7px 13px; font-size: 12px; font-weight: 500; }
.landing .mode-chip .icon { color: #ea580c; }
.landing .mode-chip:nth-child(2) .icon { color: #7c3aed; }
.landing .mode-chip:nth-child(3) .icon { color: #16a34a; }
.landing .hero-title { max-width: 740px; margin: 0 auto 20px; font-size: clamp(42px, 5.3vw, 64px); font-weight: 500; line-height: 1.07; letter-spacing: -.055em; }
.landing .hero-sub { color: var(--muted); max-width: 580px; margin: 0 auto 26px; font-size: 17px; line-height: 1.55; }
.landing .hero-cta { justify-content: center; margin-bottom: 16px; }
.landing .hero-social-proof { font-size: 12px; color: var(--hint); }
.landing .hero-title span { color: var(--accent); }
.landing .hero-visual { width: 100%; min-height: 0; }
.mode-showcase { width: min(100%, 980px); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 42px; align-items: center; text-align: left; padding: 42px; background: #f7f9fc; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 16px 48px rgba(16,24,40,.06); }
.showcase-eyebrow { display: inline-block; color: var(--accent-dark); font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.showcase-intro h2 { font-size: clamp(29px,3.4vw,42px); line-height: 1.12; max-width: 390px; margin-bottom: 16px; }
.showcase-intro p { color: var(--muted); max-width: 380px; font-size: 15px; line-height: 1.6; }
.showcase-url { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 24px; padding: 9px 12px; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; }
.showcase-url .icon { width: 15px; height: 15px; color: var(--accent); }
.showcase-example { display: block; color: var(--hint); font-size: 11px; margin-top: 11px; }
.showcase-preview { width: 100%; max-width: 350px; justify-self: center; }
.showcase-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 12px; background: #e8edf5; border-radius: 9px; }
.showcase-tab { border: 0; border-radius: 7px; padding: 9px 8px; background: transparent; color: var(--muted); font: 600 12px Inter, Arial, sans-serif; cursor: pointer; }
.showcase-tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.showcase-phone { overflow: hidden; border: 1px solid #d8dfe9; border-radius: 20px; background: #fff; box-shadow: 0 14px 36px rgba(16,24,40,.12); }
.showcase-phone-bar { height: 35px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--border); color: var(--hint); font-size: 10px; }
.showcase-phone-bar .icon { width: 13px; height: 13px; }
.showcase-panel[hidden] { display: none; }
.sample-card { text-align: center; }
.sample-cover { height: 88px; background: linear-gradient(125deg,#21436a,#557db3); }
.sample-avatar,.sample-links-avatar { display: grid; place-items: center; width: 68px; height: 68px; margin: -34px auto 0; border: 4px solid #fff; border-radius: 50%; background: #c9d9ee; color: #244569; font-size: 20px; font-weight: 700; }
.sample-card-body { padding: 8px 25px 22px; display: flex; flex-direction: column; align-items: center; }
.sample-card-body strong,.sample-links strong { font-size: 21px; font-weight: 700; letter-spacing: -.04em; }
.sample-card-body > span { font-size: 13px; color: var(--muted); }
.sample-card-body > small { font-size: 11px; color: var(--hint); margin-top: 2px; }
.sample-card-body p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 15px 0; }
.sample-actions { display: flex; width: 100%; gap: 7px; }
.sample-actions span { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; padding: 8px; border: 1px solid var(--border); border-radius: 7px; font-size: 11px; font-weight: 600; }
.sample-actions .icon,.sample-social .icon,.sample-links-social .icon { width: 14px; height: 14px; }
.sample-save { width: 100%; margin-top: 7px; padding: 9px; border-radius: 7px; background: #1d4269; color: #fff; font-size: 11px; font-weight: 600; }
.sample-social,.sample-links-social { display: flex; gap: 20px; margin-top: 18px; color: #315b87; }
.sample-links { display: flex; flex-direction: column; align-items: center; min-height: 385px; padding: 48px 25px 24px; background: linear-gradient(#f0f5fb,#fff 65%); text-align: center; }
.sample-links-avatar { margin: 0 0 10px; border-color: #fff; }
.sample-links > span { max-width: 230px; color: var(--muted); font-size: 12px; margin: 3px 0 18px; }
.sample-link { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; margin-bottom: 8px; border: 1px solid #d7e1ed; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; }
.sample-link .icon { width: 13px; height: 13px; }
.sample-links-social { margin: 12px 0 16px; }
.sample-links-save { color: #315b87; font-size: 11px; font-weight: 600; }
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding: 28px 24px; }
.trust-grid > div { display: grid; grid-template-columns: 22px 1fr; column-gap: 9px; align-items: center; }
.trust-grid .icon { grid-row: span 2; width: 18px; height: 18px; color: var(--accent); }
.trust-grid strong { font-size: 13px; }
.trust-grid span { color: var(--hint); font-size: 11px; }
.pricing-intro { max-width: 560px; margin: -17px auto 35px; color: var(--muted); text-align: center; font-size: 14px; }
.plan-card .plan-price .price-num { color: var(--text); font-size: 40px; font-weight: 600; }
.plan-card:last-child .plan-price .price-num { font-size: 30px; }
.features-strip { background: #fff; border-color: var(--border); }
.feature-item { color: var(--muted); padding: 16px 22px; }
.feature-item .icon { color: var(--accent); }
.container { max-width: 1200px; }
.features { padding: 84px 0 96px; }
.section-label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--accent); font-weight: 600; }
.section-title { max-width: 680px; font-size: clamp(32px, 3.5vw, 44px); font-weight: 500; letter-spacing: -.045em; line-height: 1.12; margin-bottom: 32px; }
.features-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; border: 0; }
.feature-card { padding: 25px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .15s; }
.feature-card:hover { background: #fff; border-color: var(--border2); transform: none; box-shadow: none; }
.feature-icon, .feature-card:nth-child(n) .feature-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--surface2); color: var(--accent); margin-bottom: 20px; }
.feature-card:nth-child(2) .feature-icon { color: #7c3aed; }
.feature-card:nth-child(3) .feature-icon { color: #16a34a; }
.feature-card:nth-child(4) .feature-icon { color: #ea580c; }
.feature-icon .icon { width: 18px; height: 18px; }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.pricing-preview { padding: 88px 0 96px; background: var(--surface2); border-color: var(--border); }
.pricing-preview .section-title { margin-left: auto; margin-right: auto; }
.billing-toggle { border-color: var(--border); background: #fff; border-radius: 9999px; }
.billing-opt { font-family: inherit; color: var(--muted); border-radius: 9999px; }
.billing-opt.active { background: #171717; color: #fff; }
.billing-opt:not(.active) .save-pill { background: #dcfce7; color: #166534; }
.plan-card { background: #fff; border-radius: 12px; padding: 28px; }
.plan-card.plan-featured { border-color: #171717; box-shadow: none; }
.plan-badge { background: #dbeafe; color: var(--accent-dark); text-transform: none; letter-spacing: 0; }
.plan-name { color: var(--text); font-size: 14px; text-transform: none; letter-spacing: 0; }
.plan-price { font-family: inherit; font-size: 40px; font-weight: 600; }
.plan-price span { color: var(--muted); }
.plan-features li { color: var(--text); border-bottom: 1px solid var(--border); }
.plan-features li.muted { color: var(--hint); }
.footer { margin-top: 0; padding: 48px 0 32px; background: #fff; }
.footer-brand { font-size: 20px; }

/* Shared forms and application surfaces. */
.auth-page { background: var(--surface2); }
.auth-card, .auth-box { border-radius: 16px; box-shadow: none; background: #fff; }
.auth-title { font-weight: 600; }
.auth-badge { background: #dbeafe; color: var(--accent-dark); }
.form-input, .a-input, .filter-input, .filter-select, .save-modal-input, .link-input, .editor-field input, .editor-field textarea, .e-field input, .e-field textarea, .e-field select { background: #fff; color: var(--text); border: 1px solid #a3a3a3; border-radius: 6px; }
.form-input:focus, .a-input:focus, .filter-input:focus, .filter-select:focus, .save-modal-input:focus, .link-input:focus, .editor-field input:focus, .editor-field textarea:focus, .e-field input:focus, .e-field textarea:focus, .e-field select:focus { border-color: var(--accent); }
.form-error, .a-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.page-btn.active { background: #171717; border-color: #171717; color: #fff; }
.app-shell, .admin-shell { background: #fff; }
.app-sidebar, .admin-sidebar { width: 232px; background: #fff; }
.sidebar-nav-item, .a-nav-item { color: var(--muted); }
.sidebar-nav-item.active, .a-nav-item.active { background: #dbeafe; color: var(--accent-dark); font-weight: 600; }
.sidebar-nav-item:hover, .a-nav-item:hover { background: var(--surface2); color: var(--text); }
.app-main, .admin-main { background: #fff; }
.app-topbar, .a-topbar, .editor-stepbar { background: #fff; min-height: 64px; }
.app-topbar-title, .a-topbar-title { font-family: inherit; font-size: 20px; font-weight: 600; letter-spacing: -.035em; }
.cards-grid-wrap { max-width: 1200px; gap: 12px; }
.card-thumb, .stat-card, .analytics-stat, .analytics-chart-wrap, .settings-section, .qr-preview-wrap, .stat-mini, .upgrade-gate, .contact-box, .chart-wrap { border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: none; }
.card-thumb:hover { border-color: var(--border2); transform: none; box-shadow: none; }
.new-card-tile { border-radius: 12px; }
.analytics-num, .stat-mini-num, .stat-accent { color: var(--accent) !important; font-family: inherit; font-weight: 600; }
.user-avatar { background: #dbeafe; color: var(--accent-dark); }
.w-icon-btn.active { background: #dbeafe; color: var(--accent-dark); }
.w-icon-btn:hover { background: var(--surface2); }
.e-preview, .editor-preview-area { background: var(--surface2); }
.phone-wrap { box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.publish-btn, .copy-btn, .a-btn { background: #171717; color: #fff; border-radius: 8px; }
.publish-btn:hover, .copy-btn:hover, .a-btn:hover { background: #333; }
.editor-step.active, .editor-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.badge-pro, .badge-qr { background: #f3edff; color: #6d28d9; }
.badge-email { background: #dbeafe; color: var(--accent-dark); }
.badge-mfa { background: #dcfce7; color: #166534; }
.public-card-page { background: var(--surface2); }
.public-card, .save-modal-card { border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.public-card-name, .save-modal-title { font-family: inherit; font-weight: 600; }
.public-card-btn, .public-card-save { border-radius: 8px; }
.public-card-save { background: #171717; }
.toast { background: #171717; color: #fff; border-color: #171717; }
.faq-nav a { background: #fff; border-color: var(--border); color: var(--text); }
.faq-nav a:hover { border-color: var(--border2); }
.support h1 { font-weight: 500; }
.callout-orange { background: #fff7ed; color: #9a3412; }
.callout-blue { background: #eff6ff; color: #1e40af; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mode-showcase { gap: 24px; padding: 30px; }
}
@media (max-width: 680px) {
  .nav-inner { padding: 12px 16px; min-height: 60px; }
  .nav-links { gap: 2px; }
  .nav-links a:not(.btn) { padding: 7px 8px; font-size: 12px; }
  .nav-links a[href="/#features"], .nav-links a[href="/support"] { display: none; }
  .nav-links .nav-login { margin-left: 0; }
  .landing .hero { padding: 54px 16px 60px; }
  .landing .hero-inner { gap: 38px; }
  .landing .hero-title { font-size: clamp(38px, 9vw, 50px); }
  .landing .hero-sub { font-size: 15px; }
  .mode-showcase { grid-template-columns: 1fr; gap: 28px; padding: 26px 18px; }
  .showcase-intro { text-align: center; }
  .showcase-intro h2,.showcase-intro p { margin-left: auto; margin-right: auto; }
  .showcase-url { margin-left: auto; margin-right: auto; }
  .trust-grid { grid-template-columns: 1fr; gap: 18px; }
  .features { padding: 64px 0; }
  .pricing-preview { padding: 68px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .app-sidebar, .admin-sidebar { width: 60px; }
  .sidebar-logo-text, .admin-logo, .sidebar-nav-item, .a-nav-item { font-size: 0; }
  .sidebar-nav-item, .a-nav-item { justify-content: center; padding: 11px 8px; }
  .sidebar-nav-icon, .a-nav-icon { font-size: 18px; }
  .sidebar-footer, .admin-footer { display: none; }
}
@media (max-width: 470px) {
  .nav-links a[href="/#pricing"] { display: none; }
  .nav-links .nav-login { border: 0; }
  .landing .hero-modes { flex-wrap: wrap; }
  .features-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .feature-item { padding: 10px 14px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
