:root {
  --bg: #f6f3ee;
  --bg-soft: #fffaf2;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-dark: #201a16;
  --text: #1e1814;
  --muted: #63584c;
  --muted-strong: #4d443b;
  --line: rgba(62, 48, 34, 0.12);
  --line-strong: rgba(62, 48, 34, 0.2);
  --brand: #ff6f3c;
  --brand-strong: #d95422;
  --brand-soft: rgba(255, 111, 60, 0.14);
  --accent: #17937d;
  --accent-soft: rgba(23, 147, 125, 0.14);
  --warning: #ffb648;
  --success: #1d9b6f;
  --shadow-lg: 0 30px 80px rgba(56, 38, 16, 0.12);
  --shadow-md: 0 20px 44px rgba(56, 38, 16, 0.1);
  --shadow-sm: 0 12px 24px rgba(56, 38, 16, 0.07);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --section-space: clamp(72px, 8vw, 112px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 182, 72, 0.12), transparent 22%),
    radial-gradient(circle at 92% 16%, rgba(23, 147, 125, 0.1), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, #f6f3ee 45%, #f4f7f3 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(14px);
  pointer-events: none;
}

body::before {
  top: 4%;
  left: -120px;
  width: 300px;
  height: 300px;
  background: rgba(255, 111, 60, 0.08);
}

body::after {
  right: -160px;
  bottom: 12%;
  width: 420px;
  height: 420px;
  background: rgba(23, 147, 125, 0.08);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(23, 147, 125, 0.32);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 16px;
  transform: translateY(-150%);
  padding: 12px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: transform 0.25s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--section-space) 0;
}

.section-tight {
  padding: 54px 0;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding-top: 14px;
}

.site-header.is-scrolled .site-nav {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 38px rgba(44, 31, 17, 0.12);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--warning));
  color: #fff;
  box-shadow: 0 18px 26px rgba(255, 111, 60, 0.24);
  font-size: 1.08rem;
}

.brand-text {
  font-size: 1.08rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.98rem;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--warning));
  color: #fff;
  box-shadow: 0 18px 28px rgba(255, 111, 60, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 22px 32px rgba(255, 111, 60, 0.32);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border: 1px solid rgba(62, 48, 34, 0.1);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 1);
}

.button-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.button.is-active::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 48%, rgba(255, 255, 255, 0.18));
  z-index: -1;
  animation: pulse-ring 0.72s ease;
}

@keyframes pulse-ring {
  from {
    opacity: 0.85;
    transform: scale(0.98);
  }
  to {
    opacity: 0;
    transform: scale(1.08);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: #7a5e46;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #46d2b7);
  box-shadow: 0 0 0 6px rgba(23, 147, 125, 0.12);
}

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

.section-head h2,
.page-title {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  letter-spacing: -0.05em;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
}

.section-lead,
.page-lead {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.76;
}

.hero {
  padding-top: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 174px);
}

