:root {
  color: #111418;
  background: #eff3f0;
  font-family: "Spline Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(30, 120, 100, 0.18), transparent 34rem),
    linear-gradient(315deg, rgba(245, 188, 74, 0.22), transparent 32rem),
    #eff3f0;
}

button,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 440px);
  gap: 36px;
  align-items: center;
  margin: 0 auto;
  padding: 32px 0;
}

.panel {
  display: grid;
  gap: 28px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  color: #111418;
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #111418;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0b6b5b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin: 0;
  color: #101418;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: #44505b;
  font-size: 1.05rem;
  line-height: 1.55;
}

.controls {
  display: grid;
  max-width: 620px;
  gap: 16px;
}

.select-label {
  border: 2px solid #111418;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 5px 5px 0 #0b6b5b;
}

.select-label {
  font-weight: 900;
}

label {
  cursor: pointer;
}

.select-label {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(17, 20, 24, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  color: #111418;
  background: #fff;
}

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

.actions button {
  min-height: 50px;
  border: 2px solid #111418;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: #111418;
  box-shadow: 5px 5px 0 #f0b43e;
  cursor: pointer;
  font-weight: 900;
}

.actions button:nth-child(2) {
  color: #111418;
  background: #fff5d6;
}

.hint {
  max-width: 560px;
  margin: -12px 0 0;
  color: #5b6670;
  font-size: 0.92rem;
  line-height: 1.45;
}

.preview {
  display: grid;
  justify-items: center;
  align-self: center;
  max-height: min(820px, calc(100vh - 64px));
  overflow: auto;
  border: 2px solid rgba(17, 20, 24, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 22px 64px rgba(17, 20, 24, 0.14);
}

.phone-frame {
  width: min(100%, 320px);
  border: 12px solid #111418;
  border-radius: 38px;
  padding: 8px;
  background: #111418;
  box-shadow: 0 20px 44px rgba(17, 20, 24, 0.2);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  background: #f8f8f8;
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 20px;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 4.2rem);
  }

  .phone-frame {
    width: min(100%, 300px);
  }
}
