/* LessonLayer: shared static site styles. No animation, no tracking. */

:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --fg: #1a1a16;
  --muted: #5a564c;
  --accent: #14532d;
  --accent-contrast: #ffffff;
  --border: #e3ddd0;
  --focus: #0b57d0;
  --max-width: 1140px;
  --content-width: 680px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

a {
  color: var(--accent);
}

a:visited {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1rem;
}

.site-footer {
  border-bottom: none;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.site-nav .brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--fg);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
}

.site-nav ul a:hover {
  color: var(--accent);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

main > section {
  margin: 3.5rem 0;
}

main > .hero {
  margin: 0;
}

.site-footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}

h2 {
  font-size: 1.5rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: var(--content-width);
}

.hero .lede {
  font-size: 1.3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.proof-line {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.preview-large {
  grid-column: 1 / -1;
}

.preview-small-a,
.preview-small-b {
  margin-top: -2.25rem;
  position: relative;
  z-index: 1;
}

.preview-small-a {
  transform: rotate(-1.5deg);
  justify-self: start;
}

.preview-small-b {
  transform: rotate(1.5deg);
  justify-self: end;
}

.visual-provenance {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.85rem 0 0;
}

.founder-line {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}

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

  .hero-visual {
    grid-template-columns: 1fr;
    margin-top: 2.5rem;
  }

  .preview-small-a,
  .preview-small-b {
    margin-top: 0;
    transform: none;
    justify-self: stretch;
  }
}

main p,
.faq dd {
  max-width: var(--content-width);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--accent);
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:visited {
  color: var(--accent-contrast);
}

.btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  border-color: var(--accent);
}

.btn-disabled {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  border: 2px dashed var(--border);
  font-weight: 600;
}

/* Examples: the full showcase uses a lightweight, typography-led card
   treatment. Spacing separates cards rather than borders or shadows. */

.showcase-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 1.5rem 0 0;
}

.card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.card p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.card a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.card {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Showcase provenance. Transparent about where the launch examples come
   from, stated once at page level rather than repeated per card, without
   letting the source collection compete with LessonLayer for attention.
   --muted sits at roughly 8:1 on the page background, so "secondary" never
   becomes "hard to read". */

.provenance-note {
  color: var(--muted);
  max-width: var(--content-width);
  margin: 0.75rem 0 0;
}

.founder-placeholder {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  color: var(--muted);
}

/* Pricing */

.pricing h2 {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.15rem;
}

.price-figure {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1rem;
}

.founder-placeholder.pricing,
.pricing .founder-placeholder {
  margin-top: 0.5rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}

.checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-secondary {
  margin: 0.75rem 0 0;
}

.pricing-secondary .btn {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: none;
  border-radius: 0;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
}

.pricing-secondary .btn:hover {
  transform: none;
}

.pricing-secondary .btn-disabled {
  background: transparent;
  border: none;
  padding: 0;
}

.material-fieldset {
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.upload-area {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--surface);
  margin-bottom: 1.5rem;
}

.upload-area label {
  font-size: 1.15rem;
}

.upload-area input[type="file"] {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--fg);
}

.field {
  margin-bottom: 1.1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.faq dt {
  font-weight: 700;
  margin-top: 1.5rem;
}

.faq dd {
  margin-left: 0;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