.hero-copy h1 {
  margin: 18px 0 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(3rem, 6vw, 5.7rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
  max-width: 10ch;
}

.hero-copy h1 span {
  background: linear-gradient(135deg, var(--brand), var(--warning));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  margin: 24px 0 0;
  max-width: 580px;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.75;
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: var(--muted-strong);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-points li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--warning));
  box-shadow: 0 0 0 5px rgba(255, 111, 60, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.hero-stat {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.hero-stat strong {
  display: block;
  font-size: 1.24rem;
  color: var(--brand-strong);
  margin-bottom: 5px;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 182, 72, 0.24), transparent 28%),
    radial-gradient(circle at 92% 16%, rgba(23, 147, 125, 0.16), transparent 28%),
    linear-gradient(135deg, #fff8ef 0%, #f7f4ef 48%, #eef7f3 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-card::before {
  width: 180px;
  height: 180px;
  top: -50px;
  right: -40px;
  background: rgba(255, 182, 72, 0.18);
}

.hero-card::after {
  width: 140px;
  height: 140px;
  left: -36px;
  bottom: -36px;
  background: rgba(23, 147, 125, 0.16);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(84, 65, 47, 0.18);
}

.window-dots span:nth-child(1) { background: #ff9671; }
.window-dots span:nth-child(2) { background: #ffd36f; }
.window-dots span:nth-child(3) { background: #56cc9d; }

.window-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(84, 65, 47, 0.1);
  font-size: 0.88rem;
  color: #745f4b;
}

.app-grid {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.side-panel {
  padding: 18px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.upload-drop {
  display: block;
  border-radius: 20px;
  padding: 18px;
  border: 1.5px dashed rgba(255, 111, 60, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
  text-align: center;
  color: var(--muted);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.upload-drop:hover,
.upload-drop:focus-within {
  transform: translateY(-2px);
  border-color: rgba(255, 111, 60, 0.58);
  box-shadow: 0 18px 24px rgba(255, 111, 60, 0.12);
}

.upload-drop strong {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
}

.upload-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 111, 60, 0.16), rgba(255, 182, 72, 0.18));
  color: var(--brand-strong);
  font-size: 1.4rem;
}

.input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.panel-title {
  font-size: 0.9rem;
  color: #785f4a;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pill-list,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(62, 48, 34, 0.1);
  color: #624f40;
  font-size: 0.92rem;
}

.pill.active,
.chip.is-active {
  background: linear-gradient(135deg, rgba(255, 111, 60, 0.16), rgba(255, 182, 72, 0.22));
  border-color: rgba(255, 111, 60, 0.2);
  color: #8c4017;
  font-weight: 700;
}

.stat-card {
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(62, 48, 34, 0.08);
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.preview-panel {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(62, 48, 34, 0.09);
  color: #6f5b4c;
  font-size: 0.88rem;
}

.preview-title {
  margin: 8px 0 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.64rem;
  letter-spacing: -0.04em;
}

.editor-stage {
  position: relative;
  min-height: 430px;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(18, 17, 17, 0.88), rgba(34, 24, 17, 0.72)),
    radial-gradient(circle at 25% 25%, rgba(255, 182, 72, 0.32), transparent 32%);
  display: grid;
  grid-template-rows: 1fr auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stage-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.canvas {
  position: relative;
  display: grid;
  align-items: stretch;
  padding: 56px 18px 18px;
  gap: 12px;
  min-height: 100%;
  transition: all 0.35s ease;
}

.canvas.template-split-vertical {
  grid-template-columns: 1fr 1fr;
}

.canvas.template-split-horizontal {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}

.canvas.template-side-by-side,
.canvas.template-ja-vs {
  grid-template-columns: 1fr 1fr;
}

.canvas.template-caption {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding-top: 18px;
}

.caption-strip {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #221d19;
  min-height: 72px;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: -0.02em;
}

.canvas.template-caption .caption-strip {
  display: flex;
}

.canvas-frame {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 182, 72, 0.35), transparent 28%),
    linear-gradient(135deg, #ffe0bf, #f4c69d 48%, #d8f4ed 100%);
}

.canvas-frame.secondary {
  background:
    radial-gradient(circle at 80% 15%, rgba(23, 147, 125, 0.32), transparent 28%),
    linear-gradient(135deg, #ffe5d2, #efba7f 48%, #ffd78b 100%);
}

.canvas-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(0deg, rgba(14, 12, 11, 0.14), transparent 44%);
  pointer-events: none;
}

.mock-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mock-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-avatar {
  width: 72%;
  aspect-ratio: 4 / 5;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.6), transparent 20%),
    linear-gradient(180deg, #ffe8cd 0%, #edbb8f 40%, #b96b44 100%);
  position: relative;
  box-shadow: 0 22px 30px rgba(33, 21, 12, 0.18);
}

.mock-avatar::before,
.mock-avatar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
}

.mock-avatar::before {
  top: 13%;
  width: 39%;
  height: 28%;
  background: linear-gradient(180deg, #6b341d, #2a1c14);
}

.mock-avatar::after {
  top: 25%;
  width: 31%;
  height: 24%;
  background: #ffd7b0;
  box-shadow:
    0 54px 0 18px #ffd7b0,
    0 116px 0 44px rgba(255, 255, 255, 0.18);
}

.frame-tag {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 1;
}

.frame-chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(62, 48, 34, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  color: #554434;
}

.vs-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border: 4px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 20px 26px rgba(0, 0, 0, 0.25);
}

.canvas.template-ja-vs .vs-badge {
  display: grid;
}

.editor-toolbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.tool {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  text-align: center;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.step-card,
.template-card,
.feature-card,
.faq-item,
.legal-card,
.contact-card,
.privacy-card {
  position: relative;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.step-card,
.template-card,
.feature-card,
.legal-card,
.privacy-card {
  padding: 24px;
}

.step-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  pointer-events: none;
}

.step-card::before {
  right: -44px;
  bottom: -44px;
  background: rgba(255, 182, 72, 0.14);
}

.feature-card::before {
  right: -34px;
  top: -30px;
  transform: rotate(12deg);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 111, 60, 0.14), rgba(23, 147, 125, 0.14));
}

.step-index {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 111, 60, 0.18), rgba(255, 182, 72, 0.22));
  color: #8a3f16;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
}

