:root {
  color-scheme: light;
  --ink: #16130f;
  --muted: #696d75;
  --faint: #f7f6f3;
  --line: #dedbd4;
  --line-strong: #cbc5b9;
  --paper: #fffefa;
  --panel: #ffffff;
  --green: #075f38;
  --green-2: #0b7548;
  --gold: #b57b19;
  --rose: #9c5065;
  --blue: #244f7a;
  --shadow: 0 18px 48px rgba(36, 30, 20, 0.08);
  --tight-shadow: 0 8px 24px rgba(36, 30, 20, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: #fbfaf7;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.app-view {
  display: none;
}

.product-page.app-view.is-active {
  display: block;
}

.workspace.app-view.is-active {
  display: grid;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
  padding: 0 28px;
  background: rgba(255, 254, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.brand-main,
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.brand-main {
  font-size: 28px;
  line-height: 1;
}

.brand-accent {
  color: var(--gold);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 25px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.nav-button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4d535b;
  font-weight: 700;
}

.nav-button.active {
  color: white;
  background: var(--green);
}

.credit-pill,
.avatar-menu,
.ghost-button,
.tiny-button,
.outline-action,
.text-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.credit-pill:hover,
.avatar-menu:hover,
.ghost-button:hover,
.outline-action:hover,
.price-card:hover,
.shot-row:hover,
.style-chip:hover {
  border-color: var(--line-strong);
  box-shadow: var(--tight-shadow);
  transform: translateY(-1px);
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: white;
  background: var(--gold);
  font-size: 12px;
  line-height: 1;
}

.coin.large {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: #f6ecd9;
  color: var(--gold);
  border: 1px solid #e1be72;
}

.small-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
}

.ghost-button,
.avatar-menu {
  padding: 0 12px;
}

.avatar-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: white;
  background: #064b2e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.workspace {
  display: grid;
  grid-template-columns: 336px minmax(560px, 1fr) 330px;
  min-height: calc(100vh - 70px);
}

.left-rail,
.editor-panel {
  background: var(--paper);
}

.left-rail {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow: auto;
  padding: 22px 28px 28px;
  border-right: 1px solid var(--line);
}

.flow-card {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 0 0 22px;
}

.flow-card::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 28px;
  bottom: -6px;
  width: 1px;
  background: var(--line-strong);
}

.flow-card:last-of-type::before {
  display: none;
}

.step-dot {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  color: white;
  background: var(--green);
  font-weight: 800;
}

.step-dot.muted {
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

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

.step-heading h2,
.flow-card h2 {
  margin: 2px 0 4px;
  font-size: 22px;
  line-height: 1.1;
}

.check,
.status-good,
.readiness-top strong,
.gate-list strong {
  color: var(--green);
}

.flow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.reference-row {
  display: flex;
  gap: 12px;
  margin: 20px 0 16px;
}

.reference-thumb {
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #ece7df;
}

.reference-thumb img {
  width: 200%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reference-thumb.ref-a img {
  object-position: left center;
}

.reference-thumb.ref-b img {
  object-position: right center;
  transform: translateX(-50%);
}

.thumb-check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--green);
  background: white;
  font-weight: 800;
}

.upload-box {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 76px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #42464d;
  text-align: center;
}

.upload-box input {
  display: none;
}

.upload-mark {
  color: var(--blue);
  font-weight: 750;
}

.upload-box small,
.prompt-notes small {
  color: var(--muted);
}

.readiness-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.readiness-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.meter {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7d9d7;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.gate-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.gate-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cost-card {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  padding: 18px;
  border: 1px solid #dbc69c;
  border-radius: 8px;
  background: #fff9ed;
}

.cost-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.canvas-panel {
  min-width: 0;
  padding: 22px 26px 30px;
  background: #fbfaf7;
}

.title-row,
.section-heading,
.panel-title,
.readiness-top,
.checkout-line,
.version-tabs,
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.editable-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

h1 {
  margin: 0 0 4px;
  font-size: 27px;
  line-height: 1.12;
}

.title-row p,
.section-heading p {
  margin: 0;
  color: var(--muted);
}

.tiny-button,
.text-button {
  min-height: 32px;
  padding: 0 10px;
  color: #4d525c;
  background: transparent;
}

.outline-action {
  padding: 0 18px;
  font-weight: 750;
}

.style-strip {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.style-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #3e4248;
}

.style-chip.selected {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.45fr) minmax(190px, 0.58fr);
  gap: 12px;
}

.proof-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #ddd5cc;
  box-shadow: var(--shadow);
}

.proof-card.selected {
  border-color: rgba(7, 95, 56, 0.45);
}

.proof-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.proof-card.alternate img {
  object-position: center;
}

.proof-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.proof-overlay.top {
  top: 14px;
}

