
:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eef4f1;
  --ink: #14213d;
  --muted: #64748b;
  --line: #d8e1dc;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --accent: #d97706;
  --danger: #b91c1c;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 225, 220, 0.9);
  background: rgba(245, 247, 244, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topnav a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.topnav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: 28px;
  min-height: 420px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  overflow: hidden;
}

.intro-copy {
  max-width: 680px;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  margin-top: 10px;
  font-size: 64px;
}

h2 {
  font-size: 34px;
}

.lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: #334155;
  font-size: 19px;
}

.intro-actions,
.inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.intro-actions {
  margin-top: 28px;
}

.button,
.icon-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

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

.button.primary:hover {
  background: var(--brand-strong);
}

.button.secondary,
.icon-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover,
.icon-button:hover {
  border-color: #b7c7c0;
  background: var(--surface-soft);
}

.intro-media {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.workspace {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 14px;
}

.auth-note,
.status-box {
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.auth-note {
  margin-bottom: 12px;
  color: #334155;
  font-weight: 700;
}

.status-box p {
  margin: 0;
}

.status-title {
  font-size: 22px;
  font-weight: 850;
}

.status-meta {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #334155;
}

.subscription-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.subscription-link input {
  min-width: 0;
  flex: 1;
}

.stack {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5d1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input {
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  min-height: 132px;
  resize: vertical;
  padding: 12px;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.25);
  outline-offset: 2px;
}

.form-message,
.muted {
  color: var(--muted);
}

.form-message {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--brand-strong);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.instructions {
  margin-top: 42px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.tab {
  min-height: 40px;
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.instruction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  align-items: stretch;
}

.steps {
  display: none;
  margin: 0;
  padding: 24px 24px 24px 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.steps.active {
  display: grid;
  gap: 14px;
}

.steps li {
  padding-left: 6px;
}

.instruction-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .intro,
  .workspace,
  .instruction-grid {
    grid-template-columns: 1fr;
  }

  .intro-media {
    max-height: 260px;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .intro {
    padding: 22px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 28px;
  }

  .lead {
    font-size: 17px;
  }

  .button,
  .icon-button,
  .inline-form input,
  .inline-form .button {
    width: 100%;
  }

  .subscription-link {
    align-items: stretch;
    flex-direction: column;
  }
}