.card-title {
  margin: 0 0 12px;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.template-card {
  display: grid;
  gap: 18px;
  min-height: 286px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.template-card:hover,
.template-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 24px 34px rgba(44, 30, 17, 0.14);
}

.template-preview {
  height: 160px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #fce2c7, #f7edd7 50%, #daf0e7 100%);
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(62, 48, 34, 0.08);
}

.template-preview .mini {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.36), transparent 22%),
    linear-gradient(180deg, #e9ac77, #c0693f);
}

.template-preview .mini::after {
  content: "";
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.template-preview.vertical,
.template-preview.side-by-side,
.template-preview.ja-vs {
  grid-template-columns: 1fr 1fr;
}

.template-preview.horizontal {
  grid-template-rows: 1fr 1fr;
}

.template-preview.side-by-side {
  background: linear-gradient(135deg, #fde8d8, #fff3da 52%, #d7f2e8 100%);
}

.template-preview.side-by-side .mini:last-child {
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.36), transparent 22%),
    linear-gradient(180deg, #9cc7b6, #447f70);
}

.template-preview.ja-vs {
  position: relative;
}

.template-preview.ja-vs::before {
  content: "VS";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(31, 26, 23, 0.18);
}

.template-preview.caption {
  grid-template-rows: auto 1fr auto;
  background: linear-gradient(180deg, #171514, #38302b 90%);
}

.template-preview.caption .caption-band {
  min-height: 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 147, 125, 0.12);
  color: #0b745f;
  font-size: 0.78rem;
  font-weight: 700;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.feature-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card.highlight {
  display: grid;
  align-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 182, 72, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.8));
}

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

.metric {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(62, 48, 34, 0.08);
}

.metric strong {
  display: block;
  color: var(--brand-strong);
  font-size: 1.34rem;
  margin-bottom: 5px;
}

.editor-shell {
  padding: 24px;
}

.editor-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  margin-top: 26px;
}

.editor-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(62, 48, 34, 0.08);
}

.editor-preview {
  padding: 16px;
  border-radius: 30px;
  background: linear-gradient(160deg, #1b1714, #34261e 64%, #181413 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #4d433a;
}

.field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(62, 48, 34, 0.12);
  background: rgba(250, 249, 247, 0.92);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field:focus {
  outline: none;
  border-color: rgba(255, 111, 60, 0.34);
  box-shadow: 0 0 0 5px rgba(255, 111, 60, 0.1);
}

.chip {
  border: 1px solid rgba(62, 48, 34, 0.1);
}

.chip-button {
  background: rgba(255, 255, 255, 0.76);
}

.generate-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 111, 60, 0.12), rgba(23, 147, 125, 0.1));
  border: 1px solid rgba(255, 111, 60, 0.12);
}

.generate-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.privacy-grid,
.contact-grid,
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.privacy-points,
.legal-points {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.privacy-point,
.legal-point {
  display: flex;
  gap: 12px;
  align-items: start;
  color: var(--muted);
  line-height: 1.7;
}

.privacy-icon,
.legal-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(23, 147, 125, 0.12), rgba(255, 111, 60, 0.12));
  color: var(--accent);
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 22px;
}

.faq-intro {
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 182, 72, 0.18), transparent 24%),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-md);
}

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

