/* Sonicbean — editorial paper design system
   Differentiated from matrix violet/cyan dark-lab skins:
   Fraunces + Source Sans 3, solid paper nav, light hero, sharp radius, no neon glow */

:root {
  --ink: #141210;
  --ink-soft: #3d3832;
  --paper: #f6f1e8;
  --paper-2: #efe8db;
  --cream: #fbf8f2;
  --line: #d9d0c0;
  --accent: #c45c26;
  --accent-deep: #9a4318;
  --forest: #1f4d3a;
  --forest-soft: #2d6a4f;
  --muted: #6b645a;
  --white: #fffdf9;
  --radius: 2px;
  --radius-md: 4px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Solid paper nav — not dark glass */
.nav-blur {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: var(--paper);
  border-bottom: 2px solid var(--ink);
  box-shadow: none;
  color: var(--ink);
}

.nav-blur a {
  color: var(--ink-soft);
}

.nav-blur a:hover {
  color: var(--accent-deep);
}

.nav-brand {
  color: var(--ink);
}

.nav-brand .brand-mark {
  color: var(--accent);
  font-style: italic;
}

.gradient-text {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

/* Light editorial hero — not neon dark lab */
.hero-bg {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* Grid on ::before only — mask must not fade hero text */
.grid-bg {
  position: relative;
  isolation: isolate;
}

.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.grid-bg > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
}

.card-hover {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--line) !important;
  background: var(--white) !important;
  color: var(--ink);
  box-shadow: none;
}

.card-hover:hover {
  transform: none;
  border-color: var(--ink) !important;
  box-shadow: 4px 4px 0 var(--ink);
}

/* Popular plan: paper + hard offset, not dark neon */
.pricing-popular {
  border: 2px solid var(--ink) !important;
  box-shadow: 8px 8px 0 var(--accent);
  position: relative;
  background: var(--white) !important;
  color: var(--ink);
}

.pricing-popular h3,
.pricing-popular p,
.pricing-popular li,
.pricing-popular span {
  color: inherit;
}

.pricing-popular::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 1rem;
  transform: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.fade-up {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* No floating glow */
.float-anim {
  animation: none;
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--paper);
  transition: max-height 0.25s ease;
}

.mobile-menu.open {
  max-height: 28rem;
}

.mobile-menu a {
  color: var(--ink-soft) !important;
}

.mobile-menu a:hover {
  background: var(--paper-2) !important;
  color: var(--accent-deep) !important;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--forest);
  border: 1px solid var(--line);
  box-shadow: none;
}

.dashboard-mock {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--forest);
  overflow: hidden;
  color: var(--ink);
}

.dashboard-mock .mock-chrome {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.dashboard-mock .mock-stat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mock-chart-bar {
  border-radius: 0;
  background: var(--forest);
  min-width: 1.25rem;
  box-shadow: none;
  opacity: 0.85;
}

.mock-chart-bar:nth-child(even) {
  background: var(--accent);
  opacity: 0.9;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: none;
  border-radius: var(--radius);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn-ghost:hover {
  background: var(--paper-2);
}

.form-message {
  display: none;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: #e8f5ee;
  color: var(--forest);
  border: 1px solid #b7dcc8;
}

.form-message.error {
  background: #fdecea;
  color: #9b1c1c;
  border: 1px solid #f5c2c0;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(31, 77, 58, 0.2);
}

.surface-light input,
.surface-light select,
.surface-light textarea {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.code-block {
  background: var(--ink);
  color: #e8dcc8;
  border-radius: var(--radius-md);
  border: 1px solid var(--ink);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.letter-tile {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--forest);
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-family: var(--font-display);
}

.footer-link:hover {
  color: #e8b089;
}

.site-footer {
  background: var(--ink);
  color: #b8b0a4;
}

.site-footer a {
  color: #cfc6b8;
}

.site-footer .footer-heading {
  color: var(--cream);
}

.insights-band {
  background: var(--forest);
  color: #eef6f1;
}

.insights-band .muted {
  color: #b7d0c4;
}

body.page-light {
  background: var(--cream);
  color: var(--ink);
}

body.page-light .nav-blur {
  background-color: var(--paper);
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
}
