:root {
  --ink: #202724;
  --muted: #68736d;
  --paper: #f6f1e7;
  --panel: #fffdf8;
  --green: #315b4b;
  --green-soft: #dfe9dd;
  --red: #b85143;
  --gold: #d7ae58;
  --line: #ded7c8;
  --shadow: 0 22px 60px rgba(32, 39, 36, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(49, 91, 75, .08) 1px, transparent 1px),
    linear-gradient(rgba(49, 91, 75, .07) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  font-family: "Hiragino Sans", "Yu Gothic", "Avenir Next", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(32, 39, 36, .12);
  background: rgba(246, 241, 231, .88);
  backdrop-filter: blur(16px);
}

.brand,
.nav a,
.primary-link,
.secondary-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--green);
  color: #fff;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(320px, .9fr);
  gap: 38px;
  align-items: center;
  min-height: calc(100vh - 67px);
  padding: 54px clamp(18px, 5vw, 72px) 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 112px);
  line-height: .96;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-link,
.secondary-link,
.generate-button,
#copyButton {
  border-radius: 8px;
  font-weight: 900;
}

.primary-link,
.secondary-link {
  padding: 14px 20px;
}

.primary-link {
  background: var(--ink);
  color: #fff;
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
}

.hero-board {
  transform: rotate(-1.5deg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.board-top {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.board-top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.board-label {
  color: var(--muted);
  font-weight: 900;
}

.hero-board h2 {
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.18;
}

.hero-board p:last-child {
  color: var(--muted);
  line-height: 1.8;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px) 56px;
  border: 1px solid var(--line);
  background: var(--line);
}

.value-strip div {
  display: grid;
  gap: 7px;
  padding: 24px;
  background: rgba(255, 253, 248, .82);
}

.value-strip strong {
  font-size: 28px;
}

.value-strip span {
  color: var(--muted);
}

.studio-section,
.plans {
  padding: 58px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.06;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: 18px;
}

.control-panel,
.result-panel,
.plan,
.use-cases article {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .9);
  box-shadow: var(--shadow);
}

.control-panel {
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 91, 75, .14);
}

.generate-button {
  width: 100%;
  border: 0;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  padding: 14px 18px;
}

.result-panel {
  overflow: hidden;
}

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--green-soft);
}

.result-head h3 {
  margin-bottom: 0;
  font-size: 28px;
}

#copyButton {
  border: 1px solid rgba(32,39,36,.16);
  background: #fff;
  cursor: pointer;
  padding: 10px 14px;
}

#resultBox {
  min-height: 528px;
  margin: 0;
  padding: 24px;
  background: #1f2724;
  color: #fff9e8;
  white-space: pre-wrap;
  line-height: 1.75;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 15px;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 32px clamp(18px, 5vw, 72px) 54px;
}

.use-cases article {
  padding: 26px;
}

.use-cases span {
  color: var(--red);
  font-weight: 900;
}

.use-cases h3 {
  margin-top: 24px;
  font-size: 26px;
}

.use-cases p,
.plan p,
.plan li {
  color: var(--muted);
  line-height: 1.75;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan {
  padding: 26px;
}

.plan.featured {
  background: var(--ink);
  color: #fff;
}

.plan.featured p,
.plan.featured li {
  color: #e8deca;
}

.plan h3 {
  font-size: 30px;
}

.price {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 42px;
  font-weight: 900;
}

.featured .price {
  color: #fff;
}

.price span {
  font-size: 15px;
}

.plan ul {
  padding-left: 18px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 920px) {
  .hero,
  .studio-grid,
  .value-strip,
  .use-cases,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 44px;
  }

  .hero-actions,
  .footer {
    display: grid;
  }
}