.faq-item {
  overflow: hidden;
}

.faq-button {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  text-align: left;
}

.faq-question {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.faq-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 111, 60, 0.1);
  color: #8f4217;
  font-size: 1.2rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: rgba(23, 147, 125, 0.14);
  color: #0d7661;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 24px;
  color: var(--muted);
  line-height: 1.72;
  transition: max-height 0.32s ease, opacity 0.32s ease, padding 0.32s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 240px;
  opacity: 1;
  padding: 0 24px 22px;
}

.contact-card {
  padding: 30px;
}

.contact-card strong {
  color: var(--text);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-note {
  margin-top: 16px;
  color: var(--muted);
}

.site-footer {
  padding: 8px 0 40px;
}

.footer-card {
  padding: 26px;
  border-radius: 30px;
  background: rgba(29, 24, 20, 0.95);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 54px rgba(29, 24, 20, 0.2);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-brand p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.64);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: start;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff2d5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 0.92rem;
}

.page-hero {
  padding-top: 34px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 32px;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
}

.breadcrumb li:last-child::after {
  display: none;
}

.hero-illustration {
  padding: 26px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 182, 72, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-md);
}

.hero-illustration img {
  width: 100%;
  height: auto;
}

.legal-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.legal-aside {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 22px;
}

.legal-aside h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.26rem;
  letter-spacing: -0.03em;
}

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

.legal-aside a {
  color: var(--muted);
}

.legal-aside a:hover,
.legal-aside a:focus-visible {
  color: var(--text);
}

.legal-stack {
  display: grid;
  gap: 18px;
}

.legal-card h2,
.legal-card h3 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  letter-spacing: -0.03em;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.78;
}

.legal-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.notice {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 182, 72, 0.14);
  border: 1px solid rgba(255, 182, 72, 0.22);
  color: #6a4a23;
}

.not-found {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
  padding: 34px 0 68px;
}

.not-found-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
  padding: 28px;
}

