:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #ffffff;
  --panel: #f7f8fb;
  --accent: #0f766e;
  --accent-dark: #134e4a;
  --warm: #d97706;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, #f7f8fb 420px, #f7f8fb 100%);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(32, 33, 36, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.6fr);
  gap: 42px;
  align-items: center;
  padding: 56px 0 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 900;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

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

.panel,
.tool,
.work-info,
.preview,
.card,
.reserved-list div,
.color-list,
.grid-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.panel {
  padding: 24px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  display: block;
  height: 118px;
  margin: -24px -24px 22px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.92), rgba(217, 119, 6, 0.86)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.24) 18px 20px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(255, 255, 255, 0.24) 18px 20px);
}

.panel strong {
  display: block;
  font-size: 26px;
  line-height: 1.25;
}

.panel ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.panel li {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel);
  color: #344054;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
}

.panel li span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.trust-strip div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 18px;
  background: #fff;
}

.trust-strip strong {
  font-size: 18px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.card {
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 1.1;
  object-fit: cover;
  display: block;
  background: #fff;
}

.card div {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.card span,
.empty,
.notice,
dd,
.reserved-list span {
  color: var(--muted);
}

.narrow {
  width: min(900px, calc(100% - 32px));
  padding: 36px 0;
}

.tool {
  padding: 26px;
}

.form,
.mini-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

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

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

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

textarea {
  resize: vertical;
}

.error,
.success,
.notice {
  padding: 12px 14px;
  border-radius: 8px;
}

.error {
  color: var(--danger);
  background: #fff4f2;
}

.success,
.notice {
  background: #ecfdf3;
  color: #05603a;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 24px;
  padding: 36px 0;
}

.preview {
  padding: 18px;
}

.preview img {
  width: 100%;
  display: block;
}

.work-info {
  padding: 24px;
  align-self: start;
}

.work-info h1 {
  font-size: 38px;
}

dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 9px 14px;
  margin: 20px 0;
}

dt {
  color: #475467;
  font-weight: 900;
}

dd {
  margin: 0;
}

.follow {
  padding: 32px 0;
}

.follow-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.follow-head h1 {
  font-size: 40px;
}

.follow-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.color-list {
  padding: 14px;
  display: grid;
  gap: 8px;
  max-height: 80vh;
  overflow: auto;
}

.chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
}

.chip i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
}

.grid-wrap {
  padding: 14px;
  overflow: auto;
}

#patternCanvas {
  display: block;
  background: #fff;
}

.reserved-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.reserved-list div {
  padding: 18px;
  display: grid;
  gap: 8px;
}

@media (max-width: 860px) {
  .topbar {
    padding: 0 16px;
  }

  nav {
    display: none;
  }

  .hero,
  .work-layout,
  .follow-layout,
  .grid-2,
  .grid-4,
  .cards,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  h1 {
    font-size: 42px;
  }
}
