:root {
  --bg: #f5efe4;
  --paper: rgba(255, 252, 247, 0.88);
  --ink: #1b2427;
  --muted: #5b6664;
  --line: rgba(27, 36, 39, 0.12);
  --brand: #0d7d69;
  --brand-soft: #d9efe8;
  --accent: #f1dfbf;
  --shadow: rgba(30, 38, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(13, 125, 105, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", "Menlo", monospace;
}

.page-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero,
.section,
.note-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 50px var(--shadow);
}

.hero {
  padding: 28px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.eyebrow,
.kicker {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.lang-button.is-active {
  background: var(--brand);
  color: #f7fffc;
}

.hero h1,
.section-heading h2,
.note-card h2 {
  margin: 14px 0 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.section-heading h2,
.note-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.hero-copy,
.section-heading p,
.card p,
.local-item p,
.step-card p,
.note-card p,
.snippet-box p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.hero-panel > div,
.step-card,
.card,
.local-item,
.snippet-box {
  border: 1px solid var(--line);
  border-radius: 20px;
}

.hero-panel > div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.panel-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-panel code,
.meta code,
.step-card code,
.snippet-box code {
  font-size: 0.95rem;
  word-break: break-word;
}

.hero-actions,
.snippet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 20px;
}

.action-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.action-button.primary {
  background: var(--brand);
  color: #f5fffc;
}

.action-button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #f5fffc;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.copy-feedback {
  min-height: 1.4em;
  color: var(--brand);
  font-size: 0.95rem;
}

main {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.section {
  padding: 28px;
}

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

.section-heading p {
  margin: 12px 0 0;
}

.steps-grid,
.card-grid,
.local-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.steps-grid,
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.local-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card,
.card,
.local-item {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 250, 244, 0.9));
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.step-card h3,
.card h3,
.local-item h3 {
  margin: 14px 0 10px;
  font-size: 1.28rem;
}

.card-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(13, 125, 105, 0.1);
  color: var(--brand);
  font-size: 0.83rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.meta {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.meta div {
  display: grid;
  gap: 4px;
}

.meta dt {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.meta dd {
  margin: 0;
  line-height: 1.5;
}

.section-connect .snippet-box {
  margin-top: 20px;
  padding: 20px;
  background: #20292d;
  color: #f8f2e8;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.prompt-card-title {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.snippet-box pre {
  margin: 0 0 16px;
  overflow-x: auto;
  white-space: pre-wrap;
}

.note-card {
  padding: 28px;
  background: linear-gradient(135deg, rgba(13, 125, 105, 0.12), rgba(255, 252, 247, 0.96));
}

@media (max-width: 960px) {
  .hero-panel,
  .steps-grid,
  .card-grid,
  .local-list,
  .prompt-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100vw - 20px, 1120px);
    padding: 20px 0 36px;
  }

  .hero,
  .section,
  .note-card {
    border-radius: 22px;
  }

  .hero,
  .section,
  .note-card {
    padding: 20px;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-switch,
  .hero-actions,
  .snippet-actions {
    width: 100%;
  }

  .lang-switch {
    justify-content: space-between;
  }

  .lang-button,
  .action-button {
    flex: 1;
    text-align: center;
  }
}
