:root {
  color-scheme: light;
  --ink: #18201d;
  --muted: #65716c;
  --line: #dbe3df;
  --paper: #fbfcfa;
  --soft: #eef5f1;
  --brand: #216b52;
  --brand-dark: #134532;
  --accent: #dceee6;
  --white: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 40px;
}

.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 4px 0 30px;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  text-decoration: none;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgb(24 32 29 / 12%);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(430px, 0.96fr) minmax(390px, 0.84fr);
  gap: clamp(42px, 7vw, 86px);
  align-items: center;
  min-height: 500px;
  padding-bottom: 10px;
}

.hero::before {
  position: absolute;
  inset: -86px -36px auto auto;
  z-index: -1;
  width: min(760px, 58vw);
  aspect-ratio: 1;
  background:
    radial-gradient(circle, rgb(251 252 250 / 0%) 47%, var(--paper) 75%),
    url("./assets/glowreply-mark.png") center / cover no-repeat;
  content: "";
  opacity: 0.16;
  filter: blur(0.2px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 600px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 4.8vw, 4.65rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.lede {
  max-width: 575px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--brand-dark);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
}

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

.button.ghost {
  background: transparent;
}

.button.full {
  width: 100%;
}

.button.compact {
  min-height: 40px;
  padding: 0 14px;
}

.proof-panel,
.composer,
.results,
.pricing {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgb(24 32 29 / 8%);
}

.proof-panel {
  position: relative;
  overflow: hidden;
  width: min(100%, 500px);
  margin: 28px 0 0 auto;
  padding: 32px;
  font-size: 1rem;
  line-height: 1.65;
  box-shadow: 0 24px 70px rgb(24 32 29 / 10%);
}

.proof-panel > :not(.proof-mark) {
  position: relative;
  z-index: 1;
}

.proof-mark {
  position: absolute;
  top: -86px;
  right: -18px;
  z-index: 0;
  width: 310px;
  height: 310px;
  border-radius: 78px;
  opacity: 0.12;
  filter: blur(0.2px);
  pointer-events: none;
}

.review-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.reply-preview {
  margin-top: 24px;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: var(--soft);
  padding: 20px;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
  padding: 28px 0 32px;
}

.composer,
.results,
.pricing {
  padding: 24px;
}

.section-heading {
  margin-bottom: 20px;
}

label {
  display: block;
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  outline: 3px solid var(--accent);
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
  font-weight: 650;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.reply-list {
  display: grid;
  gap: 14px;
}

.reply-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--paper);
}

.reply-card p {
  margin-bottom: 14px;
  color: #2d3733;
  line-height: 1.55;
}

.copy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.copy-row span {
  color: var(--muted);
  font-size: 0.85rem;
}

.copy-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.55fr);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 32px 0 24px;
  background: var(--soft);
}

.pricing p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-checkout {
  margin-top: 22px;
}

.waitlist-form {
  display: grid;
  gap: 10px;
}

.waitlist-form label {
  margin: 0;
}

.status-text {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.status-text.success {
  color: var(--brand-dark);
  font-weight: 700;
}

.status-text.error {
  color: #9c2f2f;
  font-weight: 700;
}

.simple-page {
  display: grid;
  align-content: center;
  min-height: 76vh;
  max-width: 720px;
}

.simple-page .brand-lockup {
  margin-bottom: 48px;
}

.auth-card,
.workspace-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgb(24 32 29 / 8%);
}

.auth-card {
  display: grid;
  gap: 14px;
  max-width: 520px;
  padding: 24px;
}

.auth-card label {
  margin: 0;
}

.magic-link-box {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  background: var(--soft);
  padding: 14px;
}

.magic-link-box p {
  margin: 0;
  color: var(--muted);
}

.workspace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.4fr);
  gap: 24px;
  align-items: end;
  padding: 40px 0 26px;
}

.account-card {
  display: grid;
  gap: 7px;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: 0 18px 50px rgb(24 32 29 / 8%);
}

.account-card strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.account-card span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--accent);
  padding: 0 10px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.workspace-panel {
  padding: 24px;
}

.workspace-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.settings-section {
  margin-top: 24px;
}

.onboarding-panel {
  margin-top: 24px;
  background: linear-gradient(135deg, var(--white), var(--soft));
}

.onboarding-panel .section-heading p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.setup-meter {
  display: grid;
  gap: 10px;
}

.setup-meter span {
  font-size: 2.1rem;
  font-weight: 850;
  letter-spacing: 0;
}

.meter-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 180ms ease;
}

.setup-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-checklist li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 700;
}

.setup-checklist li::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  vertical-align: 1px;
}

.setup-checklist li.done {
  color: var(--brand-dark);
}

.setup-checklist li.done::before {
  border-color: var(--brand);
  background: var(--brand);
}

.brand-snapshot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.brand-snapshot h2 {
  margin-bottom: 8px;
}

.brand-snapshot p:last-child {
  max-width: 820px;
  overflow-wrap: anywhere;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.settings-form label {
  margin: 0;
}

.settings-form .button {
  justify-self: start;
  margin-top: 4px;
}

.workspace-replies {
  margin-top: 18px;
}

.history-list {
  display: grid;
  gap: 16px;
}

.empty-text {
  margin: 0;
  color: var(--muted);
}

.history-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
}

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

.history-review {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.history-replies {
  display: grid;
  gap: 10px;
}

.history-reply-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: var(--white);
  padding: 12px;
}

.history-reply-row p {
  margin: 0;
  color: #2d3733;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 24px, 680px);
    padding: 22px 0;
  }

  .hero,
  .app-grid,
  .pricing,
  .workspace-hero,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    min-height: auto;
    padding: 24px 0;
  }

  .hero::before {
    inset: 16px -24px auto auto;
    width: min(520px, 118vw);
    opacity: 0.1;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.35rem);
  }

  .proof-panel {
    width: 100%;
    margin: 0;
  }

}

@media (max-width: 520px) {
  .brand-bar {
    padding-bottom: 14px;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .pricing .button {
    width: 100%;
  }

  .history-reply-row {
    grid-template-columns: 1fr;
  }

  .setup-grid,
  .setup-checklist {
    grid-template-columns: 1fr;
  }

  .brand-snapshot {
    display: grid;
  }
}
