/* Story Writer — html2mp4 / Pixelcut-inspired light UI */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --card-bg: #f8f8f8;
  --card-radius: 32px;
  --card-pad: 24px;
  --bg: #ffffff;
  --paper: #ffffff;
  --ink: #191919;
  --muted: #8a8a8e;
  --muted-weak: #cccccc;
  --line: #f0f0f0;
  --hairline: rgba(25, 25, 25, 0.06);
  --mark: #0f766e;
  --mark-soft: #f0fdfa;
  --danger: #b42318;
  --radius: 20px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(25, 25, 25, 0.04), 0 8px 24px rgba(25, 25, 25, 0.05);
  --shadow-md: 0 8px 24px rgba(25, 25, 25, 0.06), 0 20px 48px rgba(25, 25, 25, 0.06);
  --shadow-btn: 0 1px 2px rgba(25, 25, 25, 0.12), 0 4px 10px rgba(25, 25, 25, 0.1);
  --max: 1160px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--mark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #115e59;
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: #0f3d3a;
  background: var(--mark-soft);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.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;
}

/* Header */
header.site {
  position: relative;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 0;
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand .logo-mark {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand .tag {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 28px;
  margin-left: 0.25rem;
}

.nav-center {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-start;
  margin-left: 1.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 500 0.9375rem / 1 var(--font);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: #f8f8f8;
  color: var(--ink);
  text-decoration: none;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-end .btn {
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
}

@media (min-width: 881px) {
  .nav-center {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  font-family: inherit;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary,
.btn {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover,
.btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-ghost,
.btn.secondary {
  color: var(--ink);
  background: #f5f5f5;
  border-color: transparent;
  box-shadow: none;
}

.btn-ghost:hover,
.btn.secondary:hover {
  background: #efefef;
  border-color: transparent;
  color: var(--ink);
}

.btn-outline {
  color: var(--ink);
  background: #fff;
  border-color: #ededed;
  box-shadow: none;
}

.btn-outline:hover {
  background: #f8f8f8;
  color: var(--ink);
  border-color: #ededed;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Hero — centered product landing */
.hero {
  padding: 3.5rem 0 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 46rem;
}

.notice {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-copy h1 {
  max-width: 18ch;
}

.lead,
.lede {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
  text-align: center;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  justify-content: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: var(--mono);
}

.figure {
  background: var(--card-bg);
  border: 0;
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  margin: 0;
  box-shadow: none;
  width: 100%;
  max-width: 60rem;
}

.figure.hero-figure {
  background: transparent;
  padding: 0;
  max-width: 44rem;
}

.story-preview {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 1.5rem 1.75rem;
  text-align: left;
}

.story-preview .kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.story-preview h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.story-preview p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

.story-preview figcaption,
.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* Inner / landing page hero (left-aligned) */
.page-hero {
  padding: 2rem 0 0;
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: none;
}

.page-hero .lead,
.page-hero .lede {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  font-size: 1.0625rem;
  max-width: 40rem;
}

/* Sections */
section.band {
  padding: 3.25rem 0;
}

.sec-head {
  margin-bottom: 1.5rem;
  max-width: 52rem;
}

.sec-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.sec-head p {
  color: var(--ink);
  margin: 0;
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--ink);
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

.section {
  margin-top: 2.5rem;
}

.section p,
.section li {
  color: var(--ink);
}

/* Steps / cards */
.steps,
.path-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 641px) {
  .steps,
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step-card,
.path-card,
.card {
  background: var(--card-bg);
  border: 0;
  box-shadow: none;
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.path-card {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.path-card:hover {
  background: #f2f2f2;
  text-decoration: none;
  color: inherit;
}

.path-card:hover h3 {
  color: var(--mark);
}

.path-card .k {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.path-card p {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: var(--ink);
  color: #fff;
  font: 600 14px / 1 var(--font);
}

.step-card h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin: 0 0 6px;
}

.step-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.steps-note {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Form / panel (product card, not bordered cream) */
.panel,
.form-card {
  background: var(--card-bg);
  border: 0;
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  box-shadow: none;
  margin-top: 1.5rem;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

textarea,
input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 120px;
  border: 1px solid #ededed;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

input[type="text"],
input[type="email"] {
  min-height: 0;
}

textarea:focus,
input:focus {
  border-color: #ccc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-card .btn {
  margin-top: 0.85rem;
}

/* FAQ */
details.faq {
  border: 0;
  border-radius: var(--card-radius);
  background: var(--card-bg);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

details.faq summary {
  cursor: pointer;
  padding: var(--card-pad);
  font-weight: 600;
  list-style: none;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq p {
  margin: 0;
  padding: 0 var(--card-pad) var(--card-pad);
  color: var(--ink);
}

/* Footer */
footer.site {
  border-top: 0;
  padding: 2.5rem 0 2.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--bg);
  margin-top: 2rem;
}

footer.site a {
  color: var(--muted);
  text-decoration: none;
}

footer.site a:hover {
  color: var(--mark);
}

footer.site .foot-links {
  margin-top: 0.5rem;
}

footer.site .foot-links a {
  margin-right: 0.85rem;
}

@media (max-width: 880px) {
  .hero {
    padding: 2.25rem 0 1.75rem;
    gap: 1.5rem;
  }
  .hero-copy h1 {
    max-width: none;
  }
  .nav {
    min-height: 56px;
    padding: 0.4rem 0;
  }
  .brand .tag {
    display: none;
  }
  section.band {
    padding: 2rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .nav-link,
  .path-card {
    transition: none !important;
  }
}