.not-found-copy h1 {
  margin: 16px 0 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.not-found-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.74;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.muted-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 14px 0 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero-grid,
  .feature-layout,
  .editor-grid,
  .faq-layout,
  .page-hero-grid,
  .legal-layout,
  .not-found-card {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .card-grid-4,
  .card-grid-5,
  .feature-stack,
  .privacy-grid,
  .contact-grid,
  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid {
    min-height: auto;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 880px) {
  .site-header {
    top: 8px;
  }

  .nav-links,
  .nav-actions .button {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel {
    display: block;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .mobile-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-panel nav {
    display: grid;
    gap: 10px;
  }

  .mobile-panel a,
  .mobile-panel button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(62, 48, 34, 0.08);
    background: rgba(255, 255, 255, 0.82);
  }

  .card-grid-4,
  .card-grid-5,
  .feature-stack,
  .privacy-grid,
  .contact-grid,
  .legal-grid,
  .app-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

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

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

  .preview-top,
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions,
  .not-found-actions {
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4.3rem);
  }

  .canvas.template-split-vertical,
  .canvas.template-side-by-side,
  .canvas.template-ja-vs {
    grid-template-columns: 1fr;
  }

  .canvas-frame {
    min-height: 216px;
  }

  .canvas.template-ja-vs .vs-badge {
    top: calc(50% - 6px);
  }

  .editor-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

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

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

.flash-stack {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.flash-message,
.inline-flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(62, 48, 34, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.flash-success {
  border-color: rgba(29, 155, 111, 0.18);
  background: rgba(29, 155, 111, 0.08);
}

.flash-error {
  border-color: rgba(217, 84, 34, 0.2);
  background: rgba(255, 111, 60, 0.08);
}

.auth-shell {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(100%, 620px);
  padding: 34px;
  border-radius: 30px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
}

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

.field-group {
  display: grid;
  gap: 10px;
}

.field-group > span {
  font-weight: 700;
  color: var(--muted-strong);
}

.field,
select.field,
textarea.field {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

textarea.field {
  min-height: 120px;
  resize: vertical;
}

.code-field {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.upload-thumbnail {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.upload-thumbnail img {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.upload-thumbnail-copy {
  display: grid;
  gap: 6px;
}

.upload-thumbnail-copy strong {
  font-size: 1rem;
}

.upload-thumbnail-copy span {
  color: var(--muted);
  line-height: 1.5;
}

.page-head {
  padding-bottom: 0;
}

.section-tight {
  padding-top: 8px;
}

.creator-grid,
.two-column,
.feature-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 22px;
}

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

.creator-sidebar {
  align-content: start;
}

.template-selector {
  display: grid;
  gap: 10px;
}

.template-option {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.template-option input {
  margin-top: 4px;
}

.template-option strong,
.card-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.template-option small,
.card-copy {
  color: var(--muted);
  line-height: 1.65;
}

.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
}

.suggestion-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(23, 147, 125, 0.08);
  border: 1px solid rgba(23, 147, 125, 0.14);
  color: var(--muted-strong);
}

.ai-match-list {
  display: grid;
  gap: 12px;
}

.ai-match-card {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(55, 42, 29, 0.08);
  box-shadow: var(--shadow-sm);
}

.ai-match-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.ai-match-card-loading,
.ai-match-card-empty {
  background: rgba(246, 244, 239, 0.86);
}

.ai-match-summary {
  background: linear-gradient(135deg, rgba(255, 111, 60, 0.10), rgba(31, 157, 132, 0.10));
}

.ai-match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ai-match-head strong {
  font-size: 1rem;
}

.ai-match-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 157, 132, 0.12);
  color: #0f7660;
  font-weight: 700;
  font-size: 0.88rem;
}

.ai-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-match-meta span,
.ai-match-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(55, 42, 29, 0.08);
  color: var(--text);
  font-size: 0.88rem;
  text-decoration: none;
}

.ai-match-link-disabled {
  color: var(--muted);
  background: rgba(246, 244, 239, 0.86);
}

.preview-placeholder,
.generated-result,
.empty-state {
  display: grid;
  gap: 18px;
}

.preview-placeholder-live {
  gap: 20px;
}

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

.live-preview-card {
  display: grid;
  gap: 10px;
}

.live-preview-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.live-preview-frame {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 182, 72, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  color: var(--muted);
  text-align: center;
  overflow: hidden;
}

.live-preview-frame img {
  width: 100%;
  height: 100%;
  min-height: 196px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.preview-placeholder img,
.generated-result img {
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.project-grid,
.asset-grid,
.template-list,
.stats-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.project-card,
.asset-card,
.metric-card,
.cta-panel {
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
}

.project-card img,
.asset-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card-body,
.asset-card .project-card-body {
  padding: 18px;
}

.metric-card {
  padding: 24px;
}

.metric-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 6px;
  color: var(--brand-strong);
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-table {
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted-strong);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-stack {
  align-items: start;
}

.template-preview-box {
  overflow: hidden;
  border-radius: 24px;
}

.template-preview-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.template-content {
  padding: 18px;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(23, 147, 125, 0.04));
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--muted);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 32px;
}

.footer-shell {
  padding-bottom: 40px;
}

.legal-shell {
  display: grid;
  gap: 24px;
}

.legal-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 30px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
}

.legal-hero img {
  border-radius: 24px;
  background: var(--bg-soft);
}

.legal-content {
  padding: 32px;
  border-radius: 30px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.legal-content p + h2 {
  margin-top: 26px;
}

.detail-list {
  display: grid;
  gap: 12px;
  color: var(--muted);
  margin-bottom: 26px;
}

@media (max-width: 1100px) {
  .creator-grid,
  .two-column,
  .feature-grid,
  .project-grid,
  .template-list,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .creator-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .feature-grid,
  .project-grid,
  .template-list,
  .asset-grid,
  .stats-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    display: grid;
  }
}

@media (max-width: 640px) {
  .auth-card,
  .legal-content,
  .legal-hero,
  .cta-panel {
    padding: 22px;
  }

  .action-row,
  .inline-filter,
  .inline-review {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-thumbnail {
    grid-template-columns: 1fr;
  }

  .upload-thumbnail img,
  .live-preview-frame img {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .live-preview-grid {
    grid-template-columns: 1fr;
  }
}