.proof-overlay.bottom {
  bottom: 14px;
  right: auto;
  color: white;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.proof-overlay.bottom span {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--ink);
  background: white;
  text-shadow: none;
  font-size: 12px;
  font-weight: 800;
}

.proof-overlay.bottom strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-left: 8px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
}

.selected-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-weight: 750;
}

.floating-actions {
  display: flex;
  gap: 8px;
}

.floating-actions button {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 20px;
  box-shadow: var(--tight-shadow);
}

.planned-section,
.export-section {
  margin-top: 22px;
}

.section-heading {
  align-items: end;
  margin-bottom: 10px;
}

.section-heading h2,
.panel-title h2,
.approve-card h2,
.modal-card h2 {
  margin: 0 0 5px;
  font-size: 22px;
  line-height: 1.16;
}

.shot-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.shot-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 0.8fr) minmax(170px, 1.2fr) 92px 108px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.shot-row:last-child {
  border-bottom: 0;
}

.shot-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #525861;
  font-size: 12px;
  font-weight: 800;
}

.shot-row span,
.shot-row em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.shot-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.shot-row.generated {
  background: #f7fbf8;
}

.shot-row.generated button {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.price-card {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.price-card.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(7, 95, 56, 0.2);
}

.price-card strong {
  margin-top: 8px;
}

.price-card span:not(.tag):not(.coin) {
  color: var(--muted);
  font-size: 13px;
}

.price-card em {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: #5d626b;
  font-style: normal;
  font-size: 13px;
}

.price-card b {
  position: absolute;
  right: 18px;
  bottom: 19px;
}

.tag {
  justify-self: start;
  margin: -18px auto 0;
  min-height: 23px;
  padding: 3px 12px;
  border-radius: 0 0 8px 8px;
  color: white;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.editor-panel {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow: auto;
  padding: 24px 28px 28px;
  border-left: 1px solid var(--line);
}

.panel-title {
  align-items: start;
  margin-bottom: 22px;
}

.version-tabs {
  margin-bottom: 20px;
}

.version-tabs span {
  margin-right: auto;
}

.version-tabs button {
  min-width: 64px;
  min-height: 31px;
  border: 1px solid var(--line);
  background: white;
}

.version-tabs button:first-of-type {
  border-radius: 8px 0 0 8px;
}

.version-tabs button:last-of-type {
  border-radius: 0 8px 8px 0;
}

.version-tabs button.active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.control {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

.control span,
.toggle-row strong {
  font-weight: 750;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

select {
  min-height: 45px;
  padding: 0 12px;
}

textarea {
  min-height: 88px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.toggle-row {
  align-items: center;
  margin: 10px 0 16px;
}

.toggle-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.toggle {
  position: relative;
  flex: 0 0 48px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #bfc5c3;
}

.toggle span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: white;
  transition: transform 160ms ease;
}

.toggle.active {
  background: var(--green);
}

.toggle.active span {
  transform: translateX(22px);
}

.issue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.issue-chips button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #50555d;
}

.issue-chips button.selected {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.primary-action,
.approve-button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--green);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(7, 95, 56, 0.22);
}

.primary-action span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.primary-action.working {
  background: var(--blue);
}

.micro-status {
  min-height: 20px;
  margin: 14px 0 24px;
  color: var(--muted);
  text-align: center;
}

.approve-card {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #e1d7c5;
  border-radius: 8px;
  background: #fffaf1;
  text-align: center;
}

.approve-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.approve-button {
  min-height: 48px;
  margin-bottom: 12px;
  font-size: 15px;
}

.download-button {
  border: 0;
  background: transparent;
  color: #4d535b;
}

.modal {
  width: min(580px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.modal::backdrop {
  background: rgba(22, 19, 15, 0.36);
  backdrop-filter: blur(3px);
}

.modal-card {
  position: relative;
  padding: 26px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.modal-card.wide {
  width: min(760px, calc(100vw - 32px));
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 22px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.55;
}

.checkout-line {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.checkout-line:last-of-type {
  border-bottom: 1px solid var(--line);
}

.full-width {
  margin-top: 20px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.module-grid span {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--faint);
  font-weight: 750;
}

.product-page {
  padding: 36px 28px 48px;
  background: #fbfaf7;
}

.home-hero,
.page-section,
.page-head,
.plan-grid,
.account-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 142px);
}

.hero-copy h1,
.page-head h1 {
  max-width: 720px;
  margin: 10px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

.hero-copy p,
.page-head p,
.split-section p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions,
.trust-row,
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-action.compact {
  display: inline-grid;
  width: auto;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.trust-row {
  margin-top: 22px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #4d535b;
  font-size: 13px;
  font-weight: 750;
}

.hero-preview {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  background: #ded7ce;
  box-shadow: var(--shadow);
}

.hero-preview img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  display: block;
}

.preview-card {
  position: absolute;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: var(--tight-shadow);
}

.preview-card span {
  color: var(--muted);
  font-size: 13px;
}

.quality-card {
  top: 18px;
  left: 18px;
}

.cost-preview {
  right: 18px;
  bottom: 18px;
}

.page-section {
  margin-top: 34px;
  padding: 28px 0;
}

.capability-grid,
.pricing-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.capability-grid article,
.pricing-notes article,
.plan-card,
.account-card,
.account-summary,
.account-stats article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.capability-grid article,
.pricing-notes article {
  padding: 18px;
}

.capability-grid p,
.pricing-notes p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: start;
}

.funnel-list {
  display: grid;
  gap: 10px;
}

.funnel-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.funnel-list strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: white;
  background: var(--green);
}

.page-head {
  padding: 34px 0 28px;
  text-align: center;
}

.page-head h1,
.page-head p {
  margin-left: auto;
  margin-right: auto;
}

.billing-toggle {
  justify-content: center;
  margin-top: 20px;
}

.billing-toggle button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: white;
  color: #4d535b;
}

.billing-toggle button:first-child {
  border-radius: 8px 0 0 8px;
}

.billing-toggle button:last-child {
  border-radius: 0 8px 8px 0;
}

.billing-toggle button.active {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.plan-card.featured {
  border-color: rgba(7, 95, 56, 0.6);
  box-shadow: 0 0 0 1px rgba(7, 95, 56, 0.18), var(--shadow);
}

.plan-card h2 {
  margin: 0;
  font-size: 28px;
}

.plan-card p,
.project-list span,
.account-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.plan-price {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1;
}

.plan-card ul {
  display: grid;
  gap: 9px;
  margin: 4px 0;
  padding-left: 18px;
  color: #42464d;
}

.muted-tag {
  color: var(--green);
  background: #eef7f1;
}

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

.account-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.account-summary,
.account-card {
  padding: 24px;
}

.account-summary {
  position: sticky;
  top: 94px;
  text-align: center;
}

.large-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  font-size: 34px;
}

.account-summary h1 {
  margin: 0 0 6px;
  font-size: 32px;
}

.account-main {
  display: grid;
  gap: 16px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.account-stats article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.account-stats span {
  color: var(--muted);
}

.account-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-list article {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-list img {
  width: 76px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.project-list button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.settings-grid {
  display: grid;
  gap: 10px;
}

.settings-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

input[type="email"] {
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 288px minmax(0, 1fr);
  }

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

  .editor-panel {
    position: static;
    grid-column: 1 / -1;
    height: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .home-hero,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
  }

  .account-summary {
    position: static;
  }
}

@media (max-width: 820px) {
  .topbar {
    height: auto;
    min-height: 66px;
    align-items: start;
    padding: 16px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .nav-button {
    flex: 1 0 auto;
  }

  .top-actions {
    gap: 8px;
  }

  .ghost-button,
  .avatar-menu {
    display: none;
  }

  .workspace {
    display: block;
  }

  .workspace.app-view {
    display: none;
  }

  .workspace.app-view.is-active {
    display: block;
  }

  .left-rail,
  .editor-panel {
    position: static;
    height: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .canvas-panel {
    padding: 20px 16px;
  }

  .title-row,
  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .proof-grid,
  .pricing-grid,
  .module-grid,
  .capability-grid,
  .pricing-notes,
  .plan-grid,
  .split-section,
  .account-stats {
    grid-template-columns: 1fr;
  }

  .product-page {
    padding: 24px 16px 34px;
  }

  .hero-copy h1,
  .page-head h1 {
    font-size: 42px;
  }

  .hero-preview,
  .hero-preview img {
    min-height: 430px;
  }

  .project-list article {
    grid-template-columns: 64px 1fr;
  }

  .project-list button {
    grid-column: 2;
    justify-self: start;
  }

  .proof-card,
  .proof-card img {
    min-height: 330px;
  }

  .shot-row {
    grid-template-columns: 34px 1fr;
  }

  .shot-row span,
  .shot-row em,
  .shot-row button {
    grid-column: 2;
  }

  .shot-row button {
    justify-self: start;
    padding: 0 18px;
  }
}

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

  .top-actions {
    justify-content: space-between;
  }

  .credit-pill {
    flex: 1;
    justify-content: center;
  }

  .brand-main {
    font-size: 24px;
  }

  .brand-accent {
    font-size: 22px;
  }

  .left-rail,
  .editor-panel {
    padding: 20px 16px;
  }

  .reference-thumb {
    width: calc(50% - 6px);
  }

  .hero-actions,
  .trust-row {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-card {
    position: static;
    margin: 10px;
  }
}
