:root {
  --bg: #fff8f0;
  --text: #2b2118;
  --muted: #776554;
  --primary: #6f4e37;
  --primary-dark: #573a28;
  --accent: #c68b59;
  --accent-soft: #f5dfc8;
  --success: #2e7d32;
  --warning: #b45309;
  --error: #b91c1c;
  --card: #ffffff;
  --line: #eadbcb;
  --shadow: 0 18px 45px rgba(66, 40, 19, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(198, 139, 89, 0.22), transparent 28rem),
    linear-gradient(180deg, #fff8f0 0%, #fffaf4 46%, #f8efe6 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--text);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 219, 203, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 850;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(9.5rem, 20vw, 14rem);
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(111, 78, 55, 0.25);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

nav a {
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-weight: 850;
  color: white;
  background: var(--primary);
  border: 1px solid var(--primary);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

nav a:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(111, 78, 55, 0.12);
}

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  min-height: calc(100vh - 88px);
  padding-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--primary);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
}

.page-title-soft {
  max-width: 100%;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.hero-title {
  font-size: clamp(2.65rem, 7vw, 5rem);
}

.hero h1 {
  line-height: 0.94;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  font-style: italic;
  line-height: 1.65;
}

.hero-support {
  margin: 1.25rem 0 0;
  max-width: 13ch;
  color: var(--text);
  font-size: clamp(1.65rem, 3.7vw, 2.95rem);
  font-weight: 850;
  font-style: normal;
  line-height: 1.08;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button,
button {
  border: 0;
  border-radius: 10px;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  background: var(--primary);
  color: white;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 10px 20px rgba(111, 78, 55, 0.18);
}

.button:hover,
button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.button-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-secondary:hover {
  background: #fff3e6;
  color: var(--primary-dark);
}

.button-danger {
  background: var(--error);
}

.button-warning {
  background: var(--warning);
}

.button-small {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
}

.button-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-panel,
.card,
.form-shell,
.summary-shell,
.empty-state {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(234, 219, 203, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.9rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.hero-preview-image {
  display: block;
  width: 100%;
  height: clamp(17rem, 32vw, 27rem);
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(66, 40, 19, 0.12);
}

.mock-list {
  display: grid;
  gap: 0.8rem;
}

.mock-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffcf8;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.price {
  font-weight: 900;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-weight: 850;
  font-size: 0.78rem;
  background: var(--accent-soft);
  color: var(--primary);
}

.badge-success {
  background: #e4f4e5;
  color: var(--success);
}

.badge-warning {
  background: #fff0d8;
  color: var(--warning);
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.grid-3,
.grid-2,
.summary-grid,
.perfect-grid,
.pricing-grid {
  display: grid;
  gap: 1rem;
}

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

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

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1080px);
  margin: 0 auto;
}

.image-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.image-feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.image-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-feature div {
  padding: 1.2rem;
}

.image-feature h3 {
  margin-top: 0.75rem;
}

.image-feature p {
  color: var(--muted);
  line-height: 1.55;
}

.perfect-grid {
  grid-template-columns: repeat(4, 1fr);
}

.summary-grid {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  padding: 1.25rem;
}

.step-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.step-link:hover,
.step-link:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(66, 40, 19, 0.16);
  outline: none;
}

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

.text-link {
  display: inline-flex;
  margin-top: 0.35rem;
  color: var(--primary);
  font-weight: 900;
}

.step-number {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.pill {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  background: white;
  border: 1px solid var(--line);
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.footer-logo {
  display: block;
  width: min(14rem, 100%);
  height: auto;
  margin-bottom: 0.75rem;
}

.create-run-title {
  max-width: none;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.footer a {
  color: var(--primary);
  font-weight: 800;
  margin-left: 1rem;
  text-decoration: none;
}

.form-shell,
.summary-shell {
  padding: clamp(1rem, 3vw, 2rem);
}

.page-head {
  margin-bottom: 1.4rem;
}

.account-head h1 {
  max-width: none;
  white-space: nowrap;
}

.account-empty h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.account-empty .lead {
  max-width: none;
  margin: 0.8rem auto 1.65rem;
  text-align: center;
}

.legal-head h1 {
  max-width: none;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.legal-head .lead {
  font-size: 1rem;
  font-style: normal;
}

.legal-shell {
  display: grid;
  gap: 0.85rem;
  max-width: 880px;
  margin: 0 auto;
}

.legal-shell h2 {
  margin-top: 1.1rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.legal-shell h2:first-child {
  margin-top: 0;
}

.legal-shell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  padding: 0.8rem 0.9rem;
  outline: none;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(111, 78, 55, 0.13);
}

.help {
  color: var(--muted);
  font-size: 0.9rem;
}

.error {
  color: var(--error);
  font-weight: 800;
  font-size: 0.92rem;
}

.readonly-box {
  word-break: break-all;
  border: 1px dashed var(--accent);
  background: #fffaf4;
  padding: 1rem;
  border-radius: 8px;
  color: var(--primary-dark);
  font-weight: 800;
}

.copy-message-box {
  word-break: normal;
  white-space: pre-line;
  line-height: 1.65;
}

.share-shell .lead {
  margin-top: 0.85rem;
}

.share-shell .detail-list {
  margin: 0.95rem 0;
  gap: 0.65rem;
}

.share-shell .detail {
  padding: 0.72rem 0.8rem;
}

.share-shell h3 {
  margin-top: 0.85rem;
  font-size: 1.08rem;
}

.share-shell .readonly-box {
  margin: 0.45rem 0 0;
  padding: 0.8rem 0.9rem;
}

.share-shell .copy-message-box {
  line-height: 1.45;
}

.share-shell .button-row {
  margin-top: 1.1rem;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fffcf8;
}

.detail strong {
  display: block;
  margin-bottom: 0.25rem;
}

.summary-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.86rem;
}

.summary-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.3rem 0;
}

.orders {
  display: grid;
  gap: 0.9rem;
}

.vault-grid {
  display: grid;
  gap: 1rem;
}

.vault-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: white;
}

.vault-card h2 {
  margin: 0.45rem 0 0.2rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.vault-card p {
  margin: 0;
  color: var(--muted);
}

.vault-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.vault-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.vault-meta strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.vault-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: end;
}

.vault-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.vault-head h1 {
  max-width: none;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.vault-head .lead {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.vault-plan-note {
  display: inline-flex;
  margin: 0.95rem auto 0;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 850;
}

.vault-empty h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.vault-empty .lead {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: white;
}

.summary-order-card {
  display: grid;
  grid-template-columns:
    minmax(8rem, 0.9fr)
    minmax(12rem, 1.25fr)
    minmax(6.5rem, 0.65fr)
    minmax(3rem, 0.35fr)
    minmax(16rem, 1.85fr)
    minmax(9rem, 0.9fr);
  gap: 0.85rem;
  align-items: start;
  overflow-x: auto;
}

.order-cell {
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.order-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-subtext {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.order-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0;
}

.order-title strong {
  font-size: 1rem;
}

.order-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  grid-column: 1 / -1;
  justify-content: start;
  align-content: start;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.order-action-chip {
  min-height: 32px;
  padding: 0.34rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf4;
  color: var(--primary);
  box-shadow: none;
  font-size: 0.78rem;
}

.order-action-chip:hover {
  background: #fff3e6;
}

.order-action-danger {
  color: var(--error);
}

.empty-state {
  text-align: center;
  padding: 2rem;
}

.vault-upgrade h1 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  white-space: nowrap;
}

.vault-upgrade .lead {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.vault-upgrade .button-row {
  justify-content: center;
}

.success-state h1 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  white-space: nowrap;
}

.success-state .lead {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.success-state .button-row {
  justify-content: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 140%);
  background: var(--text);
  color: white;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 800;
  z-index: 20;
  transition: transform 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 24, 0.42);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 15;
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.price-plan ul {
  padding-left: 1.15rem;
  line-height: 1.9;
}

.featured-plan {
  position: relative;
  border-color: rgba(198, 139, 89, 0.75);
}

.plan-subtitle {
  margin: 0.45rem 0 0;
  color: var(--primary);
  font-weight: 850;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--text);
}

.plan-price strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-weight: 850;
}

.annual-price {
  display: grid;
  gap: 0.25rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem;
  border-radius: 8px;
  background: #fff8f0;
  border: 1px solid var(--line);
  color: var(--primary-dark);
  font-weight: 900;
}

.annual-price span {
  color: var(--success);
  font-size: 0.9rem;
}

.plan-cta {
  width: 100%;
  margin-top: 1rem;
}

.bottom-cta {
  width: min(100%, 860px);
  margin: 1rem auto 0;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf4, #f5dfc8);
  text-align: center;
}

.bottom-cta p {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.bottom-cta .button {
  margin-top: 1rem;
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
}

.signup-copy {
  padding-top: 0.5rem;
}

.signup-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.signup-plan-card {
  margin-top: 1.4rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.signup-plan-card span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.signup-plan-card strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--primary);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
}

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

.locked {
  opacity: 0.72;
}

@media (max-width: 860px) {
  .site-header {
    align-items: start;
  }

  nav {
    justify-content: end;
    flex-wrap: wrap;
  }

  .hero,
  .grid-3,
  .grid-2,
  .image-feature-grid,
  .pricing-grid,
  .vault-card,
  .signup-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview-image {
    height: clamp(15rem, 48vw, 22rem);
  }

  .perfect-grid,
  .summary-grid,
  .detail-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer a {
    margin: 0 1rem 0 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .brand-logo {
    width: 8.8rem;
  }

  nav a:not(.button) {
    display: none;
  }

  .page {
    width: min(100% - 1rem, 1120px);
    padding-top: 1.4rem;
  }

  h1 {
    max-width: 12ch;
  }

  .perfect-grid,
  .summary-grid,
  .detail-list,
  .order-meta,
  .vault-meta,
  .summary-order-card,
  .order-card {
    grid-template-columns: 1fr;
  }

  .button-row,
  .toolbar,
  .vault-actions,
  .order-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  button {
    width: 100%;
  }

  .image-feature img {
    aspect-ratio: 1 / 1;
  }

  .hero-preview-image {
    height: 15rem;
  }

  .vault-upgrade h1,
  .vault-upgrade .lead,
  .vault-head .lead,
  .vault-empty .lead,
  .success-state h1,
  .success-state .lead {
    white-space: normal;
  }
}
