:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --ink: #1f2328;
  --muted: #68717d;
  --panel: #fffdfa;
  --line: #d8d1c6;
  --accent: #0b6bcb;
  --accent-strong: #074f99;
  --green: #196f3d;
  --shadow: 0 18px 48px rgba(32, 28, 22, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(11, 107, 203, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(25, 111, 61, 0.09), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  min-height: min(620px, calc(100vh - 60px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 48px;
  padding: 24px 0 42px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
  margin: 0;
  max-width: 820px;
}

.lede {
  color: #424951;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.45;
  margin: 24px 0 0;
  max-width: 650px;
}

.lede span {
  color: var(--ink);
  font-weight: 720;
}

.hero-art {
  display: grid;
  place-items: center;
}

.phone-frame {
  width: min(100%, 260px);
  aspect-ratio: 0.52;
  border-radius: 38px;
  padding: 13px;
  background: #1a1d22;
  box-shadow: var(--shadow);
}

.phone-screen {
  height: 100%;
  border-radius: 28px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 32px 24px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.56) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.56) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.56) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.56) 75%),
    #d6e1ee;
  background-position: 0 0, 14px 14px;
  background-size: 28px 28px;
}

.sample-icon {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 32px;
  background:
    radial-gradient(circle at 35% 28%, #ffffff 0 14%, transparent 15%),
    conic-gradient(from 160deg, #0b6bcb, #38a169, #f2b84b, #d54646, #0b6bcb);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.25);
}

.dock {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(8px);
}

.dock i {
  aspect-ratio: 1;
  border-radius: 18px;
  background: rgba(31, 35, 40, 0.2);
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: -55px;
}

.control-panel,
.preview-panel,
.faq article {
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(32, 28, 22, 0.08);
}

.control-panel {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.drop-zone {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 2px dashed #aeb8c2;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  background: #f8fbff;
}

.drop-zone.dragging {
  border-color: var(--accent);
  background: #edf6ff;
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.drop-title {
  font-weight: 760;
  font-size: 1.08rem;
}

.drop-copy,
.privacy-note,
.file-details {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.field-grid {
  display: grid;
  gap: 14px;
}

label,
legend {
  color: #333941;
  font-size: 0.92rem;
  font-weight: 680;
}

input[type="text"] {
  width: 100%;
  height: 42px;
  margin-top: 8px;
  border: 1px solid #b9c0c8;
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

input[type="range"] {
  width: calc(100% - 54px);
  vertical-align: middle;
  accent-color: var(--accent);
}

output {
  display: inline-block;
  width: 44px;
  text-align: right;
  color: var(--muted);
  font-weight: 680;
}

.option-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 12px;
}

.switch-row,
.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  font-weight: 560;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

input[type="color"] {
  width: 46px;
  height: 34px;
  border: 1px solid #b9c0c8;
  border-radius: 6px;
  padding: 3px;
  background: white;
}

.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-weight: 760;
  cursor: pointer;
  padding: 12px 16px;
}

.primary-button:disabled {
  cursor: not-allowed;
  background: #8fa8c4;
}

.primary-button:not(:disabled):hover {
  background: var(--accent-strong);
}

.privacy-note {
  margin: 0;
}

.preview-panel {
  min-height: 504px;
  padding: 18px;
}

.preview-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

#main-preview {
  width: 220px;
  height: 220px;
  border-radius: 34px;
  background-color: #dce8f3;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.72) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.72) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.72) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.72) 75%);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  box-shadow: inset 0 0 0 1px rgba(31, 35, 40, 0.12);
}

.file-name {
  font-size: 1.35rem;
  font-weight: 780;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.file-details {
  margin: 0;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.asset-tile {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 7px;
  align-content: start;
  background: #fff;
}

.asset-tile strong {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.asset-tile span {
  color: var(--muted);
  font-size: 0.82rem;
}

.mini-icon {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    linear-gradient(45deg, #d9e6f2 25%, transparent 25% 75%, #d9e6f2 75%),
    linear-gradient(45deg, #d9e6f2 25%, transparent 25% 75%, #d9e6f2 75%),
    #fff;
  background-position: 0 0, 5px 5px;
  background-size: 10px 10px;
  box-shadow: inset 0 0 0 1px rgba(31, 35, 40, 0.12);
}

.faq {
  padding-top: 42px;
}

.faq h2 {
  font-size: 1.7rem;
  margin: 0 0 16px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.faq article {
  padding: 18px;
}

.faq h3 {
  margin: 0 0 8px;
}

.faq p {
  color: #4c5561;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 880px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 18px;
  }

  .hero-art {
    max-height: 320px;
    overflow: hidden;
  }

  .phone-frame {
    width: 240px;
  }

  .workspace {
    margin-top: 0;
  }

  .preview-main {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .control-panel,
  .preview-panel {
    padding: 14px;
  }

  #main-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}
